IUNNotificationContentExtension 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))]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public interface IUNNotificationContentExtension : IDisposable, ObjCRuntime.INativeObject
type IUNNotificationContentExtension = interface
    interface INativeObject
    interface IDisposable
Attributes
Implements

Methods

DidReceiveNotification(UNNotification) DidReceiveNotification(UNNotification)

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

Properties

Handle Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Extension Methods

DidReceiveNotificationResponse(IUNNotificationContentExtension, UNNotificationResponse, Action<UNNotificationContentExtensionResponseOption>) DidReceiveNotificationResponse(IUNNotificationContentExtension, UNNotificationResponse, Action<UNNotificationContentExtensionResponseOption>)
GetMediaPlayPauseButtonFrame(IUNNotificationContentExtension) GetMediaPlayPauseButtonFrame(IUNNotificationContentExtension)

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

GetMediaPlayPauseButtonTintColor(IUNNotificationContentExtension) GetMediaPlayPauseButtonTintColor(IUNNotificationContentExtension)

Returns the tint color of the playback button.

GetMediaPlayPauseButtonType(IUNNotificationContentExtension) GetMediaPlayPauseButtonType(IUNNotificationContentExtension)
PauseMedia(IUNNotificationContentExtension) PauseMedia(IUNNotificationContentExtension)

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

PlayMedia(IUNNotificationContentExtension) PlayMedia(IUNNotificationContentExtension)

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

Applies to