enumerateWindows method

List<Window> enumerateWindows()

Enumerates the information of all the windows in the system.

return The information of the window for screen-sharing.

Implementation

List<Window> enumerateWindows() {
  final list = <Window>[];
  final collection = _EnumerateWindows();
  for (var i = 0; i < collection.ref.length; ++i) {
    final window = collection.ref.windows.elementAt(i).ref;
    list.add(Window.from(window));
  }
  _FreeWindowCollection(collection);
  return list;
}