WatchFaceMetadataClient


public interface WatchFaceMetadataClient extends AutoCloseable


Interface for fetching watch face metadata. E.g. the UserStyleSchema and ComplicationSlotMetadata. This must be closed after use to release resources.

use Watch Face Format instead

Summary

Nested types

This class is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

This class is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

This class is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Public methods

abstract @NonNull Map<@NonNull Integer, @NonNull ComplicationSlotMetadata>

This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

abstract @NonNull UserStyleFlavors

This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

abstract @NonNull UserStyleSchema

This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

abstract boolean

This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Inherited methods

From java.lang.AutoCloseable
abstract void

This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Public methods

getComplicationSlotMetadataMap

Added in 1.1.0
Deprecated in 1.3.0-alpha06
abstract @NonNull Map<@NonNull Integer, @NonNull ComplicationSlotMetadatagetComplicationSlotMetadataMap()

Returns a map of androidx.wear.watchface.ComplicationSlot ID to ComplicationSlotMetadata for each slot in the watch face's androidx.wear.watchface.ComplicationSlotsManager.

Throws
kotlin.RuntimeException

if the watch face threw an exception while trying to service the request or there was a communication problem with watch face process.

getUserStyleFlavors

Added in 1.2.0
Deprecated in 1.3.0-alpha06
abstract @NonNull UserStyleFlavors getUserStyleFlavors()

Returns the watch face's UserStyleFlavors.

Throws
kotlin.RuntimeException

if the watch face threw an exception while trying to service the request or there was a communication problem with watch face process.

getUserStyleSchema

Added in 1.1.0
Deprecated in 1.3.0-alpha06
abstract @NonNull UserStyleSchema getUserStyleSchema()

Returns the watch face's UserStyleSchema.

Throws
kotlin.RuntimeException

if the watch face threw an exception while trying to service the request or there was a communication problem with watch face process.

isUserStyleSchemaStatic

Added in 1.1.0
Deprecated in 1.3.0-alpha06
abstract boolean isUserStyleSchemaStatic()

Whether or not the UserStyleSchema is static and won't change unless the APK is updated.