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 |
|---|
public static class WatchFaceMetadataClient.CompanionThis class is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
public final class WatchFaceMetadataClient.ServiceNotBoundException extends ExceptionThis class is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
public final class WatchFaceMetadataClient.ServiceStartFailureException extends ExceptionThis 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 |
||
|---|---|---|
|
Public methods
getComplicationSlotMetadataMap
abstract @NonNull Map<@NonNull Integer, @NonNull ComplicationSlotMetadata>getComplicationSlotMetadataMap()
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
abstract @NonNull UserStyleFlavorsgetUserStyleFlavors()
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
abstract @NonNull UserStyleSchemagetUserStyleSchema()
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
abstract boolean isUserStyleSchemaStatic()Whether or not the UserStyleSchema is static and won't change unless the APK is updated.