DeviceLocalNotification
Namespace: Wisej.Hybrid
Assembly: Wisej.Hybrid
Provides methods to schedule and handle local notifications on the device.
- C#
- VB.NET
public class DeviceLocalNotification
Public Class DeviceLocalNotification
Access this class through the Device singleton.
Constructors
DeviceLocalNotification()
Creates a new instance of DeviceLocalNotification.
Methods
Schedule(title, body, dateTime, badge)
Schedules a local notification to be delivered at the specified date and time.
| Parameter | Type | Description |
|---|---|---|
| title | String | The title of the local notification. |
| body | String | The body text of the local notification. |
| dateTime | DateTime | The date and time when the notification should be delivered. |
| badge | Int32 | An optional badge number to display on the app's icon (-1 for no badge). |
Events
Presented
EventHandler<Object> Occurs when a local notification is presented to the user while the app is running.
Responded
EventHandler<Object> Occurs when the user responds to a local notification while the app is running.