registerAsync
fun registerAsync(scriptURL: TrustedScriptURL, options: RegistrationOptions = definedExternally): Promise<ServiceWorkerRegistration>(source)
The register() method of the ServiceWorkerContainer interface creates or updates a ServiceWorkerRegistration for the given scope.
fun registerAsync(scriptURL: String, options: RegistrationOptions = definedExternally): Promise<ServiceWorkerRegistration>(source)
fun registerAsync(scriptURL: URL, options: RegistrationOptions = definedExternally): Promise<ServiceWorkerRegistration>(source)
fun registerAsync(module: ServiceWorkerModule, options: RegistrationOptions = definedExternally): Promise<ServiceWorkerRegistration>(source)