Class UNUserNotificationDelegate
Inheritance
System.Object
UNUserNotificationDelegate
Namespace: Sensus.iOS.Notifications.UNUserNotifications
Assembly: SensusiOS.dll
Syntax
public class UNUserNotificationDelegate : UNUserNotificationCenterDelegate
Constructors
UNUserNotificationDelegate()
Declaration
public UNUserNotificationDelegate()
Methods
DidReceiveNotificationResponse(UNUserNotificationCenter, UNNotificationResponse, Action)
Called when the user taps a notification.
Declaration
public override void DidReceiveNotificationResponse(UNUserNotificationCenter center, UNNotificationResponse response, Action completionHandler)
Parameters
Type | Name | Description |
---|---|---|
UserNotifications.UNUserNotificationCenter | center | |
UserNotifications.UNNotificationResponse | response | |
System.Action | completionHandler |
WillPresentNotification(UNUserNotificationCenter, UNNotification, Action<UNNotificationPresentationOptions>)
Called just prior to a notification being presented while the app is in the foreground.
Declaration
public override void WillPresentNotification(UNUserNotificationCenter center, UNNotification notification, Action<UNNotificationPresentationOptions> completionHandler)
Parameters
Type | Name | Description |
---|---|---|
UserNotifications.UNUserNotificationCenter | center | |
UserNotifications.UNNotification | notification | |
System.Action<UserNotifications.UNNotificationPresentationOptions> | completionHandler |