java.lang.Object | |
↳ | com.kinvey.android.offline.SqlLiteOfflineStore<T> |
This class is an implementation of an OfflineStore, which provides methods to execute requests locally.
This class delegates requests to an appropriateOfflineTable
, which is associated with the current collection.
It also enqueues requests in that same OfflineTable
, and can start an Android Service to begin background sync.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SqlLiteOfflineStore(Context context) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void | clearStorage() | ||||||||||
KinveyDeleteResponse |
executeDelete(AbstractClient client, AppData<T> appData, AbstractKinveyOfflineClientRequest request)
Execute a delete against this offline store
| ||||||||||
T |
executeGet(AbstractClient client, AppData<T> appData, AbstractKinveyOfflineClientRequest request)
Execute a get request against this offline store
| ||||||||||
T |
executeSave(AbstractClient client, AppData<T> appData, AbstractKinveyOfflineClientRequest request)
Execute a save against this offline store
| ||||||||||
void | insertEntity(AbstractClient client, AppData<T> appData, T entity) | ||||||||||
void | kickOffSync() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Execute a delete against this offline store
client | - an instance of a client |
---|---|
appData | - an instance of AppData |
request | - an Offline Client Request to be executed (must be a DELETE) |
Execute a get request against this offline store
client | - an instance of a client |
---|---|
appData | - an instance of AppData |
request | - an Offline Client Request to be executed (must be a GET) |
Execute a save against this offline store
client | - an instance of a client |
---|---|
appData | - an instance of AppData |
request | - an Offline Client Request to be executed (must be a PUT or POST) |