Class: Notification

domain/Notification.Notification

Constructors

constructor

new Notification(heading, description, notificationType, primaryButton, secondaryButton)

Notification to appear in vehicle services

Parameters

Name

Type

Description

heading

string

the main title of the notification

description

string

extra detail regarding the notification

notificationType

NotificationType

how the notification is displayed

primaryButton

NotificationButton

primary button label and optional callback

secondaryButton

NotificationButton

optional secondary button label and optional callback

Properties

description

description: string

extra detail regarding the notification


heading

heading: string

the main title of the notification


notificationType

notificationType: NotificationType

how the notification is displayed


primaryButton

primaryButton: NotificationButton

primary button label and optional callback


secondaryButton

secondaryButton: NotificationButton

optional secondary button label and optional callback

Methods

fromJSON

Static fromJSON(notification): Notification

Parameters

Name

Type

notification

any

Returns

Notification