Build 1.0_r1(from source)

android.content
Interface ISyncAdapter

All Superinterfaces:
IInterface
All Known Implementing Classes:
ISyncAdapter.Stub, SyncAdapter.Transport

public interface ISyncAdapter
extends IInterface

Interface used to control the sync activity on a SyncAdapter


Nested Class Summary
static class ISyncAdapter.Stub
          Local-side IPC implementation stub class.
 
Method Summary
 void cancelSync()
          Cancel the most recently initiated sync.
 void startSync(ISyncContext syncContext, String account, Bundle extras)
          Initiate a sync for this account.
 
Methods inherited from interface android.os.IInterface
asBinder
 

Method Detail

startSync

void startSync(ISyncContext syncContext,
               String account,
               Bundle extras)
               throws RemoteException
Initiate a sync for this account. SyncAdapter-specific parameters may be specified in extras, which is guaranteed to not be null.

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
Throws:
RemoteException

cancelSync

void cancelSync()
                throws RemoteException
Cancel the most recently initiated sync. Due to race conditions, this may arrive after the ISyncContext.onFinished() for that sync was called.

Throws:
RemoteException

Build 1.0_r1(from source)

Please submit a feedback, bug or feature