Udostępnij za pośrednictwem


MediaSession.Callback.OnCustomAction(String, Bundle) Method

Definition

Called when a MediaController wants a PlaybackState.CustomAction to be performed.

[Android.Runtime.Register("onCustomAction", "(Ljava/lang/String;Landroid/os/Bundle;)V", "GetOnCustomAction_Ljava_lang_String_Landroid_os_Bundle_Handler")]
public virtual void OnCustomAction (string action, Android.OS.Bundle? extras);
[<Android.Runtime.Register("onCustomAction", "(Ljava/lang/String;Landroid/os/Bundle;)V", "GetOnCustomAction_Ljava_lang_String_Landroid_os_Bundle_Handler")>]
abstract member OnCustomAction : string * Android.OS.Bundle -> unit
override this.OnCustomAction : string * Android.OS.Bundle -> unit

Parameters

action
String

The action that was originally sent in the PlaybackState.CustomAction.

extras
Bundle

Optional extras specified by the MediaController.

Attributes

Remarks

Called when a MediaController wants a PlaybackState.CustomAction to be performed.

Java documentation for android.media.session.MediaSession.Callback.onCustomAction(java.lang.String, android.os.Bundle).

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