TCGSDK - AndroidInstance submodule related methods
All AndroidInstance methods must be called after normal CloudGamingWebSDK TCGSDK.init
AndroidInstance is a submodule of TCGSDK, used to operate Android devices, including the following capabilities:
- Connect to a single instance to view the cloud phone screen and perform various operations.
- Preview multiple cloud phone screens via screenshots.
- Other functional operations.
Example
const AndroidInstance = TCGSDK.AndroidInstance()
Members
inputText :void
When input box is focused quickly send content without copying to clipboard
Type:
- void
Example
AndroidInstance.inputText({content: 'abc'});
switchIME :void
Switch IME
Type:
- void
Example
AndroidInstance.switchIME({ime: 'local'});
Methods
setMaster(params) → {void}
Set master
Example
AndroidInstance.setMaster({instanceId: 'cai-xxx1'});
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
- Type
- void
startSync(params) → {void}
- Default Value:
- Full synchronization
Start sync based on the accessed instanceIds
Example
AndroidInstance.startSync({instanceIds: ['cai-xxx1', 'cai-xxx2']});
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
- Type
- void
stopSync() → {void}
Stop sync (All instance ids)
Example
AndroidInstance.stopSync();
Returns:
- Type
- void
requestStream(param) → {void}
Request streaming by streamName
Example
TCGSDK.requestStream({streamName: 'high'});
Parameters:
| Name | Type | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
param |
Object |
Properties
|
Returns:
- Type
- void
setSyncList(param) → {void}
Set sync list
Example
TCGSDK.setSyncList({list: ['cai-xxxx-xxx1', 'cai-xxxx-xxx2']});
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
param |
Object |
Properties
|
Returns:
- Type
- void
joinGroupControl(params) → {void}
Join group control by instance id
Example
AndroidInstance.joinGroupControl({instanceIds: ['cai-xxx1', 'cai-xxx2']});
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
- Type
- void
leaveGroupControl(params) → {void}
Leave group control by instance id
Example
AndroidInstance.leaveInstances({instanceIds: ['cai-xxx1', 'cai-xxx2']});
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
- Type
- void
setImageEvent(params) → {void}
Set screenshot event
Example
AndroidInstance.setImageEvent({interval: 10, quality: 50});
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
- Type
- void
getInstanceImage(params) → {object}
Properties:
| Name | Type | Description |
|---|---|---|
url |
string |
Get instance screenshot
Example
const {url} = AndroidInstance.getInstanceImage({instanceId: 'cai-xxx1'});
Parameters:
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
- Type
- object
upload(params) → {Promise.<object>}
Upload file to instance
By default, files are uploaded to the /sdcard/Download directory. Use path to specify a different directory (only under /sdcard/)
Example
AndroidInstance.upload({instanceId: 'cai-xxx1', files: [{file: file1, path: '/sdcard/xxx/'}, {file: file2, path: '/sdcard/xxx/'}]});
Parameters:
| Name | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
- Type
- Promise.<object>
uploadMedia(params) → {Promise.<object>}
Upload file to instance
By default, files are uploaded to the /data/media/0/DCIM directory
Example
AndroidInstance.uploadMedia({instanceId: 'cai-xxx1', files: [{file: file1}, {file: file2}]});
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
- Type
- Promise.<object>
getInstanceDownloadAddress(params) → {object}
Properties:
| Name | Type | Description |
|---|---|---|
address |
string |
Get instance download address
Example
const {address} = AndroidInstance.getInstanceDownloadAddress({instanceId: 'cai-xxx1', path: '/sdcard/xxx/'});
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
- Type
- object
getInstanceDownloadLogcatAddress(params) → {object}
Properties:
| Name | Type | Description |
|---|---|---|
address |
string |
Get instance Logcat download address
Example
const {address} = AndroidInstance.getInstanceDownloadLogcatAddress({instanceId: 'cai-xxx1', recentDays: 3});
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
- Type
- object
transMessage(params) → {void}
Send App binder message
For single connection only
Example
AndroidInstance.transMessage({packageName: 'com.example.myapplication', message: 'abc123'});
Parameters:
| Name | Type | Description |
|---|---|---|
params |
Object | |
param.packageName |
string | PackageName |
param.message |
string | Message |
Returns:
- Type
- void
distributeApp(params) → {void}
Distribute App
Example
AndroidInstance.distributeApp({packageName: 'com.example.myapplication'});
Parameters:
| Name | Type | Description |
|---|---|---|
params |
Object | |
param.packageName |
string | PackageName |
Returns:
- Type
- void
preserveCleanApp(params) → {void}
Preserve Clean App
Example
AndroidInstance.preserveCleanApp({preservePackageNames: ["tv.danmaku.bili","tv.danmaku.bili2"]});
Parameters:
| Name | Type | Description |
|---|---|---|
params |
Object | |
param.preservePackageNames |
string | preservePackageNames |
Returns:
- Type
- void
keepFrontApp(params) → {void}
Keep app in front
Example
AndroidInstance.keepFrontApp({packageName: "tv.danmaku.bili"});
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
params |
Object | ||
param.packageName |
string | packageName |
|
param.enable |
string |
<optional> |
enable |
Returns:
- Type
- void
setLocation(params) → {Promise.<BatchTaskResponse>}
Set device GPS information
Example
AndroidInstance.setLocation({'cai-xxx1': {Longitude: 113.32412, Latitude: 23.124124}, 'cai-xxx2': {Longitude: 114.32412, Latitude: 24.124124}})
Parameters:
| Name | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
setResolution(params) → {Promise.<BatchTaskResponse>}
Set device Resolution
Example
AndroidInstance.setResolution({'cai-xxx1': {Width: 720, Height: 1080}, {'cai-xxx2': {Width: 720, Height: 1080}});
Parameters:
| Name | Type | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
paste(params) → {Promise.<BatchTaskResponse>}
Paste text
Example
AndroidInstance.paste({'cai-xxx1': {Text: 'abc'}, {'cai-xxx2': {Text: '123'}});
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
sendClipboard(params) → {Promise.<BatchTaskResponse>}
Send text to clipboard
Example
AndroidInstance.sendClipboard({'cai-xxx1': {Text: 'abc'}, {'cai-xxx2': {Text: '123'}});
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
shake(params) → {Promise.<BatchTaskResponse>}
Shake device
Example
AndroidInstance.shake({'cai-xxx1': {}, {'cai-xxx2': {}});
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
setSensor(params) → {Promise.<BatchTaskResponse>}
Set device sensor information
Example
AndroidInstance.setSensor({'cai-xxx1': {Type: 'accelerometer', Values: [10, 10, 10]}, {'cai-xxx2': {Type: 'gyroscope', Values: [10, 10, 10]}});
Parameters:
| Name | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
sendTransMessage(params) → {Promise.<BatchTaskResponse>}
Send App binder message
Example
AndroidInstance.sendTransMessage({'cai-xxx1': {PackageName: 'com.example.myapplication', Msg: 'abc123'}});
Parameters:
| Name | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
describeInstanceProperties(params) → {Promise.<DescribeInstancePropertiesResponse>}
Describe instance properties
Example
AndroidInstance.describeInstanceProperties({'cai-xxx1': {}, {'cai-xxx2': {}});
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<DescribeInstancePropertiesResponse>
modifyInstanceProperties(params) → {Promise.<BatchTaskResponse>}
Modify instance properties
Example
AndroidInstance.ModifyInstanceProperties({'cai-xxx1': {
DeviceInfo: {
Brand: 'Samsung',
Model: 'Galaxy S24',
},
ProxyInfo: {
Enabled: true,
Protocol: 'socks5',
Host: 'proxy.example.com',
Port: 1080,
User: 'user123',
Password: 'pass123',
},
GPSInfo: {
Longitude: 121.4737,
Latitude: 31.2304,
},
SIMInfo: {
State: 1,
PhoneNumber: '+8613812345678',
IMSI: '460001234567890',
ICCID: '89860123456789012345',
},
LocaleInfo: {
Timezone: 'Asia/Shanghai',
},
LanguageInfo: {
Language: 'zh',
Country: 'CN',
},
ExtraProperties: [
{
Key: 'custom_property1',
Value: 'value1',
},
{
Key: 'custom_property2',
Value: 'value2',
},
]
}})
Parameters:
| Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
listUserApps(params) → {Promise.<ListUserAppsResponse>}
Query user installed apps
Example
AndroidInstance.listUserApps({'cai-xxx1': {}, {'cai-xxx2': {}})
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<ListUserAppsResponse>
modifyKeepFrontAppStatus(params) → {Promise.<BatchTaskResponse>}
Modify foreground app keep-alive status
Example
AndroidInstance.modifyKeepFrontAppStatus({'cai-xxx1': {"PackageName": "com.example.app", "Enable": true, "RestartInterValSeconds": 5}});
Parameters:
| Name | Type | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
describeKeepFrontAppStatus(params) → {Promise.<object>}
Query foreground app keep-alive status
Example
AndroidInstance.describeKeepFrontAppStatus({'cai-xxx1': {}});
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<object>
unInstallByPackageName(params) → {Promise.<BatchTaskResponse>}
Uninstall app
Example
AndroidInstance.unInstallByPackageName({'cai-xxx1': {"PackageName": "com.unwanted.app"}});
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
startApp(params) → {Promise.<BatchTaskResponse>}
Start app
Example
AndroidInstance.startApp({'cai-xxx1': {"PackageName": "com.launch.app", "ActivityName": "MainActivity"}});
Parameters:
| Name | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
stopApp(params) → {Promise.<BatchTaskResponse>}
Stop app
Example
AndroidInstance.stopApp({'cai-xxx1': {"PackageName": "com.running.app"}});
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
clearAppData(params) → {Promise.<BatchTaskResponse>}
Clear app data
Example
AndroidInstance.clearAppData({'cai-xxx1': {"PackageName": "com.data.app"}});
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
enableApp(params) → {Promise.<BatchTaskResponse>}
Enable app
Example
AndroidInstance.enableApp({'cai-xxx1': {"PackageName": "com.disabled.app"}});
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
disableApp(params) → {Promise.<BatchTaskResponse>}
Disable app
Example
AndroidInstance.disableApp({'cai-xxx1': {"PackageName": "com.disabled.app"}});
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
startCameraMediaPlay(params) → {Promise.<BatchTaskResponse>}
Play media file on camera
Example
AndroidInstance.startCameraMediaPlay({'cai-xxx1': {"FilePath": "/sdcard/video.mp4", "Loops": 3}});
Parameters:
| Name | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
stopCameraMediaPlay(params) → {Promise.<BatchTaskResponse>}
Stop playing media file on camera
Example
AndroidInstance.stopCameraMediaPlay({'cai-xxx1': {}});
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
describeCameraMediaPlayStatus(params) → {Promise.<DescribeCameraMediaPlayStatusResponse>}
Query current camera media play status
Example
AndroidInstance.describeCameraMediaPlayStatus({'cai-xxx1': {}});
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<DescribeCameraMediaPlayStatusResponse>
displayCameraImage(params) → {Promise.<BatchTaskResponse>}
Display image on camera
Example
AndroidInstance.displayCameraImage({'cai-xxx1': {"FilePath": "/sdcard/image.jpg"}});
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
addKeepAliveList(params) → {Promise.<BatchTaskResponse>}
Add background keep-alive apps
Example
AndroidInstance.addKeepAliveList({'cai-xxx1': {"AppList": ["com.wechat", "com.alipay", "com.dingtalk"]}});
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
removeKeepAliveList(params) → {Promise.<BatchTaskResponse>}
Remove background keep-alive apps
Example
AndroidInstance.removeKeepAliveList({'cai-xxx1': {"AppList": ["com.wechat", "com.alipay", "com.dingtalk"]}});
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
setKeepAliveList(params) → {Promise.<BatchTaskResponse>}
Override background keep-alive apps
Example
AndroidInstance.setKeepAliveList({'cai-xxx1': {"AppList": ["com.wechat", "com.alipay", "com.dingtalk"]}});
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
describeKeepAliveList(params) → {Promise.<DescribeKeepAliveListResponse>}
Query background keep-alive apps
Example
AndroidInstance.describeKeepAliveList({'cai-xxx1': {}});
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<DescribeKeepAliveListResponse>
clearKeepAliveList(params) → {Promise.<BatchTaskResponse>}
Clear background keep-alive apps
Example
AndroidInstance.clearKeepAliveList({'cai-xxx1': {}});
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
mute(params) → {Promise.<BatchTaskResponse>}
Mute switch
Example
AndroidInstance.mute({'cai-xxx1': {Mute: true}});
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
mediaSearch(params) → {Promise.<MediaSearchResponse>}
Media library file search
Example
AndroidInstance.mediaSearch({'cai-xxx1': {"Keyword": "abc"}});
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<MediaSearchResponse>
reboot(params) → {Promise.<BatchTaskResponse>}
Reboot instance
Example
AndroidInstance.reboot({'cai-xxx1': {}});
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
listAllApps(params) → {Promise.<ListAllAppsResponse>}
Query all apps list
Example
AndroidInstance.listAllApps({'cai-xxx1': {}});
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<ListAllAppsResponse>
moveAppBackground(params) → {Promise.<BatchTaskResponse>}
Move app to background
Example
AndroidInstance.moveAppBackground({'cai-xxx1': {}});
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
addAppInstallBlackList(params) → {Promise.<BatchTaskResponse>}
Add app install blacklist
If the app is already installed, it will be uninstalled when added
Example
AndroidInstance.addAppInstallBlackList({'cai-xxx1': {"AppList": ["com.wechat", "com.alipay", "com.dingtalk"]}});
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
removeAppInstallBlackList(params) → {Promise.<BatchTaskResponse>}
Remove app install blacklist
Example
AndroidInstance.removeAppInstallBlackList({'cai-xxx1': {"AppList": ["com.wechat", "com.alipay", "com.dingtalk"]}});
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
setAppInstallBlackList(params) → {Promise.<BatchTaskResponse>}
Override app install blacklist
Example
AndroidInstance.setAppInstallBlackList({'cai-xxx1': {"AppList": ["com.wechat", "com.alipay", "com.dingtalk"]}});
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
describeAppInstallBlackList(params) → {Promise.<DescribeAppInstallBlackListResponse>}
Query app install blacklist
Example
AndroidInstance.describeAppInstallBlackList({'cai-xxx1': {}});
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<DescribeAppInstallBlackListResponse>
clearAppInstallBlackList(params) → {Promise.<BatchTaskResponse>}
Clear app install blacklist
Example
AndroidInstance.clearAppInstallBlackList({'cai-xxx1': {}});
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<BatchTaskResponse>
getNavVisibleStatus(params) → {Promise.<GetNavVisibleStatusResponse>}
Get system navigation bar visibility status
Example
AndroidInstance.getNavVisibleStatus({'cai-xxx1': {}});
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | key is instanceId Properties
|
Returns:
- Type
- Promise.<GetNavVisibleStatusResponse>
getSystemMusicVolume(params, {string) → {Promise.<GetSystemMusicVolumeResponse>}
Get system media volume level
Example
AndroidInstance.getSystemMusicVolume({'cai-xxx1': {}});
Parameters:
| Name | Type | Description |
|---|---|---|
params |
Object | key is instanceId |
{string |
params.key - Device instanceId |
|
params.value |
Object | value |
Returns:
- Type
- Promise.<GetSystemMusicVolumeResponse>