WatchFacePushManager.WatchFaceDetails


public final 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 methods

final @NonNull Function0<@NonNull List<@NonNull String>>

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

final @NonNull String

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

final @NonNull String

The unique slot ID assigned to this watch face.

final long

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

Public constructors

WatchFaceDetails

public WatchFaceDetails(@NonNull <Error class: unknown class> slot)

Public methods

getMetaData

Added in 1.3.0-alpha07
public final @NonNull Function0<@NonNull List<@NonNull String>> getMetaData(@NonNull String key)

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

Parameters
@NonNull String key

The key for the metadata to retrieve.

Returns
@NonNull Function0<@NonNull List<@NonNull String>>

A function returning a list of metadata values.

getPackageName

Added in 1.3.0-alpha07
public final @NonNull String getPackageName()

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

getSlotId

Added in 1.3.0-alpha07
public final @NonNull String getSlotId()

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.

getVersionCode

Added in 1.3.0-alpha07
public final long getVersionCode()

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