Language

IUNNotificationContentExtension Interface

Definition

Interface that contains the mandatory methods, if any, for the UNNotificationContent protocol, which is required for displaying notification content from a view controller's view with custom UI.

[Foundation.Protocol(Name="UNNotificationContentExtension", WrapperType=typeof(UserNotificationsUI.UNNotificationContentExtensionWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="DidReceiveNotification", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotification) }, Selector="didReceiveNotification:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidReceiveNotificationResponse", ParameterBlockProxy=new System.Type[] { null, typeof(ObjCRuntime.Trampolines+NIDActionArity1V281) }, ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotificationResponse), typeof(System.Action<UserNotificationsUI.UNNotificationContentExtensionResponseOption>) }, Selector="didReceiveNotificationResponse:completionHandler:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PlayMedia", Selector="mediaPlay")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PauseMedia", Selector="mediaPause")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonType", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonType", PropertyType=typeof(UserNotificationsUI.UNNotificationContentExtensionMediaPlayPauseButtonType), Selector="mediaPlayPauseButtonType")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonFrame", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonFrame", PropertyType=typeof(CoreGraphics.CGRect), Selector="mediaPlayPauseButtonFrame")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="mediaPlayPauseButtonTintColor", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonTintColor", PropertyType=typeof(UIKit.UIColor), Selector="mediaPlayPauseButtonTintColor")]
public interface IUNNotificationContentExtension : IDisposable, ObjCRuntime.INativeObject
[Foundation.Protocol(Name="UNNotificationContentExtension", WrapperType=typeof(UserNotificationsUI.UNNotificationContentExtensionWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="DidReceiveNotification", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotification) }, Selector="didReceiveNotification:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PlayMedia", Selector="mediaPlay")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PauseMedia", Selector="mediaPause")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonType", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonType", PropertyType=typeof(UserNotificationsUI.UNNotificationContentExtensionMediaPlayPauseButtonType), Selector="mediaPlayPauseButtonType")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonFrame", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonFrame", PropertyType=typeof(CoreGraphics.CGRect), Selector="mediaPlayPauseButtonFrame")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="mediaPlayPauseButtonTintColor", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonTintColor", PropertyType=typeof(UIKit.UIColor), Selector="mediaPlayPauseButtonTintColor")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidReceiveNotificationResponse", ParameterBlockProxy=new System.Type[] { null, typeof(ObjCRuntime.Trampolines+NIDActionArity1V284) }, ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotificationResponse), typeof(System.Action<UserNotificationsUI.UNNotificationContentExtensionResponseOption>) }, Selector="didReceiveNotificationResponse:completionHandler:")]
public interface IUNNotificationContentExtension : IDisposable, ObjCRuntime.INativeObject
[Foundation.Protocol(Name="UNNotificationContentExtension", WrapperType=typeof(UserNotificationsUI.UNNotificationContentExtensionWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="DidReceiveNotification", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotification) }, Selector="didReceiveNotification:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PlayMedia", Selector="mediaPlay")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PauseMedia", Selector="mediaPause")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonType", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonType", PropertyType=typeof(UserNotificationsUI.UNNotificationContentExtensionMediaPlayPauseButtonType), Selector="mediaPlayPauseButtonType")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonFrame", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonFrame", PropertyType=typeof(CoreGraphics.CGRect), Selector="mediaPlayPauseButtonFrame")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="mediaPlayPauseButtonTintColor", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonTintColor", PropertyType=typeof(UIKit.UIColor), Selector="mediaPlayPauseButtonTintColor")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidReceiveNotificationResponse", ParameterBlockProxy=new System.Type[] { null, typeof(ObjCRuntime.Trampolines+NIDActionArity1V265) }, ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotificationResponse), typeof(System.Action<UserNotificationsUI.UNNotificationContentExtensionResponseOption>) }, Selector="didReceiveNotificationResponse:completionHandler:")]
public interface IUNNotificationContentExtension : IDisposable, ObjCRuntime.INativeObject
[Foundation.Protocol(Name="UNNotificationContentExtension", WrapperType=typeof(UserNotificationsUI.UNNotificationContentExtensionWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="DidReceiveNotification", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotification) }, Selector="didReceiveNotification:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PlayMedia", Selector="mediaPlay")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PauseMedia", Selector="mediaPause")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonType", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonType", PropertyType=typeof(UserNotificationsUI.UNNotificationContentExtensionMediaPlayPauseButtonType), Selector="mediaPlayPauseButtonType")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonFrame", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonFrame", PropertyType=typeof(CoreGraphics.CGRect), Selector="mediaPlayPauseButtonFrame")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="mediaPlayPauseButtonTintColor", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonTintColor", PropertyType=typeof(UIKit.UIColor), Selector="mediaPlayPauseButtonTintColor")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidReceiveNotificationResponse", ParameterBlockProxy=new System.Type[] { null, typeof(ObjCRuntime.Trampolines+NIDActionArity1V268) }, ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotificationResponse), typeof(System.Action<UserNotificationsUI.UNNotificationContentExtensionResponseOption>) }, Selector="didReceiveNotificationResponse:completionHandler:")]
public interface IUNNotificationContentExtension : IDisposable, ObjCRuntime.INativeObject
[Foundation.Protocol(Name="UNNotificationContentExtension", WrapperType=typeof(UserNotificationsUI.UNNotificationContentExtensionWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="DidReceiveNotification", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotification) }, Selector="didReceiveNotification:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PlayMedia", Selector="mediaPlay")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PauseMedia", Selector="mediaPause")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonType", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonType", PropertyType=typeof(UserNotificationsUI.UNNotificationContentExtensionMediaPlayPauseButtonType), Selector="mediaPlayPauseButtonType")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonFrame", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonFrame", PropertyType=typeof(CoreGraphics.CGRect), Selector="mediaPlayPauseButtonFrame")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidReceiveNotificationResponse", ParameterBlockProxy=new System.Type[] { null, typeof(ObjCRuntime.Trampolines+NIDActionArity1V126) }, ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotificationResponse), typeof(System.Action<UserNotificationsUI.UNNotificationContentExtensionResponseOption>) }, Selector="didReceiveNotificationResponse:completionHandler:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="mediaPlayPauseButtonTintColor", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonTintColor", PropertyType=typeof(AppKit.NSColor), Selector="mediaPlayPauseButtonTintColor")]
public interface IUNNotificationContentExtension : IDisposable, ObjCRuntime.INativeObject
[Foundation.Protocol(Name="UNNotificationContentExtension", WrapperType=typeof(UserNotificationsUI.UNNotificationContentExtensionWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="DidReceiveNotification", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotification) }, Selector="didReceiveNotification:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PlayMedia", Selector="mediaPlay")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PauseMedia", Selector="mediaPause")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonType", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonType", PropertyType=typeof(UserNotificationsUI.UNNotificationContentExtensionMediaPlayPauseButtonType), Selector="mediaPlayPauseButtonType")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonFrame", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonFrame", PropertyType=typeof(CoreGraphics.CGRect), Selector="mediaPlayPauseButtonFrame")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="mediaPlayPauseButtonTintColor", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonTintColor", PropertyType=typeof(AppKit.NSColor), Selector="mediaPlayPauseButtonTintColor")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidReceiveNotificationResponse", ParameterBlockProxy=new System.Type[] { null, typeof(ObjCRuntime.Trampolines+NIDActionArity1V129) }, ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotificationResponse), typeof(System.Action<UserNotificationsUI.UNNotificationContentExtensionResponseOption>) }, Selector="didReceiveNotificationResponse:completionHandler:")]
public interface IUNNotificationContentExtension : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="UNNotificationContentExtension", WrapperType=typeof(UserNotificationsUI.UNNotificationContentExtensionWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="DidReceiveNotification", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotification) }, Selector="didReceiveNotification:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidReceiveNotificationResponse", ParameterBlockProxy=new System.Type[] { null, typeof(ObjCRuntime.Trampolines+NIDActionArity1V281) }, ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotificationResponse), typeof(System.Action<UserNotificationsUI.UNNotificationContentExtensionResponseOption>) }, Selector="didReceiveNotificationResponse:completionHandler:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PlayMedia", Selector="mediaPlay")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PauseMedia", Selector="mediaPause")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonType", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonType", PropertyType=typeof(UserNotificationsUI.UNNotificationContentExtensionMediaPlayPauseButtonType), Selector="mediaPlayPauseButtonType")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonFrame", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonFrame", PropertyType=typeof(CoreGraphics.CGRect), Selector="mediaPlayPauseButtonFrame")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="mediaPlayPauseButtonTintColor", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonTintColor", PropertyType=typeof(UIKit.UIColor), Selector="mediaPlayPauseButtonTintColor")>]
type IUNNotificationContentExtension = interface
    interface INativeObject
    interface IDisposable
