FileDocCategorySizeDatePackage
ISyncAdapter.javaAPI DocAndroid 5.1 API7147Sat Mar 14 05:48:00 GMT 2015android.content

ISyncAdapter

public interface ISyncAdapter implements android.os.IInterface
Interface used to control the sync activity on a SyncAdapter
hide

Fields Summary
Constructors Summary
Methods Summary
public voidcancelSync(android.content.ISyncContext syncContext)
Cancel the most recently initiated sync. Due to race conditions, this may arrive after the ISyncContext.onFinished() for that sync was called.

param
syncContext the ISyncContext that was passed to {@link #startSync}

public voidinitialize(android.accounts.Account account, java.lang.String authority)
Initialize the SyncAdapter for this account and authority.

param
account the account that should be synced
param
authority the authority that should be synced

public voidstartSync(android.content.ISyncContext syncContext, java.lang.String authority, android.accounts.Account account, android.os.Bundle extras)
Initiate a sync for this account. SyncAdapter-specific parameters may be specified in extras, which is guaranteed to not be null.

param
syncContext the ISyncContext used to indicate the progress of the sync. When the sync is finished (successfully or not) ISyncContext.onFinished() must be called.
param
authority the authority that should be synced
param
account the account that should be synced
param
extras SyncAdapter-specific parameters