ListenableWatchFaceMetadataClient.Companion

object ListenableWatchFaceMetadataClient.Companion


Summary

Public methods

final @NonNull ListenableFuture<@NonNull WatchFaceMetadataClient>
create(Context context, ComponentName watchFaceName)

Constructs a WatchFaceMetadataClient for fetching metadata for the specified watch face.

Public methods

create

public final @NonNull ListenableFuture<@NonNull WatchFaceMetadataClientcreate(Context context, ComponentName watchFaceName)

Constructs a WatchFaceMetadataClient for fetching metadata for the specified watch face.

Parameters
Context context

Calling application's Context.

ComponentName watchFaceName

The ComponentName of the watch face to fetch meta data from.

Returns
@NonNull ListenableFuture<@NonNull WatchFaceMetadataClient>

A ListenableFuture which resolves with WatchFaceMetadataClient if there is one, otherwise it throws a ServiceNotBoundException if the underlying watch face control service can not be bound or a ServiceStartFailureException if the watch face dies during startup.