listInputDevices method

Future<List<InputDevice>> listInputDevices()

Lists capture/input devices available on the platform.

On Android and iOS, an empty list will be returned.

On web, and in general, you should already have permission before accessing this method otherwise the list may return an empty list.

Implementation

Future<List<InputDevice>> listInputDevices() async {
  _created ??= await _create();
  return RecordPlatform.instance.listInputDevices(_recorderId);
}