FirebaseOptions

classFirebaseOptions


Configurable Firebase options.

Summary

Nested types

Builder for constructing FirebaseOptions.

Public functions

Boolean
equals(o: Any!)
java-staticFirebaseOptions?

Creates a newFirebaseOptions instance that is populated from string resources.

Int
String!

Public functions

equals

fun equals(o: Any!): Boolean

fromResource

java-static fun fromResource(context: Context): FirebaseOptions?

Creates a newFirebaseOptions instance that is populated from string resources.

Returns
FirebaseOptions?

The populated options or null if applicationId is missing from resources.

hashCode

fun hashCode(): Int

toString

fun toString(): String!

Public properties

apiKey

val apiKeyString!

applicationId

val applicationIdString!

databaseUrl

val databaseUrlString!

gaTrackingId

val gaTrackingIdString!

gcmSenderId

val gcmSenderIdString!

projectId

val projectIdString!

storageBucket

val storageBucketString!

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.