Share via


MediaController.TransportControls.PlayFromSearch(String, Bundle) Method

Definition

Request that the player start playback for a specific search query.

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

Parameters

query
String

The search query.

extras
Bundle

Optional extras that can include extra information about the query.

Attributes

Remarks

Request that the player start playback for a specific search query. An empty or null query should be treated as a request to play any music.

Java documentation for android.media.session.MediaController.TransportControls.playFromSearch(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