Pebble.Companion.Configuration

Open and observe the Pebble companion configuration page.

init _ =
    ( model, Configuration.open "https://example.com/config" )

subscriptions _ =
    Configuration.onClosed ConfigurationClosed

Commands

open

open : String -> Cmd msg

Ask the companion bridge to open a configuration URL.

setup

setup : Cmd msg

Register this platform handler with the companion bridge.

Subscriptions

onClosed

onClosed : (Maybe String -> msg) -> Sub msg

Receive configuration close events from the companion bridge.

Registering this subscription also tells the bridge to send configuration events.