Thursday, October 29, 2026
HomeiOS Developmentios - What's the syntax for this closure for fetchDatabaseChangesResultBlock?

ios – What’s the syntax for this closure for fetchDatabaseChangesResultBlock?

[ad_1]

iOS Cloudkit FetchDatabaseChangesOperation() has a closure block outlined as:

fetchDatabaseChangesResultBlock: ((_ operationResult:
    End result<(serverChangeToken: CKServerChangeToken, moreComing: Bool), Error>) -> Void)?

My query is, what does an precise closure block appear to be?

For instance, I attempted this, which compiles:

let operation = CKFetchDatabaseChangesOperation(previousServerChangeToken: changeToken)

operation.fetchDatabaseChangesResultBlock = {
    lead to
}

In must get the serverChangeToken, the moreComing worth, and the Error. However I can not work out what “outcome” is, or even when I’ve the fitting signature.

Any assist could be appreciated! I can not determine this one out.

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments