One Logo Pool Ball
CloudKit · IOS API REFERENCE

CKFetchWebAuthTokenOperation

class · iOS 9.2+ · SDK 27.1

class CKFetchWebAuthTokenOperation

Members (8)

init · iOS 9.2+

init

TypeScript
static init(): CKFetchWebAuthTokenOperation
Swift declaration
init()
init · iOS 9.2+

init

TypeScript
static initApiToken(APIToken: string): CKFetchWebAuthTokenOperation
Swift declaration
convenience init(apiToken APIToken: String)
get · iOS 9.2+

apiToken

TypeScript
get apiToken(): (string) | null
Swift declaration
var apiToken: String? { get set }
set · iOS 9.2+

apiToken

TypeScript
set apiToken(value: (string) | null)
Swift declaration
var apiToken: String? { get set }
get · iOS 9.2+ · Deprecated in iOS 15.0

fetchWebAuthTokenCompletionBlock

TypeScript
get fetchWebAuthTokenCompletionBlock(): (((arg0: (string) | null, arg1: (NativeError) | null) => Promise<void>)) | null
Swift declaration
var fetchWebAuthTokenCompletionBlock: ((String?, (any Error)?) -> Void)? { get set }
set · iOS 9.2+ · Deprecated in iOS 15.0

fetchWebAuthTokenCompletionBlock

TypeScript
set fetchWebAuthTokenCompletionBlock(value: (((arg0: (string) | null, arg1: (NativeError) | null) => void)) | null)
Swift declaration
var fetchWebAuthTokenCompletionBlock: ((String?, (any Error)?) -> Void)? { get set }
get · iOS 15.0+

fetchWebAuthTokenResultBlock

TypeScript
get fetchWebAuthTokenResultBlock(): (((arg0: SDKHandle) => Promise<void>)) | null
Swift declaration
var fetchWebAuthTokenResultBlock: ((Result<String, any Error>) -> Void)? { get set }

The closure to execute when the operation finishes. The closure returns no value and takes the following parameter: - A <doc://com.apple.documentation/documentation/swift/result> that contains either: - The web authentication token - An error that contains information about a problem encountered fetching the token. The closure executes only once. The closure executes serially with respect to the other closures of the operation. Update the value of this property before you execute the operation or submit it to a queue.

set · iOS 15.0+

fetchWebAuthTokenResultBlock

TypeScript
set fetchWebAuthTokenResultBlock(value: (((arg0: SDKHandle) => void)) | null)
Swift declaration
var fetchWebAuthTokenResultBlock: ((Result<String, any Error>) -> Void)? { get set }

The closure to execute when the operation finishes. The closure returns no value and takes the following parameter: - A <doc://com.apple.documentation/documentation/swift/result> that contains either: - The web authentication token - An error that contains information about a problem encountered fetching the token. The closure executes only once. The closure executes serially with respect to the other closures of the operation. Update the value of this property before you execute the operation or submit it to a queue.

Skipped declarations

No declarations were skipped in this snapshot.

All CloudKit types →