public class
FirebaseApp
extends Object
The entry point of Firebase SDKs. It holds common configuration and state for Firebase APIs. Most applications don't need to directly interact with FirebaseApp.
Firebase APIs use the default FirebaseApp by default, unless a different one is explicitly passed to the API via FirebaseFoo.getInstance(firebaseApp).
initializeApp(FirebaseOptions)
initializes the default app instance. This
method should be invoked at startup.
Constant Summary
String | DEFAULT_APP_NAME |
Public Method Summary
void |
delete()
Deletes the
FirebaseApp and all its data. |
boolean |
equals(Object o)
|
static List<FirebaseApp> |
getApps()
Returns a list of all FirebaseApps.
|
static FirebaseApp |
getInstance(String name)
Returns the instance identified by the unique name, or throws if it does not exist.
|
static FirebaseApp |
getInstance()
Returns the default (first initialized) instance of the
FirebaseApp . |
String |
getName()
Returns the unique name of this app.
|
FirebaseOptions |
getOptions()
Returns the specified
FirebaseOptions . |
int |
hashCode()
|
static FirebaseApp |
initializeApp(String name)
Initializes a named
FirebaseApp instance using Google Application Default Credentials. |
static FirebaseApp |
initializeApp(FirebaseOptions options, String name)
Initializes a named
FirebaseApp instance using the given options. |
static FirebaseApp |
initializeApp()
Initializes the default
FirebaseApp instance using Google Application Default
Credentials. |
static FirebaseApp |
initializeApp(FirebaseOptions options)
Initializes the default
FirebaseApp instance using the given options. |
String |
toString()
|
Inherited Method Summary
Constants
public static final String DEFAULT_APP_NAME
Constant Value:
"[DEFAULT]"
Public Methods
public void delete ()
Deletes the FirebaseApp
and all its data. All calls to this FirebaseApp
instance will throw once it has been called.
A no-op if delete was called before.