IT. Expert System.

Android Reference

ContentService


android.content

Class ContentService



  • public final class ContentService
    extends IContentService.Stub
    • Method Detail

      • systemReady

        public void systemReady()
      • registerContentObserver

        public void registerContentObserver(Uri uri,
                                   boolean notifyForDescendants,
                                   IContentObserver observer,
                                   int userHandle)
        Register a content observer tied to a specific user's view of the provider.
        Parameters:
        userHandle - the user whose view of the provider is to be observed. May be the calling user without requiring any permission, otherwise the caller needs to hold the INTERACT_ACROSS_USERS_FULL permission. Pseudousers USER_ALL and USER_CURRENT are properly handled; all other pseudousers are forbidden.
      • registerContentObserver

        public void registerContentObserver(Uri uri,
                                   boolean notifyForDescendants,
                                   IContentObserver observer)
      • unregisterContentObserver

        public void unregisterContentObserver(IContentObserver observer)
      • notifyChange

        public void notifyChange(Uri uri,
                        IContentObserver observer,
                        boolean observerWantsSelfNotifications,
                        boolean syncToNetwork,
                        int userHandle)
        Notify observers of a particular user's view of the provider.
        Parameters:
        userHandle - the user whose view of the provider is to be notified. May be the calling user without requiring any permission, otherwise the caller needs to hold the INTERACT_ACROSS_USERS_FULL permission. Pseudousers USER_ALL and USER_CURRENT are properly interpreted; no other pseudousers are allowed.
      • notifyChange

        public void notifyChange(Uri uri,
                        IContentObserver observer,
                        boolean observerWantsSelfNotifications,
                        boolean syncToNetwork)
      • cancelSync

        public void cancelSync(Account account,
                      String authority)
        Clear all scheduled sync operations that match the uri and cancel the active sync if they match the authority and account, if they are present.
        Parameters:
        account - filter the pending and active syncs to cancel using this account
        authority - filter the pending and active syncs to cancel using this authority
      • getSyncAdapterTypes

        public SyncAdapterType[] getSyncAdapterTypes()
        Get information about the SyncAdapters that are known to the system.
        Returns:
        an array of SyncAdapters that have registered with the system
      • getSyncAutomatically

        public boolean getSyncAutomatically(Account account,
                                   String providerName)
      • setSyncAutomatically

        public void setSyncAutomatically(Account account,
                                String providerName,
                                boolean sync)
      • addPeriodicSync

        public void addPeriodicSync(Account account,
                           String authority,
                           Bundle extras,
                           long pollFrequency)
      • removePeriodicSync

        public void removePeriodicSync(Account account,
                              String authority,
                              Bundle extras)
      • getIsSyncable

        public int getIsSyncable(Account account,
                        String providerName)
      • setIsSyncable

        public void setIsSyncable(Account account,
                         String providerName,
                         int syncable)
      • getMasterSyncAutomatically

        public boolean getMasterSyncAutomatically()
      • setMasterSyncAutomatically

        public void setMasterSyncAutomatically(boolean flag)
      • isSyncActive

        public boolean isSyncActive(Account account,
                           String authority)
      • isSyncPending

        public boolean isSyncPending(Account account,
                            String authority)
      • addStatusChangeListener

        public void addStatusChangeListener(int mask,
                                   ISyncStatusObserver callback)
      • removeStatusChangeListener

        public void removeStatusChangeListener(ISyncStatusObserver callback)


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: 3381 / . Delta: 0.02591 с