Pebble App Framework
main
How It Works
CLI
Device API
Phone API
C Coverage
TS Coverage
GitHub
Theme
Pebble App Framework: Phone API
Preparing search index...
stock/cache
CacheStorage
Interface CacheStorage
The slice of localStorage this needs, passed in so the specs can hand it a fake.
interface
CacheStorage
{
getItem
(
key
:
string
)
:
string
|
null
;
setItem
(
key
:
string
,
value
:
string
)
:
void
;
}
Index
Methods
get
Item
set
Item
Methods
get
Item
getItem
(
key
:
string
)
:
string
|
null
Parameters
key
:
string
Returns
string
|
null
set
Item
setItem
(
key
:
string
,
value
:
string
)
:
void
Parameters
key
:
string
value
:
string
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
get
Item
set
Item
Pebble App Framework: Phone API
Loading...
The slice of localStorage this needs, passed in so the specs can hand it a fake.