cordova.vibration

This plugin aligns with the W3C vibration specification http://www.w3.org/TR/vibration/ This plugin provides a way to vibrate the device. Quick Example vibrate = function(arg) { navigator.notification.vibrate(arg);// vibrate(3000), vibration for 3 seconds. };

Read More

cordova.splashscreen

This plugin displays and hides a splash screen during application launch or can be used during reload actions. Quick Example showSplashScreen = function() { //will show splash screen for 3 seconds navigator.splashscreen.show(); setTimeout(function() { navigator.splashscreen.hide(); }, 3000); }; Methods splashscreen.show splashscreen.hide Quick Example showSplashScreen = function() { //will show splash screen for 3 seconds navigator.splashscreen.show(); […]

Read More

cordova.network-information

Connection The connection object, exposed via navigator.connection, provides information about the device’s cellular and wifi connection. Properties connection.type Constants Connection.UNKNOWN Connection.ETHERNET Connection.WIFI Connection.CELL_2G Connection.CELL_3G Connection.CELL_4G Connection.CELL Connection.NONE connection.type This property offers a fast way to determine the device’s network connection state, and type of connection. Quick Example checkConnection = function () { var networkState = navigator.connection.type; var states […]

Read More

cordova.media-capture

WARNING: Collection and use of images, video, or audio from the device’s camera or microphone raises important privacy issues. Your app’s privacy policy should discuss how the app uses such sensors and whether the data recorded is shared with any other parties. In addition, if the app’s use of the camera or microphone is not […]

Read More

cordova.media

This plugin provides the ability to record and play back audio files on a device. NOTE: The current implementation does not adhere to a W3C specification for media capture, and is provided for convenience only. A future implementation will adhere to the latest W3C specification and may deprecate the current APIs. Parameters src: A URI […]

Read More

cordova.geolocation

This plugin provides information about the device’s location, such as latitude and longitude. Common sources of location information include Global Positioning System (GPS) and location inferred from network signals such as IP address, RFID, WiFi and Bluetooth MAC addresses, and GSM/CDMA cell IDs. There is no guarantee that the API returns the device’s actual location. […]

Read More

cordova.dialogs

This plugin provides access to some native dialog UI elements. Methods navigator.notification.alert navigator.notification.confirm navigator.notification.prompt navigator.notification.beep Examples //Beep Example beep = function(arg) { navigator.notification.beep(arg); //arg(a number) stands for how many times it will beep. }; //Alert, Confirm,Prompt Example //native alert nativeAlert = function() { navigator.notification.alert( ‘This is a native alert.’, // message alertDismissed, // callback ‘Native […]

Read More

cordova.device-orientation

This plugin provides access to the device’s compass. The compass is a sensor that detects the direction or heading that the device is pointed, typically from the top of the device. It measures the heading in degrees from 0 to 359.99, where 0 is north.   Methods navigator.compass.getCurrentHeading navigator.compass.watchHeading navigator.compass.clearWatch   Example: function onSuccess(heading) { […]

Read More

cordova.device-motion

This plugin provides access to the device’s accelerometer. The accelerometer is a motion sensor that detects the change (delta) in movement relative to the current device orientation, in three dimensions along the x, y, and z axis. Methods navigator.accelerometer.getCurrentAcceleration navigator.accelerometer.watchAcceleration navigator.accelerometer.clearWatch Example: function onSuccess(acceleration) { alert(‘Acceleration X: ‘ + acceleration.x + ‘\n’ + ‘Acceleration Y: […]

Read More

cordova.device

This plugin defines a global device object, which describes the device’s hardware and software. Although the object is in the global scope, it is not available until after device event. Properties device.cordova device.model device.platform device.uuid device.version These properties must be called after deviceready event fired to be sure that device can be fetched. Quick Example document.addEventListener(“deviceready”, callback, false); function callback() { […]

Read More