Package-level declarations

Types

Link copied to clipboard
object Firebase

Single access point to all firebase sdks from Kotlin.

Link copied to clipboard

Exception that gets thrown when an operation on Firebase fails.

Link copied to clipboard

The entry point of Firebase SDKs. It holds common configuration and state for Firebase APIs. Most applications don't need to directly interact with FirebaseApp.

Link copied to clipboard

Exception that gets thrown when an operation on Firebase fails.

Link copied to clipboard

Exception that gets thrown when an operation on Firebase fails.

Link copied to clipboard
data class FirebaseOptions(val applicationId: String, val apiKey: String, val databaseUrl: String? = null, val gaTrackingId: String? = null, val storageBucket: String? = null, val projectId: String? = null, val gcmSenderId: String? = null, val authDomain: String? = null)

Configurable Firebase options.

Link copied to clipboard

Exception that gets thrown when an operation on Firebase fails.

Link copied to clipboard
@RequiresOptIn(message = "Not provided by the Firebase Apple SDKs: on Apple platforms this member does nothing, or fails where it must return a value (see its documentation). Opt in with @OptIn(UnsupportedOnApple::class) if that is acceptable.", level = RequiresOptIn.Level.WARNING)
annotation class UnsupportedOnApple

Marks a member of the com.google.firebase layer that the Firebase Apple SDKs do not provide: on Apple platforms it does nothing (or fails, where it must return a value), as its documentation says. Like UnsupportedOnJs, the marker is on the Apple actual only, so the warning appears when code is compiled for an Apple target, in common code included; opt in with @OptIn(UnsupportedOnApple::class) where the Apple behaviour is acceptable.

Link copied to clipboard
@RequiresOptIn(message = "Not provided by the Firebase JS SDK: on JS this member does nothing, or fails where it must return a value (see its documentation). Opt in with @OptIn(UnsupportedOnJs::class) if that is acceptable.", level = RequiresOptIn.Level.WARNING)
annotation class UnsupportedOnJs

Marks a member of the com.google.firebase layer that the Firebase JS SDK does not provide: on JS it does nothing (or fails, where it must return a value), as its documentation says. The marker is on the JS actual only, so the warning appears when code is compiled for a JS target, in common code included; opt in with @OptIn(UnsupportedOnJs::class) where the JS behaviour is acceptable.

Properties

Link copied to clipboard

The underlying Firebase Android SDK app.

Link copied to clipboard

Returns the default firebase app instance.

Link copied to clipboard
val FirebaseApp.ios: FIRApp

The underlying Firebase iOS SDK app.

Link copied to clipboard

The underlying Firebase JS SDK app.

The underlying Firebase JS SDK app.

Link copied to clipboard

Returns options of default FirebaseApp

Functions

Link copied to clipboard

Returns a named firebase app instance.

Link copied to clipboard
actual fun Firebase.apps(context: Any?): List<FirebaseApp>

Returns all firebase app instances.

actual fun Firebase.apps(context: Any?): List<FirebaseApp>

Returns all firebase app instances.

expect fun Firebase.apps(context: Any? = null): List<FirebaseApp>

Returns all firebase app instances.

actual fun Firebase.apps(context: Any?): List<FirebaseApp>

Returns all firebase app instances.

actual fun Firebase.apps(context: Any?): List<FirebaseApp>

Returns all firebase app instances.

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

Initializes and returns a FirebaseApp.

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

Initializes and returns a FirebaseApp.

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

Initializes and returns a FirebaseApp.

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

Initializes and returns a FirebaseApp.

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

Initializes and returns a FirebaseApp.