FirebaseOptions.Builder

class FirebaseOptions.Builder


Builder for constructing FirebaseOptions.

Summary

Public constructors

Constructs an empty builder.

Initializes the builder's values from the options object.

Public constructors

Builder

Builder()

Constructs an empty builder.

Builder

Builder(options: FirebaseOptions)

Initializes the builder's values from the options object.

The new builder is not backed by this objects values, that is changes made to the new builder don't change the values of the origin object.

Public functions

build

fun build(): FirebaseOptions

setApiKey

fun setApiKey(apiKey: String): FirebaseOptions.Builder

setApplicationId

fun setApplicationId(applicationId: String): FirebaseOptions.Builder

setDatabaseUrl

fun setDatabaseUrl(databaseUrl: String?): FirebaseOptions.Builder

setGcmSenderId

fun setGcmSenderId(gcmSenderId: String?): FirebaseOptions.Builder

setProjectId

fun setProjectId(projectId: String?): FirebaseOptions.Builder

setStorageBucket

fun setStorageBucket(storageBucket: String?): FirebaseOptions.Builder