getDevicesList method

Future<Map?> getDevicesList(
  1. 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.TXMediaDeviceTypeMicTRTCCloudDef.TXMediaDeviceTypeSpeaker, or TRTCCloudDef.TXMediaDeviceTypeCamera.

Implementation

Future<Map?> getDevicesList(int type
    ) async {
  var result = await _channel.invokeMapMethod('getDevicesList', {
    "type": type,
  });
  return V2TXLiveFlutterResult.mapValue(result);
}