Beamable SDK
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Beamable.Api.CloudSaving.CloudSavingService Class Reference

This class defines the main entry point for the CloudSaving feature. More...

Inheritance diagram for Beamable.Api.CloudSaving.CloudSavingService:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Api.CloudSaving.CloudSavingService:
Collaboration graph
[legend]

Public Member Functions

 CloudSavingService (PlatformService platform, PlatformRequester requester, CoroutineService coroutineService)
 
Promise< UnitInit (int pollingIntervalSecs=10)
 
Promise< UnitReinitializeUserData (int pollingIntervalSecs=10)
 
Promise< ManifestResponseEnsureRemoteManifest ()
 
- Public Member Functions inherited from Beamable.Api.PlatformSubscribable< ManifestResponse, ManifestResponse >
PlatformSubscription< Data > Subscribe (Action< Data > callback)
 Subscribe to the callback to receive fresh data when available. More...
 
PlatformSubscription< Data > Subscribe (string scope, Action< Data > callback)
 Subscribe to the callback to receive fresh data when available. More...
 
Data GetLatest ()
 Manually fetch the available data. More...
 
Data GetLatest (string scope)
 Manually fetch the available data. More...
 
Promise< Data > GetCurrent (string scope="")
 Manually fetch the available data. More...
 
void Notify (Data data)
 Manually notify observing scopes regarding the available data. More...
 
void Notify (string scope, Data data)
 Manually notify observing scopes regarding the available data. More...
 

Public Attributes

Action< ManifestResponseUpdateReceived
 
Action< CloudSavingErrorOnError
 
string LocalCloudDataFullPath => localCloudDataPath.dataPath
 
bool isInitializing = false
 

Protected Member Functions

override string CreateRefreshUrl (string scope=null)
 
override Promise< ManifestResponseExecuteRequest (IBeamableRequester requester, string url)
 
override void OnRefresh (ManifestResponse data)
 
- Protected Member Functions inherited from Beamable.Api.PlatformSubscribable< ManifestResponse, ManifestResponse >
 PlatformSubscribable (IPlatformService platform, IBeamableRequester requester, string service, BeamableGetApiResource< ScopedRsp > getter=null)
 
virtual void Reset ()
 
Promise< UnitRefresh ()
 Manually refresh the available data. More...
 
Promise< UnitRefresh (string scope)
 Manually refresh the available data. More...
 
virtual Promise< ScopedRsp > ExecuteRequest (IBeamableRequester requester, string url)
 
abstract void OnRefresh (ScopedRsp data)
 
void ScheduleRefresh (long seconds, string scope)
 
void Unsubscribe (string scope, PlatformSubscription< Data > subscription)
 

Additional Inherited Members

- Protected Attributes inherited from Beamable.Api.PlatformSubscribable< ManifestResponse, ManifestResponse >
IPlatformService platform
 
IBeamableRequester requester
 
BeamableGetApiResource< ScopedRsp > getter
 
- Properties inherited from Beamable.Api.PlatformSubscribable< ManifestResponse, ManifestResponse >
bool UsesHierarchyScopes [get, protected set]
 

Detailed Description

This class defines the main entry point for the CloudSaving feature.

Related Links

img beamable-logo


The documentation for this class was generated from the following file: