Instance Property

fetchWebAuthTokenCompletionBlock

The block to execute when this CKFetchWebAuthTokenOperation object fetches the web authentication token.

Declaration

@property(nonatomic, copy, nullable) void (^fetchWebAuthTokenCompletionBlock)(NSString *webAuthToken, NSError *operationError);

Discussion

The block returns no value and takes the following parameters:

webAuthToken

If the operation is successful, the web authentication token; otherwise, nil.

operationError

An error object containing information about a problem, or nil if the results are retrieved successfully.

The operation object executes this block only once and it is your only chance to process the operation results. Your block must be capable of executing on a background thread, so any tasks that require access to the main thread must be redirected accordingly.

See Also

Accessing Properties

APIToken

An API token that allows access to an app’s container.