WatchFacePushManagerFactory


public static class WatchFacePushManagerFactory


Summary

Public methods

static final @NonNull WatchFacePushManager

Creates a WatchFacePushManager instance, which acts as the entry point for the Watch Face Push APIs.

static final boolean

Determines if the Watch Face Push feature is supported on this device.

Public fields

INSTANCE

Added in 1.0.0-beta01
public static @NonNull WatchFacePushManagerFactory INSTANCE

Public methods

createWatchFacePushManager

Added in 1.0.0-beta01
public static final @NonNull WatchFacePushManager createWatchFacePushManager(@NonNull Context context)

Creates a WatchFacePushManager instance, which acts as the entry point for the Watch Face Push APIs.

Parameters
@NonNull Context context

the current Android context.

Returns
@NonNull WatchFacePushManager

a new WatchFacePushManager implementation.

Throws
kotlin.UnsupportedOperationException

if the Watch Face Push feature is not supported on this device. Check isSupported before calling this method.

isSupported

Added in 1.0.0-beta01
public static final boolean isSupported()

Determines if the Watch Face Push feature is supported on this device.

Returns
boolean

true if the Watch Face Push API can be used, false otherwise.