Pebble.Companion.PreferenceStore
Generic phone-side preference storage exposed by the companion bridge.
Commands
get
get : String -> (Result String ( String, Decode.Value ) -> msg) -> Cmd msgRead a preference value and deliver it to toMsg.
set
set : String -> Encode.Value -> Cmd msgStore a preference value under a key.
setup
setup : Cmd msgRegister this platform handler with the companion bridge.
Subscriptions
onPreference
onPreference : (Result String ( String, Decode.Value ) -> msg) -> Sub msgReceive pushed preference updates from the companion bridge.
Registering this subscription also tells the bridge to send preference updates.