device
CloudControl Pro 9 Docs / device
device
The device module provides information and operations about the device, such as getting the device width and height, memory usage, device ID, adjust the brightness, volume, etc.
Some functions of this module, need the "write system settings" permission. If the permission is not granted, an exception will be thrown.
The main function document of this module is in Device and OS classes.
Table of contents
Enumerations
Classes
Interfaces
Type Aliases
Variables
Type Aliases
PluggedType
Ƭ PluggedType: "usb"
| "wireless"
| "ac"
StreamType
Ƭ StreamType: "music"
| "alarm"
| "notification"
| "voice_call"
| "system"
| "ring"
| "dtmf"
| "accessibility"
音量类型,包括:
music
: 音乐(媒体)音量alarm
: 闹钟音量notification
: 通知音量ring
: 铃声音量voice_call
: 通话音量system
: 系统音量dtmf
: DTMF音量accessibility
: 辅助功能音量
Variables
device
• Const
device: Device
= Device.instance