MediaSession.Callback.OnPlayFromSearch(String, Bundle) Method

Definition

Override to handle requests to begin playback from a search query.

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

Parameters

query
String
extras
Bundle
Attributes

Remarks

Override to handle requests to begin playback from a search query. An empty query indicates that the app may play any music. The implementation should attempt to make a smart choice about what to play.

Java documentation for android.media.session.MediaSession.Callback.onPlayFromSearch(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