Class StitchInitProvider
- java.lang.Object
-
- android.content.ContentProvider
-
- com.mongodb.stitch.android.core.internal.StitchInitProvider
-
- All Implemented Interfaces:
ComponentCallbacks
,ComponentCallbacks2
public final class StitchInitProvider extends ContentProvider
StitchInitProvider's sole purpose is to automatically initialize the SDK with the application this provider is bound to. The manifest will ensure that there is a 1:1 relationship with this provider and the application. This is a total abuse of ContentProvider but it allows for less configuration on the user's part.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class android.content.ContentProvider
ContentProvider.PipeDataWriter<T extends Object>
-
-
Field Summary
-
Fields inherited from interface android.content.ComponentCallbacks2
TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_MODERATE, TRIM_MEMORY_UI_HIDDEN
-
-
Constructor Summary
Constructors Constructor Description StitchInitProvider()
-
Method Summary
Modifier and Type Method Description int
delete(Uri uri, String s, String[] strings)
String
getType(Uri uri)
Uri
insert(Uri uri, ContentValues contentValues)
boolean
onCreate()
Cursor
query(Uri uri, String[] strings, String s, String[] strings1, String s1)
int
update(Uri uri, ContentValues contentValues, String s, String[] strings)
-
Methods inherited from class android.content.ContentProvider
applyBatch, attachInfo, bulkInsert, call, canonicalize, dump, getCallingPackage, getContext, getPathPermissions, getReadPermission, getStreamTypes, getWritePermission, isTemporary, onConfigurationChanged, onLowMemory, onTrimMemory, openAssetFile, openAssetFile, openFile, openFile, openFileHelper, openPipeHelper, openTypedAssetFile, openTypedAssetFile, query, query, refresh, setPathPermissions, setReadPermission, setWritePermission, shutdown, uncanonicalize
-
-
-
-
Method Detail
-
onCreate
public boolean onCreate()
- Specified by:
onCreate
in classContentProvider
-
query
@NonNull public Cursor query(@NonNull Uri uri, @Nullable String[] strings, @Nullable String s, @Nullable String[] strings1, @Nullable String s1)
- Specified by:
query
in classContentProvider
-
getType
@NonNull public String getType(@NonNull Uri uri)
- Specified by:
getType
in classContentProvider
-
insert
@NonNull public Uri insert(@NonNull Uri uri, @Nullable ContentValues contentValues)
- Specified by:
insert
in classContentProvider
-
delete
public int delete(@NonNull Uri uri, @Nullable String s, @Nullable String[] strings)
- Specified by:
delete
in classContentProvider
-
update
public int update(@NonNull Uri uri, @Nullable ContentValues contentValues, @Nullable String s, @Nullable String[] strings)
- Specified by:
update
in classContentProvider
-
-