次の方法で共有


NotificationListenerService.RequestInterruptionFilter メソッド

定義

目的 #getCurrentInterruptionFilter() interruption filterの を設定します。

[Android.Runtime.Register("requestInterruptionFilter", "(I)V", "")]
public void RequestInterruptionFilter (Android.Service.Notification.InterruptionFilterType interruptionFilter);
[<Android.Runtime.Register("requestInterruptionFilter", "(I)V", "")>]
member this.RequestInterruptionFilter : Android.Service.Notification.InterruptionFilterType -> unit

パラメーター

interruptionFilter
InterruptionFilterType

INTERRUPTION_FILTER_定数の 1 つ。

属性

注釈

目的 #getCurrentInterruptionFilter() interruption filterの を設定します。

これは単なる要求であり、ホストは、他のリスナー要求または他のグローバル状態に応じて、要求された中断フィルターを適用することを選択する場合と選択しない場合があります。

を使用して更新プログラムを #onInterruptionFilterChanged(int)リッスンします。

サービスは、この操作を実行する前に #onListenerConnected() イベントを待機する必要があります。

の Java ドキュメント android.service.notification.NotificationListenerService.requestInterruptionFilter(int)

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

適用対象