Class: Toybox.System.ServiceDelegate
- Inherits:
-
Toybox.Lang.Object
Overview
ServiceDelegate is a class used to service Background events.
This class is used as the main entry point for background processes. A callback function within the delegate can be used to initiate other system events (e.g. Communications), but only the delegate function is guaranteed to complete. The Background process may be shut down at any time to handle higher priority processes.
See Also:
Instance Method Summary collapse
-
onActivityCompleted(activity as { :sport as Activity.Sport, :subSport as Activity.SubSport }) as Void
The callback method that is triggered when an activity is completed.
-
onGoalReached(goalType as Application.GoalType) as Void
A callback method that is triggered in the background when a fitness goal is reached.
-
onOAuthResponse() as Void
The callback method that is triggered in the background when an OAuth response is received from the system.
-
onPhoneAppMessage(msg as Communications.PhoneAppMessage) as Void
The callback method that is triggered when a phone app message arrives for this app.
-
onSleepTime() as Void
The callback method that is triggered in the background at the configured sleep time.
-
onSteps() as Void
The callback method that is triggered in the background when a step goal is reached.
-
onTemporalEvent() as Void
A callback method that is triggered in the background when time-based events occur.
-
onWakeTime() as Void
A callback method that is triggered in the background at the configured wake time.
Instance Method Details
onActivityCompleted(activity as { :sport as Activity.Sport, :subSport as Activity.SubSport }) as Void
The callback method that is triggered when an activity is completed
onGoalReached(goalType as Application.GoalType) as Void
A callback method that is triggered in the background when a fitness goal is reached.
onOAuthResponse() as Void
The callback method that is triggered in the background when an OAuth response is received from the system
onPhoneAppMessage(msg as Communications.PhoneAppMessage) as Void
The callback method that is triggered when a phone app message arrives for this app
onSleepTime() as Void
The callback method that is triggered in the background at the configured sleep time.
onSteps() as Void
The callback method that is triggered in the background when a step goal is reached.
Step goals occur at 1000 step increments.
onTemporalEvent() as Void
A callback method that is triggered in the background when time-based events occur.
onWakeTime() as Void
A callback method that is triggered in the background at the configured wake time.