SetCloudDataVariable

Description

Sets a cloud data variable to the specified value. If multiple devices write a value at the same time then the cloud provider chooses one and sends it to all devices. The variable name must be less than 64 bytes, a single UTF8 character may be multiple bytes but typically 1 character equals 1 byte. It is recommended that variable names incorporate the app name, for example "myapp.myvariablename", since when broadcasting your apps they will all share a single data store in the AGK PLayer app. Varaible data is stored locally so GetCloudDataVariable will immediately return the new value, however syncing with the cloud is done in the background and may take several minutes. If the device has no internet connection then the data will be synced at the next available opportunity. On iOS you are limited to 1024 variables with 1MB total storage. On Android any data you store counts against the user's Google Drive storage limit, the user can clear your app data to free up space, but they cannot read the data you store.

You should not store sensitive information like passwords in plain text using these commands.

Definition

SetCloudDataVariable( varName, varValue )

Parameters