NotificationManager.IsNotificationListenerAccessGranted(ComponentName) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ユーザーが特定 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
に一致するアクティビティにユーザーを送信することで、通知リスナーのアクセスを要求できます。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。