Partager via


NotificationListenerService.RequestListenerHints Method

Definition

Sets the desired #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

Parameters

hints
NotificationListenerServiceHint

One or more of the HINT_ constants.

Attributes

Remarks

Sets the desired #getCurrentListenerHints() listener hints.

This is merely a request, the host may or may not choose to take action depending on other listener requests or other global state.

Listen for updates using #onListenerHintsChanged(int).

The service should wait for the #onListenerConnected() event before performing this operation.

Java documentation for android.service.notification.NotificationListenerService.requestListenerHints(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to