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.

Important: In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. 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.

Important In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. 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.

Important: In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. 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.

Important: In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. 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.

Important: In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. For details, see the FAQ about this initiative.