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
HistoryService
Class HistoryService<C>
Type parameters
C
:
Controller
=
Controller
Hierarchy
Service
<
C
>
HistoryService
Index
Constructors
constructor
Properties
history
State
observer
Type
observers
roots
Accessors
attached
history
Uri
Methods
attach
Events
attach
Root
detach
Events
detach
Root
did
Attach
did
Attach
Root
did
Detach
did
Detach
Root
did
Observe
did
Pop
History
did
Push
History
did
Replace
History
did
Unobserve
for
Each
Observer
observe
on
Attach
on
Attach
Root
on
Detach
on
Detach
Root
on
Observe
on
Pop
History
on
Push
History
on
Replace
History
on
Unobserve
pop
History
push
History
replace
History
unobserve
will
Attach
will
Attach
Root
will
Detach
will
Detach
Root
will
Observe
will
Pop
History
will
Push
History
will
Replace
History
will
Unobserve
global
Constructors
constructor
new
History
Service<C>
(
)
:
HistoryService
<
C
>
Type parameters
C
:
Controller
<
C
>
=
Controller
Returns
HistoryService
<
C
>
Properties
Readonly
history
State
history
State
:
HistoryState
Optional
Readonly
observer
Type
observer
Type
:
Class
<
HistoryServiceObserver
<
C
,
HistoryService
<
C
>
>
>
Readonly
observers
observers
:
readonly
HistoryServiceObserver
<
C
,
HistoryService
<
C
>
>
[]
Readonly
roots
roots
:
readonly
C
[]
Accessors
attached
get
attached
(
)
:
boolean
Returns
boolean
history
Uri
get
historyUri
(
)
:
Uri
Returns
Uri
Methods
Protected
attach
Events
attach
Events
(
)
:
void
Returns
void
attach
Root
attach
Root
(
root
:
C
)
:
void
Parameters
root:
C
Returns
void
Protected
detach
Events
detach
Events
(
)
:
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
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
:
HistoryServiceObserver
<
C
,
HistoryService
<
C
>
>
)
:
void
Parameters
observer:
HistoryServiceObserver
<
C
,
HistoryService
<
C
>
>
Returns
void
Protected
did
Pop
History
did
Pop
History
(
newState
:
HistoryState
, oldState
:
HistoryState
)
:
void
Parameters
newState:
HistoryState
oldState:
HistoryState
Returns
void
Protected
did
Push
History
did
Push
History
(
newState
:
HistoryState
, oldState
:
HistoryState
)
:
void
Parameters
newState:
HistoryState
oldState:
HistoryState
Returns
void
Protected
did
Replace
History
did
Replace
History
(
newState
:
HistoryState
, oldState
:
HistoryState
)
:
void
Parameters
newState:
HistoryState
oldState:
HistoryState
Returns
void
Protected
did
Unobserve
did
Unobserve
(
observer
:
HistoryServiceObserver
<
C
,
HistoryService
<
C
>
>
)
:
void
Parameters
observer:
HistoryServiceObserver
<
C
,
HistoryService
<
C
>
>
Returns
void
Protected
for
Each
Observer
for
Each
Observer<T>
(
callback
:
(
observer
:
HistoryServiceObserver
<
C
,
HistoryService
<
C
>
>
)
=>
void
|
T
)
:
undefined
|
T
Type parameters
T
Parameters
callback:
(
observer
:
HistoryServiceObserver
<
C
,
HistoryService
<
C
>
>
)
=>
void
|
T
(
observer
:
HistoryServiceObserver
<
C
,
HistoryService
<
C
>
>
)
:
void
|
T
Parameters
observer:
HistoryServiceObserver
<
C
,
HistoryService
<
C
>
>
Returns
void
|
T
Returns
undefined
|
T
observe
observe
(
observer
:
HistoryServiceObserver
<
C
,
HistoryService
<
C
>
>
)
:
void
Parameters
observer:
HistoryServiceObserver
<
C
,
HistoryService
<
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
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
:
HistoryServiceObserver
<
C
,
HistoryService
<
C
>
>
)
:
void
Parameters
observer:
HistoryServiceObserver
<
C
,
HistoryService
<
C
>
>
Returns
void
Protected
on
Pop
History
on
Pop
History
(
newState
:
HistoryState
, oldState
:
HistoryState
)
:
void
Parameters
newState:
HistoryState
oldState:
HistoryState
Returns
void
Protected
on
Push
History
on
Push
History
(
newState
:
HistoryState
, oldState
:
HistoryState
)
:
void
Parameters
newState:
HistoryState
oldState:
HistoryState
Returns
void
Protected
on
Replace
History
on
Replace
History
(
newState
:
HistoryState
, oldState
:
HistoryState
)
:
void
Parameters
newState:
HistoryState
oldState:
HistoryState
Returns
void
Protected
on
Unobserve
on
Unobserve
(
observer
:
HistoryServiceObserver
<
C
,
HistoryService
<
C
>
>
)
:
void
Parameters
observer:
HistoryServiceObserver
<
C
,
HistoryService
<
C
>
>
Returns
void
pop
History
pop
History
(
event
:
PopStateEvent
)
:
void
Parameters
event:
PopStateEvent
Returns
void
push
History
push
History
(
deltaState
:
HistoryStateInit
)
:
void
Parameters
deltaState:
HistoryStateInit
Returns
void
replace
History
replace
History
(
deltaState
:
HistoryStateInit
)
:
void
Parameters
deltaState:
HistoryStateInit
Returns
void
unobserve
unobserve
(
observer
:
HistoryServiceObserver
<
C
,
HistoryService
<
C
>
>
)
:
void
Parameters
observer:
HistoryServiceObserver
<
C
,
HistoryService
<
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
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
:
HistoryServiceObserver
<
C
,
HistoryService
<
C
>
>
)
:
void
Parameters
observer:
HistoryServiceObserver
<
C
,
HistoryService
<
C
>
>
Returns
void
Protected
will
Pop
History
will
Pop
History
(
newState
:
HistoryState
, oldState
:
HistoryState
)
:
void
Parameters
newState:
HistoryState
oldState:
HistoryState
Returns
void
Protected
will
Push
History
will
Push
History
(
newState
:
HistoryState
, oldState
:
HistoryState
)
:
void
Parameters
newState:
HistoryState
oldState:
HistoryState
Returns
void
Protected
will
Replace
History
will
Replace
History
(
newState
:
HistoryState
, oldState
:
HistoryState
)
:
void
Parameters
newState:
HistoryState
oldState:
HistoryState
Returns
void
Protected
will
Unobserve
will
Unobserve
(
observer
:
HistoryServiceObserver
<
C
,
HistoryService
<
C
>
>
)
:
void
Parameters
observer:
HistoryServiceObserver
<
C
,
HistoryService
<
C
>
>
Returns
void
Static
global
global<C>
(
)
:
HistoryService
<
C
>
Type parameters
C
:
Controller
<
C
>
Returns
HistoryService
<
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
History
Service
constructor
history
State
observer
Type
observers
roots
attached
history
Uri
attach
Events
attach
Root
detach
Events
detach
Root
did
Attach
did
Attach
Root
did
Detach
did
Detach
Root
did
Observe
did
Pop
History
did
Push
History
did
Replace
History
did
Unobserve
for
Each
Observer
observe
on
Attach
on
Attach
Root
on
Detach
on
Detach
Root
on
Observe
on
Pop
History
on
Push
History
on
Replace
History
on
Unobserve
pop
History
push
History
replace
History
unobserve
will
Attach
will
Attach
Root
will
Detach
will
Detach
Root
will
Observe
will
Pop
History
will
Push
History
will
Replace
History
will
Unobserve
global
Generated using
TypeDoc