Share via


NotificationListenerService.RequestListenerHints Metodo

Definizione

Imposta l'oggetto desiderato #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

Parametri

hints
NotificationListenerServiceHint

Una o più costanti HINT_.

Attributi

Commenti

Imposta l'oggetto desiderato #getCurrentListenerHints() listener hints.

Si tratta semplicemente di una richiesta, l'host può o meno scegliere di intervenire a seconda di altre richieste del listener o di un altro stato globale.

Ascoltare gli aggiornamenti usando #onListenerHintsChanged(int).

Il servizio deve attendere l'evento #onListenerConnected() prima di eseguire questa operazione.

Documentazione java per android.service.notification.NotificationListenerService.requestListenerHints(int).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal Android e usato in base ai termini descritti in 2.5 Attribution License Creative Commons 2.5 Attribution License.

Si applica a