iCloud.docCheck()

Type Function
Return value none
Revision Release 2024.3703
Keywords iCloud, sync, storage, document, docCheck
See also iCloud.docList()
iCloudDocEvent
iCloud.*

Overview

Checks if document exists in the app's iCloud Document storage and invokes the onComplete listener function with an iCloudDocEvent upon completion.

Syntax

iCloud.docCheck( params )
params (required)

Table. Table containing method-specific parameters — see the next section for details.

Parameter Reference

Valid keys for the params table include:

Example

local function docListener( event )

    if event.isError then
        print( event.error )
        print( event.errorCode )
    end
end

iCloud.docCheck(
    {
        filename = "test.txt",
        onComplete = docListener
    }
)