API Reference

com.kinvey.android.network

Class AndroidNetworkManager<T extends GenericJson>

  • com.kinvey.android.network.AndroidNetworkManager<T>


  • 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":

    See Also:
    com.kinvey.android.Client.appData
    • Constructor Summary

      Constructors 
      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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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
    • Constructor Detail

      • AndroidNetworkManager

        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":

        See Also:
        com.kinvey.android.Client.appData
    • Method Detail

      • isOnline

        public 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

        Returns:
        true if the device is connected or connecting