Gio.Drive::stop

function vfunc_stop(flags: Gio.MountUnmountFlags, mount_operation: Gio.MountOperation, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
}
  

Asynchronously stops a drive.

When the operation is finished, callback will be called. You can then call Gio.Drive.prototype.stop_finish to obtain the result of the operation.

Since 2.22

flags

flags affecting the unmount if required for stopping.

mount_operation

a Gio.MountOperation or null to avoid user interaction.

cancellable

optional Gio.Cancellable object, null to ignore.

callback

a Gio.AsyncReadyCallback, or null.