FirebaseOptions

public final class FirebaseOptions extends Object

Configurable Firebase options.

Nested Class Summary

class FirebaseOptions.Builder Builder for constructing FirebaseOptions. 

Public Method Summary

boolean
static FirebaseOptions
fromResource(Context context)
Creates a new FirebaseOptions instance that is populated from string resouces.
String
getApiKey()
API key used for authenticating requests from your app, e.g.
String
getApplicationId()
The Google App ID that is used to uniquely identify an instance of an app.
String
getDatabaseUrl()
The database root URL, e.g.
String
getGcmSenderId()
The Project Number from the Google Developer's console, for example 012345678901, used to configure Google Cloud Messaging.
String
getStorageBucket()
The Google Cloud Storage bucket name, e.g.
int
String

Inherited Method Summary

Public Methods

public boolean equals (Object o)

public static FirebaseOptions fromResource (Context context)

Creates a new FirebaseOptions instance that is populated from string resouces.

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

public String getApiKey ()

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

public String getApplicationId ()

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

public String getDatabaseUrl ()

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

public String getGcmSenderId ()

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

public String getStorageBucket ()

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

public int hashCode ()

public String toString ()

Send feedback about...

Need help? Visit our support page.