|
|
|
|
iCloudKeyValueWatch (Function) In french: iCloudCléValeurSurveille Defines the procedure called when the value of a key is changed in an Apple iCloud-based container of "key-value" pairs. IF iCloudKeyValueWatch(Callback_Observer) = True THEN Trace("Start observing") END  INTERNAL PROCEDURE Callback_Observer(nEvent, arrKeys) sEventLabel, sKeyList is string  SWITCH nEvent CASE ickvServerChange: sEventLabel = "Server change" CASE ickvInitialSynchronizationChange: sEventLabel = "Initial synchronization" CASE ickvQuotaViolation: sEventLabel = "Quota violation" CASE ickvAccountChange: sEventLabel = "Account change" CASE ickvSynchronizationFailed: sEventLabel = "Synchronization failed" OTHER CASE sEventLabel = "Unknown" END  Trace("------------------>>> " + sEventLabel)  FOR EACH sKey OF arrKeys Trace(sKey) sKeyList += [" / "] + sKey END gsObserverReport += [CR] + sEventLabel + TAB + sKeyList END Syntax
<Result> = iCloudKeyValueWatch(<WLanguage procedure>)
<Result>: Boolean - True if the observe procedure is enabled,
- False otherwise.
<WLanguage procedure>: Procedure name Name of the WLanguage procedure ("callback") called when there is a change in the iCloud server. This procedure gets the cause of the change. Business / UI classification: Neutral code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|