语言

SearchManager.StopSearch 方法

定义

终止搜索 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
特性

注解

终止搜索 UI。 通常,用户将通过启动搜索或取消来终止搜索 UI。 此函数允许基础应用程序或活动提前取消搜索(出于任何原因)。 此函数可以随时安全调用(即使没有搜索处于活动状态)。Configuration.UI_MODE_TYPE_TELEVISION不支持此方法。

Android 参考。android.app.SearchManager.stopSearch

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于