Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/controller
EphemeralStorageService
Class EphemeralStorageService<C>
Type parameters
C
:
Controller
=
Controller
Hierarchy
StorageService
<
C
>
EphemeralStorageService
Index
Constructors
constructor
Properties
observer
Type
observers
roots
storage
Accessors
attached
Methods
attach
Root
clear
detach
Root
did
Attach
did
Attach
Root
did
Clear
did
Detach
did
Detach
Root
did
Observe
did
Set
did
Unobserve
for
Each
Observer
get
observe
on
Attach
on
Attach
Root
on
Clear
on
Detach
on
Detach
Root
on
Observe
on
Set
on
Unobserve
set
unobserve
will
Attach
will
Attach
Root
will
Clear
will
Detach
will
Detach
Root
will
Observe
will
Set
will
Unobserve
global
Constructors
constructor
new
Ephemeral
Storage
Service<C>
(
storage
?:
Dictionary
<
string
>
)
:
EphemeralStorageService
<
C
>
Type parameters
C
:
Controller
<
C
>
=
Controller
Parameters
Optional
storage:
Dictionary
<
string
>
Returns
EphemeralStorageService
<
C
>
Properties
Optional
Readonly
observer
Type
observer
Type
:
Class
<
StorageServiceObserver
<
C
,
StorageService
<
C
>
>
>
Readonly
observers
observers
:
readonly
StorageServiceObserver
<
C
,
StorageService
<
C
>
>
[]
Readonly
roots
roots
:
readonly
C
[]
Readonly
storage
storage
:
Dictionary
<
string
>
Accessors
attached
get
attached
(
)
:
boolean
Returns
boolean
Methods
attach
Root
attach
Root
(
root
:
C
)
:
void
Parameters
root:
C
Returns
void
clear
clear
(
)
:
void
Returns
void
detach
Root
detach
Root
(
root
:
C
)
:
void
Parameters
root:
C
Returns
void
Protected
did
Attach
did
Attach
(
)
:
void
Returns
void
Protected
did
Attach
Root
did
Attach
Root
(
root
:
C
)
:
void
Parameters
root:
C
Returns
void
Protected
did
Clear
did
Clear
(
)
:
void
Returns
void
Protected
did
Detach
did
Detach
(
)
:
void
Returns
void
Protected
did
Detach
Root
did
Detach
Root
(
root
:
C
)
:
void
Parameters
root:
C
Returns
void
Protected
did
Observe
did
Observe
(
observer
:
StorageServiceObserver
<
C
,
StorageService
<
C
>
>
)
:
void
Parameters
observer:
StorageServiceObserver
<
C
,
StorageService
<
C
>
>
Returns
void
Protected
did
Set
did
Set
(
key
:
string
, newValue
:
undefined
|
string
, oldValue
:
undefined
|
string
)
:
void
Parameters
key:
string
newValue:
undefined
|
string
oldValue:
undefined
|
string
Returns
void
Protected
did
Unobserve
did
Unobserve
(
observer
:
StorageServiceObserver
<
C
,
StorageService
<
C
>
>
)
:
void
Parameters
observer:
StorageServiceObserver
<
C
,
StorageService
<
C
>
>
Returns
void
Protected
for
Each
Observer
for
Each
Observer<T>
(
callback
:
(
observer
:
StorageServiceObserver
<
C
,
StorageService
<
C
>
>
)
=>
void
|
T
)
:
undefined
|
T
Type parameters
T
Parameters
callback:
(
observer
:
StorageServiceObserver
<
C
,
StorageService
<
C
>
>
)
=>
void
|
T
(
observer
:
StorageServiceObserver
<
C
,
StorageService
<
C
>
>
)
:
void
|
T
Parameters
observer:
StorageServiceObserver
<
C
,
StorageService
<
C
>
>
Returns
void
|
T
Returns
undefined
|
T
get
get
(
key
:
string
)
:
undefined
|
string
Parameters
key:
string
Returns
undefined
|
string
observe
observe
(
observer
:
StorageServiceObserver
<
C
,
StorageService
<
C
>
>
)
:
void
Parameters
observer:
StorageServiceObserver
<
C
,
StorageService
<
C
>
>
Returns
void
Protected
on
Attach
on
Attach
(
)
:
void
Returns
void
Protected
on
Attach
Root
on
Attach
Root
(
root
:
C
)
:
void
Parameters
root:
C
Returns
void
Protected
on
Clear
on
Clear
(
)
:
void
Returns
void
Protected
on
Detach
on
Detach
(
)
:
void
Returns
void
Protected
on
Detach
Root
on
Detach
Root
(
root
:
C
)
:
void
Parameters
root:
C
Returns
void
Protected
on
Observe
on
Observe
(
observer
:
StorageServiceObserver
<
C
,
StorageService
<
C
>
>
)
:
void
Parameters
observer:
StorageServiceObserver
<
C
,
StorageService
<
C
>
>
Returns
void
Protected
on
Set
on
Set
(
key
:
string
, newValue
:
undefined
|
string
, oldValue
:
undefined
|
string
)
:
void
Parameters
key:
string
newValue:
undefined
|
string
oldValue:
undefined
|
string
Returns
void
Protected
on
Unobserve
on
Unobserve
(
observer
:
StorageServiceObserver
<
C
,
StorageService
<
C
>
>
)
:
void
Parameters
observer:
StorageServiceObserver
<
C
,
StorageService
<
C
>
>
Returns
void
set
set
(
key
:
string
, newValue
:
undefined
|
string
)
:
undefined
|
string
Parameters
key:
string
newValue:
undefined
|
string
Returns
undefined
|
string
unobserve
unobserve
(
observer
:
StorageServiceObserver
<
C
,
StorageService
<
C
>
>
)
:
void
Parameters
observer:
StorageServiceObserver
<
C
,
StorageService
<
C
>
>
Returns
void
Protected
will
Attach
will
Attach
(
)
:
void
Returns
void
Protected
will
Attach
Root
will
Attach
Root
(
root
:
C
)
:
void
Parameters
root:
C
Returns
void
Protected
will
Clear
will
Clear
(
)
:
void
Returns
void
Protected
will
Detach
will
Detach
(
)
:
void
Returns
void
Protected
will
Detach
Root
will
Detach
Root
(
root
:
C
)
:
void
Parameters
root:
C
Returns
void
Protected
will
Observe
will
Observe
(
observer
:
StorageServiceObserver
<
C
,
StorageService
<
C
>
>
)
:
void
Parameters
observer:
StorageServiceObserver
<
C
,
StorageService
<
C
>
>
Returns
void
Protected
will
Set
will
Set
(
key
:
string
, newValue
:
undefined
|
string
, oldValue
:
undefined
|
string
)
:
void
Parameters
key:
string
newValue:
undefined
|
string
oldValue:
undefined
|
string
Returns
void
Protected
will
Unobserve
will
Unobserve
(
observer
:
StorageServiceObserver
<
C
,
StorageService
<
C
>
>
)
:
void
Parameters
observer:
StorageServiceObserver
<
C
,
StorageService
<
C
>
>
Returns
void
Static
global
global<C>
(
)
:
StorageService
<
C
>
Type parameters
C
:
Controller
<
C
>
Returns
StorageService
<
C
>
Modules
@swim/runtime
@swim/toolkit
@swim/ui
@swim/model
@swim/style
@swim/theme
@swim/view
@swim/dom
@swim/graphics
@swim/controller
@swim/ux
@swim/vis
@swim/maps
Ephemeral
Storage
Service
constructor
observer
Type
observers
roots
storage
attached
attach
Root
clear
detach
Root
did
Attach
did
Attach
Root
did
Clear
did
Detach
did
Detach
Root
did
Observe
did
Set
did
Unobserve
for
Each
Observer
get
observe
on
Attach
on
Attach
Root
on
Clear
on
Detach
on
Detach
Root
on
Observe
on
Set
on
Unobserve
set
unobserve
will
Attach
will
Attach
Root
will
Clear
will
Detach
will
Detach
Root
will
Observe
will
Set
will
Unobserve
global
Generated using
TypeDoc