Gio.Volume.prototype.eject_with_operation
function eject_with_operation(flags: Gio.MountUnmountFlags, mount_operation: Gio.MountOperation, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for g_volume_eject_with_operation() }
Ejects a volume. This is an asynchronous operation, and is finished by calling Gio.Volume.prototype.eject_with_operation_finish with the volume and Gio.AsyncResult data returned in the callback.
Since 2.22
- flags
flags affecting the unmount if required for eject
- mount_operation
a Gio.MountOperation or null to avoid user interaction
- cancellable
optional Gio.Cancellable object, null to ignore
- callback
a Gio.AsyncReadyCallback, or null