API Reference

com.kinvey.android.network

Class AsyncLinkedNetworkManager<T extends LinkedGenericJson>

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


  • public class AsyncLinkedNetworkManager<T extends LinkedGenericJson>

    Wraps the LinkedNetworkManager public methods in asynchronous functionality using native Android AsyncTask.

    This functionality can be accessed through the com.kinvey.android.Client#linkedData(String, Class, StoreType)} 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 NetworkManager request as well as a UploaderProgressListener or DownloaderProgressListener for updates on the NetworkFileManager status

    The functionality of this class is provided by both the com.kinvey.java.network.NetworkManager API as well as the com.kinvey.java.network.NetworkFileManager API.

    • Constructor Summary

      Constructors 
      Constructor and Description
      AsyncLinkedNetworkManager()
      Constructor to instantiate the NetworkManager class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void get()
      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 NetworkFileManager 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.
      void get()
      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 NetworkFileManager 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.
      void get()
      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 NetworkFileManager 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.
      void getEntity()
      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 NetworkFileManager 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.
      void save()
      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.
    • Constructor Detail

      • AsyncLinkedNetworkManager

        public AsyncLinkedNetworkManager()

        Constructor to instantiate the NetworkManager class.

    • Method Detail

      • getEntity

        public void getEntity()

        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 NetworkFileManager 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.

        Throws:
        IOException - - if there is an issue executing the client requests
      • get

        public void get()

        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 NetworkFileManager 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.

        Throws:
        IOException - - if there is an issue executing the client requests
      • get

        public void get()

        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 NetworkFileManager 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.

        Throws:
        IOException - - if there is an issue executing the client requests
      • get

        public void get()

        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 NetworkFileManager 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.

        Throws:
        IOException - - if there is an issue executing the client requests
      • save

        public void save()

        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.

        Throws:
        IOException - - if there is an issue executing the client requests