HiTechPAY API Docs
API ExplorerMini AppSDK
API ExplorerMini AppSDK
  1. Mini App
  • Overview
  • Device
    • openCamera
    • chooseImage
    • downloadImage
    • scanQRCode
    • appInfo
    • setVolume
    • setBrightness
    • setFlashlight
  1. Mini App

Device

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#

FunctionDescription
openCameraOpen the user's device camera
chooseImageSelect images from the device's photo gallery
downloadImageLoad and save images from a URL or base64 data
scanQRCodeScan a QR code and return the result to the Merchant app
showScanQROpen HiTechPay's QR code scanning feature
appInfoGet information about the application
setVolumeAdjust the application volume
setBrightnessAdjust the screen brightness
setFlashlightTurn the phone flashlight on/off
openPhoneOpen the device's call screen for a specific phone number
openSMSOpen the device's SMS messaging application
playHapticTrigger vibration on the device
getSystemInfoGet information about the operating system
getDeviceIdGet the device ID
getNetworkTypeGet the network type (e.g. Wi-Fi, cellular)
Note: Access to device features requires user permission.
Modified at 2025-12-04 10:29:10
Previous
Overview
Next
openCamera
Built with