Gio.Mount.prototype.eject
function eject(flags: Gio.MountUnmountFlags, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for g_mount_eject() }
Ejects a mount. This is an asynchronous operation, and is finished by calling Gio.Mount.prototype.eject_finish with the mount and Gio.AsyncResult data 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.