Share via


SearchManager.TriggerSearch(String, ComponentName, Bundle) Method

Definition

Similar to #startSearch but actually fires off the search query after invoking the search dialog.

[Android.Runtime.Register("triggerSearch", "(Ljava/lang/String;Landroid/content/ComponentName;Landroid/os/Bundle;)V", "GetTriggerSearch_Ljava_lang_String_Landroid_content_ComponentName_Landroid_os_Bundle_Handler")]
public virtual void TriggerSearch (string? query, Android.Content.ComponentName? launchActivity, Android.OS.Bundle? appSearchData);
[<Android.Runtime.Register("triggerSearch", "(Ljava/lang/String;Landroid/content/ComponentName;Landroid/os/Bundle;)V", "GetTriggerSearch_Ljava_lang_String_Landroid_content_ComponentName_Landroid_os_Bundle_Handler")>]
abstract member TriggerSearch : string * Android.Content.ComponentName * Android.OS.Bundle -> unit
override this.TriggerSearch : string * Android.Content.ComponentName * Android.OS.Bundle -> unit

Parameters

query
String

The query to trigger. If empty, request will be ignored.

launchActivity
ComponentName

The ComponentName of the activity that has launched this search.

appSearchData
Bundle

An application can insert application-specific context here, in order to improve quality or specificity of its own searches. This data will be returned with SEARCH intent(s). Null if no extra data is required.

Attributes

Remarks

Similar to #startSearch but actually fires off the search query after invoking the search dialog. Made available for testing purposes.

Java documentation for android.app.SearchManager.triggerSearch(java.lang.String, android.content.ComponentName, 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

See also

  • <xref:Android.App.SearchManager.StartSearch(System.String%2c+System.Boolean%2c+System.Boolean%2c+System.Boolean%2c+System.Boolean)>