ServiceWorkerContainer
Constructors
<init>
Exposes the JavaScript ServiceWorkerContainer to Kotlin
ServiceWorkerContainer
(
)
Properties
controller
open
val
controller
:
ServiceWorker
?
oncontrollerchange
open
var
oncontrollerchange
:
(
(
Event
)
->
dynamic
)
?
onmessage
open
var
onmessage
:
(
(
MessageEvent
)
->
dynamic
)
?
ready
open
val
ready
:
Promise
<
ServiceWorkerRegistration
>
Functions
getRegistration
fun
getRegistration
(
clientURL
:
String
=
definedExternally
)
:
Promise
<
Any
?
>
getRegistrations
fun
getRegistrations
(
)
:
Promise
<
Array
<
ServiceWorkerRegistration
>
>
register
fun
register
(
scriptURL
:
String
,
options
:
RegistrationOptions
=
definedExternally
)
:
Promise
<
ServiceWorkerRegistration
>
startMessages
fun
startMessages
(
)