Share via


IUNUserNotificationCenterDelegate Interface

Definition

This interface represents the Objective-C protocol UNUserNotificationCenterDelegate.

[Foundation.Protocol(Name="UNUserNotificationCenterDelegate", WrapperType=typeof(UserNotifications.UNUserNotificationCenterDelegateWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WillPresentNotification", ParameterBlockProxy=new System.Type[] { null, null, typeof(ObjCRuntime.Trampolines+NIDActionArity1V280) }, ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNUserNotificationCenter), typeof(UserNotifications.UNNotification), typeof(System.Action<UserNotifications.UNNotificationPresentationOptions>) }, Selector="userNotificationCenter:willPresentNotification:withCompletionHandler:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidReceiveNotificationResponse", ParameterBlockProxy=new System.Type[] { null, null, typeof(ObjCRuntime.Trampolines+NIDAction) }, ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNUserNotificationCenter), typeof(UserNotifications.UNNotificationResponse), typeof(System.Action) }, Selector="userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="OpenSettings", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNUserNotificationCenter), typeof(UserNotifications.UNNotification) }, Selector="userNotificationCenter:openSettingsForNotification:")]
public interface IUNUserNotificationCenterDelegate : IDisposable, ObjCRuntime.INativeObject
[Foundation.Protocol(Name="UNUserNotificationCenterDelegate", WrapperType=typeof(UserNotifications.UNUserNotificationCenterDelegateWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidReceiveNotificationResponse", ParameterBlockProxy=new System.Type[] { null, null, typeof(ObjCRuntime.Trampolines+NIDAction) }, ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNUserNotificationCenter), typeof(UserNotifications.UNNotificationResponse), typeof(System.Action) }, Selector="userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="OpenSettings", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNUserNotificationCenter), typeof(UserNotifications.UNNotification) }, Selector="userNotificationCenter:openSettingsForNotification:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WillPresentNotification", ParameterBlockProxy=new System.Type[] { null, null, typeof(ObjCRuntime.Trampolines+NIDActionArity1V264) }, ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNUserNotificationCenter), typeof(UserNotifications.UNNotification), typeof(System.Action<UserNotifications.UNNotificationPresentationOptions>) }, Selector="userNotificationCenter:willPresentNotification:withCompletionHandler:")]
public interface IUNUserNotificationCenterDelegate : IDisposable, ObjCRuntime.INativeObject
[Foundation.Protocol(Name="UNUserNotificationCenterDelegate", WrapperType=typeof(UserNotifications.UNUserNotificationCenterDelegateWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidReceiveNotificationResponse", ParameterBlockProxy=new System.Type[] { null, null, typeof(ObjCRuntime.Trampolines+NIDAction) }, ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNUserNotificationCenter), typeof(UserNotifications.UNNotificationResponse), typeof(System.Action) }, Selector="userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="OpenSettings", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNUserNotificationCenter), typeof(UserNotifications.UNNotification) }, Selector="userNotificationCenter:openSettingsForNotification:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WillPresentNotification", ParameterBlockProxy=new System.Type[] { null, null, typeof(ObjCRuntime.Trampolines+NIDActionArity1V125) }, ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNUserNotificationCenter), typeof(UserNotifications.UNNotification), typeof(System.Action<UserNotifications.UNNotificationPresentationOptions>) }, Selector="userNotificationCenter:willPresentNotification:withCompletionHandler:")]
public interface IUNUserNotificationCenterDelegate : IDisposable, ObjCRuntime.INativeObject
[Foundation.Protocol(Name="UNUserNotificationCenterDelegate", WrapperType=typeof(UserNotifications.UNUserNotificationCenterDelegateWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WillPresentNotification", ParameterBlockProxy=new System.Type[] { null, null, typeof(ObjCRuntime.Trampolines+NIDActionArity1V90) }, ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNUserNotificationCenter), typeof(UserNotifications.UNNotification), typeof(System.Action<UserNotifications.UNNotificationPresentationOptions>) }, Selector="userNotificationCenter:willPresentNotification:withCompletionHandler:")]
public interface IUNUserNotificationCenterDelegate : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="UNUserNotificationCenterDelegate", WrapperType=typeof(UserNotifications.UNUserNotificationCenterDelegateWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WillPresentNotification", ParameterBlockProxy=new System.Type[] { null, null, typeof(ObjCRuntime.Trampolines+NIDActionArity1V280) }, ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNUserNotificationCenter), typeof(UserNotifications.UNNotification), typeof(System.Action<UserNotifications.UNNotificationPresentationOptions>) }, Selector="userNotificationCenter:willPresentNotification:withCompletionHandler:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidReceiveNotificationResponse", ParameterBlockProxy=new System.Type[] { null, null, typeof(ObjCRuntime.Trampolines+NIDAction) }, ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNUserNotificationCenter), typeof(UserNotifications.UNNotificationResponse), typeof(System.Action) }, Selector="userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="OpenSettings", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNUserNotificationCenter), typeof(UserNotifications.UNNotification) }, Selector="userNotificationCenter:openSettingsForNotification:")>]
type IUNUserNotificationCenterDelegate = interface
    interface INativeObject
    interface IDisposable
