Compartir a través de


NotificationListenerService.RequestListenerHints Método

Definición

Establece el objeto deseado #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

Parámetros

hints
NotificationListenerServiceHint

Una o varias de las constantes de HINT_.

Atributos

Comentarios

Establece el objeto deseado #getCurrentListenerHints() listener hints.

Esto es simplemente una solicitud, el host puede o no optar por tomar medidas en función de otras solicitudes de agente de escucha u otro estado global.

Escuche las actualizaciones mediante #onListenerHintsChanged(int).

El servicio debe esperar al #onListenerConnected() evento antes de realizar esta operación.

Documentación de Java para android.service.notification.NotificationListenerService.requestListenerHints(int).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el proyecto de código abierto de Android y se usan según los términos descritos en la licencia de atribución de Creative Commons 2.5.

Se aplica a