Firebase

Single access point to all Firebase SDKs, mirroring com.google.firebase.Firebase from the Firebase Android SDK.

The com.google.firebase packages in this library mirror the Firebase Android SDK API (including Task return types) so that Android code compiles unchanged on every platform; the dev.gitlive.firebase packages offer the Kotlin-first (suspending) API built on top of them. On Android and the JVM these declarations are only compiled against and never shipped: the real Firebase Android SDK classes are used. This file and the Android Firebase.initialize stubs form the FirebaseKt facade, the SDK's own, so the module's calls to them bind at runtime.

Properties

Link copied to clipboard

Returns the default FirebaseApp instance.

Link copied to clipboard

Functions

Link copied to clipboard

Returns the FirebaseApp instance with the given name.

Link copied to clipboard
actual fun Firebase.initialize(context: Context): FirebaseApp?
actual fun Firebase.initialize(context: Context, options: FirebaseOptions): FirebaseApp
actual fun Firebase.initialize(context: Context, options: FirebaseOptions, name: String): FirebaseApp
expect fun Firebase.initialize(context: Context): FirebaseApp?

Initializes the default FirebaseApp, mirroring Firebase.initialize(Context) from the Firebase Android SDK; the same as FirebaseApp.initializeApp.

expect fun Firebase.initialize(context: Context, options: FirebaseOptions): FirebaseApp

Initializes the default FirebaseApp with options; see initialize.

expect fun Firebase.initialize(context: Context, options: FirebaseOptions, name: String): FirebaseApp

Initializes the FirebaseApp called name with options; see initialize.

actual fun Firebase.initialize(context: Context): FirebaseApp?
actual fun Firebase.initialize(context: Context, options: FirebaseOptions): FirebaseApp
actual fun Firebase.initialize(context: Context, options: FirebaseOptions, name: String): FirebaseApp