[<Foundation.Protocol(Name="UNNotificationContentExtension", WrapperType=typeof(UserNotificationsUI.UNNotificationContentExtensionWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="DidReceiveNotification", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotification) }, Selector="didReceiveNotification:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PlayMedia", Selector="mediaPlay")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PauseMedia", Selector="mediaPause")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonType", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonType", PropertyType=typeof(UserNotificationsUI.UNNotificationContentExtensionMediaPlayPauseButtonType), Selector="mediaPlayPauseButtonType")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonFrame", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonFrame", PropertyType=typeof(CoreGraphics.CGRect), Selector="mediaPlayPauseButtonFrame")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="mediaPlayPauseButtonTintColor", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonTintColor", PropertyType=typeof(UIKit.UIColor), Selector="mediaPlayPauseButtonTintColor")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidReceiveNotificationResponse", ParameterBlockProxy=new System.Type[] { null, typeof(ObjCRuntime.Trampolines+NIDActionArity1V284) }, ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotificationResponse), typeof(System.Action<UserNotificationsUI.UNNotificationContentExtensionResponseOption>) }, Selector="didReceiveNotificationResponse:completionHandler:")>]
type IUNNotificationContentExtension = interface
    interface INativeObject
    interface IDisposable
[<Foundation.Protocol(Name="UNNotificationContentExtension", WrapperType=typeof(UserNotificationsUI.UNNotificationContentExtensionWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="DidReceiveNotification", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotification) }, Selector="didReceiveNotification:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PlayMedia", Selector="mediaPlay")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PauseMedia", Selector="mediaPause")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonType", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonType", PropertyType=typeof(UserNotificationsUI.UNNotificationContentExtensionMediaPlayPauseButtonType), Selector="mediaPlayPauseButtonType")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonFrame", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonFrame", PropertyType=typeof(CoreGraphics.CGRect), Selector="mediaPlayPauseButtonFrame")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="mediaPlayPauseButtonTintColor", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonTintColor", PropertyType=typeof(UIKit.UIColor), Selector="mediaPlayPauseButtonTintColor")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidReceiveNotificationResponse", ParameterBlockProxy=new System.Type[] { null, typeof(ObjCRuntime.Trampolines+NIDActionArity1V265) }, ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotificationResponse), typeof(System.Action<UserNotificationsUI.UNNotificationContentExtensionResponseOption>) }, Selector="didReceiveNotificationResponse:completionHandler:")>]
type IUNNotificationContentExtension = interface
    interface INativeObject
    interface IDisposable
