Gio.Volume.prototype.eject

function eject(flags: Gio.MountUnmountFlags, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for g_volume_eject()
}
  

Ejects a volume. This is an asynchronous operation, and is finished by calling Gio.Volume.prototype.eject_finish with the volume and Gio.AsyncResult returned in the callback.

flags

flags affecting the unmount if required for eject

cancellable

optional Gio.Cancellable object, null to ignore

callback

a Gio.AsyncReadyCallback, or null