Firebase

public static class Firebase


All fields in this object are deprecated; Use com.google.firebase.Firebase instead.

Single access point to all firebase SDKs from Kotlin. Acts as a target for extension methods provided by sdks.

Deprecation Notice: The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in com.google.firebase.firebase-common-ktx are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the FAQ about this initiative.

Summary

Public fields

static @NonNull Firebase

Extension functions

static final @NonNull FirebaseApp

Accessing this object for Kotlin apps has changed; see the migration guide: https://firebase.google.com/docs/android/kotlin-migration.

static final @NonNull FirebaseApp
static final @NonNull FirebaseOptions
static final FirebaseApp
FirebaseKt.initialize(
    @NonNull Firebase receiver,
    @NonNull Context context
)

This method is deprecated. Migrate to use the KTX API from the main module: https://firebase.google.com/docs/android/kotlin-migration.

static final @NonNull FirebaseApp
FirebaseKt.initialize(
    @NonNull Firebase receiver,
    @NonNull Context context,
    @NonNull FirebaseOptions options
)

This method is deprecated. Migrate to use the KTX API from the main module: https://firebase.google.com/docs/android/kotlin-migration.

static final @NonNull FirebaseApp
FirebaseKt.initialize(
    @NonNull Firebase receiver,
    @NonNull Context context,
    @NonNull FirebaseOptions options,
    @NonNull String name
)

This method is deprecated. Migrate to use the KTX API from the main module: https://firebase.google.com/docs/android/kotlin-migration.

Public fields

INSTANCE

public static @NonNull Firebase INSTANCE

Extension functions

FirebaseKt.app

public static final @NonNull FirebaseApp FirebaseKt.app(@NonNull Firebase receiver, @NonNull String name)

Accessing this object for Kotlin apps has changed; see the migration guide: https://firebase.google.com/docs/android/kotlin-migration.

Returns a named firebase app instance.

Deprecation Notice: The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in com.google.firebase.firebase-common-ktx are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the FAQ about this initiative..

FirebaseKt.getApp

public static final @NonNull FirebaseApp FirebaseKt.getApp(@NonNull Firebase receiver)

FirebaseKt.getOptions

public static final @NonNull FirebaseOptions FirebaseKt.getOptions(@NonNull Firebase receiver)

FirebaseKt.initialize

public static final FirebaseApp FirebaseKt.initialize(
    @NonNull Firebase receiver,
    @NonNull Context context
)

Initializes and returns a FirebaseApp.

Deprecation Notice: The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in com.google.firebase.firebase-common-ktx are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the FAQ about this initiative.

FirebaseKt.initialize

public static final @NonNull FirebaseApp FirebaseKt.initialize(
    @NonNull Firebase receiver,
    @NonNull Context context,
    @NonNull FirebaseOptions options
)

Initializes and returns a FirebaseApp.

Deprecation Notice: The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in com.google.firebase.firebase-common-ktx are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the FAQ about this initiative.

FirebaseKt.initialize

public static final @NonNull FirebaseApp FirebaseKt.initialize(
    @NonNull Firebase receiver,
    @NonNull Context context,
    @NonNull FirebaseOptions options,
    @NonNull String name
)

Initializes and returns a FirebaseApp.

Deprecation Notice: The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in com.google.firebase.firebase-common-ktx are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the FAQ about this initiative.