Skip to main content

DeviceLocalNotification

Namespace: Wisej.Hybrid

Assembly: Wisej.Hybrid

Provides methods to schedule and handle local notifications on the device.

public class DeviceLocalNotification

Access this class through the Device singleton.

Constructors

Instance memberDeviceLocalNotification()

Creates a new instance of DeviceLocalNotification.

Methods

Instance memberSchedule(title, body, dateTime, badge)

Schedules a local notification to be delivered at the specified date and time.

ParameterTypeDescription
titleStringThe title of the local notification.
bodyStringThe body text of the local notification.
dateTimeDateTimeThe date and time when the notification should be delivered.
badge optionalInt32An optional badge number to display on the app's icon (-1 for no badge).

Events

Instance memberPresented

EventHandler<Object> Occurs when a local notification is presented to the user while the app is running.

Instance memberResponded

EventHandler<Object> Occurs when the user responds to a local notification while the app is running.