Activity.TriggerSearch(String, 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/os/Bundle;)V", "GetTriggerSearch_Ljava_lang_String_Landroid_os_Bundle_Handler")]
public virtual void TriggerSearch (string? query, Android.OS.Bundle? appSearchData);
[<Android.Runtime.Register("triggerSearch", "(Ljava/lang/String;Landroid/os/Bundle;)V", "GetTriggerSearch_Ljava_lang_String_Landroid_os_Bundle_Handler")>]
abstract member TriggerSearch : string * Android.OS.Bundle -> unit
override this.TriggerSearch : string * Android.OS.Bundle -> unit

Parameters

query
String

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

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.Activity.triggerSearch(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