getDevicesList method
- int type
获取指定类型的设备列表(仅适用于macOS、Windows与web)
参数:
type
设备类型,指定要获取的设备类型。更多信息,请参见 TXMediaDeviceType
的定义。type
只能是 TRTCCloudDef.TXMediaDeviceTypeMic、TRTCCloudDef.TXMediaDeviceTypeSpeaker 或 TRTCCloudDef.TXMediaDeviceTypeCamera 。
Implementation
Future<Map?> getDevicesList(int type) {
return _channel.invokeMethod('getDevicesList', {
"type": type,
});
}