Search
Preparing search index...
The search index is not available
GlacierJS API Doc
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
GlacierJS API Doc
@glacierjs/window
GlacierWindow
Class GlacierWindow
Hierarchy
Pluggable
<
WindowPlugin
,
Lifecycle
,
LifecycleHooks
>
GlacierWindow
Index
Constructors
constructor
Properties
lifecycle
Hooks
lifecycles
plugins
workbox
Methods
call
Lifecyle
Middlewares
get
Scope
Path
register
unregister
use
Constructors
constructor
new
Glacier
Window
(
scriptURL
:
string
, registerOptions
?:
unknown
)
:
GlacierWindow
Parameters
scriptURL:
string
registerOptions:
unknown
= {}
Returns
GlacierWindow
Properties
Protected
lifecycle
Hooks
lifecycle
Hooks
:
LifecycleHooks
Protected
lifecycles
lifecycles
:
string
[]
plugins
plugins
:
{
global
:
Record
<
string
,
WindowPlugin
>
;
scope
:
Record
<
string
,
Record
<
string
,
WindowPlugin
>
>
}
Type declaration
global
:
Record
<
string
,
WindowPlugin
>
scope
:
Record
<
string
,
Record
<
string
,
WindowPlugin
>
>
workbox
workbox
:
Workbox
Methods
Protected
call
Lifecyle
Middlewares
call
Lifecyle
Middlewares
<
Context
>
(
scopePath
:
string
|
string
[]
, lifecycle
:
Lifecycle
, context
?:
Context
)
:
Promise
<
void
>
Type parameters
Context
:
BaseContext
Parameters
scopePath:
string
|
string
[]
lifecycle:
Lifecycle
Optional
context:
Context
Returns
Promise
<
void
>
Private
get
Scope
Path
get
Scope
Path
(
)
:
string
Returns
string
register
register
(
__namedParameters
?:
{
immediate
:
boolean
}
)
:
Promise
<
ServiceWorkerRegistration
>
Parameters
__namedParameters:
{
immediate
:
boolean
}
= {}
immediate
:
boolean
Returns
Promise
<
ServiceWorkerRegistration
>
unregister
unregister
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
use
use
(
plugins
:
WindowPlugin
|
WindowPlugin
[]
)
:
void
use
(
scope
:
string
, plugins
:
WindowPlugin
|
WindowPlugin
[]
)
:
void
Parameters
plugins:
WindowPlugin
|
WindowPlugin
[]
Returns
void
Parameters
scope:
string
plugins:
WindowPlugin
|
WindowPlugin
[]
Returns
void
Modules
@glacierjs/core
@glacierjs/plugin-
assets-
cache
@glacierjs/plugin-
collector
@glacierjs/plugin-
precache
@glacierjs/plugin-
remote-
controller
@glacierjs/sw
@glacierjs/window
Glacier
Window
constructor
lifecycle
Hooks
lifecycles
plugins
workbox
call
Lifecyle
Middlewares
get
Scope
Path
register
unregister
use
Generated using
TypeDoc