CDPotion.Domain.ServiceWorker (cdpotion v0.1.1)
Summary
Types
description not provided :(
ServiceWorker error message.
ServiceWorker registration.
ServiceWorker version.
description not provided :(
description not provided :(
Functions
Parameters:
origin:string: description not provided :(registrationId:RegistrationID: description not provided :(data:string: description not provided :(
Parameters:
origin:string: description not provided :(registrationId:RegistrationID: description not provided :(tag:string: description not provided :(
Parameters:
origin:string: description not provided :(registrationId:RegistrationID: description not provided :(tag:string: description not provided :(lastChance:boolean: description not provided :(
Parameters:
versionId:string: description not provided :(
Parameters:
forceUpdateOnPageLoad:boolean: description not provided :(
Parameters:
scopeURL:string: description not provided :(
Parameters:
scopeURL:string: description not provided :(
Parameters:
versionId:string: description not provided :(
Parameters:
scopeURL:string: description not provided :(
Parameters:
scopeURL:string: description not provided :(
Types
Link to this type
registration_id()
@type registration_id() :: String.t()
description not provided :(
Link to this type
service_worker_error_message()
@type service_worker_error_message() :: %{ columnNumber: integer(), errorMessage: String.t(), lineNumber: integer(), registrationId: registration_id(), sourceURL: String.t(), versionId: String.t() }
ServiceWorker error message.
Link to this type
service_worker_registration()
@type service_worker_registration() :: %{ isDeleted: boolean(), registrationId: registration_id(), scopeURL: String.t() }
ServiceWorker registration.
Link to this type
service_worker_version()
@type service_worker_version() :: %{ controlledClients: [CDPotion.Domain.Target.target_id()] | nil, registrationId: registration_id(), runningStatus: service_worker_version_running_status(), scriptLastModified: number() | nil, scriptResponseTime: number() | nil, scriptURL: String.t(), status: service_worker_version_status(), targetId: CDPotion.Domain.Target.target_id() | nil, versionId: String.t() }
ServiceWorker version.
Link to this type
service_worker_version_running_status()
@type service_worker_version_running_status() ::
:stopped | :starting | :running | :stopping
description not provided :(
Link to this type
service_worker_version_status()
@type service_worker_version_status() ::
:new | :installing | :installed | :activating | :activated | :redundant
description not provided :(
Functions
Link to this function
deliver_push_message(origin, registration_id, data)
Parameters:
origin:string: description not provided :(registrationId:RegistrationID: description not provided :(data:string: description not provided :(
Link to this function
disable()
Link to this function
dispatch_periodic_sync_event(origin, registration_id, tag)
Parameters:
origin:string: description not provided :(registrationId:RegistrationID: description not provided :(tag:string: description not provided :(
Link to this function
dispatch_sync_event(origin, registration_id, tag, last_chance)
Parameters:
origin:string: description not provided :(registrationId:RegistrationID: description not provided :(tag:string: description not provided :(lastChance:boolean: description not provided :(
Link to this function
enable()
Link to this function
inspect_worker(version_id)
Parameters:
versionId:string: description not provided :(
Link to this function
set_force_update_on_page_load(force_update_on_page_load)
Parameters:
forceUpdateOnPageLoad:boolean: description not provided :(
Link to this function
skip_waiting(scope_url)
Parameters:
scopeURL:string: description not provided :(
Link to this function
start_worker(scope_url)
Parameters:
scopeURL:string: description not provided :(
Link to this function
stop_all_workers()
Link to this function
stop_worker(version_id)
Parameters:
versionId:string: description not provided :(
Link to this function
unregister(scope_url)
Parameters:
scopeURL:string: description not provided :(
Link to this function
update_registration(scope_url)
Parameters:
scopeURL:string: description not provided :(