public class SyncAdapter
extends android.content.AbstractThreadedSyncAdapter
Constructor and Description |
---|
SyncAdapter(android.content.Context context,
boolean autoInitialize)
Set up the sync adapter
|
SyncAdapter(android.content.Context context,
boolean autoInitialize,
boolean allowParallelSyncs)
Set up the sync adapter.
|
Modifier and Type | Method and Description |
---|---|
void |
onPerformSync(android.accounts.Account account,
android.os.Bundle extras,
java.lang.String authority,
android.content.ContentProviderClient provider,
android.content.SyncResult syncResult)
Specify the code you want to run in the sync adapter.
|
public SyncAdapter(android.content.Context context, boolean autoInitialize)
AbstractThreadedSyncAdapter.AbstractThreadedSyncAdapter(Context, boolean)
public SyncAdapter(android.content.Context context, boolean autoInitialize, boolean allowParallelSyncs)
AbstractThreadedSyncAdapter.AbstractThreadedSyncAdapter(Context, boolean, boolean)
public void onPerformSync(android.accounts.Account account, android.os.Bundle extras, java.lang.String authority, android.content.ContentProviderClient provider, android.content.SyncResult syncResult)
onPerformSync
in class android.content.AbstractThreadedSyncAdapter
AbstractThreadedSyncAdapter.onPerformSync(Account,
Bundle, String, ContentProviderClient, SyncResult)