Pebble.Storage
Watch-local integer key/value storage commands.
The watch runtime exposes a lightweight integer key/value store.
saveCounter : Cmd msg
saveCounter =
writeInt 1 42
loadCounter : Cmd Msg
loadCounter =
readInt 1 CounterLoaded
Operations
Values
writeInt
writeInt : Int -> Int -> Cmd msgStore an integer value under an integer key.
readInt
readInt : Int -> (Int -> msg) -> Cmd msgRead an integer by key and send it to `toMsg`.
delete
delete : Int -> Cmd msgRemove a stored value at `key`.