WatchFaceStyle
@RestrictTo([Scope.LIBRARY_GROUP]) open class WatchFaceStyle : Parcelable
| kotlin.Any | |
| ↳ | android.support.wearable.watchface.WatchFaceStyle |
A style descriptor for watch faces.
Summary
| Constants | |
|---|---|
| const Int | |
| const Int |
Whether to put a semi-transparent black background behind the "Ok Google" string to make it visible on a white background. |
| const Int |
Whether to put a semi-transparent black background behind the status bar to make it visible on white backgrounds. |
| const Int |
Whether to dim the entire watch face background slightly so the time and icons are always visible. |
| Public constructors | |
|---|---|
WatchFaceStyle(component: ComponentName, viewProtectionMode: Int, statusBarGravity: Int, @ColorInt accentColor: Int, showUnreadCountIndicator: Boolean, hideNotificationIndicator: Boolean, acceptsTapEvents: Boolean, compatBundle: Bundle? = null)A style descriptor for watch faces. |
|
| Public methods | |
|---|---|
| open Int | |
| open Boolean | |
| open Int |
hashCode() |
| open Unit |
writeToParcel(dest: Parcel, flags: Int) |
| Properties | |
|---|---|
| Int | |
| Boolean | |
| Bundle? |
Escape hatch needed by WearOS to implement backwards compatibility. |
| ComponentName | |
| Boolean | |
| Boolean | |
| Int | |
| Int | |
| Companion properties | |
|---|---|
| Creator<WatchFaceStyle> |
Parcelable Creator |
Constants
PROTECT_HOTWORD_INDICATOR
const val PROTECT_HOTWORD_INDICATOR: Int
Whether to put a semi-transparent black background behind the "Ok Google" string to make it visible on a white background.
Value: 0x2PROTECT_STATUS_BAR
const val PROTECT_STATUS_BAR: Int
Whether to put a semi-transparent black background behind the status bar to make it visible on white backgrounds.
Value: 0x1PROTECT_WHOLE_SCREEN
const val PROTECT_WHOLE_SCREEN: Int
Whether to dim the entire watch face background slightly so the time and icons are always visible.
Value: 0x4Public constructors
WatchFaceStyle
WatchFaceStyle(
component: ComponentName,
viewProtectionMode: Int,
statusBarGravity: Int,
@ColorInt accentColor: Int,
showUnreadCountIndicator: Boolean,
hideNotificationIndicator: Boolean,
acceptsTapEvents: Boolean,
compatBundle: Bundle? = null)
A style descriptor for watch faces.
Public methods
describeContents
open fun describeContents(): Int
hashCode
open fun hashCode(): Int
Properties
accentColor
val accentColor: Int
acceptsTapEvents
val acceptsTapEvents: Boolean
compatBundle
val compatBundle: Bundle?
Escape hatch needed by WearOS to implement backwards compatibility. Note WearOS support for obsolete WatchFaceStyle properties may be removed without notice.
component
val component: ComponentName
hideNotificationIndicator
val hideNotificationIndicator: Boolean
showUnreadCountIndicator
val showUnreadCountIndicator: Boolean
statusBarGravity
val statusBarGravity: Int
viewProtectionMode
val viewProtectionMode: Int