Device
Overview about Device Module
Provides functions for accessing information, controlling some user device functions (when access is allowed by the user).
List of supported SDK functions
| Function | Description |
|---|---|
| openCamera | Open user device's camera |
| chooseImage | Select images from device's photo gallery |
| downloadImage | Load and save images from url or base64 data |
| scanQRCode | Scan the QR code and return the result to Merchant app |
| showScanQR | Open Zalopay's QR code scanning feature |
| appInfo | Get information about the application |
| setVolume | Adjust application volume |
| setBrightness | Adjust screen brightness |
| setFlashlight | Turn on/off phone flash |
| openPhone | Allows the app to open a call screen for a specific phone number |
| openSMS | Open device's SMS messaging application |
| playHaptic | Trigger vibration on the device |