eject


Description:

[ Version ( deprecated = true , deprecated_since = "2.22" ) ]
public abstract async bool eject (MountUnmountFlags flags, Cancellable? cancellable = null) throws Error

Warning: eject is deprecated since 2.22.

Asynchronously ejects a drive.

Note:

Use eject_with_operation instead.

When the operation is finished, callback will be called. You can then call eject.end to obtain the result of the operation.

Parameters:

this

a Drive.

flags

flags affecting the unmount if required for eject

cancellable

optional Cancellable object, null to ignore.

callback

a TaskReadyCallback, or null.

user_data

user data to pass to callback