android.content
public
abstract
class
android.content.SyncAdapter
Known Direct Subclasses
Summary
Constants
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
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 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
|