Android
android.content
public abstract class

android.content.SyncAdapter

java.lang.Object
android.content.SyncAdapter

Summary

Constants

      Value  
int  LOG_SYNC_DETAILS  Kernel event log tag.  2743  0x00000ab7 

Public Constructors

            SyncAdapter()

Public Methods

abstract          void  cancelSync()
Cancel the most recently initiated sync.
abstract          void  startSync(SyncContext syncContext, String account, Bundle extras)
Initiate a sync for this account.
Methods inherited from class java.lang.Object

Details

Constants

public static final int LOG_SYNC_DETAILS

Kernel event log tag. Also listed in data/etc/event-log-tags.
Constant Value: 2743 (0x00000ab7)

Public Constructors

public SyncAdapter()

Public Methods

public abstract void cancelSync()

Cancel the most recently initiated sync. Due to race conditions, this may arrive after the ISyncContext.onFinished() for that sync was called. IPC invocations of this method and startSync() are guaranteed to be serialized.

public abstract void startSync(SyncContext syncContext, String account, Bundle extras)

Initiate a sync for this account. SyncAdapter-specific parameters may be specified in extras, which is guaranteed to not be null. IPC invocations of this method and cancelSync() are guaranteed to be serialized.

Parameters

syncContext the ISyncContext used to indicate the progress of the sync. When the sync is finished (successfully or not) ISyncContext.onFinished() must be called.
account the account that should be synced
extras SyncAdapter-specific parameters
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56