getDeviceList method

  1. @override
Future<List<String>> getDeviceList()
override

Lists the available video capture devices.

Returns a Future that completes with a list of device names as strings.

Implementation

@override
Future<List<String>> getDeviceList() async {
  List<dynamic> devices = await methodChannel.invokeMethod('getDeviceList');
  return devices.cast<String>();
}