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
equals(other: Any?)

open Int

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

DEFAULT_ACCENT_COLOR

const val DEFAULT_ACCENT_COLOR: Int
Value: Color.WHITE

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: 0x2

PROTECT_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: 0x1

PROTECT_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: 0x4

Public 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

equals

open fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

writeToParcel

open fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

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

Companion properties

CREATOR

val CREATOR: Creator<WatchFaceStyle>

Parcelable Creator