Share via


SearchManager.StopSearch Method

Definition

Terminate search UI.

[Android.Runtime.Register("stopSearch", "()V", "GetStopSearchHandler")]
public virtual void StopSearch ();
[<Android.Runtime.Register("stopSearch", "()V", "GetStopSearchHandler")>]
abstract member StopSearch : unit -> unit
override this.StopSearch : unit -> unit
Attributes

Remarks

Terminate search UI.

Typically the user will terminate the search UI by launching a search or by canceling. This function allows the underlying application or activity to cancel the search prematurely (for any reason).

This function can be safely called at any time (even if no search is active.)

Configuration#UI_MODE_TYPE_TELEVISION does not support this method.

Java documentation for android.app.SearchManager.stopSearch().

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