Constants

@RestrictTo([Scope.LIBRARY_GROUP]) class Constants
kotlin.Any
   ↳ android.support.wearable.watchface.Constants

Shared constants between client and implementation.

Summary

Constants
const String

const String

const String

const String

const String

const String

const String

const String

const String

const String

const String

const String

const String

const String

const String

const String

const String

const String

const String

const String

const String

const String

const String

const String

const String

const String

Key used for top level background image item.

const String

const String

const String

const String

const String

Key used for top level complications item.

const String

const String

const String

const String

const String

const String

const String

const String

const String

Metadata flag indicating the watch face service exposes flavors.

const String

Metadata flag specifying that the watch face is OK for the system to have multiple instances of the watch face.

const String

const String

Property in bundle passed to Engine.onPropertiesChanged to indicate whether burn-in protection is required.

const String

Property in bundle passed to Engine.onPropertiesChanged to indicate whether the device has low-bit ambient mode.

const String

Key for a boolean value in the bundle passed to Engine.onStatusChangedBundle that indicates whether or not the keyguard is locked.

Constants

ACTION_REQUEST_STATE

const val ACTION_REQUEST_STATE: String
Value: "com.google.android.wearable.watchfaces.action.REQUEST_STATE"

ACTION_WATCH_FACE_REFRESH_A11Y_LABELS

const val ACTION_WATCH_FACE_REFRESH_A11Y_LABELS: String
Value: "androidx.watchface.action.WATCH_FACE_A11Y_LABELS_REFRESH"

COMMAND_AMBIENT_UPDATE

const val COMMAND_AMBIENT_UPDATE: String
Value: "com.google.android.wearable.action.AMBIENT_UPDATE"

COMMAND_BACKGROUND_ACTION

const val COMMAND_BACKGROUND_ACTION: String
Value: "com.google.android.wearable.action.BACKGROUND_ACTION"

COMMAND_COMPLICATION_DATA

const val COMMAND_COMPLICATION_DATA: String
Value: "com.google.android.wearable.action.COMPLICATION_DATA"

COMMAND_REQUEST_STYLE

const val COMMAND_REQUEST_STYLE: String
Value: "com.google.android.wearable.action.REQUEST_STYLE"

COMMAND_SET_BINDER

const val COMMAND_SET_BINDER: String
Value: "com.google.android.wearable.action.SET_BINDER"

COMMAND_SET_PROPERTIES

const val COMMAND_SET_PROPERTIES: String
Value: "com.google.android.wearable.action.SET_PROPERTIES"

COMMAND_TAP

const val COMMAND_TAP: String
Value: WallpaperManager.COMMAND_TAP

COMMAND_TOUCH

const val COMMAND_TOUCH: String
Value: "android.wallpaper.touch"

COMMAND_TOUCH_CANCEL

const val COMMAND_TOUCH_CANCEL: String
Value: "android.wallpaper.touch_cancel"

EXTRA_AMBIENT_MODE

const val EXTRA_AMBIENT_MODE: String
Value: "ambient_mode"

EXTRA_BINDER

const val EXTRA_BINDER: String
Value: "binder"

EXTRA_CALENDAR_TIME_MS

const val EXTRA_CALENDAR_TIME_MS: String
Value: "EXTRA_CALENDAR_TIME_MS"

EXTRA_COMPLICATION_DATA

const val EXTRA_COMPLICATION_DATA: String
Value: "complication_data"

EXTRA_COMPLICATION_ID

const val EXTRA_COMPLICATION_ID: String
Value: "complication_id"

EXTRA_DRAW_MODE

const val EXTRA_DRAW_MODE: String
Value: "EXTRA_DRAW_MODE"

EXTRA_INDICATOR_STATUS

const val EXTRA_INDICATOR_STATUS: String
Value: "indicator_status"

EXTRA_INTERRUPTION_FILTER

const val EXTRA_INTERRUPTION_FILTER: String
Value: "interruption_filter"

EXTRA_NOTIFICATION_COUNT

const val EXTRA_NOTIFICATION_COUNT: String
Value: "notification_count"

EXTRA_UNREAD_COUNT

const val EXTRA_UNREAD_COUNT: String
Value: "unread_count"

EXTRA_WATCH_FACE_COMPONENT

const val EXTRA_WATCH_FACE_COMPONENT: String
Value: "android.support.wearable.watchface.extra.WATCH_FACE_COMPONENT"

EXTRA_WATCH_FACE_VISIBLE

