Android.Content.ContentResolver Members

The members of Android.Content.ContentResolver are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
AnyCursorItemTypestring. This is the Android platform's generic MIME type to match any MIME type of the form "ContentResolver.CursorItemBaseType/SUB_TYPE".
const
CursorDirBaseTypestring. This is the Android platform's base MIME type for a content: URI containing a Cursor of zero or more items.
const
CursorItemBaseTypestring. This is the Android platform's base MIME type for a content: URI containing a Cursor of a single item.
const
ExtraSizestring. An extra Android.Graphics.Point describing the optimal size for a requested image resource, in pixels.
const
SchemeAndroidResourcestring.
const
SchemeContentstring.
const
SchemeFilestring.
const
SyncExtrasAccountstring.
const
SyncExtrasDiscardLocalDeletionsstring. Indicates that the sync adapter should not proceed with the delete operations, if it determines that there are too many.
const
SyncExtrasDoNotRetrystring. If this extra is set to true then the request will not be retried if it fails.
const
SyncExtrasExpeditedstring. If this extra is set to true, the sync request will be scheduled at the front of the sync request queue and without any delay
const
SyncExtrasForcestring.
const
SyncExtrasIgnoreBackoffstring. If this extra is set to true then any backoffs for the initial attempt (e.g. due to retries) are ignored by the sync scheduler.
const
SyncExtrasIgnoreSettingsstring. If this extra is set to true then the sync settings (like getSyncAutomatically()) are ignored by the sync scheduler.
const
SyncExtrasInitializestring. Set by the SyncManager to request that the SyncAdapter initialize itself for the given account/authority pair.
const
SyncExtrasManualstring. Setting this extra is the equivalent of setting both ContentResolver.SyncExtrasIgnoreSettings and ContentResolver.SyncExtrasIgnoreBackoff
const
SyncExtrasOverrideTooManyDeletionsstring. Indicates that the sync adapter should proceed with the delete operations, even if it determines that there are too many.
const
SyncExtrasUploadstring. Indicates that this sync is intended to only upload local changes to the server.
const
SyncObserverTypeActiveSyncObserverType (4).
const
SyncObserverTypePendingSyncObserverType (2).
const
SyncObserverTypeSettingsSyncObserverType (1).

Public Properties

[read-only]
static
CurrentSyncSyncInfo. If a sync is active returns the information about it, otherwise returns null.
[read-only]
static
CurrentSyncsIList<SyncInfo>. Returns a list with information about all the active syncs.
static
MasterSyncAutomaticallybool. Gets the master auto-sync setting that applies to all the providers and accounts.
[read-only]
OutgoingPersistedUriPermissionsIList<UriPermission>. Return list of all persisted URI permission grants that are hosted by the calling app.
[read-only]
PersistedUriPermissionsIList<UriPermission>. Return list of all URI permission grants that have been persisted by the calling app.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

