Language

MediaController2.ControllerCallback.OnCommandResult Method

Definition

Called when the command sent to the connected session is finished.

[Android.Runtime.Register("onCommandResult", "(Landroid/media/MediaController2;Ljava/lang/Object;Landroid/media/Session2Command;Landroid/media/Session2Command$Result;)V", "GetOnCommandResult_Landroid_media_MediaController2_Ljava_lang_Object_Landroid_media_Session2Command_Landroid_media_Session2Command_Result_Handler", ApiSince=29)]
public virtual void OnCommandResult(Android.Media.MediaController2 controller, Java.Lang.Object token, Android.Media.Session2Command command, Android.Media.Session2Command.Result result);
[<Android.Runtime.Register("onCommandResult", "(Landroid/media/MediaController2;Ljava/lang/Object;Landroid/media/Session2Command;Landroid/media/Session2Command$Result;)V", "GetOnCommandResult_Landroid_media_MediaController2_Ljava_lang_Object_Landroid_media_Session2Command_Landroid_media_Session2Command_Result_Handler", ApiSince=29)>]
abstract member OnCommandResult : Android.Media.MediaController2 * Java.Lang.Object * Android.Media.Session2Command * Android.Media.Session2Command.Result -> unit
override this.OnCommandResult : Android.Media.MediaController2 * Java.Lang.Object * Android.Media.Session2Command * Android.Media.Session2Command.Result -> unit

Parameters

controller
MediaController2

the controller for this event. This value cannot be null.

token
Object

the token got from MediaController2.sendSessionCommand This value cannot be null.

command
Session2Command

the session command. This value cannot be null.

result
Session2Command.Result

the result of the session command. This value cannot be null.

Attributes

Remarks

Called when the command sent to the connected session is finished.

Android reference for android.media.MediaController2.ControllerCallback.onCommandResult.

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