WatchFacePushManager.WatchFaceDetails


class WatchFacePushManager.WatchFaceDetails


Details about a watch face that is installed through this API. Once installed, a watch face gets assigned a "slot" that can be then updated with another watch face. Similarly, the watch face in the slot can be deleted, freeing the slot. Each calling app has a limited number of slots that can be utilized.

Summary

Public constructors

Public functions

() -> List<String>

Returns a function that, when invoked, returns the list of metadata values for the given key.

Public properties

String

The package name of the watch face defined in the watch face manifest file..

String

The unique slot ID assigned to this watch face.

Long

The version code of the watch face defined in the watch face manifest file.

Public constructors

Public functions

getMetaData

Added in 1.3.0-alpha07
fun getMetaData(key: String): () -> List<String>

Returns a function that, when invoked, returns the list of metadata values for the given key.

Parameters
key: String

The key for the metadata to retrieve.

Returns
() -> List<String>

A function returning a list of metadata values.

Public properties

packageName

Added in 1.3.0-alpha07
val packageNameString

The package name of the watch face defined in the watch face manifest file..

slotId

Added in 1.3.0-alpha07
val slotIdString

The unique slot ID assigned to this watch face. This ID is used to reference this watch face for subsequent operations like updating or removing.

versionCode

Added in 1.3.0-alpha07
val versionCodeLong

The version code of the watch face defined in the watch face manifest file.