AcquireContentProviderClient(Android.Net.Uri) : ContentProviderClient
Returns a Android.Content.ContentProviderClient that is associated with the Android.Content.ContentProvider that services the content at uri, starting the provider if necessary.
AcquireContentProviderClient(string) : ContentProviderClient
Returns a Android.Content.ContentProviderClient that is associated with the Android.Content.ContentProvider with the authority of name, starting the provider if necessary.
AcquireUnstableContentProviderClient(Android.Net.Uri) : ContentProviderClient
Like ContentResolver.AcquireContentProviderClient(Android.Net.Uri), but for use when you do not trust the stability of the target content provider.
AcquireUnstableContentProviderClient(string) : ContentProviderClient
Like ContentResolver.AcquireContentProviderClient(string), but for use when you do not trust the stability of the target content provider.
static
AddPeriodicSync(Android.Accounts.Account, string, Android.OS.Bundle, long)
Specifies that a sync should be requested with the specified the account, authority, and extras at the given frequency.
static
AddStatusChangeListener(SyncObserverType, ISyncStatusObserver) : Java.Lang.Object
Request notifications when the different aspects of the SyncManager change.
ApplyBatch(string, IList<ContentProviderOperation>) : ContentProviderResult[]
Documentation for this section has not yet been entered.
BulkInsert(Android.Net.Uri, ContentValues[]) : int
Inserts multiple rows into a table at the given URL.
Call(Android.Net.Uri, string, string, Android.OS.Bundle) : Android.OS.Bundle
Call a provider-defined method.
static
CancelSync(SyncRequest)
Remove the specified sync.
CancelSync(Android.Net.Uri)
Cancel any active or pending syncs that match the Uri.
static
CancelSync(Android.Accounts.Account, string)
Cancel any active or pending syncs that match account and authority.
Canonicalize(Android.Net.Uri) : Android.Net.Uri
Transform the given url to a canonical representation of its referenced resource, which can be used across devices, persisted, backed up and restored, etc.
Delete(Android.Net.Uri, string, string[]) : int
Deletes row(s) specified by a content URI.
static
GetIsSyncable(Android.Accounts.Account, string) : int
Check if this account/provider is syncable.
static
GetPeriodicSyncs(Android.Accounts.Account, string) : IList<PeriodicSync>
Get the list of information about the periodic syncs for the given account and authority.
GetStreamTypes(Android.Net.Uri, string) : string[]
Query for the possible MIME types for the representations the given content URL can be returned when opened as as stream with ContentResolver.OpenTypedAssetFileDescriptor(Android.Net.Uri, System.String, System.String).
static
GetSyncAdapterTypes() : SyncAdapterType[]
Get information about the SyncAdapters that are known to the system.
static
GetSyncAutomatically(Android.Accounts.Account, string) : bool
Check if the provider should be synced when a network tickle is received
GetType(Android.Net.Uri) : string
Return the MIME type of the given content URL.
Insert(Android.Net.Uri, ContentValues) : Android.Net.Uri
Inserts a row into a table at the given URL.
static
IsSyncActive(Android.Accounts.Account, string) : bool
Returns true if there is currently a sync operation for the given account or authority actively being processed.
static
IsSyncPending(Android.Accounts.Account, string) : bool
Return true if the pending status is true of any matching authorities.
NotifyChange(Android.Net.Uri, Android.Database.ContentObserver)
Notify registered observers that a row was updated and attempt to sync changes to the network.
NotifyChange(Android.Net.Uri, Android.Database.ContentObserver, bool)
Notify registered observers that a row was updated.
OpenAssetFileDescriptor(Android.Net.Uri, string) : Android.Content.Res.AssetFileDescriptor
Open a raw file descriptor to access data under a URI.
OpenAssetFileDescriptor(Android.Net.Uri, string, Android.OS.CancellationSignal) : Android.Content.Res.AssetFileDescriptor
Open a raw file descriptor to access data under a URI.
OpenFileDescriptor(Android.Net.Uri, string) : Android.OS.ParcelFileDescriptor
Open a raw file descriptor to access data under a URI.
OpenFileDescriptor(Android.Net.Uri, string, Android.OS.CancellationSignal) : Android.OS.ParcelFileDescriptor
Open a raw file descriptor to access data under a URI.
OpenInputStream(Android.Net.Uri) : System.IO.Stream
Open a stream on to the content associated with a content URI.
OpenOutputStream(Android.Net.Uri) : System.IO.Stream
Synonym for ContentResolver.OpenOutputStream(Android.Net.Uri, System.String).
OpenOutputStream(Android.Net.Uri, string) : System.IO.Stream
Open a stream on to the content associated with a content URI.
OpenTypedAssetFileDescriptor(Android.Net.Uri, string, Android.OS.Bundle) : Android.Content.Res.AssetFileDescriptor
Open a raw file descriptor to access (potentially type transformed) data from a "content:" URI.
OpenTypedAssetFileDescriptor(Android.Net.Uri, string, Android.OS.Bundle, Android.OS.CancellationSignal) : Android.Content.Res.AssetFileDescriptor
Open a raw file descriptor to access (potentially type transformed) data from a "content:" URI.
Query(Android.Net.Uri, string[], string, string[], string) : Android.Database.ICursor
Query the given URI, returning a Android.Database.ICursor over the result set.
Query(Android.Net.Uri, string[], string, string[], string, Android.OS.CancellationSignal) : Android.Database.ICursor
Query the given URI, returning a Android.Database.ICursor over the result set with optional support for cancellation.
RegisterContentObserver(Android.Net.Uri, bool, Android.Database.ContentObserver)
Register an observer class that gets callbacks when data identified by a given content URI changes.
ReleasePersistableUriPermission(Android.Net.Uri, ActivityFlags)
Relinquish a persisted URI permission grant.
static
RemovePeriodicSync(Android.Accounts.Account, string, Android.OS.Bundle)
Remove a periodic sync.
static
RemoveStatusChangeListener(Java.Lang.Object)
Remove a previously registered status change listener.
static
RequestSync(SyncRequest)
Register a sync with the SyncManager.
static
RequestSync(Android.Accounts.Account, string, Android.OS.Bundle)
Start an asynchronous sync operation.
static
SetIsSyncable(Android.Accounts.Account, string, int)
Set whether this account/provider is syncable.
static
SetSyncAutomatically(Android.Accounts.Account, string, bool)
Set whether or not the provider is synced when it receives a network tickle.
StartSync(Android.Net.Uri, Android.OS.Bundle)
Start an asynchronous sync operation.
TakePersistableUriPermission(Android.Net.Uri, ActivityFlags)
Take a persistable URI permission grant that has been offered.
Uncanonicalize(Android.Net.Uri) : Android.Net.Uri
Given a canonical Uri previously generated by ContentResolver.Canonicalize(Android.Net.Uri), convert it to its local non-canonical form.
UnregisterContentObserver(Android.Database.ContentObserver)
Unregisters a change observer.
Update(Android.Net.Uri, ContentValues, string, string[]) : int
Update row(s) in a content URI.
static
ValidateSyncExtrasBundle(Android.OS.Bundle)
Check that only values of the following types are in the Bundle:
  • Integer
  • Long
  • Boolean
  • Float
  • Double
  • String
  • Account
  • null