Class 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 Summary

      • Nested classes/interfaces inherited from class android.content.ContentProvider

        android.content.ContentProvider.CallingIdentity, android.content.ContentProvider.PipeDataWriter<T extends java.lang.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int delete​(android.net.Uri uri, java.lang.String selection, java.lang.String[] selectionArgs)
      Empty implementation; not needed for Firebase
      java.lang.String getType​(android.net.Uri uri)
      Empty implementation; not needed for Firebase
      android.net.Uri insert​(android.net.Uri uri, android.content.ContentValues values)
      Empty implementation; not needed for Firebase
      boolean onCreate()
      Lifecycle method
      android.database.Cursor query​(android.net.Uri uri, java.lang.String[] projection, java.lang.String selection, java.lang.String[] selectionArgs, java.lang.String sortOrder)
      Empty implementation; not needed for Firebase
      int update​(android.net.Uri uri, android.content.ContentValues values, java.lang.String selection, java.lang.String[] selectionArgs)
      Empty implementation; not needed for Firebase
      • Methods inherited from class android.content.ContentProvider

        applyBatch, 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UnbluFirebaseProvider

        public UnbluFirebaseProvider()
    • Method Detail

      • onCreate

        public boolean onCreate()
        Lifecycle method
        Specified by:
        onCreate in 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
                                             java.lang.String[] projection,
                                             @Nullable
                                             java.lang.String selection,
                                             @Nullable
                                             java.lang.String[] selectionArgs,
                                             @Nullable
                                             java.lang.String sortOrder)
        Empty implementation; not needed for Firebase
        Specified by:
        query in class android.content.ContentProvider
        Parameters:
        uri -
        projection -
        selection -
        selectionArgs -
        sortOrder -
        Returns:
      • getType

        @Nullable
        public java.lang.String getType​(@NonNull
                                        android.net.Uri uri)
        Empty implementation; not needed for Firebase
        Specified by:
        getType in 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:
        insert in class android.content.ContentProvider
        Parameters:
        uri -
        values -
        Returns:
      • delete

        public int delete​(@NonNull
                          android.net.Uri uri,
                          @Nullable
                          java.lang.String selection,
                          @Nullable
                          java.lang.String[] selectionArgs)
        Empty implementation; not needed for Firebase
        Specified by:
        delete in class android.content.ContentProvider
        Parameters:
        uri -
        selection -
        selectionArgs -
        Returns:
      • update

        public int update​(@NonNull
                          android.net.Uri uri,
                          @Nullable
                          android.content.ContentValues values,
                          @Nullable
                          java.lang.String selection,
                          @Nullable
                          java.lang.String[] selectionArgs)
        Empty implementation; not needed for Firebase
        Specified by:
        update in class android.content.ContentProvider
        Parameters:
        uri -
        values -
        selection -
        selectionArgs -
        Returns: