6.3.1.4.8. SyncAdapter

public class SyncAdapter extends AbstractThreadedSyncAdapter

6.3.1.4.8.1. Fields

6.3.1.4.8.1.1. EXCEPTION

public static final String EXCEPTION

6.3.1.4.8.1.2. SYNC_CANCELED

public static final String SYNC_CANCELED

6.3.1.4.8.1.3. SYNC_CHANGES

public static final String SYNC_CHANGES

6.3.1.4.8.1.4. SYNC_FINISH

public static final String SYNC_FINISH

6.3.1.4.8.1.5. SYNC_START

public static final String SYNC_START

6.3.1.4.8.1.6. mError

protected String mError

6.3.1.4.8.2. Constructors

6.3.1.4.8.2.1. SyncAdapter

public SyncAdapter(Context context, boolean autoInitialize)

6.3.1.4.8.2.2. SyncAdapter

public SyncAdapter(Context context, boolean autoInitialize, boolean allowParallelSyncs)

6.3.1.4.8.3. Methods

6.3.1.4.8.3.1. isCanceled

public boolean isCanceled()

6.3.1.4.8.3.2. onPerformSync

public void onPerformSync(Account account, Bundle bundle, String authority, ContentProviderClient contentProviderClient, SyncResult syncResult)

Warning! When you stop the sync service by ContentResolver.cancelSync() then onPerformSync stops after end of syncing of current NGWVectorLayer. The data structure of the current NGWVectorLayer will be saved.

Description copied from class: AbstractThreadedSyncAdapter Perform a sync for this account. SyncAdapter-specific parameters may be specified in extras, which is guaranteed to not be null. Invocations of this method are guaranteed to be serialized.

6.3.1.4.8.3.3. setSyncPeriod

public static void setSyncPeriod(IGISApplication application, Bundle extras, long pollFrequency)

6.3.1.4.8.3.4. sync

protected void sync(LayerGroup layerGroup, String authority, SyncResult syncResult)