serviceworkerregistration

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotImplemented                = errors.New("Browser not implemented ServiceWorkerRegistration")
	ErrNotAServiceWorkerRegistration = errors.New("Object is not a ServiceWorkerRegistration object")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get the JS interface of serviceworkerregistration

Types

type ServiceWorkerRegistration

type ServiceWorkerRegistration struct {
	eventtarget.EventTarget
}

func NewFromJSObject

func NewFromJSObject(obj js.Value) (ServiceWorkerRegistration, error)

func (ServiceWorkerRegistration) Active

func (ServiceWorkerRegistration) GetNotifications

func (s ServiceWorkerRegistration) GetNotifications(title string, options ...map[string]interface{}) (promise.Promise, error)

func (ServiceWorkerRegistration) Index

func (s ServiceWorkerRegistration) Index() (int, error)

func (ServiceWorkerRegistration) Installing

func (ServiceWorkerRegistration) NavigationPreload

func (ServiceWorkerRegistration) OnUpdateFound

func (s ServiceWorkerRegistration) OnUpdateFound(handler func(e event.Event)) (js.Func, error)

func (ServiceWorkerRegistration) PushManager

func (ServiceWorkerRegistration) Scope

func (s ServiceWorkerRegistration) Scope() (string, error)

func (ServiceWorkerRegistration) ServiceWorkerRegistration_

func (s ServiceWorkerRegistration) ServiceWorkerRegistration_() ServiceWorkerRegistration

func (ServiceWorkerRegistration) ShowNotification

func (s ServiceWorkerRegistration) ShowNotification(title string, options ...map[string]interface{}) (promise.Promise, error)

func (ServiceWorkerRegistration) Unregister

func (s ServiceWorkerRegistration) Unregister() (promise.Promise, error)

func (ServiceWorkerRegistration) Update

func (ServiceWorkerRegistration) UpdateViaCache

func (s ServiceWorkerRegistration) UpdateViaCache() (promise.Promise, error)

func (ServiceWorkerRegistration) Waiting

type ServiceWorkerRegistrationFrom

type ServiceWorkerRegistrationFrom interface {
	ServiceWorkerRegistration_() ServiceWorkerRegistration
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL