次の方法で共有


NotificationListenerService.RequestListenerHints メソッド

定義

目的 #getCurrentListenerHints() listener hintsの を設定します。

[Android.Runtime.Register("requestListenerHints", "(I)V", "")]
public void RequestListenerHints (Android.Service.Notification.NotificationListenerServiceHint hints);
[<Android.Runtime.Register("requestListenerHints", "(I)V", "")>]
member this.RequestListenerHints : Android.Service.Notification.NotificationListenerServiceHint -> unit

パラメーター

hints
NotificationListenerServiceHint

1 つ以上のHINT_定数。

属性

注釈

目的 #getCurrentListenerHints() listener hintsの を設定します。

これは単なる要求であり、ホストは他のリスナー要求や他のグローバル状態に応じてアクションを実行することを選択する場合と選択しない場合があります。

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

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

android.service.notification.NotificationListenerService.requestListenerHints(int)Java ドキュメント。

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

適用対象