initialize

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

Configures the default app from GoogleService-Info.plist; the context is ignored.


actual fun Firebase.initialize(context: Any?, options: FirebaseOptions): FirebaseApp(source)

Configures the default app with the given options; the context is ignored.


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

Configures the app named name with the given options; the context is ignored.

expect fun Firebase.initialize(context: Any? = null): FirebaseApp?(source)

Initializes the default FirebaseApp, mirroring Firebase.initialize(Context) from the Firebase Android SDK with the Context widened to Any? so that common code can pass the platform context through.

On Android context must be an android.content.Context; Android code that passes a Context keeps binding to the SDK's own Firebase.initialize(Context), this overload is only chosen for an Any? argument. On Apple platforms and JS the context is ignored. Without options the app is configured from google-services.json resources on Android and GoogleService-Info.plist on Apple platforms; JS always needs options and throws.


expect fun Firebase.initialize(context: Any? = null, options: FirebaseOptions): FirebaseApp(source)

Initializes the default FirebaseApp with options; see initialize.


expect fun Firebase.initialize(context: Any? = null, options: FirebaseOptions, name: String): FirebaseApp(source)

Initializes the FirebaseApp called name with options; see initialize.

actual fun Firebase.initialize(context: Any?): FirebaseApp?(source)

Not supported on JS, where the options cannot be read from a default configuration: always throws.


actual fun Firebase.initialize(context: Any?, options: FirebaseOptions): FirebaseApp(source)

Initializes the default app with the given options; the context is ignored.


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

Initializes the app named name with the given options; the context is ignored.

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