enumerateDisplays method
Enumerates the information of all the screens in the system.
return The information of the screen for screen-sharing.
Implementation
List<Display> enumerateDisplays() {
final list = <Display>[];
final collection = _EnumerateDisplays();
for (var i = 0; i < collection.ref.length; ++i) {
final display = collection.ref.displays.elementAt(i).ref;
list.add(Display.from(display));
}
_FreeDisplayCollection(collection);
return list;
}