Firebase

public static class Firebase


Single access point to all firebase SDKs from Kotlin.

Acts as a target for extension methods provided by sdks.

Summary

Public fields

static @NonNull Firebase

Extension functions

static final @NonNull FirebaseApp

Returns a named firebase app instance.

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

Initializes and returns a FirebaseApp.

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

Initializes and returns a FirebaseApp.

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

Initializes and returns a FirebaseApp.

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)

Returns a named firebase app instance.

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.

FirebaseKt.initialize

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

Initializes and returns a FirebaseApp.

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.