Android.App.SearchManager.TriggerSearch Method
Similar to SearchManager.StartSearch(string, System.Boolean, System.Boolean, System.Boolean, System.Boolean) but actually fires off the search query after invoking the search dialog.

Syntax

[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)

See Also

SearchManager.StartSearch(string, System.Boolean, System.Boolean, System.Boolean, System.Boolean)

Parameters

query
The query to trigger. If empty, request will be ignored.
launchActivity
The ComponentName of the activity that has launched this search.
appSearchData
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.

Remarks

Similar to SearchManager.StartSearch(string, System.Boolean, System.Boolean, System.Boolean, System.Boolean) but actually fires off the search query after invoking the search dialog. Made available for testing purposes.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5