[<Foundation.Protocol(Name="UNUserNotificationCenterDelegate", WrapperType=typeof(UserNotifications.UNUserNotificationCenterDelegateWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidReceiveNotificationResponse", ParameterBlockProxy=new System.Type[] { null, null, typeof(ObjCRuntime.Trampolines+NIDAction) }, ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNUserNotificationCenter), typeof(UserNotifications.UNNotificationResponse), typeof(System.Action) }, Selector="userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="OpenSettings", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNUserNotificationCenter), typeof(UserNotifications.UNNotification) }, Selector="userNotificationCenter:openSettingsForNotification:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WillPresentNotification", ParameterBlockProxy=new System.Type[] { null, null, typeof(ObjCRuntime.Trampolines+NIDActionArity1V264) }, ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNUserNotificationCenter), typeof(UserNotifications.UNNotification), typeof(System.Action<UserNotifications.UNNotificationPresentationOptions>) }, Selector="userNotificationCenter:willPresentNotification:withCompletionHandler:")>]
type IUNUserNotificationCenterDelegate = interface
    interface INativeObject
    interface IDisposable
[<Foundation.Protocol(Name="UNUserNotificationCenterDelegate", WrapperType=typeof(UserNotifications.UNUserNotificationCenterDelegateWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidReceiveNotificationResponse", ParameterBlockProxy=new System.Type[] { null, null, typeof(ObjCRuntime.Trampolines+NIDAction) }, ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNUserNotificationCenter), typeof(UserNotifications.UNNotificationResponse), typeof(System.Action) }, Selector="userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="OpenSettings", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNUserNotificationCenter), typeof(UserNotifications.UNNotification) }, Selector="userNotificationCenter:openSettingsForNotification:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WillPresentNotification", ParameterBlockProxy=new System.Type[] { null, null, typeof(ObjCRuntime.Trampolines+NIDActionArity1V125) }, ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNUserNotificationCenter), typeof(UserNotifications.UNNotification), typeof(System.Action<UserNotifications.UNNotificationPresentationOptions>) }, Selector="userNotificationCenter:willPresentNotification:withCompletionHandler:")>]
type IUNUserNotificationCenterDelegate = interface
    interface INativeObject
    interface IDisposable
[<Foundation.Protocol(Name="UNUserNotificationCenterDelegate", WrapperType=typeof(UserNotifications.UNUserNotificationCenterDelegateWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WillPresentNotification", ParameterBlockProxy=new System.Type[] { null, null, typeof(ObjCRuntime.Trampolines+NIDActionArity1V90) }, ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNUserNotificationCenter), typeof(UserNotifications.UNNotification), typeof(System.Action<UserNotifications.UNNotificationPresentationOptions>) }, Selector="userNotificationCenter:willPresentNotification:withCompletionHandler:")>]
type IUNUserNotificationCenterDelegate = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

A class that implements this interface (and subclasses NSObject) will be exported to Objective-C as implementing the Objective-C protocol this interface represents.

A class may also implement members from this interface to implement members from the protocol.

Properties

Name Description
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Methods

Name Description
DidReceiveNotificationResponse(UNUserNotificationCenter, UNNotificationResponse, Action)

Called after the user selects an action from a notification from the app.

OpenSettings(UNUserNotificationCenter, UNNotification)

Called to open the in-app notification settings.

WillPresentNotification(UNUserNotificationCenter, UNNotification, Action<UNNotificationPresentationOptions>)

Called to deliver a notification to an application that is running in the foreground.

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)
DidReceiveNotificationResponse(IUNUserNotificationCenterDelegate, UNUserNotificationCenter, UNNotificationResponse, Action)

Called after the user selects an action from a notification from the app.

OpenSettings(IUNUserNotificationCenterDelegate, UNUserNotificationCenter, UNNotification)

Called to open the in-app notification settings.

WillPresentNotification(IUNUserNotificationCenterDelegate, UNUserNotificationCenter, UNNotification, Action<UNNotificationPresentationOptions>)

Called to deliver a notification to an application that is running in the foreground.

Applies to