TMS iCL DEVELOPERS GUIDE - TMS Software
TMS iCL DEVELOPERS GUIDE - TMS Software
TMS iCL DEVELOPERS GUIDE - TMS Software
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>TMS</strong> SOFTWARE<br />
<strong>TMS</strong> <strong>iCL</strong><br />
<strong>DEVELOPERS</strong> <strong>GUIDE</strong><br />
to asynchronously load the documents.<br />
RefreshDocuments<br />
Manually refresh the documents asynchronously.<br />
When the documents are refreshed, the<br />
OnDocumentsRefreshed event is called. This<br />
event is also called when there are changes in<br />
the iCloud document storage.<br />
Each refresh automatically calls<br />
OnDocumentAdded, OnDocumentDeleted and<br />
OnDocumentUpdated based on the difference of<br />
the current and the previous documents state.<br />
The Documents collection is automatically<br />
updated.<br />
RemoveDocument<br />
SwitchContainer<br />
UpdateDocument<br />
Removes the document from the collection and<br />
moves an existing document from iCloud to a<br />
local directory.<br />
Switches between containers, after the<br />
ContainerIdentifier has been set. The currently<br />
loaded documents are cleared and renewed<br />
with the documents in the other container. If<br />
the ContainerIdentifier is an empty string, the<br />
default container is loaded, specified in your<br />
entitlements file.<br />
Updates an existing document, this call has a<br />
number of overloads to update a document from<br />
a file or directly from a memory stream.<br />
Events<br />
OnDocumentAdded<br />
OnDocumentDeleted<br />
OnDocumentRemoved<br />
OnDocumentSaved<br />
OnDocumentUpdated<br />
Event called when a new document is added to<br />
iCloud.<br />
Event called when an existing document is<br />
deleted from iCloud.<br />
Event called when an existing document is<br />
moved from iCloud to a local directory.<br />
Event called when an existing document is<br />
updated and saved.<br />
Event called when an existing document is<br />
149