Gio.Permission.prototype.acquire_async
function acquire_async(cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for g_permission_acquire_async() }
Attempts to acquire the permission represented by permission.
This is the first half of the asynchronous version of Gio.Permission.prototype.acquire.
Since 2.26
- cancellable
a Gio.Cancellable, or null
- callback
the Gio.AsyncReadyCallback to call when done