public class AndroidNetworkManager<T extends GenericJson>
Wraps the NetworkManager public methods in asynchronous functionality using native Android AsyncTask.
This functionality can be accessed through the com.kinvey.android.Client.appData convenience method. NetworkManager gets and saves entities that extend com.google.api.client.json.GenericJson. A class that extends GenericJson can map class members to KinveyCollection properties using com.google.api.client.util.Key attributes. For example, the following will map a string "city" to a Kinvey collection attributed named "city":
Constructor and Description |
---|
AndroidNetworkManager(java.lang.String collectionName,
java.lang.Class<T> myClass,
com.kinvey.java.AbstractClient<?> client)
Wraps the NetworkManager public methods in asynchronous functionality using native Android AsyncTask.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isOnline()
Method to check if the current runtime environment has an active connection to the internet, this implementation is tightly coupled with the Android Operating System
|
public AndroidNetworkManager(java.lang.String collectionName, java.lang.Class<T> myClass, com.kinvey.java.AbstractClient<?> client)
Wraps the NetworkManager public methods in asynchronous functionality using native Android AsyncTask.
This functionality can be accessed through the com.kinvey.android.Client.appData convenience method. NetworkManager gets and saves entities that extend com.google.api.client.json.GenericJson. A class that extends GenericJson can map class members to KinveyCollection properties using com.google.api.client.util.Key attributes. For example, the following will map a string "city" to a Kinvey collection attributed named "city":