Upravit

Sdílet prostřednictvím


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

Properties

Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Methods

DidReceiveNotification(UNNotification)

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

Extension Methods

DidReceiveNotificationResponse(IUNNotificationContentExtension, UNNotificationResponse, Action<UNNotificationContentExtensionResponseOption>)
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)
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