const val EXTRA_WATCH_FACE_VISIBLE: String
Value: "watch_face_visible"

KEY_ACCENT_COLOR

const val KEY_ACCENT_COLOR: String
Value: "accentColor"

KEY_ACCEPTS_TAPS

const val KEY_ACCEPTS_TAPS: String
Value: "acceptsTapEvents"

KEY_BACKGROUND_IMAGE_SETTINGS

const val KEY_BACKGROUND_IMAGE_SETTINGS: String

Key used for top level background image item.

Value: "key_background_image_settings"

KEY_BITMAP_CONFIG_ORDINAL

const val KEY_BITMAP_CONFIG_ORDINAL: String
Value: "KEY_BITMAP_CONFIG_ORDINAL"

KEY_BITMAP_HEIGHT_PX

const val KEY_BITMAP_HEIGHT_PX: String
Value: "KEY_BITMAP_HEIGHT_PX"

KEY_BITMAP_WIDTH_PX

const val KEY_BITMAP_WIDTH_PX: String
Value: "KEY_BITMAP_WIDTH_PX"

KEY_BOUNDS

const val KEY_BOUNDS: String
Value: "KEY_BOUNDS"

KEY_COMPLICATIONS_SETTINGS

const val KEY_COMPLICATIONS_SETTINGS: String

Key used for top level complications item.

Value: "key_complications_settings"

KEY_COMPONENT

const val KEY_COMPONENT: String
Value: "component"

KEY_HIDE_NOTIFICATION_INDICATOR

const val KEY_HIDE_NOTIFICATION_INDICATOR: String
Value: "hideNotificationIndicator"

KEY_SCREENSHOT

const val KEY_SCREENSHOT: String
Value: "KEY_SCREENSHOT"

KEY_SHOW_UNREAD_INDICATOR

const val KEY_SHOW_UNREAD_INDICATOR: String
Value: "showUnreadIndicator"

KEY_STATUS_BAR_GRAVITY

const val KEY_STATUS_BAR_GRAVITY: String
Value: "statusBarGravity"

KEY_TAP_ACTION

const val KEY_TAP_ACTION: String
Value: "KEY_TAP_ACTION"

KEY_TEXT

const val KEY_TEXT: String
Value: "KEY_TEXT"

KEY_VIEW_PROTECTION_MODE

const val KEY_VIEW_PROTECTION_MODE: String
Value: "viewProtectionMode"

META_DATA_FLAVORS_SUPPORTED

const val META_DATA_FLAVORS_SUPPORTED: String

Metadata flag indicating the watch face service exposes flavors. The system will access them only if this flag is present in manifest.

Value: "androidx.wear.watchface.FLAVORS_SUPPORTED"

META_DATA_MULTIPLE_INSTANCES_ALLOWED

const val META_DATA_MULTIPLE_INSTANCES_ALLOWED: String

Metadata flag specifying that the watch face is OK for the system to have multiple instances of the watch face. Without this by default the system will only allow a single instance.

Value: "androidx.wear.watchface.MULTIPLE_INSTANCES_ALLOWED"

PERMISSION_BIND_WATCH_FACE_CONTROL

const val PERMISSION_BIND_WATCH_FACE_CONTROL: String
Value: "com.google.android.wearable.permission.BIND_WATCH_FACE_CONTROL"

PROPERTY_BURN_IN_PROTECTION

const val PROPERTY_BURN_IN_PROTECTION: String

Property in bundle passed to Engine.onPropertiesChanged to indicate whether burn-in protection is required. When this property is set to true, views are shifted around periodically in ambient mode. To ensure that content isn't shifted off the screen, watch faces should avoid placing content within 10 pixels of the edge of the screen. Watch faces should also avoid solid white areas to prevent pixel burn-in. Both of these requirements only apply in ambient mode, and only when this property is set to true.

Value: "burn_in_protection"

PROPERTY_LOW_BIT_AMBIENT

const val PROPERTY_LOW_BIT_AMBIENT: String

Property in bundle passed to Engine.onPropertiesChanged to indicate whether the device has low-bit ambient mode. When this property is set to true, the screen supports fewer bits for each color in ambient mode. In this case, watch faces should disable anti-aliasing in ambient mode.

Value: "low_bit_ambient"

STATUS_KEYGUARD_LOCKED

const val STATUS_KEYGUARD_LOCKED: String

Key for a boolean value in the bundle passed to Engine.onStatusChangedBundle that indicates whether or not the keyguard is locked.

Value: "keyguard_locked"