Method

GioPermissionacquire_finish

Declaration

gboolean
g_permission_acquire_finish (
  GPermission* permission,
  GAsyncResult* result,
  GError** error
)

Description

Collects the result of attempting to acquire the permission represented by permission.

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

Available since:2.26

Parameters

result GAsyncResult
 

The GAsyncResult given to the GAsyncReadyCallback.

 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE if the permission was successfully acquired.