interface CreateNotificationOptions {
    appIconMaskUrl?: string;
    buttons?: _CreateNotificationOptionsButtons[];
    contextMessage?: string;
    eventTime?: number;
    iconUrl?: string;
    imageUrl?: string;
    isClickable?: boolean;
    items?: NotificationItem[];
    message: string;
    priority?: number;
    progress?: number;
    title: string;
    type: TemplateType;
}
Index
appIconMaskUrl?: string

A URL to the app icon mask.

Text and icons for up to two notification action buttons.

Unsupported on Firefox at this time.

contextMessage?: string

Alternate notification content with a lower-weight font.

eventTime?: number

A timestamp associated with the notification, in milliseconds past the epoch.

iconUrl?: string

A URL to the sender's avatar, app icon, or a thumbnail for image notifications.

imageUrl?: string

A URL to the image thumbnail for image-type notifications.

isClickable?: boolean

Whether to show UI indicating that the app will visibly respond to clicks on the body of a notification.

Items for multi-item notifications.

message: string

Main notification content.

priority?: number

Priority ranges from -2 to 2. -2 is lowest priority. 2 is highest. Zero is default.

progress?: number

Current progress ranges from 0 to 100.

title: string

Title of the notification (e.g. sender name for email).

Which type of notification to display.