Pebble.Companion.Lifecycle

Observe phone companion lifecycle events.

subscriptions _ =
    Lifecycle.onLifecycle LifecycleChanged

Events

Event

type Event
    = Ready
    | ShowConfiguration
    | WebViewClosed (Maybe String)
    | VisibilityChanged Bool
    | Unknown String

Lifecycle events emitted by the companion bridge.

Subscriptions

onLifecycle

onLifecycle : (Event -> msg) -> Sub msg

Receive pushed lifecycle events from the companion bridge.

Registering this subscription also tells the bridge to send lifecycle updates.

setup

setup : Cmd msg

Register this platform handler with the companion bridge.