Skip to main content

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

FunctionDescription
getLocationGet user's current location
openCameraOpen user device's camera
chooseImageSelect images from device's photo gallery
downloadImageLoad and save images from url or base64 data
scanQRCodeScan the QR code and return the result to Merchant app
showScanQROpen Zalopay's QR code scanning feature
appInfoGet information about the application
setVolumeAdjust application volume
setBrightnessAdjust screen brightness
setFlashlightTurn on/off phone flash
openPhoneAllows the app to open a call screen for a specific phone number
openSMSOpen device's SMS messaging application
playHapticTrigger vibration on the device