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


SearchRecentSuggestions.TruncateHistory(ContentResolver, Int32) Method

Definition

Reduces the length of the history table, to prevent it from growing too large.

[Android.Runtime.Register("truncateHistory", "(Landroid/content/ContentResolver;I)V", "GetTruncateHistory_Landroid_content_ContentResolver_IHandler")]
protected virtual void TruncateHistory (Android.Content.ContentResolver? cr, int maxEntries);
[<Android.Runtime.Register("truncateHistory", "(Landroid/content/ContentResolver;I)V", "GetTruncateHistory_Landroid_content_ContentResolver_IHandler")>]
abstract member TruncateHistory : Android.Content.ContentResolver * int -> unit
override this.TruncateHistory : Android.Content.ContentResolver * int -> unit

Parameters

cr
ContentResolver

Convenience copy of the content resolver.

maxEntries
Int32

Max entries to leave in the table. 0 means remove all entries.

Attributes

Remarks

Reduces the length of the history table, to prevent it from growing too large.

Java documentation for android.provider.SearchRecentSuggestions.truncateHistory(android.content.ContentResolver, int).

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