Navigator (Firefox OS extensions)

The Navigator interface represents the state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. This page represents the list of properties and methods added to Navigator on Firefox OS devices. For the list of properties and methods available to any Web sites, consult Navigator.

A Navigator object can be retrieved using the read-only Window.navigator property.

Navigator.getDataStores()
The navigator.getDataStores() method provides access to a list of the Data Store API data stores available on the device.
Navigator.getDeviceStorage()
The getDeviceStorage method is used to access some storage area available on the device.
Navigator.getDeviceStorages()
The getDeviceStorages method is used to access individual storage areas available on the device. This method return an Array of DeviceStorage objects, one per physical storage area. Each storage area will have a name, retrievable using the .storageName attribute (see below).
Navigator.mozAlarms
Returns a MozAlarmsManager object you can use to schedule notifications or applications to be started at a specific time.
Navigator.mozApps
Returns an Apps object you can use to install, manage, and control Open Web Apps in the browser.
Navigator.mozAudioChannelManager
The navigator.mozAudioChannelManager object provides access to the mozAudioChannelManager interface, which is used to manage your Firefox OS device's audio channels, including setting what channel's volume to affect when the volume buttons are pressed inside a particular app.
Navigator.mozCamera
This API has not been implemented as of Firefox OS 2.2. You probably actually want navigator.mozCameras.
Navigator.mozCameras
Returns a CameraManager object you can use to access the cameras available on the user's device.
Navigator.mozContacts
Return a ContactManager to access and manage all the contacts available on the device.
Navigator.mozFMRadio
Returns a FMRadio object you can use to access to the device FM radio.
Navigator.mozHasPendingMessage()
This method is used to know if there are pending messages of a given type (true) ot not (false).
Navigator.mozMobileConnections
The navigator.mozMobileConnections property returns an array of MozMobileConnection objects, which you can use to get information about the current mobile voice and data connection states of the device.
Navigator.mozMobileMessage
Returns a MozMobileMessageManager object you can use to receive and send MMS and SMS messages.
Navigator.mozNetworkStats
The MozNetworkStatsManager interface provides methods and properties to monitor data usage.
Navigator.mozNfc
The mozNfc property returns a MozNFC object that can be used to access Firefox OS's NFC functionality: Near Field Communication (NFC) is a short range radio technology used to exchange data and tags between mobile devices by tapping them together or moving them close to each other.
Navigator.mozPower
Returns a PowerManager object you can use to manage the power usage of the device.
Navigator.mozSetMessageHandler()
This method is used to allow applications to register a function handler that can receive — and react to — a message from the system.
Navigator.mozSettings
Returns a SettingsManager object you can use to access and change the device's settings.
Navigator.mozSms
Returns an SmsManager object you can use to receive and send SMS messages.
Navigator.mozTCPSocket
Returns a TCPSocket object you can use to open other sockets.
Navigator.mozTelephony
Returns a Telephony object you can use to initiate and control telephone calls from the browser.
Navigator.mozWifiManager
Returns a WifiManager object you can use to manage the device WiFi connection.
Navigator.push
The Navigator.push read-only property is a PushManager object providing a way to receive notifications from third party servers. These are real-time notifications provided by external services directly to installed apps. This implements the SimplePush API that does not require sending real data on those notifications. Also, you can see this documentation for additional details, a guide to using the API, and sample code.
Navigator.removeIdleObserver()
This method is used to remove an idle observer previously set with navigator.addIdleObserver.

Document Tags and Contributors

 Contributors to this page: chrisdavidmills, teoli
 Last updated by: chrisdavidmills,