Class UnbluFirebaseProvider
java.lang.Object
android.content.ContentProvider
com.unblu.sdk.module.firebase_notification.UnbluFirebaseProvider
- All Implemented Interfaces:
- android.content.ComponentCallbacks,- android.content.ComponentCallbacks2
public class UnbluFirebaseProvider
extends android.content.ContentProvider
Custom contentProvider whose purpose is to initialize the contentProvider when the apps starts so as to provide the FCM token to the Collaboration Server.
- 
Nested Class SummaryNested classes/interfaces inherited from class android.content.ContentProviderandroid.content.ContentProvider.CallingIdentity, android.content.ContentProvider.PipeDataWriter<T extends Object>
- 
Field SummaryFields inherited from interface android.content.ComponentCallbacks2TRIM_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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintEmpty implementation; not needed for FirebasegetType(android.net.Uri uri) Empty implementation; not needed for Firebaseandroid.net.Uriinsert(android.net.Uri uri, android.content.ContentValues values) Empty implementation; not needed for FirebasebooleanonCreate()Lifecycle methodandroid.database.Cursorquery(android.net.Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) Empty implementation; not needed for Firebaseintupdate(android.net.Uri uri, android.content.ContentValues values, String selection, String[] selectionArgs) Empty implementation; not needed for FirebaseMethods inherited from class android.content.ContentProviderapplyBatch, applyBatch, attachInfo, bulkInsert, call, call, canonicalize, clearCallingIdentity, delete, dump, getCallingAttributionSource, getCallingAttributionTag, getCallingPackage, getCallingPackageUnchecked, getContext, getPathPermissions, getReadPermission, getStreamTypes, getTypeAnonymous, getWritePermission, insert, isTemporary, onCallingPackageChanged, onConfigurationChanged, onLowMemory, onTrimMemory, openAssetFile, openAssetFile, openFile, openFile, openFileHelper, openPipeHelper, openTypedAssetFile, openTypedAssetFile, query, query, refresh, requireContext, restoreCallingIdentity, setPathPermissions, setReadPermission, setWritePermission, shutdown, uncanonicalize, update
- 
Constructor Details- 
UnbluFirebaseProviderpublic UnbluFirebaseProvider()
 
- 
- 
Method Details- 
onCreatepublic boolean onCreate()Lifecycle method- Specified by:
- onCreatein class- android.content.ContentProvider
- Returns:
- true if fetching the FCM registration token was successfully,- false otherwise.
 
- 
query@Nullable public android.database.Cursor query(@NonNull android.net.Uri uri, @Nullable String[] projection, @Nullable String selection, @Nullable String[] selectionArgs, @Nullable String sortOrder) Empty implementation; not needed for Firebase- Specified by:
- queryin class- android.content.ContentProvider
- Parameters:
- uri-
- projection-
- selection-
- selectionArgs-
- sortOrder-
- Returns:
 
- 
getTypeEmpty implementation; not needed for Firebase- Specified by:
- getTypein class- android.content.ContentProvider
- Parameters:
- uri-
- Returns:
 
- 
insert@Nullable public android.net.Uri insert(@NonNull android.net.Uri uri, @Nullable android.content.ContentValues values) Empty implementation; not needed for Firebase- Specified by:
- insertin class- android.content.ContentProvider
- Parameters:
- uri-
- values-
- Returns:
 
- 
deletepublic int delete(@NonNull android.net.Uri uri, @Nullable String selection, @Nullable String[] selectionArgs) Empty implementation; not needed for Firebase- Specified by:
- deletein class- android.content.ContentProvider
- Parameters:
- uri-
- selection-
- selectionArgs-
- Returns:
 
- 
updatepublic int update(@NonNull android.net.Uri uri, @Nullable android.content.ContentValues values, @Nullable String selection, @Nullable String[] selectionArgs) Empty implementation; not needed for Firebase- Specified by:
- updatein class- android.content.ContentProvider
- Parameters:
- uri-
- values-
- selection-
- selectionArgs-
- Returns:
 
 
-