Package-level declarations

Types

Link copied to clipboard
object Firebase

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

Link copied to clipboard

Exception thrown when a Firebase API is not available on the current platform or configuration.

Link copied to clipboard
actual class FirebaseApp
actual class FirebaseApp
expect class FirebaseApp

The entry point of Firebase SDKs, mirroring com.google.firebase.FirebaseApp from the Firebase Android SDK.

actual class FirebaseApp
actual class FirebaseApp
actual class FirebaseApp
Link copied to clipboard
actual open class FirebaseException : Exception
actual open class FirebaseException
expect open class FirebaseException

Base class for all Firebase exceptions, mirroring com.google.firebase.FirebaseException.

actual open class FirebaseException
actual open class FirebaseException : Exception
actual open class FirebaseException
Link copied to clipboard

Exception thrown when a request to a Firebase service fails due to a network error.

Link copied to clipboard
actual class FirebaseOptions
actual class FirebaseOptions
expect class FirebaseOptions

Configurable Firebase options, mirroring com.google.firebase.FirebaseOptions from the Firebase Android SDK. fromResource takes the Context stand-in: the platform's context on Android and the JVM, a placeholder that is ignored on the other platforms.

actual class FirebaseOptions
actual class FirebaseOptions
actual class FirebaseOptions
Link copied to clipboard

Exception thrown when a request to a Firebase service has been blocked due to having received too many requests.

Link copied to clipboard
actual class Timestamp(seconds: Long, nanoseconds: Int) : Comparable<Timestamp>
expect class Timestamp(seconds: Long, nanoseconds: Int) : Comparable<Timestamp>

A point in time with nanosecond precision, mirroring com.google.firebase.Timestamp from the Firebase Android SDK.

actual class Timestamp(seconds: Long, nanoseconds: Int) : Comparable<Timestamp>
actual class Timestamp(val seconds: Long, val nanoseconds: Int) : Comparable<Timestamp>

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
actual fun <Error class: unknown class>.initialize(context: <Error class: unknown class>): FirebaseApp?

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

actual fun <Error class: unknown class>.initialize(context: <Error class: unknown class>, options: FirebaseOptions): FirebaseApp

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

actual fun <Error class: unknown class>.initialize(context: <Error class: unknown class>, options: FirebaseOptions, name: String): FirebaseApp

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

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 <Error class: unknown class>.initialize(context: <Error class: unknown class>): FirebaseApp?

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

actual fun <Error class: unknown class>.initialize(context: <Error class: unknown class>, options: FirebaseOptions): FirebaseApp

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

actual fun <Error class: unknown class>.initialize(context: <Error class: unknown class>, options: FirebaseOptions, name: String): FirebaseApp

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

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
actual fun <Error class: unknown class>.initialize(context: <Error class: unknown class>): FirebaseApp?

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

actual fun <Error class: unknown class>.initialize(context: <Error class: unknown class>, options: FirebaseOptions): FirebaseApp

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

actual fun <Error class: unknown class>.initialize(context: <Error class: unknown class>, options: FirebaseOptions, name: String): FirebaseApp

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

Link copied to clipboard
fun Timestamp(instant: <Error class: unknown class>): Timestamp

Creates a Timestamp for the given instant, the multiplatform form of the JVM-only Timestamp(Instant) constructor.

Link copied to clipboard
fun Timestamp.toKotlinInstant(): <Error class: unknown class>

This timestamp as a kotlin.time.Instant, the multiplatform form of the JVM-only toInstant() and toDate().