Permission.acquireAsync

Attempts to acquire the permission represented by @permission.

This is the first half of the asynchronous version of g_permission_acquire().

class Permission
void
acquireAsync
(,
GAsyncReadyCallback callback
,
void* userData
)

Parameters

cancellable Cancellable

a #GCancellable, or %NULL

callback GAsyncReadyCallback

the #GAsyncReadyCallback to call when done

userData void*

the user data to pass to @callback

Meta

Since

2.26