Contents

WebHistory

WebHistory objects are used to maintain the pages visited by users. Visited pages are represented by Webhistoryitem objects. You add and remove history items using the Additems(_:) and Removeitems(_:) methods. These methods post appropriate notifications when items are added or removed so you can update the display. WebHistory organizes the WebHistoryItem objects by the day they were visited, ordered from most recent to oldest. You can request all the days that contain history items using the Orderedlastvisiteddays method or request the items visited on a particular day using the Ordereditemslastvisited(onday:) method. WebHistory objects can be loaded and saved by specifying a file URL (see Load(from:)).

Declaration

class WebHistory

Topics

Accessing Shared History Objects

Adding and Removing History Items

Getting Web History Items

Loading and Saving History Information

Getting and Setting Attributes

Constants

Notifications

See Also

Accessing Previous Webpages (Legacy)