getDevicesList method
- int type
Get the list of devices (Support for macOS, Windows and web platforms)
Parameters:
type
Device type, which specifies the type of devices to be obtained. For more information, please see the definition of TXMediaDeviceType
. type
can only be TRTCCloudDef.TXMediaDeviceTypeMic、TRTCCloudDef.TXMediaDeviceTypeSpeaker, or TRTCCloudDef.TXMediaDeviceTypeCamera.
Implementation
Future<Map?> getDevicesList(int type) {
return _channel.invokeMethod('getDevicesList', {
"type": type,
});
}