Pebble.Companion.Lifecycle
Observe phone companion lifecycle events.
subscriptions _ =
Lifecycle.onLifecycle LifecycleChangedEvents
Event
type Event
= Ready
| ShowConfiguration
| WebViewClosed (Maybe String)
| VisibilityChanged Bool
| Unknown StringLifecycle events emitted by the companion bridge.
Subscriptions
onLifecycle
onLifecycle : (Event -> msg) -> Sub msgReceive pushed lifecycle events from the companion bridge.
Registering this subscription also tells the bridge to send lifecycle updates.
setup
setup : Cmd msgRegister this platform handler with the companion bridge.