Device Module Overview#
The Device Module of HiTechPay MiniApp SDK provides functions for accessing device information and controlling certain device features (when the user grants permission).Supported SDK Functions#
| Function | Description |
|---|
openCamera | Open the user's device camera |
chooseImage | Select images from the device's photo gallery |
downloadImage | Load and save images from a URL or base64 data |
scanQRCode | Scan a QR code and return the result to the Merchant app |
showScanQR | Open HiTechPay's QR code scanning feature |
appInfo | Get information about the application |
setVolume | Adjust the application volume |
setBrightness | Adjust the screen brightness |
setFlashlight | Turn the phone flashlight on/off |
openPhone | Open the device's call screen for a specific phone number |
openSMS | Open the device's SMS messaging application |
playHaptic | Trigger vibration on the device |
getSystemInfo | Get information about the operating system |
getDeviceId | Get the device ID |
getNetworkType | Get the network type (e.g. Wi-Fi, cellular) |
Note: Access to device features requires user permission.
Modified at 2025-12-04 10:29:10