eject

open fun eject(flags: MountUnmountFlags, cancellable: Cancellable? = null, callback: AsyncReadyCallback?)(source)

⚠️ Deprecated ⚠️

This is deprecated since version 2.22.

Use g_drive_eject_with_operation() instead.

---

Asynchronously ejects a drive.

When the operation is finished, @callback will be called. You can then call g_drive_eject_finish() to obtain the result of the operation.

Parameters

flags

flags affecting the unmount if required for eject

cancellable

optional #GCancellable object, null to ignore.

callback

a #GAsyncReadyCallback, or null.