Sdílet prostřednictvím


MediaPlayer.SetOnInfoListener(MediaPlayer+IOnInfoListener) Method

Definition

Register a callback to be invoked when an info/warning is available.

[Android.Runtime.Register("setOnInfoListener", "(Landroid/media/MediaPlayer$OnInfoListener;)V", "GetSetOnInfoListener_Landroid_media_MediaPlayer_OnInfoListener_Handler")]
public virtual void SetOnInfoListener (Android.Media.MediaPlayer.IOnInfoListener? listener);
[<Android.Runtime.Register("setOnInfoListener", "(Landroid/media/MediaPlayer$OnInfoListener;)V", "GetSetOnInfoListener_Landroid_media_MediaPlayer_OnInfoListener_Handler")>]
abstract member SetOnInfoListener : Android.Media.MediaPlayer.IOnInfoListener -> unit
override this.SetOnInfoListener : Android.Media.MediaPlayer.IOnInfoListener -> unit

Parameters

listener
MediaPlayer.IOnInfoListener

the callback that will be run

Attributes

Remarks

Java documentation for android.media.MediaPlayer.setOnInfoListener(android.media.OnInfoListener).

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