Gio.Drive::eject

function vfunc_eject(flags: Gio.MountUnmountFlags, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
}
  

Asynchronously ejects a drive.

When the operation is finished, callback will be called. You can then call Gio.Drive.prototype.eject_finish to obtain the result of the operation.

flags

flags affecting the unmount if required for eject

cancellable

optional Gio.Cancellable object, null to ignore.

callback

a Gio.AsyncReadyCallback, or null.