ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Mobile specific functions / iCloud functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Defines the procedure called when the value of a key is changed in an Apple iCloud-based container of "key-value" pairs.
Example
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.
For more details on this procedure, see Parameters of the procedure used by iCloudKeyValueWatch.
Business / UI classification: Neutral code
Minimum version required
  • Version 28
Comments
Click [Add] to post a comment

Last update: 03/07/2023

Send a report | Local help