Class: Toybox.ActivityPrompts.ActivityPromptDelegate
- Inherits:
-
Toybox.Lang.Object
Overview
Delegate used by the system to notify the app about activity prompts
Registered using ActivityPrompts.registerActivityPromptListener() to allow an app to get notified when an activity prompt should be played.
Instance Method Summary collapse
-
onAudioOutputChange(selectedHandler as Lang.Boolean) as Void
Called by the system if ActivityPrompts.registerActivityPromptListener() has been called and the user has changed the activity prompt output provider.
-
onPrompt(prompts as Lang.Array<ActivityPrompts.ActivityPrompt>, priority as Lang.Number) as Void
Called by the system when an activity prompt is to be played.
Instance Method Details
onAudioOutputChange(selectedHandler as Lang.Boolean) as Void
Called by the system if ActivityPrompts.registerActivityPromptListener() has been called and the user has changed the activity prompt output provider.
onPrompt(prompts as Lang.Array<ActivityPrompts.ActivityPrompt>, priority as Lang.Number) as Void
Called by the system when an activity prompt is to be played