InitializationProvider


class InitializationProvider : ContentProvider


The ContentProvider which discovers Initializers in an application and initializes them before onCreate.

Summary

Public constructors

Public functions

Int
delete(uri: Uri, selection: String?, selectionArgs: Array<String!>?)
String?
getType(uri: Uri)
Uri?
insert(uri: Uri, values: ContentValues?)
Boolean
Cursor?
query(
    uri: Uri,
    projection: Array<String!>?,
    selection: String?,
    selectionArgs: Array<String!>?,
    sortOrder: String?
)
Int
update(
    uri: Uri,
    values: ContentValues?,
    selection: String?,
    selectionArgs: Array<String!>?
)

Inherited functions

From android.content.ContentProvider
Array<ContentProviderResult!>!
applyBatch(
    authority: String!,
    operations: ArrayList<ContentProviderOperation!>!
)
Unit
attachInfo(context: Context!, info: ProviderInfo!)
Int
bulkInsert(uri: Uri!, values: Array<ContentValues!>!)
Bundle!
call(authority: String!, method: String!, arg: String!, extras: Bundle!)
Uri!
ContentProvider.CallingIdentity!
Unit
dump(fd: FileDescriptor!, writer: PrintWriter!, args: Array<String!>!)
AttributionSource!
String!
String!
String!
Context!
Array<PathPermission!>!
String!
Array<String!>!
getStreamTypes(uri: Uri!, mimeTypeFilter: String!)
String!
String!
Boolean
Unit
Unit
Unit
Unit
onTrimMemory(level: Int)
AssetFileDescriptor!
openAssetFile(uri: Uri!, mode: String!)
ParcelFileDescriptor!
openFile(uri: Uri!, mode: String!)
ParcelFileDescriptor!
openFileHelper(uri: Uri!, mode: String!)
ParcelFileDescriptor!
<T> openPipeHelper(
    uri: Uri!,
    mimeType: String!,
    opts: Bundle!,
    args: T!,
    func: ContentProvider.PipeDataWriter<T!>!
)
AssetFileDescriptor!
openTypedAssetFile(uri: Uri!, mimeTypeFilter: String!, opts: Bundle!)
Boolean
refresh(uri: Uri!, extras: Bundle!, cancellationSignal: CancellationSignal!)
Context!
Unit
Unit
Unit
setReadPermission(permission: String!)
Unit
setWritePermission(permission: String!)
Unit
Uri!

Public constructors

InitializationProvider

Added in 1.1.0
InitializationProvider()

Public functions

delete

Added in 1.1.0
fun delete(uri: Uri, selection: String?, selectionArgs: Array<String!>?): Int

getType

Added in 1.1.0
fun getType(uri: Uri): String?

insert

Added in 1.1.0
fun insert(uri: Uri, values: ContentValues?): Uri?

onCreate

Added in 1.1.0
fun onCreate(): Boolean

query

Added in 1.1.0
fun query(
    uri: Uri,
    projection: Array<String!>?,
    selection: String?,
    selectionArgs: Array<String!>?,
    sortOrder: String?
): Cursor?

update

Added in 1.1.0
fun update(
    uri: Uri,
    values: ContentValues?,
    selection: String?,
    selectionArgs: Array<String!>?
): Int