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) {
  return _channel.invokeMethod('getDevicesList', {
    "type": type,
  });
}