Gio.Volume.prototype.can_eject

function can_eject(): Boolean {
    // Gjs wrapper for g_volume_can_eject()
}
  

Checks if a volume can be ejected.

Returns

true if the volume can be ejected. false otherwise