MediaSession.Callback.OnCustomAction(String, Bundle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.