Firebase. Database. FirebaseDatabase
The entry point for accessing a FirebaseDatabase.
Summary
The entry point for accessing a FirebaseDatabase. You can get an instance by calling DefaultInstance . To access a location in the database and read or write data, use GetReference()
Properties |
|
---|---|
App
|
Returns the Firebase.FirebaseApp instance to which this FirebaseDatabase belongs.
|
DefaultInstance
|
static FirebaseDatabase
Gets the instance of FirebaseDatabase for the default Firebase.App.
|
LogLevel
|
|
RootReference
|
Gets a DatabaseReference for the root location of this FirebaseDatabase.
|
Public static functions |
|
---|---|
GetInstance(FirebaseApp app)
|
Gets an instance of FirebaseDatabase for a specific Firebase.FirebaseApp.
|
GetInstance(String url)
|
Gets an instance of FirebaseDatabase for the specified URL.
|
GetInstance(FirebaseApp app, String url)
|
Gets a FirebaseDatabase instance for the specified URL, using the specified FirebsaeApp.
|
Public functions |
|
---|---|
GetReference(string path)
|
Gets a DatabaseReference for the provided path.
|
GetReferenceFromUrl(Uri url)
|
Gets a DatabaseReference for the provided URL.
|
GetReferenceFromUrl(string url)
|
Gets a DatabaseReference for the provided URL.
|
GoOffline()
|
void
|
GoOnline()
|
void
|
PurgeOutstandingWrites()
|
void
|
SetPersistenceEnabled(bool enabled)
|
void
Sets whether pending write data will persist between application exits.
|
Properties
App
FirebaseApp App
Returns the Firebase.FirebaseApp instance to which this FirebaseDatabase belongs.
Details | |
---|---|
Returns |
The Firebase.FirebaseApp instance to which this FirebaseDatabase belongs.
|
DefaultInstance
static FirebaseDatabase DefaultInstance
Gets the instance of FirebaseDatabase for the default Firebase.App.
A FirebaseDatabase instance.
LogLevel
LogLevel LogLevel
By default, this is set to Info This includes any internal errors ( Error ) and any security debug messages ( Info ) that the client receives.
Set to Debug to turn on the diagnostic logging.
On Android this can only be set before any operations have been performed with the object.
The desired minimum log level
RootReference
DatabaseReference RootReference
Gets a DatabaseReference for the root location of this FirebaseDatabase.
A DatabaseReference instance.