Megosztás a következőn keresztül:


SearchRecentSuggestions.ClearHistory Method

Definition

Completely delete the history.

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

Remarks

Completely delete the history. Use this call to implement a "clear history" UI.

Any application that implements search suggestions based on previous actions (such as recent queries, page/items viewed, etc.) should provide a way for the user to clear the history. This gives the user a measure of privacy, if they do not wish for their recent searches to be replayed by other users of the device (via suggestions).

Java documentation for android.provider.SearchRecentSuggestions.clearHistory().

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