Pebble.Companion.Lifecycle
Observe phone companion lifecycle events.
Subscribe once during companion startup and route pushed bridge events through `decode`.
Events
Commands
Union Types
Event
type Eventtype Event
= Ready
| ShowConfiguration
| WebViewClosed (Maybe String)
| VisibilityChanged Bool
| Unknown StringLifecycle events emitted by the companion bridge.
Values
decode
decode : BridgeEvent -> EventDecode a bridge lifecycle event.
subscribe
subscribe : String -> CommandEnvelopeSubscribe to lifecycle events.