API Reference

com.kinvey.android.async

Class AsyncPullRequest

  • AsyncClientRequest
    • com.kinvey.android.async.AsyncPullRequest


  • public class AsyncPullRequest
    extends AsyncClientRequest

    Class represents internal implementation of Async pull request that is used to create pull

    • Constructor Detail

      • AsyncPullRequest

        public AsyncPullRequest(com.kinvey.java.store.BaseDataStore<?> store,
                                com.kinvey.java.Query query,
                                KinveyPullCallback callback)

        Async pull request constructor

        Parameters:
        query - Query that is used to fetch data from network
        store - Kinvey data store instance to be used to execute network requests
        callback - async callbacks to be invoked when job is done
      • AsyncPullRequest

        public AsyncPullRequest(com.kinvey.java.store.BaseDataStore<?> store,
                                com.kinvey.java.Query query,
                                int pageSize,
                                KinveyPullCallback callback)

        Async pull request constructor

        Parameters:
        query - Query that is used to fetch data from network
        pageSize - Page size for auto-pagination
        store - Kinvey data store instance to be used to execute network requests
        callback - async callbacks to be invoked when job is done
      • AsyncPullRequest

        public AsyncPullRequest(com.kinvey.java.store.BaseDataStore<?> store,
                                com.kinvey.java.Query query,
                                boolean isAutoPagination,
                                KinveyPullCallback callback)

        Async pull request constructor

        Parameters:
        query - Query that is used to fetch data from network
        isAutoPagination - true if auto-pagination is used
        store - Kinvey data store instance to be used to execute network requests
        callback - async callbacks to be invoked when job is done
    • Method Detail

      • executeAsync

        public com.kinvey.java.model.KinveyPullResponse executeAsync()

        This method will be executed Asynchronously.

        Returns:
        a T object.
        Throws:
        IOException - if any.