Fantom

 

class

flux::History

sys::Obj
  flux::History

@collection
@serializable

History maintains the most recent navigation history of the entire application.

Slots

addSource

This add(HistoryItem item)

Add a new history item to the end of the history. This method is typically only used for serialization. See push to log navigation of a Uri. Return this.

eachSource

Void each(|HistoryItem| f)

Iterate the history items from most recent to oldest.

itemsSource

HistoryItem[] items()

Get a readonly copy of all the items in the history. The first item is the most recent navigation and the last item is the oldest navigation.

loadSource

static History load()

Convenience for loading from "session/history"

pushSource

This push(Resource r)

Log navigation to the specified resource into the history. Return this.

saveSource

This save()

Convenience for save to "session/history". Return this.