Elm Pebble

Pebble.Companion.Configuration

Open and observe the Pebble companion configuration page.

Pebble.Companion.Configuration.open "settings" "https://example.com/config"

Events

Commands

Union Types

Event

type Event
type Event
    = Closed (Maybe String)
    | Unknown String

Configuration lifecycle events reported by the bridge.

Values

decode

decode : BridgeEvent -> Event

Decode a bridge event into a configuration event.

open

open : String -> String -> CommandEnvelope

Ask the companion bridge to open a configuration URL.

subscribe

subscribe : String -> CommandEnvelope

Subscribe to configuration close events.