Drive.pollForMedia

Asynchronously polls drive to see if media has been inserted or removed.

When the operation is finished, callback will be called. You can then call gio.drive.Drive.pollForMediaFinish to obtain the result of the operation.

interface Drive
void
pollForMedia

Parameters

cancellable gio.cancellable.Cancellable

optional #GCancellable object, null to ignore.

callback gio.types.AsyncReadyCallback

a #GAsyncReadyCallback, or null.