pushmanager

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get the JS interface pushmanager

Types

type PushManager

type PushManager struct {
	baseobject.BaseObject
}

func NewFromJSObject

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

func (PushManager) GetSubscription

func (p PushManager) GetSubscription() (promise.Promise, error)

func (PushManager) PermissionState

func (p PushManager) PermissionState() (promise.Promise, error)

func (PushManager) PushManager_

func (p PushManager) PushManager_() PushManager

func (PushManager) Subscribe

func (p PushManager) Subscribe() (promise.Promise, error)

func (PushManager) SupportedContentEncodings

func (p PushManager) SupportedContentEncodings() (array.Array, error)

type PushManagerFrom

type PushManagerFrom interface {
	PushManagerManager_() PushManager
}

Jump to

Keyboard shortcuts

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