WatchFacePushManagerFactory


object WatchFacePushManagerFactory


Summary

Public functions

WatchFacePushManager

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

Boolean

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

Public functions

createWatchFacePushManager

Added in 1.0.0-beta01
fun createWatchFacePushManager(context: Context): WatchFacePushManager

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

Parameters
context: Context

the current Android context.

Returns
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
fun isSupported(): Boolean

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.