Results 501 - 520 of 782

CameraManager.getListOfCameras()

This method is used to get an Array of identifiers of all the cameras available on the device.
API B2G camera Camera Firefox OS Graphics JavaScript Method Reference Référence WebAPI

Data Store API

The Data Store API was created to allow multiple Firefox OS apps, with potentially different data structures and storage mechanisms, to create, maintain and share the same data objects efficiently between one another. Each app can then import the data into its own local IndexedDB to index according to their specific query needs. This is not necessary however, and you can just write directly to the Data Store API data store.
API Certified data Data Store Data Store API Firefox OS Interface Overview Reference Référence WebAPI

Using the Data Store API

To explain the main functionality of Data Store, we have build two examples that work together (you can download these from Github using the code below, and experiment with them as you wish):
B2G Data Store API Database Firefox OS Guide Storage storage

DeviceMotionEvent.rotationRate

Returns the rate at which the device is rotating around each of its axes in degrees per second.
API Device Orientation DOM DOM Reference Firefox OS Mobile Motion NeedsExample Orientation Property Reference

DeviceStorage.add()

The add method is used to add a file inside a given storage area.
API B2G Device Storage Firefox OS Method Reference Référence WebAPI

DeviceStorage.addNamed()

The addNamed method is used to add a file inside a given storage area.
API B2G Device Storage Firefox OS Method Reference Référence WebAPI

DeviceStorage.available()

The available() method is used to check whether the storage area is available; this is an asynchronous operation that returns a DOMRequest object that will receive a callback when the operation is complete.
API B2G Device Storage Firefox OS Method Non-standard Reference Référence WebAPI