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
getDeviceStoragemethod is used to access some storage area available on the device. - Navigator.getDeviceStorages()
- The
getDeviceStoragesmethod is used to access individual storage areas available on the device. This method return anArrayofDeviceStorageobjects, one per physical storage area. Each storage area will have a name, retrievable using the.storageNameattribute (see below). - Navigator.mozAlarms
- Returns a
MozAlarmsManagerobject you can use to schedule notifications or applications to be started at a specific time. - Navigator.mozApps
- Returns an
Appsobject you can use to install, manage, and control Open Web Apps in the browser. - Navigator.mozAudioChannelManager
- The
navigator.mozAudioChannelManagerobject provides access to themozAudioChannelManagerinterface, 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
CameraManagerobject you can use to access the cameras available on the user's device. - Navigator.mozContacts
- Return a
ContactManagerto access and manage all the contacts available on the device. - Navigator.mozFMRadio
- Returns a
FMRadioobject 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.mozMobileConnectionsproperty returns an array ofMozMobileConnectionobjects, which you can use to get information about the current mobile voice and data connection states of the device. - Navigator.mozMobileMessage
- Returns a
MozMobileMessageManagerobject you can use to receive and send MMS and SMS messages. - Navigator.mozNetworkStats
- The
MozNetworkStatsManagerinterface provides methods and properties to monitor data usage. - Navigator.mozNfc
- The
mozNfcproperty returns aMozNFCobject 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
PowerManagerobject 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
SettingsManagerobject you can use to access and change the device's settings. - Navigator.mozSms
- Returns an
SmsManagerobject you can use to receive and send SMS messages. - Navigator.mozTCPSocket
- Returns a
TCPSocketobject you can use to open other sockets. - Navigator.mozTelephony
- Returns a
Telephonyobject you can use to initiate and control telephone calls from the browser. - Navigator.mozWifiManager
- Returns a
WifiManagerobject you can use to manage the device WiFi connection. - Navigator.push
- The
Navigator.pushread-only property is aPushManagerobject 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
Tags:
Contributors to this page:
chrisdavidmills,
teoli
Last updated by:
chrisdavidmills,