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"
EXTRA_WATCH_FACE_COMPONENT
const val EXTRA_WATCH_FACE_COMPONENT: String
Value: "android.support.wearable.watchface.extra.WATCH_FACE_COMPONENT"
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_COMPLICATIONS_SETTINGS
const val KEY_COMPLICATIONS_SETTINGS: String
Key used for top level complications item.
Value: "key_complications_settings"
KEY_HIDE_NOTIFICATION_INDICATOR
const val KEY_HIDE_NOTIFICATION_INDICATOR: String
Value: "hideNotificationIndicator"
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"