Contents

item(at:)

Returns the item at the specified index in the back-forward list.

Declaration

func item(at index: Int32) -> WebHistoryItem!

Parameters

  • index:

    The index of the item to return. The position of the current item is index 0, and the position of any other item is expressed as an offset from index 0. For example, the item preceding the current item is at index -1, and the item following the current item is at index 1.

Return Value

The item at the specified index, or nil if index exceeds the bounds of the back-forward list (that is, if index is greater than the value returned by forwardListCount, or less than the negative form of the value returned by backListCount).

See Also

Querying the Back-Forward List