DriveT.ejectWithOperation

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

flags gio.types.MountUnmountFlags

flags affecting the unmount if required for eject

mountOperation gio.mount_operation.MountOperation

a #GMountOperation or null to avoid user interaction.

cancellable gio.cancellable.Cancellable

optional #GCancellable object, null to ignore.

callback gio.types.AsyncReadyCallback

a #GAsyncReadyCallback, or null.