DriveT.ejectWithOperation

Ejects a drive. This is an asynchronous operation, and is finished by calling g_drive_eject_with_operation_finish() with the drive and GAsyncResult data returned in the callback.

Parameters

flags GMountUnmountFlags

flags affecting the unmount if required for eject

mountOperation MountOperation

a gtk.MountOperation or NULL to avoid user interaction.

cancellable Cancellable

optional gio.Cancellable object, NULL to ignore.

callback GAsyncReadyCallback
userData void*

user data passed to callback.

Meta

Since

2.22