java.lang.Object | |||
↳ | com.kinvey.java.AppData<T> | ||
↳ | com.kinvey.java.LinkedData<T extends com.kinvey.java.LinkedResources.LinkedGenericJson> | ||
↳ | com.kinvey.android.AsyncLinkedData<T extends com.kinvey.java.LinkedResources.LinkedGenericJson> |
Wraps the com.kinvey.java.LinkedData public methods in asynchronous functionality using native Android AsyncTask.
This functionality can be accessed through the linkedData(String, Class)
convenience method.
The first String parameter is the name of the Collection, and the Class is the expected Response Class.
The methods provided in this class take two (optional) callbacks, a KinveyClientCallback
for the AppData request as well as a UploaderProgressListener
or DownloaderProgressListener
for updates on the File status
The functionality of this class is provided by both the com.kinvey.java.AppData
API as well as the com.kinvey.java.File
API.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
get(Query query, KinveyListCallback<T> callback, DownloaderProgressListener download, String[] resolves, int resolve_depth, boolean retain)
Method to get an entity or entities and download ALL associated Linked Resources.
| ||||||||||
void |
get(Query query, KinveyListCallback<T> callback, DownloaderProgressListener download)
Method to get an entity or entities and download ALL associated Linked Resources.
| ||||||||||
void |
get(KinveyListCallback<T> callback, DownloaderProgressListener download)
Method to get an entity or entities and download ALL associated Linked Resources.
| ||||||||||
void |
getEntity(String entityID, KinveyClientCallback<T> callback, DownloaderProgressListener download)
Method to get an entity or entities and download a subset of associated Linked Resources.
| ||||||||||
void |
save(T entity, KinveyClientCallback<T> callback, UploaderProgressListener upload)
Save (create or update) an entity to a collection and upload ALL associated Linked Resources.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Method to get an entity or entities and download ALL associated Linked Resources.
Pass null to entityID to return all entities in a collection. Use the DownloaderProgressListener
to retrieve callback information about the File downloads.
This method will only download Linked Resources for the fields declared in the resources array. These Strings must match the strings used as keys in the entity.
query | query for entities to retrieve |
---|---|
download | - used for progress updates as associated files are downloaded. |
IOException | - if there is an issue executing the client requests |
---|
Method to get an entity or entities and download ALL associated Linked Resources.
Pass null to entityID to return all entities in a collection. Use the DownloaderProgressListener
to retrieve callback information about the File downloads.
This method will only download Linked Resources for the fields declared in the resources array. These Strings must match the strings used as keys in the entity.
query | query for entities to retrieve |
---|---|
download | - used for progress updates as associated files are downloaded. |
IOException | - if there is an issue executing the client requests |
---|
Method to get an entity or entities and download ALL associated Linked Resources.
Pass null to entityID to return all entities in a collection. Use the DownloaderProgressListener
to retrieve callback information about the File downloads.
This method will only download Linked Resources for the fields declared in the resources array. These Strings must match the strings used as keys in the entity.
download | - used for progress updates as associated files are downloaded. |
---|
IOException | - if there is an issue executing the client requests |
---|
Method to get an entity or entities and download a subset of associated Linked Resources.
Pass null to entityID to return all entities in a collection. Use the DownloaderProgressListener
to retrieve callback information about the File downloads.
This method will only download Linked Resources for the fields declared in the resources array. These Strings must match the strings used as keys in the entity.
entityID | entityID to get |
---|---|
download | - used for progress updates as associated files are downloaded. |
IOException | - if there is an issue executing the client requests |
---|
Save (create or update) an entity to a collection and upload ALL associated Linked Resources.
This method will only upload Linked Resources for the fields declared in the resources array. These Strings must match the strings used as keys in the entity.
entity | Entity to Save |
---|---|
upload | - Listener for uploading Linked Resources, can be null. |
IOException | - if there is an issue executing the client requests |
---|