Events

open class Events(var payload: Any? = null)

This class contains built-in and custom events which the library can broadcast to the application. Here is a list of the built-in events:

"Init"
"ConnectionStarted"
"ConnectionSetupComplete"
"Disconnect"
"AlarmDataLoaded"
"NotificationsEnabled"
"NotificationsDisabled"
"WatchInitializationCompleted"
"AllPermissionsAccepted"
"ButtonPressedInfoReceived"
"ConnectionFailed"
"SettingsLoaded"
"NeedToUpdateUI"
"CalendarUpdated"
"HomeTimeUpdated"
"ApiError"

The App can add their oun arbitrary events like this:

ProgressEvents.addEvent("MyCustomEvent")

Constructors

Link copied to clipboard
constructor(payload: Any? = null)

Properties

Link copied to clipboard
var payload: Any?