Gio.VolumeMonitor.prototype.get_volume_for_uuid

function get_volume_for_uuid(uuid: String): Gio.Volume {
    // Gjs wrapper for g_volume_monitor_get_volume_for_uuid()
}
  

Finds a Gio.Volume object by its UUID (see Gio.Volume.prototype.get_uuid)

uuid

the UUID to look for

Returns

a Gio.Volume or null if no such volume is available. Free the returned object with GObject.Object.prototype.unref.