public final class

FirebaseOptions

extends Object
java.lang.Object
   ↳ com.google.firebase.FirebaseOptions

Class Overview

Configurable Firebase options.

Summary

Nested Classes
class FirebaseOptions.Builder Builder for constructing FirebaseOptions. 
Public Methods
boolean equals(Object o)
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()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public boolean equals (Object o)

Parameters
o Object
Returns
boolean

public static FirebaseOptions fromResource (Context context)

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

Parameters
context Context
Returns
FirebaseOptions 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.

Returns
String

public String getApplicationId ()

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

Returns
String

public String getDatabaseUrl ()

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

Returns
String

public String getGcmSenderId ()

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

Returns
String

public String getProjectId ()

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

Returns
String

public String getStorageBucket ()

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

Returns
String

public int hashCode ()

Returns
int

public String toString ()

Returns
String