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 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)

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. http://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 ()