Elm Pebble

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 Event
type Event
    = Ready
    | ShowConfiguration
    | WebViewClosed (Maybe String)
    | VisibilityChanged Bool
    | Unknown String

Lifecycle events emitted by the companion bridge.

Values

decode

decode : BridgeEvent -> Event

Decode a bridge lifecycle event.

subscribe

subscribe : String -> CommandEnvelope

Subscribe to lifecycle events.