다음을 통해 공유


NotificationManager.NotificationDelegate 속성

정의

#setNotificationDelegate(String) delegate 현재 알림이 있는 경우 대신 알림을 게시할 수 있는 알림을 반환합니다. -또는- 패키지를 사용하여 사용자 대신 알림을 게시할 수 있습니다 #notifyAsPackage(String, String, int, Notification).

public virtual string? NotificationDelegate { [Android.Runtime.Register("getNotificationDelegate", "()Ljava/lang/String;", "GetGetNotificationDelegateHandler", ApiSince=29)] get; [Android.Runtime.Register("setNotificationDelegate", "(Ljava/lang/String;)V", "GetSetNotificationDelegate_Ljava_lang_String_Handler", ApiSince=29)] set; }
[<get: Android.Runtime.Register("getNotificationDelegate", "()Ljava/lang/String;", "GetGetNotificationDelegateHandler", ApiSince=29)>]
[<set: Android.Runtime.Register("setNotificationDelegate", "(Ljava/lang/String;)V", "GetSetNotificationDelegate_Ljava_lang_String_Handler", ApiSince=29)>]
member this.NotificationDelegate : string with get, set

속성 값

특성

설명

속성 getter 설명서:

#setNotificationDelegate(String) delegate 현재 알림이 있는 경우 대신 알림을 게시할 수 있는 알림을 반환합니다.

에 대한 android.app.NotificationManager.getNotificationDelegate()Java 설명서

속성 setter 설명서:

를 사용하여 패키지를 통해 사용자 대신 알림을 게시할 수 있습니다 #notifyAsPackage(String, String, int, Notification).

이 기능을 사용하면 프로세스가 해제되지 않고도 영구 프로세스가 클라우드에서 사용자 대신 수신된 메시지에 따라 알림을 게시할 수 있습니다.

허용되는 대리 #getNotificationDelegate() 자가 있는지 확인하고 이 메서드에 null을 전달하여 대리자를 해지할 수 있습니다.

에 대한 android.app.NotificationManager.setNotificationDelegate(java.lang.String)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상