Accessing Mobile Device Features
The Profound UI Mobile Client provides many JavaScript APIs for accessing functionality specific to mobile devices, such as accessing the camera, scanning a barcode, and vibrating the phone. These services are made available by the many Cordova plugins included with the mobile client. The use of these plugins can sometimes be complicated, so in some cases Profound UI provides simple wrappers around them; for example, `pui.capturePhoto()` simplifies and extends Cordova's `camera.getPicture` function.
You may never need to directly use the functionality provided by these plugins, but listed below are all the Cordova plugins included with the mobile client.
Plugin | Description | Status |
---|---|---|
Get events for device battery level | ||
Take pictures with the device camera | ||
Manage the contacts on the device | ||
Get device information (e.g., model and platform) | ||
Access accelerometer data | Deprecated, but still included for legacy apps | |
Access compass data | Deprecated, but still included for legacy apps | |
Use native alert and dialog boxes | ||
Read/write files on the device | ||
Uploads and downloads files | Deprecated, but still included for legacy apps | |
Access GPS data | ||
Access locale data | Deprecated, but still included for legacy apps | |
Open an in-app browser window | ||
Record and play audio on the device | ||
Capture audio, video, and images | ||
Provides a more persistent version of local storage | ||
Get information about wireless connectivity | ||
Set the screen orientation | ||
Control the splash screen for your app | Used internally by the Profound UI mobile client; not for customer use | |
Provides functions to customize the iOS and Android status bar | ||
Vibrate the device | Android support is deprecated | |
Whitelist external content accessible by an Android Cordova app | Used internally by the Profound UI mobile client; not for customer use | |
Send SMS messages | ||
Provides an on-device SQLite database | Available with mobile client 2.9.3 and higher | |
Scan and create barcodes |