WearDataLayerAppHelper

class WearDataLayerAppHelper(context: Context, registry: WearDataLayerRegistry, scope: CoroutineScope, appStoreUri: String? = null) : DataLayerAppHelper

Subclass of DataLayerAppHelper for use on Wear devices.

Parameter appStoreUri should be provided when using functions like installOnNode with an iOS device.

Constructors

Link copied to clipboard
constructor(context: Context, registry: WearDataLayerRegistry, scope: CoroutineScope, appStoreUri: String? = null)

Properties

Link copied to clipboard
open override val connectedAndInstalledNodes: Flow<Set<Node>>
Link copied to clipboard

Return the SurfacesInfo of this node.

Functions

Link copied to clipboard
Link copied to clipboard
open suspend override fun installOnNode(nodeId: String): AppHelperResultCode
Link copied to clipboard
suspend fun isAvailable(): Boolean
Link copied to clipboard

Marks that the main activity has been launched at least once.

Link copied to clipboard
suspend fun markComplicationAsActivated(complicationName: String, complicationInstanceId: Int, complicationType: ComplicationType)

Marks a complication as activated. Call this in ComplicationDataSourceService.onComplicationActivated.

Link copied to clipboard
suspend fun markComplicationAsDeactivated(complicationName: String, complicationInstanceId: Int, complicationType: ComplicationType)

Marks a complication as deactivated. Call this in ComplicationDataSourceService.onComplicationDeactivated.

Link copied to clipboard
suspend fun markSetupComplete()

Marks that the necessary setup steps have been completed in the app such that it is ready for use. Typically this should be called when any pairing/login has been completed. If used for prompting login, it should also be called during startup if login happened before

Link copied to clipboard

Marks that the app is no longer considered in a fully setup state. For example, the user has logged out. This will roll the state back to the app having been used once - if the setup had previously been completed, but will have no effect if this is not the case.

Link copied to clipboard
suspend fun markTileAsInstalled(tileName: String)

Marks a tile as installed. Call this in TileService#onTileAddEvent. Supplying a name is mandatory to disambiguate from the installation or removal of other tiles your app may have.

Link copied to clipboard
suspend fun markTileAsRemoved(tileName: String)

Marks a tile as removed. Call this in TileService#onTileRemoveEvent. Supplying a name is mandatory to disambiguate from the installation or removal of other tiles your app may have.

Link copied to clipboard
open suspend override fun startCompanion(nodeId: String): AppHelperResultCode
Link copied to clipboard
Link copied to clipboard