AssetFileProvider

ContentProvider which allows to open asset files inside of application's package.

Supports querying of assets' names and sizes.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun attachInfo(context: Context, info: ProviderInfo)
Link copied to clipboard
open fun bulkInsert(p0: Uri, p1: Array<ContentValues>): Int
Link copied to clipboard
open fun call(p0: String, p1: String?, p2: Bundle?): Bundle?
open fun call(p0: String, p1: String, p2: String?, p3: Bundle?): Bundle?
Link copied to clipboard
open fun canonicalize(p0: Uri): Uri?
Link copied to clipboard
open fun delete(p0: Uri, p1: Bundle?): Int
open override fun delete(uri: Uri, selection: String?, selectionArgs: Array<out String>?): Int
Link copied to clipboard
open fun dump(p0: FileDescriptor, p1: PrintWriter, p2: Array<String>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getStreamTypes(p0: Uri, p1: String): Array<String>?
Link copied to clipboard
open override fun getType(uri: Uri): String?
Link copied to clipboard
open fun getTypeAnonymous(p0: Uri): String?
Link copied to clipboard
Link copied to clipboard
open fun insert(p0: Uri, p1: ContentValues?, p2: Bundle?): Uri?
open override fun insert(uri: Uri, values: ContentValues?): Uri?
Link copied to clipboard
Link copied to clipboard
open override fun onConfigurationChanged(p0: Configuration)
Link copied to clipboard
open override fun onCreate(): Boolean
Link copied to clipboard
open override fun onLowMemory()
Link copied to clipboard
open override fun onTrimMemory(p0: Int)
Link copied to clipboard
open override fun openAssetFile(uri: Uri, mode: String): AssetFileDescriptor?
open override fun openAssetFile(uri: Uri, mode: String, signal: CancellationSignal?): AssetFileDescriptor?
Link copied to clipboard
open override fun openFile(uri: Uri, mode: String): ParcelFileDescriptor?
open override fun openFile(uri: Uri, mode: String, signal: CancellationSignal?): ParcelFileDescriptor?
Link copied to clipboard
Link copied to clipboard
open override fun openTypedAssetFile(uri: Uri, mimeTypeFilter: String, opts: Bundle?): AssetFileDescriptor?
open override fun openTypedAssetFile(uri: Uri, mimeTypeFilter: String, opts: Bundle?, signal: CancellationSignal?): AssetFileDescriptor?
Link copied to clipboard
open override fun query(uri: Uri, projection: Array<out String>?, queryArgs: Bundle?, signal: CancellationSignal?): Cursor
open override fun query(uri: Uri, projection: Array<out String>?, selection: String?, selectionArgs: Array<out String>?, sortOrder: String?): Cursor
open override fun query(uri: Uri, projection: Array<out String>?, selection: String?, selectionArgs: Array<out String>?, sortOrder: String?, signal: CancellationSignal?): Cursor
Link copied to clipboard
open fun refresh(p0: Uri, p1: Bundle?, p2: CancellationSignal?): Boolean
Link copied to clipboard
Link copied to clipboard
open fun shutdown()
Link copied to clipboard
open fun uncanonicalize(p0: Uri): Uri?
Link copied to clipboard
open fun update(p0: Uri, p1: ContentValues?, p2: Bundle?): Int
open override fun update(uri: Uri, values: ContentValues?, selection: String?, selectionArgs: Array<out String>?): Int