Documente Academic
Documente Profesional
Documente Cultură
Documentation Push
• Reworking phonegap-docs
o http://docs2.phonegap.com
o http://github.com/phonegap/phonegap-docs/tree/
rework
• Better expose and fix inconsistencies
A c c elerometer
C omp ass
Sensors
G eoloc ation
Orientation
C amera
C onta cts
File
User D ata / File Stora g e
Me dia (Audio)
Stora g e/Store
SMS/Tele phony
Basics
Everywhere: navigator.device.uuid
navigator.device.platform
iPhone
foo.remoteHostStatus !=
NetworkStatus.NOT_REACHABLE
Android/BlackBerry
foo.code != NetworkStatus.NOT_REACHABLE
Notification
iPhone, Android, BlackBerry, Palm, Symbian.wrt
Common navigator.notification.alert
debug.log(msg)
debug.warn(msg)
debug.error(msg)
Accelerometer, Compass,
Geolocation, Orientation
navigator.sensor.getCurrentVariable(success,
error, options);
• asynchronously calls success with the current reading/status
navigator.sensor.watchVariable(success, error,
options);
• calls getCurrentVariable repeatedly, at frequency
specified in options parameter; returns a watch id
navigator.sensor.clearWatch(watchId);
• cancels the watch set by watchVariable
Accelerometer
iPhone, Android, BlackBerry, Palm, Symbian.wrt
navigator.accelerometer.getCurrentAcceleration
navigator.accelerometer.watchAcceleration
navigator.accelerometer.clearWatch
navigator.compass.getCurrentHeading
navigator.compass.watchHeading
navigator.compass.clearWatch
navigator.geolocation.getCurrentPosition
navigator.geolocation.watchPosition
navigator.geolocation.clearWatch
navigator.camera.getPicture(success, error,
options);
iPhone getAllContacts
newContact
chooseContact
displayContact
removeContact
contactsCount
Contacts
navigator.fileMgr
FileReader object
FileWriter object
To be implemented on iPhone/Android