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?>
设置是否自动识别人脸位置
enableCameraTorch(bool enable) → Future<int?>
开关闪光灯
getApplicationMuteState() → Future<bool?>
获取 Windows 系统音量合成器中当前进程的静音状态
getApplicationPlayVolume() → Future<int?>
获取 Windows 系统音量合成器中当前进程的音量
getCameraZoomMaxRatio() → Future<double?>
获取摄像头的缩放因子
getCurrentDevice(int type) → Future<Map?>
获取当前使用的设备
getCurrentDeviceMute(int type) → Future<bool?>
查询当前设备是否静音
getCurrentDeviceVolume(int type) → Future<int?>
获取当前设备的音量
getDevicesList(int type) → Future<Map?>
获取设备列表
isAutoFocusEnabled() → Future<bool?>
查询是否支持自动识别人脸位置
isFrontCamera() → Future<bool?>
是否使用前置摄像头
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<int?>
设置音频路由,即声音由哪里输出(扬声器、听筒)
setCameraFocusPosition(int x, int y) → Future<void>
设置摄像头焦点
setCameraZoomRatio(double value) → Future<int?>
设置摄像头缩放因子(焦距)
setCurrentDevice(int type, String deviceId) → Future<int?>
指定当前设备
setCurrentDeviceMute(int type, bool mute) → Future<int?>
设置当前设备是否静音
setCurrentDeviceVolume(int type, int volume) → Future<int?>
设置当前设备的音量
setSystemVolumeType(int type) → Future<int?>
设置通话时使用的系统音量类型。
startMicDeviceTest(int interval) → Future<int?>
开始麦克风测试
startSpeakerDeviceTest(String filePath) → Future<int?>
开始扬声器测试
stopMicDeviceTest() → Future<int?>
结束麦克风测试
stopSpeakerDeviceTest() → Future<int?>
停止扬声器测试
switchCamera(bool isFrontCamera) → Future<int?>
切换摄像头
toString() → String
A string representation of this object.
inherited

Operators

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