FirebaseOptions

data class FirebaseOptions(val applicationId: String, val apiKey: String, val databaseUrl: String? = null, val gaTrackingId: String? = null, val storageBucket: String? = null, val projectId: String? = null, val gcmSenderId: String? = null, val authDomain: String? = null)(source)

Configurable Firebase options.

Constructors

Link copied to clipboard
constructor(applicationId: String, apiKey: String, databaseUrl: String? = null, gaTrackingId: String? = null, storageBucket: String? = null, projectId: String? = null, gcmSenderId: String? = null, authDomain: String? = null)

Properties

Link copied to clipboard

API key used for authenticating requests from your app, e.g. AIzaSyDdVgKwhZl0sTTTLZ7iTmt1r3N2cJLnaDk, used to identify your app to Google servers.

Link copied to clipboard

The Google App ID that is used to uniquely identify an instance of an app.

Link copied to clipboard
val authDomain: String? = null

The auth domain.

Link copied to clipboard
val databaseUrl: String? = null

The database root URL, e.g. http://abc-xyz-123.firebaseio.com.

Link copied to clipboard
val gaTrackingId: String? = null

The tracking ID for Google Analytics, e.g. UA-12345678-1, used to configure Google Analytics.

Link copied to clipboard
val gcmSenderId: String? = null

The Project Number from the Google Developer's console, for example 012345678901, used to configure Google Cloud Messaging.

Link copied to clipboard
val projectId: String? = null

The Google Cloud project ID, e.g. my-project-1234

Link copied to clipboard
val storageBucket: String? = null

The Google Cloud Storage bucket name, e.g. abc-xyz-123.storage.firebase.com.