PlayMaker
Store and sync key-value data across devices using platform cloud storage.
Actions (9)
Write/read:
CloudServicesSetValue,CloudServicesGetValue(supports Bool/Int/Long/Float/Double/String/ByteArray)Existence:
CloudServicesHasKey(checks current snapshot)Sync:
CloudServicesSynchronize(firessuccessEvent/failureEvent)Change listener:
CloudServicesOnSavedDataChange(persistent; firesdataChangedEvent)Change helper:
CloudServicesGetChangedKeyInfo(reads cached changed keys by index)Conflict helper:
CloudServicesGetCloudAndLocalCacheValues(reads both cloud + local cache value for a key)User listener:
CloudServicesOnUserChange(persistent; fires account status events)Delete:
CloudServicesRemoveKey,CloudServicesRemoveAllKeys
Key patterns
SetValue/GetValue are synchronous. Use
CloudServicesSynchronizewhen you want to push/pull changes and get a completion event.Listener actions should stay active:
CloudServicesOnSavedDataChangereceives remote changes and provideschangedKeys+changeReason.CloudServicesOnUserChangereports account availability (signed in/out/restricted).
Common flows
Save:
SetValue(one or more keys) βSynchronizeLoad with defaults:
HasKeyβGetValue(else keep local default)Multi-device: keep
OnSavedDataChangeactive β ondataChangedEvent, loop keys andGetValueReset:
RemoveKey/RemoveAllKeysβSynchronize
Use cases
Start here: use-cases/README.md
Last updated
Was this helpful?