Gio.Drive.prototype.poll_for_media
function poll_for_media(cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for g_drive_poll_for_media() }
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.prototype.poll_for_media_finish to obtain the result of the operation.
- cancellable
optional Gio.Cancellable object, null to ignore.
- callback
a Gio.AsyncReadyCallback, or null.