public class

OfflineAppDataService

extends IntentService
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.app.Service
         ↳ android.app.IntentService
           ↳ com.kinvey.android.offline.OfflineAppDataService

Class Overview

This IntentService can be used to execute App Data client requests. The current implementation is coupled with an OfflineStore, -- this class is listening for an intent OFFLINE_SYNC that is kicked off by the store when a new client request is queued up. After receiving that intent from the Store, if the device is connected, it will begin sync. There are two other intents-- Wifi Network State Change and Connectivity State Change. Listening for both of these allows the class to determine if sync should only occur when connected to WIFI or if normal cell data networks will suffice. This executor pulls from the store in 'batches', and executes a batch of client requests asynchronously. The size of this batch represents the number of service calls to kick off at the same time, and is configurable. This Service also supports staggering calls, so that there is a delay between kicking off batches.

Summary

Constants
String ACTION_OFFLINE_SYNC
[Expand]
Inherited Constants
From class android.app.Service
From class android.content.Context
From interface android.content.ComponentCallbacks2
Public Constructors
OfflineAppDataService()
Public Methods
boolean isOnline()
void onCreate()
void onDestroy()
int onStartCommand(Intent intent, int flags, int startId)
[Expand]
Inherited Methods
From class android.app.IntentService
From class android.app.Service
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.content.ComponentCallbacks2

Constants

public static final String ACTION_OFFLINE_SYNC

Constant Value: "com.kinvey.android.ACTION_OFFLINE_SYNC"

Public Constructors

public OfflineAppDataService ()

Public Methods

public boolean isOnline ()

public void onCreate ()

public void onDestroy ()

public int onStartCommand (Intent intent, int flags, int startId)