namespace UserNotificationsUI
{
    [Protocol(Name = "UNNotificationContentExtension", WrapperType = typeof(UNNotificationContentExtensionWrapper))]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "PlayMedia", Selector = "mediaPlay")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "PauseMedia", Selector = "mediaPause")]
    [ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "DidReceiveNotification", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(UNNotification) }, Selector = "didReceiveNotification:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DidReceiveNotificationResponse", ParameterBlockProxy = new[] { null, typeof(NIDActionArity1V121) }, ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(UNNotificationResponse), typeof(Action<UNNotificationContentExtensionResponseOption>) }, Selector = "didReceiveNotificationResponse:completionHandler:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Assign, GetterSelector = "mediaPlayPauseButtonType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "MediaPlayPauseButtonType", PropertyType = typeof(UNNotificationContentExtensionMediaPlayPauseButtonType), Selector = "mediaPlayPauseButtonType")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Assign, GetterSelector = "mediaPlayPauseButtonFrame", IsProperty = true, IsRequired = false, IsStatic = false, Name = "MediaPlayPauseButtonFrame", PropertyType = typeof(CGRect), Selector = "mediaPlayPauseButtonFrame")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Copy, GetterSelector = "mediaPlayPauseButtonTintColor", IsProperty = true, IsRequired = false, IsStatic = false, Name = "MediaPlayPauseButtonTintColor", PropertyType = typeof(NSColor), Selector = "mediaPlayPauseButtonTintColor")]
    [SupportedOSPlatform("macos11.0")]
    [SupportedOSPlatform("maccatalyst14.0")]
    [SupportedOSPlatform("ios")]
    [UnsupportedOSPlatform("tvos")]
    public interface IUNNotificationContentExtension : INativeObject, IDisposable
    {
        [BindingImpl(BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
        [Export("didReceiveNotification:")]
        [Preserve(Conditional = true)]
        void DidReceiveNotification(UNNotificationnot null notification);
    }
}
Assembly Microsoft.macOS , Version=14.0.0.0, PublicKeyToken=84e04ff9cfb79065
Help Documentation
.NET 6.0-ios6.0-maccatalyst6.0-macos7.0-ios7.0-maccatalyst7.0-macos8.0-ios8.0-maccatalyst8.0-macos9.0-ios9.0-maccatalyst9.0-macos
Xamarin iOS 0.0
OS Platforms

For the selected framework this API is only supported on the following OS platforms:

  • iOS
  • Mac Catalyst
  • macOS >= 11
  • tvOS
  • Built-in API
  • Package-provided API

03/28/2024
An error has occurred. This application may no longer respond until reloaded. Reload 🗙