Service Worker Container
Exposes the JavaScript ServiceWorkerContainer to Kotlin
Constructors
ServiceWorkerContainer
Link copied to clipboard
Functions
add Event Listener
Link copied to clipboard
fun addEventListener(type: String, callback: (Event) -> Unit?, options: dynamic = definedExternally)
Content copied to clipboard
fun addEventListener(type: String, callback: EventListener?, options: dynamic = definedExternally)
Content copied to clipboard
dispatch Event
Link copied to clipboard
get Registration
Link copied to clipboard
fun getRegistration(clientURL: String = definedExternally): Promise<Any?>
Content copied to clipboard
get Registrations
Link copied to clipboard
register
Link copied to clipboard
fun register(scriptURL: String, options: RegistrationOptions = definedExternally): Promise<ServiceWorkerRegistration>
Content copied to clipboard
remove Event Listener
Link copied to clipboard
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: dynamic = definedExternally)
Content copied to clipboard
fun removeEventListener(type: String, callback: EventListener?, options: dynamic = definedExternally)
Content copied to clipboard
start Messages
Link copied to clipboard
Properties
controller
Link copied to clipboard
oncontrollerchange
Link copied to clipboard
onmessage
Link copied to clipboard
ready
Link copied to clipboard