MediaSession.Callback.OnPlayFromSearch(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.
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.
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.