[<Foundation.Protocol(Name="UNNotificationContentExtension", WrapperType=typeof(UserNotificationsUI.UNNotificationContentExtensionWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="DidReceiveNotification", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotification) }, Selector="didReceiveNotification:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PlayMedia", Selector="mediaPlay")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PauseMedia", Selector="mediaPause")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonType", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonType", PropertyType=typeof(UserNotificationsUI.UNNotificationContentExtensionMediaPlayPauseButtonType), Selector="mediaPlayPauseButtonType")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonFrame", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonFrame", PropertyType=typeof(CoreGraphics.CGRect), Selector="mediaPlayPauseButtonFrame")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="mediaPlayPauseButtonTintColor", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonTintColor", PropertyType=typeof(UIKit.UIColor), Selector="mediaPlayPauseButtonTintColor")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidReceiveNotificationResponse", ParameterBlockProxy=new System.Type[] { null, typeof(ObjCRuntime.Trampolines+NIDActionArity1V268) }, ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotificationResponse), typeof(System.Action<UserNotificationsUI.UNNotificationContentExtensionResponseOption>) }, Selector="didReceiveNotificationResponse:completionHandler:")>]
type IUNNotificationContentExtension = interface
    interface INativeObject
    interface IDisposable
[<Foundation.Protocol(Name="UNNotificationContentExtension", WrapperType=typeof(UserNotificationsUI.UNNotificationContentExtensionWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="DidReceiveNotification", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotification) }, Selector="didReceiveNotification:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PlayMedia", Selector="mediaPlay")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PauseMedia", Selector="mediaPause")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonType", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonType", PropertyType=typeof(UserNotificationsUI.UNNotificationContentExtensionMediaPlayPauseButtonType), Selector="mediaPlayPauseButtonType")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonFrame", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonFrame", PropertyType=typeof(CoreGraphics.CGRect), Selector="mediaPlayPauseButtonFrame")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidReceiveNotificationResponse", ParameterBlockProxy=new System.Type[] { null, typeof(ObjCRuntime.Trampolines+NIDActionArity1V126) }, ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotificationResponse), typeof(System.Action<UserNotificationsUI.UNNotificationContentExtensionResponseOption>) }, Selector="didReceiveNotificationResponse:completionHandler:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="mediaPlayPauseButtonTintColor", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonTintColor", PropertyType=typeof(AppKit.NSColor), Selector="mediaPlayPauseButtonTintColor")>]
type IUNNotificationContentExtension = interface
    interface INativeObject
    interface IDisposable
