Show / Hide Table of Contents

Class ISN_UNUserNotificationCenterDelegate

The interface for handling notification-related interactions in your app or app extension.

The ISN_UNUserNotificationCenterDelegate defines events for responding to actionable notifications and receiving notifications while your app is in the foreground. The user notification center calls methods of this delegate at appropriate times to deliver information.

You must subscribe to this object events as soon as possible. However, delegate may already receive action while app was launching. For example if user has launched the app by clicking on notifications. You may check LastReceivedResponse to find out of app was launched using the notification. If Property is null after your app is launched it means that application was launched without interaction with the notification object.

Inheritance
System.Object
ISN_UNUserNotificationCenterDelegate
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: SA.iOS.UserNotifications
Assembly: cs.temp.dll.dll
Syntax
public static class ISN_UNUserNotificationCenterDelegate

Properties

DidReceiveNotificationResponse

Called to let your app know which action was selected by the user for a given notification.

Use this method to perform the tasks associated with your app’s custom actions. When the user responds to a notification, the system calls this method with the results. You use this method to perform the task associated with that action, if at all.

If you do not subscribe this event, your app never responds to custom actions.

Declaration
public static SA_iEvent<ISN_UNNotificationResponse> DidReceiveNotificationResponse { get; }
Property Value
Type Description
SA_iEvent<ISN_UNNotificationResponse>

LastReceivedResponse

Contains last received ISN_UNNotificationResponse object by delegate.

You must subscribe to this class events as soon as possible. However, delegate may already receive action while app was launching. For example if user has launched the app by clicking on notifications. You may check LastReceivedResponse to find out of app was launched using the notification. If Property is null after your app is launched it means that application was launched without interaction with the notification object.

Declaration
public static ISN_UNNotificationResponse LastReceivedResponse { get; }
Property Value
Type Description
ISN_UNNotificationResponse

WillPresentNotification

Called when a notification is delivered to a foreground app.

If your app is in the foreground when a notification arrives, the notification center calls this method to deliver the notification directly to your app. If you implement this method, you can take whatever actions are necessary to process the notification and update your app. User will not be alerted by a system;

Declaration
public static SA_iEvent<ISN_UNNotification> WillPresentNotification { get; }
Property Value
Type Description
SA_iEvent<ISN_UNNotification>

Methods

ClearLastReceivedResponse()

Clears the last received response.

Declaration
public static void ClearLastReceivedResponse()
In This Article
Back to top Generated by DocFX