| Notification Constructor (String, String, String, NotificationIcons, Int32, Single) |
Create a new notification to pass to the VR message display for a set duration. If duration is 0, the message will be displayed until it is explicitly removed.
Namespace:
ImmerseSDK.UI.MessageDisplay
Assembly:
ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax public Notification(
string title,
string iconText,
string body,
NotificationIcons icon,
int priority,
float duration
)
Parameters
- title
- Type: SystemString
Top text - iconText
- Type: SystemString
Text below the icon - body
- Type: SystemString
Message body text - icon
- Type: ImmerseSDK.UI.MessageDisplayNotificationIcons
Icon to display - priority
- Type: SystemInt32
How important this message is. Messages are sorted on priority, and only the highest priority message is displayed at a time. - duration
- Type: SystemSingle
How long the message should be shown. 0 for no expiry.
See Also