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 |
getProjectId()
The Google Cloud project ID, e.g.
|
String |
getStorageBucket()
The Google Cloud Storage bucket name, e.g.
|
int |
hashCode()
|
String |
toString()
|
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 getProjectId ()
The Google Cloud project ID, e.g. my-project-1234
public String getStorageBucket ()
The Google Cloud Storage bucket name, e.g. abc-xyz-123.storage.firebase.com.