IT. Expert System.

Android Reference

SyncManager


android.content

Class SyncManager



  • public class SyncManager
    extends Object
    • Field Detail

      • mActiveSyncContexts

        protected final ArrayList<android.content.SyncManager.ActiveSyncContext> mActiveSyncContexts
      • mSyncAdapters

        protected android.content.SyncAdaptersCache mSyncAdapters
    • Method Detail

      • updateRunningAccounts

        public void updateRunningAccounts()
      • scheduleSync

        public void scheduleSync(Account requestedAccount,
                        int userId,
                        String requestedAuthority,
                        Bundle extras,
                        long delay,
                        boolean onlyThoseWithUnkownSyncableState)
        Initiate a sync. This can start a sync for all providers (pass null to url, set onlyTicklable to false), only those providers that are marked as ticklable (pass null to url, set onlyTicklable to true), or a specific provider (set url to the content url of the provider).

        If the ContentResolver.SYNC_EXTRAS_UPLOAD boolean in extras is true then initiate a sync that just checks for local changes to send to the server, otherwise initiate a sync that first gets any changes from the server before sending local changes back to the server.

        If a specific provider is being synced (the url is non-null) then the extras can contain SyncAdapter-specific information to control what gets synced (e.g. which specific feed to sync).

        You'll start getting callbacks after this.

        Parameters:
        requestedAccount - the account to sync, may be null to signify all accounts
        userId - the id of the user whose accounts are to be synced. If userId is USER_ALL, then all users' accounts are considered.
        requestedAuthority - the authority to sync, may be null to indicate all authorities
        extras - a Map of SyncAdapter-specific information to control syncs of a specific provider. Can be null. Is ignored if the url is null.
        delay - how many milliseconds in the future to wait before performing this
        onlyThoseWithUnkownSyncableState -
      • scheduleLocalSync

        public void scheduleLocalSync(Account account,
                             int userId,
                             String authority)
      • getSyncAdapterTypes

        public SyncAdapterType[] getSyncAdapterTypes(int userId)
      • cancelActiveSync

        public void cancelActiveSync(Account account,
                            int userId,
                            String authority)
        Cancel the active sync if it matches the authority and account.
        Parameters:
        account - limit the cancelations to syncs with this account, if non-null
        authority - limit the cancelations to syncs with this authority, if non-null
      • scheduleSyncOperation

        public void scheduleSyncOperation(SyncOperation syncOperation)
        Create and schedule a SyncOperation.
        Parameters:
        syncOperation - the SyncOperation to schedule
      • clearScheduledSyncOperations

        public void clearScheduledSyncOperations(Account account,
                                        int userId,
                                        String authority)
        Remove scheduled sync operations.
        Parameters:
        account - limit the removals to operations with this account, if non-null
        authority - limit the removals to operations with this authority, if non-null
      • dumpSyncState

        protected void dumpSyncState(PrintWriter pw)
      • dumpSyncHistory

        protected void dumpSyncHistory(PrintWriter pw)


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 35 / 158782785. Delta: 0.04004 с