Class: Notification¶
domain/Notification.Notification
Constructors¶
constructor¶
new Notification(heading, description, notificationType, primaryButton, secondaryButton, notificationId?)
Notification to appear in vehicle services
Parameters¶
Name |
Type |
Description |
|---|---|---|
|
|
the main title of the notification |
|
|
extra detail regarding the notification |
|
how the notification is displayed |
|
|
|
primary button label and optional callback |
|
|
optional secondary button label and optional callback |
|
|
unique notification id that is optional and used if the app also needs to remove a notification |
Properties¶
description¶
description: string
extra detail regarding the notification
heading¶
heading: string
the main title of the notification
notificationId¶
Optional notificationId: string
unique notification id that is optional and used if the app also needs to remove a notification
notificationType¶
notificationType: NotificationType
how the notification is displayed
Methods¶
fromJSON¶
Static fromJSON(notification): Notification
Parameters¶
Name |
Type |
|---|---|
|
|