Condividi tramite


MediaPlayer.AddOnRoutingChangedListener Metodo

Definizione

Aggiunge un AudioRouting.OnRoutingChangedListener oggetto per ricevere notifiche relative alle modifiche di routing in questo MediaPlayer.

[Android.Runtime.Register("addOnRoutingChangedListener", "(Landroid/media/AudioRouting$OnRoutingChangedListener;Landroid/os/Handler;)V", "GetAddOnRoutingChangedListener_Landroid_media_AudioRouting_OnRoutingChangedListener_Landroid_os_Handler_Handler", ApiSince=28)]
public virtual void AddOnRoutingChangedListener (Android.Media.IAudioRoutingOnRoutingChangedListener? listener, Android.OS.Handler? handler);
[<Android.Runtime.Register("addOnRoutingChangedListener", "(Landroid/media/AudioRouting$OnRoutingChangedListener;Landroid/os/Handler;)V", "GetAddOnRoutingChangedListener_Landroid_media_AudioRouting_OnRoutingChangedListener_Landroid_os_Handler_Handler", ApiSince=28)>]
abstract member AddOnRoutingChangedListener : Android.Media.IAudioRoutingOnRoutingChangedListener * Android.OS.Handler -> unit
override this.AddOnRoutingChangedListener : Android.Media.IAudioRoutingOnRoutingChangedListener * Android.OS.Handler -> unit

Parametri

listener
IAudioRoutingOnRoutingChangedListener

Interfaccia AudioRouting.OnRoutingChangedListener per ricevere notifiche di reindirizzamento degli eventi.

handler
Handler

Specifica l'oggetto Handler per il thread in cui eseguire il callback. Se <il codice>è null</codice>, verrà usato il gestore nel looper principale.

Implementazioni

Attributi

Commenti

Documentazione java per android.media.MediaPlayer.addOnRoutingChangedListener(android.media.OnRoutingChangedListener, android.os.Handler).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.

Si applica a