FileContentProvider

abstract class FileContentProvider

Content provider to get access to local file from webview

Author

"Martin Krischik" «krischik@users.sourceforge.net»

Since

1.0

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun delete(uri: Uri, selection: String, selectionArgs: Array<String>): Int
Implement this to handle requests to delete one or more rows.
Link copied to clipboard
open fun getType(uri: Uri): String
Implement this to handle requests for the MIME type of the data at the given URI.
Link copied to clipboard
open fun insert(uri: Uri, values: ContentValues): Uri
Implement this to handle requests to insert a new row.
Link copied to clipboard
open fun onCreate(): Boolean
Implement this to initialize your content provider on startup.
Link copied to clipboard
open fun openFile(uri: Uri, mode: String): ParcelFileDescriptor
Override this to handle requests to open a file blob.
Link copied to clipboard
open fun query(uri: Uri, projection: Array<String>, selection: String, selectionArgs: Array<String>, sortOrder: String): Cursor
Implement this to handle query requests from clients.
Link copied to clipboard
open fun update(uri: Uri, values: ContentValues, selection: String, selectionArgs: Array<String>): Int
Implement this to handle requests to update one or more rows.