Methods Summary |
---|
public void | addPeriodicSync(android.accounts.Account account, java.lang.String providerName, android.os.Bundle extras, long pollFrequency)Set whether or not the provider is to be synced on a periodic basis.
|
public void | addStatusChangeListener(int mask, android.content.ISyncStatusObserver callback)
|
public void | cancelRequest(android.content.SyncRequest request)Cancel a sync, providing information about the sync to be cancelled.
|
public void | cancelSync(android.accounts.Account account, java.lang.String authority, android.content.ComponentName cname)
|
public void | cancelSyncAsUser(android.accounts.Account account, java.lang.String authority, android.content.ComponentName cname, int userId)
|
public java.util.List | getCurrentSyncs()
|
public java.util.List | getCurrentSyncsAsUser(int userId)
|
public int | getIsSyncable(android.accounts.Account account, java.lang.String providerName)Check if this account/provider is syncable.
|
public int | getIsSyncableAsUser(android.accounts.Account account, java.lang.String providerName, int userId)
|
public boolean | getMasterSyncAutomatically()
|
public boolean | getMasterSyncAutomaticallyAsUser(int userId)
|
public java.util.List | getPeriodicSyncs(android.accounts.Account account, java.lang.String providerName, android.content.ComponentName cname)Get a list of periodic operations for a specified authority, or service.
|
public android.content.SyncAdapterType[] | getSyncAdapterTypes()Returns the types of the SyncAdapters that are registered with the system.
|
public android.content.SyncAdapterType[] | getSyncAdapterTypesAsUser(int userId)
|
public boolean | getSyncAutomatically(android.accounts.Account account, java.lang.String providerName)Check if the provider should be synced when a network tickle is received
|
public boolean | getSyncAutomaticallyAsUser(android.accounts.Account account, java.lang.String providerName, int userId)
|
public android.content.SyncStatusInfo | getSyncStatus(android.accounts.Account account, java.lang.String authority, android.content.ComponentName cname)Returns the status that matches the authority. If there are multiples accounts for
the authority, the one with the latest "lastSuccessTime" status is returned.
|
public android.content.SyncStatusInfo | getSyncStatusAsUser(android.accounts.Account account, java.lang.String authority, android.content.ComponentName cname, int userId)
|
public boolean | isSyncActive(android.accounts.Account account, java.lang.String authority, android.content.ComponentName cname)Returns true if there is currently a operation for the given account/authority or service
actively being processed.
|
public boolean | isSyncPending(android.accounts.Account account, java.lang.String authority, android.content.ComponentName cname)Return true if the pending status is true of any matching authorities.
|
public boolean | isSyncPendingAsUser(android.accounts.Account account, java.lang.String authority, android.content.ComponentName cname, int userId)
|
public void | notifyChange(android.net.Uri uri, android.database.IContentObserver observer, boolean observerWantsSelfNotifications, boolean syncToNetwork, int userHandle)Notify observers of a particular user's view of the provider.
|
public void | registerContentObserver(android.net.Uri uri, boolean notifyForDescendants, android.database.IContentObserver observer, int userHandle)Register a content observer tied to a specific user's view of the provider.
|
public void | removePeriodicSync(android.accounts.Account account, java.lang.String providerName, android.os.Bundle extras)Set whether or not the provider is to be synced on a periodic basis.
|
public void | removeStatusChangeListener(android.content.ISyncStatusObserver callback)
|
public void | requestSync(android.accounts.Account account, java.lang.String authority, android.os.Bundle extras)
|
public void | setIsSyncable(android.accounts.Account account, java.lang.String providerName, int syncable)Set whether this account/provider is syncable.
|
public void | setMasterSyncAutomatically(boolean flag)
|
public void | setMasterSyncAutomaticallyAsUser(boolean flag, int userId)
|
public void | setSyncAutomatically(android.accounts.Account account, java.lang.String providerName, boolean sync)Set whether or not the provider is synced when it receives a network tickle.
|
public void | setSyncAutomaticallyAsUser(android.accounts.Account account, java.lang.String providerName, boolean sync, int userId)
|
public void | sync(android.content.SyncRequest request)Start a sync given a request.
|
public void | syncAsUser(android.content.SyncRequest request, int userId)
|
public void | unregisterContentObserver(android.database.IContentObserver observer)
|