refresh_authorization_async


Description:

public abstract async bool refresh_authorization_async (Cancellable? cancellable) throws Error

Forces the Authorizer to refresh any authorization tokens it holds with the online service.

this and cancellable are reffed when this method is called, so can safely be freed after this method returns.

For more details, see refresh_authorization, which is the synchronous version of this method. If the Authorizer class doesn't implement GDataAuthorizerInterface.refresh_authorization_async but does implement GDataAuthorizerInterface.refresh_authorization, the latter will be called from a new thread to make it asynchronous.

When the authorization refresh operation is finished, callback will be called. You can then call refresh_authorization_async.end to get the results of the operation.

This method is thread safe.

Parameters:

this

a Authorizer

cancellable

optional Cancellable object, or null

callback

a TaskReadyCallback to call when the authorization refresh operation is finished, or null

user_data

data to pass to the callback function