SignInPrompt

class SignInPrompt(coroutineScope: CoroutineScope, phoneDataLayerAppHelper: PhoneDataLayerAppHelper)

Functions to display a sign-in prompt.

Parameters

coroutineScope

CoroutineScope used to make the call to launch the app on the watch.

Constructors

Link copied to clipboard
constructor(coroutineScope: CoroutineScope, phoneDataLayerAppHelper: PhoneDataLayerAppHelper)

Functions

Link copied to clipboard
fun getIntent(context: Context, nodeId: String, @DrawableRes image: Int, topMessage: String, bottomMessage: String, positiveButtonLabel: String? = null, negativeButtonLabel: String? = null): Intent

Returns the Intent to display a sign-in prompt to the user.

Link copied to clipboard
suspend fun performAction(nodeId: String)

Performs the same action taken by the prompt when the user taps on the positive button.

Link copied to clipboard

Returns a AppHelperNodeStatus that meets the criteria to show this prompt, otherwise returns null.