Android Guides | Samples

Android.Content.ContentResolver: Method Members

The methods of Android.Content.ContentResolver are listed below. For a list of all members, see the ContentResolver list.

See Also: Object

Public Methods

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