Gio.VolumeMonitor.prototype.get_volumes

function get_volumes(): Array(Gio.Volume) {
    // Gjs wrapper for g_volume_monitor_get_volumes()
}
  

Gets a list of the volumes on the system.

The returned list should be freed with GLib.List.free, after its elements have been unreffed with GObject.Object.prototype.unref.

Returns

a GLib.List of Gio.Volume objects.