InitializationProvider


public class InitializationProvider extends ContentProvider


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

Summary

Public constructors

Public methods

final int
delete(
    @NonNull Uri uri,
    @Nullable String selection,
    @Nullable String[] selectionArgs
)
final @Nullable String
final @Nullable Uri
final boolean
final @Nullable Cursor
query(
    @NonNull Uri uri,
    @Nullable String[] projection,
    @Nullable String selection,
    @Nullable String[] selectionArgs,
    @Nullable String sortOrder
)
final int
update(
    @NonNull Uri uri,
    @Nullable ContentValues values,
    @Nullable String selection,
    @Nullable String[] selectionArgs
)

Inherited Constants

From android.content.ComponentCallbacks2
static final int
static final int
static final int
static final int
static final int
static final int
static final int

Inherited methods

From android.content.ContentProvider
ContentProviderResult[]
applyBatch(
    String authority,
    ArrayList<ContentProviderOperation> operations
)
void
attachInfo(Context context, ProviderInfo info)
int
bulkInsert(Uri uri, ContentValues[] values)
Bundle
call(String authority, String method, String arg, Bundle extras)
Uri
final ContentProvider.CallingIdentity
void
dump(FileDescriptor fd, PrintWriter writer, String[] args)
final AttributionSource
final String
final String
final String
final Context
final PathPermission[]
final String
String[]
getStreamTypes(Uri uri, String mimeTypeFilter)
String
final String
boolean
void
void
void
void
onTrimMemory(int level)
AssetFileDescriptor
openAssetFile(Uri uri, String mode)
ParcelFileDescriptor
openFile(Uri uri, String mode)
final ParcelFileDescriptor
openFileHelper(Uri uri, String mode)
ParcelFileDescriptor
<T> openPipeHelper(
    Uri uri,
    String mimeType,
    Bundle opts,
    T args,
    ContentProvider.PipeDataWriter<T> func
)
AssetFileDescriptor
openTypedAssetFile(Uri uri, String mimeTypeFilter, Bundle opts)
boolean
refresh(Uri uri, Bundle extras, CancellationSignal cancellationSignal)
final Context
final void
final void
setPathPermissions(PathPermission[] permissions)
final void
final void
void
Uri

Public constructors

InitializationProvider

Added in 1.1.0
public InitializationProvider()

Public methods

delete

Added in 1.1.0
public final int delete(
    @NonNull Uri uri,
    @Nullable String selection,
    @Nullable String[] selectionArgs
)

getType

Added in 1.1.0
public final @Nullable String getType(@NonNull Uri uri)

insert

Added in 1.1.0
public final @Nullable Uri insert(@NonNull Uri uri, @Nullable ContentValues values)

onCreate

Added in 1.1.0
public final boolean onCreate()

query

Added in 1.1.0
public final @Nullable Cursor query(
    @NonNull Uri uri,
    @Nullable String[] projection,
    @Nullable String selection,
    @Nullable String[] selectionArgs,
    @Nullable String sortOrder
)

update

Added in 1.1.0
public final int update(
    @NonNull Uri uri,
    @Nullable ContentValues values,
    @Nullable String selection,
    @Nullable String[] selectionArgs
)