Note: The Wearable Support Library classes under the android.support.wearable
package are subject to change. For the full Android API reference, see Reference.
java.lang.Object | |
↳ | android.support.wearable.watchface.WatchFaceStyle.Builder |
Builder for WatchFaceStyle objects.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs read only WatchFaceStyle object.
| |||||||||||
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.
| |||||||||||
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 how the first, peeking card will be displayed while the watch is in ambient, black & white mode.
ambientPeekMode | must be either AMBIENT_PEEK_MODE_VISIBLE or
AMBIENT_PEEK_MODE_HIDDEN
|
---|
Set how to display background of the first, peeking card.
backgroundVisibility | must be either BACKGROUND_VISIBILITY_INTERRUPTIVE or
BACKGROUND_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_OPAQUE or
PEEK_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.
|
---|
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_INDICATOR and
PROTECT_WHOLE_SCREEN , e.g. PROTECT_STATUS_BAR |
PROTECT_HOTWORD_INDICATOR
|
---|