Apache Flex 4.16.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
BrowserManager

Package | mx.managers
Class | public class BrowserManager
Inheritance | BrowserManager Object

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

The BrowserManager is a Singleton manager that acts as a proxy between the browser and the application. It provides access to the URL in the browser address bar similar to accessing the `document.location` property in JavaScript. Events are dispatched when the `url` property is changed. Listeners can then respond, alter the URL, and/or block others from getting the event.

To use the BrowserManager, you call the `getInstance()` method to get the current instance of the manager, and call methods and listen to events on that manager. See the IBrowserManager class for the methods, properties, and events to use.

See also

mx.managers.IBrowserManager
mx.managers.HistoryManager

Public Methods

| Method | Defined By
--- | --- | ---
|  | getInstance():IBrowserManager [static] Returns the sole instance of this Singleton class; creates it if it does not already exist. | BrowserManager

Method Detail

getInstance | () | method

`public static function getInstance():IBrowserManager`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Returns the sole instance of this Singleton class; creates it if it does not already exist.

Returns

| `IBrowserManager` — Returns the sole instance of this Singleton class; creates it if it does not already exist.

Sun Mar 5 2017, 03:42 PM +11:00