IUNNotificationContentExtension 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
介面,其中包含 UNNotificationContent 通訊協定的必要方法,這是使用自訂 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
- 屬性
- 實作
屬性
Handle |
處理 unmanaged 物件標記法) (指標。 (繼承來源 INativeObject) |
方法
DidReceiveNotification(UNNotification) |
傳送通知時呼叫的方法。 |
擴充方法
DidReceiveNotificationResponse(IUNNotificationContentExtension, UNNotificationResponse, Action<UNNotificationContentExtensionResponseOption>) |
介面,其中包含 UNNotificationContent 通訊協定的必要方法,這是使用自訂 UI 從檢視控制器檢視顯示通知內容的必要方法。 |
GetMediaPlayPauseButtonFrame(IUNNotificationContentExtension) |
傳回將用來顯示播放按鈕的矩形。 |
GetMediaPlayPauseButtonTintColor(IUNNotificationContentExtension) |
傳回播放按鈕的色調色彩。 |
GetMediaPlayPauseButtonType(IUNNotificationContentExtension) |
介面,其中包含 UNNotificationContent 通訊協定的必要方法,這是使用自訂 UI 從檢視控制器檢視顯示通知內容的必要方法。 |
PauseMedia(IUNNotificationContentExtension) |
當使用者按下暫停按鈕時所呼叫的方法。 |
PlayMedia(IUNNotificationContentExtension) |
當使用者按下播放按鈕時所呼叫的方法。 |