| java.lang.Object | |
| ↳ | android.support.wearable.watchface.WatchFaceStyle.Builder | 
Builder for WatchFaceStyle objects.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 
          Constructs read only WatchFaceStyle object.
          
    
         | |||||||||||
| 
          Sets whether this watchface accepts tap events.
          
    
         | |||||||||||
| 
          Sets how the first, peeking card will be displayed while the watch is in ambient,
 black & white mode.
          
    
         | |||||||||||
| 
          Set how to display background of the first, peeking card.
          
    
         | |||||||||||
| 
          Sets how far into the screen the first card will peek while the watch face is displayed.
          
    
         | |||||||||||
| 
          Sets position of hotword (OK Google) on the screen.
          
    
         | |||||||||||
| 
          Sets whether the first, peeking card should be opaque when the watch face is displayed.
          
    
         | |||||||||||
| 
          Sets if the system will draw the system-style time over the watch face.
          
    
         | |||||||||||
| 
          Sets whether to add an indicator of how many unread cards there are in the stream.
          
    
         | |||||||||||
| 
          Sets position of status icons (battery state, lack of connection) on the screen.
          
    
         | |||||||||||
| 
          
      This method is deprecated.
    Use  setViewProtectionMode(int)instead. | |||||||||||
| 
          Adds background color to UI elements of the home screen, so they are readable on
 the watch face.
          
    
         | |||||||||||
| [Expand] Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class
  java.lang.Object | |||||||||||
Sets whether this watchface accepts tap events. The default is false.
 Watchfaces that set this true are indicating they are prepared to receive
 TAP_TYPE_TOUCH,
 TAP_TYPE_TOUCH_CANCEL,
 and TAP_TYPE_TAP
| acceptsTapEvents | whether to receive touch events. | 
|---|
Sets how the first, peeking card will be displayed while the watch is in ambient, black & white mode.
| ambientPeekMode | must be either AMBIENT_PEEK_MODE_VISIBLEorAMBIENT_PEEK_MODE_HIDDEN | 
|---|
Set how to display background of the first, peeking card.
| backgroundVisibility | must be either BACKGROUND_VISIBILITY_INTERRUPTIVEorBACKGROUND_VISIBILITY_PERSISTENT | 
|---|
Sets how far into the screen the first card will peek while the watch face is displayed.
| peekMode | must be either PEEK_MODE_VARIABLE or PEEK_MODE_SHORT | 
|---|
Sets position of hotword (OK Google) on the screen.
| hotwordIndicatorGravity | This must be any combination of horizontal Gravity
                                constant ( LEFT,CENTER_HORIZONTAL,RIGHT)
                                and vertical Gravity constants (TOP,CENTER_VERTICAL,BOTTOM),
                                e.g.Gravity.LEFT | Gravity.BOTTOM. On circular
                                screens, only the vertical gravity is respected. | 
|---|
Sets whether the first, peeking card should be opaque when the watch face is displayed.
| peekOpacityMode | must be either PEEK_OPACITY_MODE_OPAQUEorPEEK_OPACITY_MODE_TRANSLUCENT | 
|---|
Sets if the system will draw the system-style time over the watch face.
| showSystemUiTime | Set this to false if you already draw or clearly represent the time on your watch face. | 
|---|
Sets whether to add an indicator of how many unread cards there are in the stream. The indicator will be displayed next to status icons (battery state, lack of connection).
| show | if true an indicator will be shown | 
|---|
Sets position of status icons (battery state, lack of connection) on the screen.
| statusBarGravity | This must be any combination of horizontal Gravity constant
                         ( LEFT,CENTER_HORIZONTAL,RIGHT) and vertical Gravity constants
                         (TOP,CENTER_VERTICAL,BOTTOM), e.g.Gravity.LEFT |
                         Gravity.BOTTOM. On circular screens, only the vertical gravity
                         is respected. | 
|---|
      This method is deprecated.
    Use setViewProtectionMode(int) instead.
  
Adds background color to UI elements of the home screen, so they are readable on the watch face. This should be used if the watch face color is close to being white.
| viewProtection | must be any combination of PROTECT_STATUS_BAR,PROTECT_HOTWORD_INDICATORandPROTECT_WHOLE_SCREEN, e.g.PROTECT_STATUS_BAR |
                       PROTECT_HOTWORD_INDICATOR | 
|---|
Adds background color to UI elements of the home screen, so they are readable on the watch face. This should be used if the watch face color is close to being white.
| viewProtectionMode | must be any combination of PROTECT_STATUS_BAR,PROTECT_HOTWORD_INDICATORandPROTECT_WHOLE_SCREEN, e.g.PROTECT_STATUS_BAR |
                           PROTECT_HOTWORD_INDICATOR | 
|---|