Drive.ejectWithOperation

void ejectWithOperation(gio.types.MountUnmountFlags flags, gio.mount_operation.MountOperation mountOperation = null, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

Ejects a drive. This is an asynchronous operation, and is finished by calling [gio.drive.Drive.ejectWithOperationFinish] with the drive and #GAsyncResult data returned in the callback.

Parameters

flagsflags affecting the unmount if required for eject
mountOperationa #GMountOperation or null to avoid user interaction.
cancellableoptional #GCancellable object, null to ignore.
callbacka #GAsyncReadyCallback, or null.