Class fever.app.browser.BrowserHistory

Description

BrowserHistory class.

Field Index

googleTrack, onHistoryChangeEVENT

Method Index

addListener(), get(), getInstance(), removeAllListeners(), removeListener(), save(), toString()

Field Detail

onHistoryChangeEVENT

static public onHistoryChangeEVENT:EventType

googleTrack

public googleTrack:Boolean
Enables auto Google Analytic tracking during history managment process.
Default is true

Method Detail

getInstance

static public function getInstance():BrowserHistory

Returns BrowserHistory instance.

addListener

public function addListener(listener:HistoryListener, priority:Number):Void

Adds passed-in listener for receiving all events.

Parameters

listenerListener object

removeListener

public function removeListener(listener:HistoryListener):Void

Removes passed-in listener for receiving all events.

Parameters

listenerListener object.

removeAllListeners

public function removeAllListeners():Void

Removes all listeners.

save

public function save(location:String, title:String, data)

Saves passed-in location in browser history.

Parameters

locationnew browser location
title( optional ) Page caption
data( optional ) Data to store in history storage

get

public function get():HistoryStatus

Retreives current history status ( if available ).

Return

HistoryStatus

toString

public function toString():String

Returns string representation.