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


heading

heading: string


notificationType

notificationType: NotificationType


primaryButton

primaryButton: NotificationButton


secondaryButton

secondaryButton: NotificationButton

Methods

fromJSON

Static fromJSON(notification): Notification

Parameters

Name

Type

notification

any

Returns

Notification