TXDeviceManager class

设备管理

Constructors

TXDeviceManager(dynamic channel)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

enableCameraAutoFocus(bool enable) Future<int?>
设置是否启用面部位置自动识别(仅适用于 Android 和 iOS 平台)
enableCameraTorch(bool enable) Future<bool?>
启用/禁用闪光灯,也就是手电筒模式(仅适用于 Android 和 iOS 平台)
getApplicationMuteState() Future<bool?>
获取 Windows 系统音量混合器中当前进程的静音状态
getApplicationPlayVolume() Future<int?>
获取 Windows 系统音量混合器中当前进程的音量
getCameraZoomMaxRatio() Future<double?>
获取摄像头的最大缩放倍数(仅适用于 Android 和 iOS 平台)
getCurrentDevice(int type) Future<Map?>
获取当前正在使用的设备(仅适用于macOS、Windows与web)
getCurrentDeviceMute(int type) Future<bool?>
查询当前设备的静音状态(此API仅支持 macOS 和 Windows 平台)
getCurrentDeviceVolume(int type) Future<int?>
获取当前设备的音量(此API仅支持 macOS 和 Windows 平台)
getDevicesList(int type) Future<Map?>
获取指定类型的设备列表(仅适用于macOS、Windows与web)
isAutoFocusEnabled() Future<bool?>
查询设备是否支持自动识别人脸位置(仅适用于 Android 和 iOS 平台)
isFrontCamera() Future<bool?>
设置是否使用前置摄像头(仅适用于 Android 和 iOS 平台)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setApplicationMuteState(bool bMute) Future<int?>
设置 Windows 系统音量混合器中当前进程的静音状态
setApplicationPlayVolume(int volume) Future<int?>
设置 Windows 系统音量混合器中当前进程的音量
setAudioRoute(int route) Future<void>
设置音频路由,即使用听筒或者扬声器(仅适用于 Android 和 iOS 平台)
setCameraFocusPosition(int x, int y) Future<void>
设置摄像头对焦位置(仅适用于 Android 和 iOS 平台)
setCameraZoomRatio(double value) Future<int?>
设置摄像头的缩放因子(焦距)(仅适用于 Android 和 iOS 平台)
setCurrentDevice(int type, String deviceId) Future<int?>
设置当前要使用的设备(仅适用于macOS、Windows与web)
setCurrentDeviceMute(int type, bool mute) Future<int?>
设置当前设备的静音状态(此API仅支持 macOS 和 Windows 平台)
setCurrentDeviceVolume(int type, int volume) Future<int?>
设置当前设备的音量(此API仅支持 macOS 和 Windows 平台)
setSystemVolumeType(int type) Future<void>
设置通话中使用的系统音量类型(仅适用于 Android 和 iOS 平台)
startMicDeviceTest(int interval) Future<int?>
开始麦克风测试(此API仅支持 macOS 和 Windows 平台)
startSpeakerDeviceTest(String filePath) Future<int?>
开始扬声器测试(此API仅支持 macOS 和 Windows 平台)
stopMicDeviceTest() Future<int?>
停止麦克风测试(此API仅支持 macOS 和 Windows 平台)
stopSpeakerDeviceTest() Future<int?>
停止扬声器测试(此API仅支持 macOS 和 Windows 平台)
switchCamera(bool isFrontCamera) Future<int?>
切换摄像头(前置/后置)(仅适用于 Android 和 iOS 平台)
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited