Share via


IUNNotificationContentExtension 인터페이스

정의

사용자 지정 UI를 사용하여 보기 컨트롤러의 보기에서 알림 콘텐츠를 표시하는 데 필요한 프로토콜에 대한 UNNotificationContent 필수 메서드(있는 경우)를 포함하는 인터페이스입니다.

[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

관리되지 않는 개체 표현에 대한 핸들(포인터)입니다.

(다음에서 상속됨 INativeObject)

메서드

DidReceiveNotification(UNNotification)

애플리케이션이 알림을 보낼 때 호출되는 메서드입니다.

확장 메서드

DidReceiveNotificationResponse(IUNNotificationContentExtension, UNNotificationResponse, Action<UNNotificationContentExtensionResponseOption>)

사용자 지정 UI를 사용하여 보기 컨트롤러의 보기에서 알림 콘텐츠를 표시하는 데 필요한 프로토콜에 대한 UNNotificationContent 필수 메서드(있는 경우)를 포함하는 인터페이스입니다.

GetMediaPlayPauseButtonFrame(IUNNotificationContentExtension)

재생 단추를 표시하는 데 사용할 사각형을 반환합니다.

GetMediaPlayPauseButtonTintColor(IUNNotificationContentExtension)

재생 단추의 색조 색을 반환합니다.

GetMediaPlayPauseButtonType(IUNNotificationContentExtension)

사용자 지정 UI를 사용하여 보기 컨트롤러의 보기에서 알림 콘텐츠를 표시하는 데 필요한 프로토콜에 대한 UNNotificationContent 필수 메서드(있는 경우)를 포함하는 인터페이스입니다.

PauseMedia(IUNNotificationContentExtension)

사용자가 일시 중지 단추를 누를 때 호출되는 메서드입니다.

PlayMedia(IUNNotificationContentExtension)

사용자가 재생 단추를 누를 때 호출되는 메서드입니다.

적용 대상