Gio.Drive.prototype.eject
function eject(flags: Gio.MountUnmountFlags, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for g_drive_eject() }
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.