Android Guides | Samples

Android.Content Namespace

Contains classes for accessing and publishing data on a device.

Remarks

Contains classes for accessing and publishing data on a device. It includes three main categories of APIs:

    Classes

    TypeReason
    AbstractThreadedSyncAdapterAn abstract implementation of a SyncAdapter that spawns a thread to invoke a sync operation.
    ActivityFlagsEnumerates values returned by several types and taken as a parameter of several types.
    ActivityNotFoundExceptionThis exception is thrown when a call to Context.StartActivity(Intent) or one of its variants fails because an Activity can not be found to execute the given Intent.
    AsyncQueryHandlerA helper class to help make handling asynchronous ContentResolver queries easier.
    AsyncQueryHandler+WorkerArgs
    AsyncQueryHandler+WorkerHandler
    AsyncTaskLoaderAbstract Loader that provides an AsyncTask`3 to do the work.
    BindEnumerates values returned by several methods of Bind and taken as a parameter of the Context.BindService, ContextWrapper.BindService, and MockContext.BindService members.
    BroadcastReceiverBase class for code that will receive intents sent by sendBroadcast().
    BroadcastReceiver+PendingResultState for a result that is pending for a broadcast receiver.
    BroadcastReceiverAttribute Generates a /manifest/application/receiver element within AndroidManifest.xml.
    ClipboardManagerInterface to the clipboard service, for placing and retrieving text in the global clipboard.
    ClipboardManager+IOnPrimaryClipChangedListenerDefines a listener callback that is invoked when the primary clip on the clipboard changes.
    ClipDataRepresentation of a clipped data on the clipboard.
    ClipData+InterfaceConsts
    ClipData+ItemDescription of a single item in a ClippedData.
    ClipDescriptionMeta-data describing the contents of a ClipData.
    ClipDescription+InterfaceConsts
    ComponentCallbacks2Extended IComponentCallbacks interface with a new callback for finer-grained memory management.
    ComponentCallbacks2Consts
    ComponentNameIdentifier for a specific application component (Activity, Service, BroadcastReceiver, or ContentProvider) that is available.
    ComponentName+InterfaceConsts
    ContentProviderContent providers are one of the primary building blocks of Android applications, providing content to applications.
    ContentProvider+InterfaceConsts
    ContentProvider+IPipeDataWriterInterface to write a stream of data to a pipe.
    ContentProviderAttribute Generates a /manifest/application/provider element within AndroidManifest.xml.
    ContentProviderClientThe public interface object used to interact with a ContentProvider.
    ContentProviderOperationRepresents a single operation to be performed as part of a batch of operations.
    ContentProviderOperation+BuilderUsed to add parameters to a ContentProviderOperation.
    ContentProviderOperation+InterfaceConsts
    ContentProviderResultContains the result of the application of a ContentProviderOperation.
    ContentProviderResult+InterfaceConsts
    ContentQueryMapCaches the contents of a cursor into a Map of String->ContentValues and optionally keeps the cache fresh by registering for updates on the content backing the cursor.
    ContentResolverThis class provides applications access to the content model.
    ContentUrisUtility methods useful for working with Uri objects that use the "content" (content://) scheme.
    ContentValuesThis class is used to store a set of values that the ContentResolver can process.
    ContentValues+InterfaceConsts
    ContextInterface to global information about an application environment.
    ContextWrapperProxying implementation of Context that simply delegates all of its calls to another Context.
    CursorLoaderA loader that queries the ContentResolver and returns a ICursor.
    DatabaseModeEnumerates values returned by the DatabaseMode.Queries, and DatabaseMode.TwoLines members and taken as a parameter of the SearchRecentSuggestionsProvider.SetupSuggestions, and Android.Provider.SearchRecentSuggestions..ctor members.
    DialogButtonTypeEnumerates values returned by several types.
    DialogButtonTypeObsoletedEnumerates values returned by several types.
    DialogClickEventArgs
    DialogInterface
    DialogInterfaceConsts
    DialogKeyEventArgsProvides data for the Dialog.KeyPress event.
    DialogMultiChoiceClickEventArgs
    EntityA representation of a item using ContentValues.
    Entity+NamedContentValues
    ExtraDockStateEnumerates values returned by several methods of ExtraDockState.
    FileCreationModeEnumerates values returned by several types and taken as a parameter of several types.
    FillInFlagsEnumerates values returned by several types and taken as a parameter of the Intent.FillIn member.
    GrantUriPermissionAttribute Generates a /manifest/provider/grant-uri-permission elements within AndroidManifest.xml.
    IComponentCallbacksThe set of callback APIs that are common to all application components (Activity, Service, ContentProvider, and Application).
    IComponentCallbacks2Extended IComponentCallbacks interface with a new callback for finer-grained memory management.
    IDialogInterface
    IDialogInterfaceOnCancelListenerInterface used to allow the creator of a dialog to run some code when the dialog is canceled.
    IDialogInterfaceOnClickListenerInterface used to allow the creator of a dialog to run some code when an item on the dialog is clicked.
    IDialogInterfaceOnDismissListenerInterface used to allow the creator of a dialog to run some code when the dialog is dismissed.
    IDialogInterfaceOnKeyListenerInterface definition for a callback to be invoked when a key event is dispatched to this dialog.
    IDialogInterfaceOnMultiChoiceClickListenerInterface used to allow the creator of a dialog to run some code when an item in a multi-choice dialog is clicked.
    IDialogInterfaceOnShowListenerInterface used to allow the creator of a dialog to run some code when the dialog is shown.
    IntentAn intent is an abstract description of an operation to be performed.
    Intent+FilterComparisonWrapper class holding an Intent and implementing comparisons on it for the purpose of filtering.
    Intent+InterfaceConsts
    Intent+ShortcutIconResourceRepresents a shortcut/live folder icon resource.
    Intent+ShortcutIconResource+InterfaceConsts
    IntentFilterStructured description of Intent values to be matched.
    IntentFilter+AuthorityEntryThis is an entry for a single authority in the Iterator returned by IntentFilter.AuthoritiesIterator.
    IntentFilter+InterfaceConsts
    IntentFilter+MalformedMimeTypeExceptionThis exception is thrown when a given MIME type does not have a valid syntax.
    IntentFilterPriorityEnumerates values returned by several types.
    IntentSenderA description of an Intent and target action to perform with it.
    IntentSender+InterfaceConsts
    IntentSender+IOnFinishedCallback interface for discovering when a send operation has completed.
    IntentSender+SendIntentExceptionException thrown when trying to send through a PendingIntent that has been canceled or is otherwise no longer able to execute the request.
    IntentUriTypeEnumerates values returned by the Intent.UriIntentScheme, IntentUriType.None, and IntentUriType.Scheme members and taken as a parameter of the Intent.ParseUri, and Intent.ToUri members.
    IServiceConnectionInterface for monitoring the state of an application service.
    ISharedPreferencesInterface for accessing and modifying preference data returned by Context.GetSharedPreferences(String,FileCreationMode).
    ISharedPreferencesEditorInterface used for modifying values in a ISharedPreferences object.
    ISharedPreferencesOnSharedPreferenceChangeListenerInterface definition for a callback to be invoked when a shared preference is changed.
    ISyncStatusObserver [Android Documentation]
    LoaderA class that performs asynchronous loading of data.
    Loader+ForceLoadContentObserverAn 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.
    Loader+IOnLoadCanceledListenerInterface that is implemented to discover when a Loader has been canceled before it finished loading its data.
    Loader+IOnLoadCompleteListenerInterface that is implemented to discover when a Loader has finished loading its data.
    Loader+LoadCanceledEventArgs
    Loader+LoadCompleteEventArgs
    MatchResultsEnumerates values returned by several types and taken as a parameter of the PackageManager.AddPreferredActivity, and MockPackageManager.AddPreferredActivity members.
    MutableContextWrapperSpecial version of ContextWrapper that allows the base context to be modified after it is initially set.
    OperationApplicationExceptionThrown when an application of a ContentProviderOperation fails due the specified constraints.
    PackageContextFlagsEnumerates values returned by the PackageContextFlags.IgnoreSecurity, PackageContextFlags.IncludeCode, and PackageContextFlags.Restricted members and taken as a parameter of the Context.CreatePackageContext, ContextWrapper.CreatePackageContext, and MockContext.CreatePackageContext members.
    PeriodicSyncValue type that contains information about a periodic sync.
    PeriodicSync+InterfaceConsts
    ReceiverCallNotAllowedExceptionThis exception is thrown from Context.RegisterReceiver(BroadcastReceiver,IntentFilter) and Context.BindService(Intent,IServiceConnection,IServiceConnection) when these methods are being used from an BroadcastReceiver component.
    RestrictionEntryApplications can expose restrictions for a restricted user on a multiuser device.
    RestrictionEntry+InterfaceConsts
    RestrictionEntryTypeEnumerates values returned by several types and taken as a parameter of the Android.Content.RestrictionEntry..ctor member.
    RestrictionResultsEnumerates values returned by several methods of RestrictionResults.
    RestrictionsManagerProvides a mechanism for apps to query restrictions imposed by an entity that manages the user.
    SearchRecentSuggestionsProviderThis superclass can be used to create a simple search suggestions provider for your application.
    SharedPreferencesOnSharedPreferenceChangeEventArgs
    SyncAdapterTypeValue type that represents a SyncAdapterType.
    SyncAdapterType+InterfaceConsts
    SyncContext [Android Documentation]
    SyncInfoInformation about the sync operation that is currently underway.
    SyncInfo+InterfaceConsts
    SyncObserverTypeEnumerates values returned by several types and taken as a parameter of the ContentResolver.AddStatusChangeListener, and ISyncStatusObserver.OnStatusChanged members.
    SyncRequestConvenience class to construct sync requests.
    SyncRequest+Builder
    SyncRequest+InterfaceConsts
    SyncResultThis class is used to communicate the results of a sync operation to the SyncManager.
    SyncResult+InterfaceConsts
    SyncStatsUsed to record various statistics about the result of a sync operation.
    SyncStats+InterfaceConsts
    TrimMemoryEnumerates values returned by several types and taken as a parameter of several types.
    UriMatcherUtility class to aid in matching URIs in content providers.
    UriPermissionDescription of a single Uri permission grant.
    UriPermission+InterfaceConsts