Android.Content.ContentProvider: Method Members

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

See Also: Inherited members from Java.Lang.Object

Public Methods

ApplyBatch(IList<ContentProviderOperation>) : ContentProviderResult[]
Documentation for this section has not yet been entered.
AttachInfo(Context, Android.Content.PM.ProviderInfo)
After being instantiated, this is called to tell the content provider about itself.
BulkInsert(Android.Net.Uri, ContentValues[]) : int
Override this to handle requests to insert a set of new rows, or the default implementation will iterate over the values and call ContentProvider.Insert(Android.Net.Uri, Android.Content.ContentValues) on each of them.
Call(string, string, Android.OS.Bundle) : Android.OS.Bundle
Call a provider-defined method.
Canonicalize(Android.Net.Uri) : Android.Net.Uri
Implement this to support canonicalization of URIs that refer to your content provider.
abstract
Delete(Android.Net.Uri, string, string[]) : int
Implement this to handle requests to delete one or more rows.
Dump(Java.IO.FileDescriptor, Java.IO.PrintWriter, string[])
Print the Provider's state into the given stream.
DumpAsync(Java.IO.FileDescriptor, Java.IO.PrintWriter, string[]) : System.Threading.Tasks.Task
Documentation for this section has not yet been entered.
GetPathPermissions() : Android.Content.PM.PathPermission[]
Return the path-based permissions required for read and/or write access to this content provider.
GetStreamTypes(Android.Net.Uri, string) : string[]
Called by a client to determine the types of data streams that this content provider supports for the given URI.
abstract
GetType(Android.Net.Uri) : string
Implement this to handle requests for the MIME type of the data at the given URI.
abstract
Insert(Android.Net.Uri, ContentValues) : Android.Net.Uri
Implement this to handle requests to insert a new row.
OnConfigurationChanged(Android.Content.Res.Configuration)
Called by the system when the device configuration changes while your component is running.
abstract
OnCreate() : bool
Implement this to initialize your content provider on startup.
OnLowMemory()
This is called when the overall system is running low on memory, and actively running processes should trim their memory usage.
OnTrimMemory(TrimMemory)
Called when the operating system has determined that it is a good time for a process to trim unneeded memory from its process.
OpenAssetFile(Android.Net.Uri, string) : Android.Content.Res.AssetFileDescriptor
This is like ContentProvider.OpenFile(Android.Net.Uri, System.String), but can be implemented by providers that need to be able to return sub-sections of files, often assets inside of their .apk.
OpenAssetFile(Android.Net.Uri, string, Android.OS.CancellationSignal) : Android.Content.Res.AssetFileDescriptor
This is like ContentProvider.OpenFile(Android.Net.Uri, System.String), but can be implemented by providers that need to be able to return sub-sections of files, often assets inside of their .apk.
OpenFile(Android.Net.Uri, string) : Android.OS.ParcelFileDescriptor
Override this to handle requests to open a file blob.
OpenFile(Android.Net.Uri, string, Android.OS.CancellationSignal) : Android.OS.ParcelFileDescriptor
Override this to handle requests to open a file blob.
OpenPipeHelper(Android.Net.Uri, string, Android.OS.Bundle, Java.Lang.Object, ContentProvider.IPipeDataWriter) : Android.OS.ParcelFileDescriptor
Documentation for this section has not yet been entered.
OpenTypedAssetFile(Android.Net.Uri, string, Android.OS.Bundle) : Android.Content.Res.AssetFileDescriptor
Called by a client to open a read-only stream containing data of a particular MIME type.
OpenTypedAssetFile(Android.Net.Uri, string, Android.OS.Bundle, Android.OS.CancellationSignal) : Android.Content.Res.AssetFileDescriptor
Called by a client to open a read-only stream containing data of a particular MIME type.
abstract
Query(Android.Net.Uri, string[], string, string[], string) : Android.Database.ICursor
Implement this to handle query requests from clients.
Query(Android.Net.Uri, string[], string, string[], string, Android.OS.CancellationSignal) : Android.Database.ICursor
Implement this to handle query requests from clients with support for cancellation.
Shutdown()
Implement this to shut down the ContentProvider instance.
Uncanonicalize(Android.Net.Uri) : Android.Net.Uri
Remove canonicalization from canonical URIs previously returned by ContentProvider.Canonicalize(Android.Net.Uri).
abstract
Update(Android.Net.Uri, ContentValues, string, string[]) : int
Implement this to handle requests to update one or more rows.

Protected Methods

OpenFileHelper(Android.Net.Uri, string) : Android.OS.ParcelFileDescriptor
Convenience for subclasses that wish to implement ContentProvider.OpenFile(Android.Net.Uri, System.String) by looking up a column named "_data" at the given URI.
SetPathPermissions(Android.Content.PM.PathPermission[])
Change the path-based permission required to read and/or write data in the content provider.
SetReadPermission(string)
Documentation for this section has not yet been entered.
SetWritePermission(string)
Documentation for this section has not yet been entered.