Gio.Drive.prototype.start

function start(flags: Gio.DriveStartFlags, mount_operation: Gio.MountOperation, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for g_drive_start()
}
  

Asynchronously starts a drive.

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

Since 2.22

flags

flags affecting the start 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.