Gio.Mount.prototype.unmount_with_operation

function unmount_with_operation(flags: Gio.MountUnmountFlags, mount_operation: Gio.MountOperation, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for g_mount_unmount_with_operation()
}
  

Unmounts a mount. This is an asynchronous operation, and is finished by calling Gio.Mount.prototype.unmount_with_operation_finish with the mount and Gio.AsyncResult data returned in the callback.

Since 2.22

flags

flags affecting the operation

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.