InitializationProvider

public class InitializationProvider
extends ContentProvider

java.lang.Object
   ↳ android.content.ContentProvider
     ↳ androidx.startup.InitializationProvider


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

Summary

Inherited constants

Public constructors

InitializationProvider()

Public methods

final int delete(Uri uri, String selection, String[] selectionArgs)
final String getType(Uri uri)
final Uri insert(Uri uri, ContentValues values)
final boolean onCreate()
final Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)
final int update(Uri uri, ContentValues values, String selection, String[] selectionArgs)

Inherited methods

Public constructors

InitializationProvider

public InitializationProvider ()

Public methods

delete

public final int delete (Uri uri, 
                String selection, 
                String[] selectionArgs)

Parameters
uri Uri

selection String

selectionArgs String

Returns
int

getType

public final String getType (Uri uri)

Parameters
uri Uri

Returns
String

insert

public final Uri insert (Uri uri, 
                ContentValues values)

Parameters
uri Uri

values ContentValues

Returns
Uri

onCreate

public final boolean onCreate ()

Returns
boolean

query

public final Cursor query (Uri uri, 
                String[] projection, 
                String selection, 
                String[] selectionArgs, 
                String sortOrder)

Parameters
uri Uri

projection String

selection String

selectionArgs String

sortOrder String

Returns
Cursor

update

public final int update (Uri uri, 
                ContentValues values, 
                String selection, 
                String[] selectionArgs)

Parameters
uri Uri

values ContentValues

selection String

selectionArgs String

Returns
int