Package-level declarations

Types

Link copied to clipboard
sealed interface PushEncryptionKeyName
Link copied to clipboard
open class PushEvent(val type: EventType<PushEvent>, init: PushEventInit = definedExternally) : ExtendableEvent

The PushEvent interface of the Push API represents a push message that has been received. Available only in secure contexts.

Link copied to clipboard
Link copied to clipboard
open class PushManager

The PushManager interface of the Push API provides a way to receive notifications from third-party servers as well as request URLs for push notifications. Available only in secure contexts.

Link copied to clipboard
open class PushMessageData

The PushMessageData interface of the Push API provides methods which let you retrieve the push data sent by a server in various formats. Available only in secure contexts.

Link copied to clipboard
Link copied to clipboard
open class PushSubscription

The PushSubscription interface of the Push API provides a subscription's URL endpoint along with the public key and secrets that should be used for encrypting push messages to this subscription. Available only in secure contexts.

Link copied to clipboard

Available only in secure contexts.

Link copied to clipboard
Link copied to clipboard

The PushSubscriptionOptions interface of the Push API represents the options associated with a push subscription. Available only in secure contexts.

Link copied to clipboard

Properties

Functions

Link copied to clipboard

The PushManager.getSubscription() method of the PushManager interface retrieves an existing push subscription.

Link copied to clipboard

The permissionState() method of the PushManager interface returns a Promise that resolves to a string indicating the permission state of the push manager.

Link copied to clipboard
inline suspend fun PushManager.subscribe(): PushSubscription

The subscribe() method of the PushManager interface subscribes to a push service.

Link copied to clipboard
inline suspend fun PushSubscription.unsubscribe(): Boolean

The unsubscribe() method of the PushSubscription interface returns a Promise that resolves to a boolean value when the current subscription is successfully unsubscribed.