Firebase

object Firebase


Single access point to all firebase SDKs from Kotlin.

Acts as a target for extension methods provided by sdks.

Summary

Extension functions

FirebaseApp

Returns a named firebase app instance.

FirebaseApp?

Initializes and returns a FirebaseApp.

FirebaseApp

Initializes and returns a FirebaseApp.

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

Initializes and returns a FirebaseApp.

Extension properties

FirebaseApp

Returns the default firebase app instance.

FirebaseOptions

Returns options of default FirebaseApp

Extension functions

app

fun Firebase.app(name: String): FirebaseApp

Returns a named firebase app instance.

initialize

fun Firebase.initialize(context: Context): FirebaseApp?

Initializes and returns a FirebaseApp.

initialize

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

Initializes and returns a FirebaseApp.

initialize

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

Initializes and returns a FirebaseApp.

Extension properties

app

val Firebase.appFirebaseApp

Returns the default firebase app instance.

options

val Firebase.optionsFirebaseOptions

Returns options of default FirebaseApp