@jakguru/vueprint / @jakguru/vueprint/services/push / WebPushNotificationOptions
Interface: WebPushNotificationOptions
@jakguru/vueprint/services/push.WebPushNotificationOptions
Describes the options for creating a web push notification.
Properties
title
• title: string
Defined in
body
• Optional body: string
Defined in
closeOnClick
• Optional closeOnClick: boolean
Defined in
icon
• Optional icon: string
Defined in
link
• Optional link: string
Defined in
onClick
• Optional onClick: (event: Event) => void
Type declaration
▸ (event): void
Parameters
| Name | Type |
|---|---|
event | Event |
Returns
void
Defined in
onClose
• Optional onClose: (event: Event) => void
Type declaration
▸ (event): void
Parameters
| Name | Type |
|---|---|
event | Event |
Returns
void
Defined in
onError
• Optional onError: (error: Error) => void
Type declaration
▸ (error): void
Parameters
| Name | Type |
|---|---|
error | Error |
Returns
void
Defined in
onShow
• Optional onShow: (event: Event) => void
Type declaration
▸ (event): void
Parameters
| Name | Type |
|---|---|
event | Event |
Returns
void
Defined in
requireInteraction
• Optional requireInteraction: boolean
Defined in
silent
• Optional silent: boolean
Defined in
timeout
• Optional timeout: number
Defined in
vibrate
• Optional vibrate: number[]