[<Foundation.Protocol(Name="UNNotificationContentExtension", WrapperType=typeof(UserNotificationsUI.UNNotificationContentExtensionWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="DidReceiveNotification", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotification) }, Selector="didReceiveNotification:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PlayMedia", Selector="mediaPlay")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PauseMedia", Selector="mediaPause")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonType", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonType", PropertyType=typeof(UserNotificationsUI.UNNotificationContentExtensionMediaPlayPauseButtonType), Selector="mediaPlayPauseButtonType")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mediaPlayPauseButtonFrame", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonFrame", PropertyType=typeof(CoreGraphics.CGRect), Selector="mediaPlayPauseButtonFrame")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="mediaPlayPauseButtonTintColor", IsProperty=true, IsRequired=false, IsStatic=false, Name="MediaPlayPauseButtonTintColor", PropertyType=typeof(AppKit.NSColor), Selector="mediaPlayPauseButtonTintColor")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidReceiveNotificationResponse", ParameterBlockProxy=new System.Type[] { null, typeof(ObjCRuntime.Trampolines+NIDActionArity1V129) }, ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UserNotifications.UNNotificationResponse), typeof(System.Action<UserNotificationsUI.UNNotificationContentExtensionResponseOption>) }, Selector="didReceiveNotificationResponse:completionHandler:")>]
type IUNNotificationContentExtension = interface
    interface INativeObject
    interface IDisposable
Attributes
Implements

Properties

Name Description
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)
MediaPlayPauseButtonFrame

Returns the rectangle that will be used to display a playback button.

MediaPlayPauseButtonTintColor

Returns the tint color of the playback button.

MediaPlayPauseButtonType

Methods

Name Description
DidReceiveNotification(UNNotification)

Method that is called when the application is sent a notification.

DidReceiveNotificationResponse(UNNotificationResponse, Action<UNNotificationContentExtensionResponseOption>)
PauseMedia()

Method that is called when the user presses the pause button.

PlayMedia()

Method that is called when the user presses the play button.

Extension Methods

Name Description
DidReceiveNotificationResponse(IUNNotificationContentExtension, UNNotificationResponse, Action<UNNotificationContentExtensionResponseOption>)
GetHandle(INativeObject)
GetMediaPlayPauseButtonFrame(IUNNotificationContentExtension)

Returns the rectangle that will be used to display a playback button.

GetMediaPlayPauseButtonTintColor(IUNNotificationContentExtension)

Returns the tint color of the playback button.

GetMediaPlayPauseButtonType(IUNNotificationContentExtension)
GetNonNullHandle(INativeObject, String)
PauseMedia(IUNNotificationContentExtension)

Method that is called when the user presses the pause button.

PlayMedia(IUNNotificationContentExtension)

Method that is called when the user presses the play button.

Applies to