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

ServiceObjects – SAP

Sap serviceobjects is an integration of SAP system, the integration consists of two parts. Developers must provide a destination sap system by giving necessary informations that depend on usage and access cases, the developer must provide satisfying values. For example the destination user must be able to access given functions on SAP systems to be […]

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

cordova.contacts

Provides access to the device contacts database. WARNING: Collection and use of contact data raises important privacy issues. Your app’s privacy policy should discuss how the app uses contact data and whether it is shared with any other parties. Contact information is considered sensitive because it reveals the people with whom a person communicates. Therefore, […]

Read More

cordova.camera

navigator.camera.getPicture Takes a photo using the camera, or retrieves a photo from the device’s image gallery. The image is passed to the success callback as a base64-encoded String, or as the URI for the image file. The method itself returns a CameraPopoverHandle object that can be used to reposition the file selection popover. navigator.camera.getPicture( cameraSuccess, cameraError, cameraOptions ); […]

Read More

cordova.battery-status

This plugin gives information about device battery. Event type: window event Events: batterystatus batterycritical batterylow This events returns info object which contains level and isPlugged information. batterystatus event fires when device gets ready, other events fire when status changes to critical or low. Example Code: window.addEventListener(“batterystatus”, onBatteryStatus, false); window.addEventListener(“batterycritical”, onBatteryCritical, false); window.addEventListener(“batterylow”, onBatteryLow, false); function […]

Read More