| java.lang.Object | |
| ↳ | com.google.android.gms.cloudsave.CloudSaveManager |
Main public API entry point for the CloudSave APIs.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| CloudSaveManager.DeleteResult | Result of a delete request using delete(GoogleApiClient, Query). |
||||||||||
| CloudSaveManager.Options | Options for using the CloudSave API. | ||||||||||
| CloudSaveManager.QueryResult | Result of a query request using query(GoogleApiClient, Query). |
||||||||||
| CloudSaveManager.SaveResult | Result of a save request. | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| API | Token to pass to addApi(Api extends Api.ApiOptions.NotRequiredOptions>) to enable CloudSave features. |
||||||||||
| SCOPE_CLOUD_SAVE | Scope for using the CloudSave Service. | ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Delete an entity from local CloudSave db and asynchronously replicate the delete to the server.
| |||||||||||
Query entity for given workspace & user from local database.
| |||||||||||
Request a sync of local database with remote server.
| |||||||||||
Save a collection of Entities to local CloudSave db and asynchronously replicate the update to
the server.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Token to pass to addApi(Api extends Api.ApiOptions.NotRequiredOptions>) to enable CloudSave features.
Delete an entity from local CloudSave db and asynchronously replicate the delete to the server.
Required API: API
Required Scopes: SCOPE_CLOUD_SAVE
| googleApiClient | The GoogleApiClient to service the call. |
|---|---|
| query | The Query object that specifies which Entity objects are supposed
to be deleted. |
PendingResult to access the data when available.
Query entity for given workspace & user from local database. If the application is reading data for the first time, the app data may not have been synced with remote server yet. If there is network connectivity then CloudSave tries to pull data from server, otherwise an error status is returned.
Required API: API
Required Scopes: SCOPE_CLOUD_SAVE
| googleApiClient | The GoogleApiClient to service the call. |
|---|---|
| query | The Query to fetch Entity objects. |
PendingResult to access the data when available.
Request a sync of local database with remote server. If a sync was successfully completed then the result returns a success status. Otherwise a relevent error status is returned.
Required API: API
Required Scopes: SCOPE_CLOUD_SAVE
| googleApiClient | The GoogleApiClient to service the call. |
|---|
PendingResult to access the data when available.
Save a collection of Entities to local CloudSave db and asynchronously replicate the update to the server. The remote update can take a long time depending on network connectivity and performance related optimizations.
Required API: API
Required Scopes: SCOPE_CLOUD_SAVE
| googleApiClient | The GoogleApiClient to service the call. |
|---|---|
| entities | A Collection of Entitys to be saved. |
PendingResult to access the data when available.