This plugin provides an API for taking pictures and for choosing images from the system's image library.
Removes intermediate photos taken by the camera from temporary storage.
Success callback, that called when cleanup succeeds.
Error callback, that get an error message.
Takes a photo using the camera, or retrieves a photo from the device's image gallery.
Success callback, that get the image as a base64-encoded String, or as the URI for the image file.
Error callback, that get an error message.
Optional parameters to customize the camera settings.
Encapsulates the error code resulting from a failed media capture operation.
One of the pre-defined error codes listed below. CaptureError.CAPTURE_INTERNAL_ERR The camera or microphone failed to capture image or sound. CaptureError.CAPTURE_APPLICATION_BUSY The camera or audio capture application is currently serving another capture request. CaptureError.CAPTURE_INVALID_ARGUMENT Invalid use of the API (e.g., the value of limit is less than one). CaptureError.CAPTURE_NO_MEDIA_FILES The user exits the camera or audio capture application before capturing anything. CaptureError.CAPTURE_NOT_SUPPORTED The requested capture operation is not supported.
A CompassError object is returned to the onError callback function when an error occurs.
One of the predefined error codes CompassError.COMPASS_INTERNAL_ERR CompassError.COMPASS_NOT_SUPPORTED
The connection object, exposed via navigator.connection, provides information about the device's cellular and wifi connection.
This property offers a fast way to determine the device's network connection state, and type of connection. One of: Connection.UNKNOWN Connection.ETHERNET Connection.WIFI Connection.CELL_2G Connection.CELL_3G Connection.CELL_4G Connection.CELL Connection.NONE
The Contact object represents a user's contact. Contacts can be created, stored, or removed from the device contacts database. Contacts can also be retrieved (individually or in bulk) from the database by invoking the navigator.contacts.find method.
An array of all the contact's addresses.
The birthday of the contact.
An array of all the user-defined categories associated with the contact.
The name of this Contact, suitable for display to end users.
An array of all the contact's email addresses.
A globally unique identifier.
An array of all the contact's IM addresses.
An object containing all components of a persons name.
A casual name by which to address the contact.
A note about the contact.
An array of all the contact's organizations.
An array of all the contact's phone numbers.
An array of the contact's photos.
An array of web pages associated with the contact.
Returns a new Contact object that is a deep copy of the calling object, with the id property set to null
Removes the contact from the device contacts database, otherwise executes an error callback with a ContactError object.
Success callback function invoked on success operation.
Error callback function, invoked when an error occurs.
Saves a new contact to the device contacts database, or updates an existing contact if a contact with the same id already exists.
Success callback function invoked on success operation with che Contact object.
Error callback function, invoked when an error occurs.
The ContactAddress object stores the properties of a single address of a contact. A Contact object may include more than one address in a ContactAddress[] array.
The country name.
The full address formatted for display.
The city or locality.
The zip code or postal code.
Set to true if this ContactAddress contains the user's preferred value.
The state or region.
The full street address.
A string indicating what type of field this is, home for example.
The ContactError object is returned to the user through the contactError callback function when an error occurs.
Error code
Error message
The ContactField object is a reusable component that represents contact fields generically. Each ContactField object contains a value, type, and pref property. A Contact object stores several properties in ContactField[] arrays, such as phone numbers and email addresses.
In most instances, there are no pre-determined values for a ContactField object's type attribute. For example, a phone number can specify type values of home, work, mobile, iPhone, or any other value that is supported by a particular device platform's contact database. However, for the Contact photos field, the type field indicates the format of the returned image: url when the value attribute contains a URL to the photo image, or base64 when the value contains a base64-encoded image string.
Set to true if this ContactField contains the user's preferred value.
A string that indicates what type of field this is, home for example.
The value of the field, such as a phone number or email address.
Search options to filter navigator.contacts.
The search string used to find navigator.contacts.
Determines if the find operation returns multiple navigator.contacts.
Contains different kinds of information about a Contact object's name.
The contact's family name.
The complete name of the contact.
The contact's given name.
The contact's prefix (example Mr. or Dr.)
The contact's suffix (example Esq.).
The contact's middle name.
The ContactOrganization object stores a contact's organization properties. A Contact object stores one or more ContactOrganization objects in an array.
The department the contract works for.
The name of the organization.
Set to true if this ContactOrganization contains the user's preferred value.
The contact's title at the organization.
A string that indicates what type of field this is, home for example.
Starts new transaction.
Function, that will be called when transaction starts.
Called, when Transaction fails.
Called, when transaction committed.
Starts new transaction.
Function, that will be called when transaction starts.
Called, when Transaction fails.
Called, when transaction committed.
The FileTransfer object provides a way to upload files using an HTTP multi-part POST request, and to download files as well.
Called with a ProgressEvent whenever a new chunk of data is transferred.
Aborts an in-progress transfer. The onerror callback is passed a FileTransferError object which has an error code of FileTransferError.ABORT_ERR.
downloads a file from server.
URL of the server to download the file, as encoded by encodeURI().
Filesystem url representing the file on the device. For backwards compatibility, this can also be the full path of the file on the device.
A callback that is passed a FileEntry object. (Function)
A callback that executes if an error occurs when retrieving the fileEntry. Invoked with a FileTransferError object.
Optional parameters.
Optional parameter, defaults to false. If set to true, it accepts all security certificates. This is useful since Android rejects self-signed security certificates. Not recommended for production use. Supported on Android and iOS.
Sends a file to a server.
Filesystem URL representing the file on the device. For backwards compatibility, this can also be the full path of the file on the device.
URL of the server to receive the file, as encoded by encodeURI().
A callback that is passed a FileUploadResult object.
A callback that executes if an error occurs retrieving the FileUploadResult. Invoked with a FileTransferError object.
Optional parameters.
Optional parameter, defaults to false. If set to true, it accepts all security certificates. This is useful since Android rejects self-signed security certificates. Not recommended for production use. Supported on Android and iOS.
A FileTransferError object is passed to an error callback when an error occurs.
One of the predefined error codes listed below. FileTransferError.FILE_NOT_FOUND_ERR FileTransferError.INVALID_URL_ERR FileTransferError.CONNECTION_ERR FileTransferError.ABORT_ERR
HTTP status code. This attribute is only available when a response code is received from the HTTP connection.
URL to the source.
URL to the target.
An object representing a error from the Globalization API.
One of the following codes representing the error type: GlobalizationError.UNKNOWN_ERROR: 0 GlobalizationError.FORMATTING_ERROR: 1 GlobalizationError.PARSING_ERROR: 2 GlobalizationError.PATTERN_ERROR: 3
A text message that includes the error's explanation and/or details
Executes SQL statement via current transaction.
SQL statement to execute.
SQL stetement arguments.
Called in case of query has been successfully done.
Called, when query fails.
Apache Cordova instance