NotificationManager.IsNotificationListenerAccessGranted(ComponentName) メソッド

定義

ユーザーが特定 android.service.notification.NotificationListenerServiceの を承認したかどうかを確認します。

[Android.Runtime.Register("isNotificationListenerAccessGranted", "(Landroid/content/ComponentName;)Z", "GetIsNotificationListenerAccessGranted_Landroid_content_ComponentName_Handler", ApiSince=27)]
public virtual bool IsNotificationListenerAccessGranted (Android.Content.ComponentName? listener);
[<Android.Runtime.Register("isNotificationListenerAccessGranted", "(Landroid/content/ComponentName;)Z", "GetIsNotificationListenerAccessGranted_Landroid_content_ComponentName_Handler", ApiSince=27)>]
abstract member IsNotificationListenerAccessGranted : Android.Content.ComponentName -> bool
override this.IsNotificationListenerAccessGranted : Android.Content.ComponentName -> bool

パラメーター

listener
ComponentName

戻り値

属性

注釈

ユーザーが特定 android.service.notification.NotificationListenerServiceの を承認したかどうかを確認します。

リスナー サービスは、呼び出し元アプリに属している必要があります。

アプリは、システム インテント アクション android.provider.Settings#ACTION_NOTIFICATION_LISTENER_SETTINGSに一致するアクティビティにユーザーを送信することで、通知リスナーのアクセスを要求できます。

の Java ドキュメント android.app.NotificationManager.isNotificationListenerAccessGranted(android.content.ComponentName)

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象