Type Function Return value none Revision 2017.3060 Keywords iCloud, sync, storage, document, docList See also iCloud.docCheck() iCloudDocEvent iCloud.*
Retrieves list of files in iCloud Documents storage and invokes the onComplete
listener function with an iCloudDocEvent upon completion.
iCloud.docList( params )
Table. Table containing
Valid keys for the params
table include:
onComplete
— Required listener function to be invoked with an iCloudDocEvent.
containerId
— Optional string value indicating a specific iCloud Container to be used for document storage. Do not pass this parameter if you have only one iCloud Container associated with your app.
local function docListener( event ) if event.files then for i = 1,#event.files do print( event.files[i] ) end end end iCloud.docList( { onComplete=docListener } )