Share via


Browser.TruncateHistory(ContentResolver) Method

Definition

If there are more than MAX_HISTORY_COUNT non-bookmark history items in the bookmark/history table, delete TRUNCATE_N_OLDEST of them.

[Android.Runtime.Register("truncateHistory", "(Landroid/content/ContentResolver;)V", "")]
public static void TruncateHistory (Android.Content.ContentResolver? cr);
[<Android.Runtime.Register("truncateHistory", "(Landroid/content/ContentResolver;)V", "")>]
static member TruncateHistory : Android.Content.ContentResolver -> unit

Parameters

cr
ContentResolver

The ContentResolver used to access the database.

Attributes

Remarks

If there are more than MAX_HISTORY_COUNT non-bookmark history items in the bookmark/history table, delete TRUNCATE_N_OLDEST of them. This is used to keep our history table to a reasonable size. Note: it does not prune bookmarks. If the user wants 1000 bookmarks, the user gets 1000 bookmarks.

Java documentation for android.provider.Browser.truncateHistory(android.content.ContentResolver).

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