Pebble.Companion.PreferenceStore

Generic phone-side preference storage exposed by the companion bridge.

Commands

get

get : String -> (Result String ( String, Decode.Value ) -> msg) -> Cmd msg

Read a preference value and deliver it to toMsg.

set

set : String -> Encode.Value -> Cmd msg

Store a preference value under a key.

setup

setup : Cmd msg

Register this platform handler with the companion bridge.

Subscriptions

onPreference

onPreference : (Result String ( String, Decode.Value ) -> msg) -> Sub msg

Receive pushed preference updates from the companion bridge.

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