added in version 22.0.0
android.support.v4.content
Support android.content classes to assist with development of applications for android API level 4 or later. The main features here areLoader and related classes and
LocalBroadcastManager to
provide a cleaner implementation of broadcasts that don't need to go outside
of an app.
Interfaces
| Loader.OnLoadCanceledListener<D> | Interface that is implemented to discover when a Loader has been canceled before it finished loading its data. |
| Loader.OnLoadCompleteListener<D> | Interface that is implemented to discover when a Loader has finished loading its data. |
Classes
| AsyncTaskLoader<D> |
Static library support version of the framework's AsyncTaskLoader.
|
| ContentResolverCompat |
Helper for accessing features in ContentResolver in a backwards
compatible fashion.
|
| ContextCompat |
Helper for accessing features in Context
introduced after API level 4 in a backwards compatible fashion.
|
| CursorLoader |
Static library support version of the framework's CursorLoader.
|
| FileProvider |
FileProvider is a special subclass of ContentProvider that facilitates secure sharing
of files associated with an app by creating a content:// Uri for a file
instead of a file:/// Uri.
|
| IntentCompat |
Helper for accessing features in Intent
introduced after API level 4 in a backwards compatible fashion.
|
| Loader<D> |
Static library support version of the framework's Loader.
|
| Loader.ForceLoadContentObserver | An implementation of a ContentObserver that takes care of connecting it to the Loader to have the loader re-load its data when the observer is told it has changed. |
| LocalBroadcastManager | Helper to register for and send broadcasts of Intents to local objects within your process. |
| MimeTypeFilter | Provides utility methods for matching MIME type filters used in ContentProvider. |
| ParallelExecutorCompat |
This class was deprecated
in API level 26.0.0-alpha1.
Use AsyncTask directly.
|
| PermissionChecker | This class provides permission check APIs that verify both the permission and the associated app op for this permission if such is defined. |
| SharedPreferencesCompat | |
| SharedPreferencesCompat.EditorCompat | |
| WakefulBroadcastReceiver |
This class was deprecated
in API level 26.0.0-beta1.
As of Android O, background check
restrictions make this class no longer generally useful. (It is generally not safe to
start a service from the receipt of a broadcast, because you don't have any guarantees
that your app is in the foreground at this point and thus allowed to do so.) Instead,
developers should use android.app.job.JobScheduler to schedule a job, and this
does not require that the app hold a wake lock while doing so (the system will take
care of holding a wake lock for the job).
|
Interfaces
Classes