Firebase.AppOptions

Options that control the creation of a Firebase App.

Summary

See also: FirebaseApp

Inheritance

Inherits from: SystemIDisposable

Constructors and Destructors

AppOptions()
Create AppOptions.

Properties

ApiKey
string
Gets or sets the API key used to authenticate requests from your app.
AppId
string
Gets or sets the App Id.
DatabaseUrl
System.Uri
The database root URL, e.g. "http://abc-xyz-123.firebaseio.com".
MessageSenderId
string
Gets or sets the messaging sender Id.
ProjectId
string
Gets or sets the Google Cloud project ID.
StorageBucket
string
Gets or sets the Google Cloud Storage bucket name, e.g.

Public functions

Dispose()
void

Public static functions

LoadFromJsonConfig(string json_config)
Load options from a JSON string.

Properties

ApiKey

string ApiKey

Gets or sets the API key used to authenticate requests from your app.

For example, "AIzaSyDdVgKwhZl0sTTTLZ7iTmt1r3N2cJLnaDk" used to identify your app to Google servers.

This only needs to be specified if your application does not include google-services.json or GoogleService-Info.plist in its resources.

AppId

string AppId

Gets or sets the App Id.

This is the mobilesdk_app_id in the Android google-services.json config file or GOOGLE_APP_ID in the GoogleService-Info.plist.

This only needs to be specified if your application does not include google-services.json or GoogleService-Info.plist in its resources.

DatabaseUrl

System.Uri DatabaseUrl

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

MessageSenderId

string MessageSenderId

Gets or sets the messaging sender Id.

This only needs to be specified if your application does not include google-services.json or GoogleService-Info.plist in its resources.

ProjectId

string ProjectId

Gets or sets the Google Cloud project ID.

This is the project_id in the Android google-services.json config file or PROJECT_ID in the GoogleService-Info.plist.

StorageBucket

string StorageBucket

Gets or sets the Google Cloud Storage bucket name, e.g.

"abc-xyz-123.storage.firebase.com".

Public functions

AppOptions

 AppOptions()

Create AppOptions.

To create a FirebaseApp object, the Firebase application identifier and API key should be set using AppId and ApiKey respectively.

See also:FirebaseApp.Create().

Dispose

void Dispose()

Public static functions

LoadFromJsonConfig

AppOptions LoadFromJsonConfig(
  string json_config
)

Load options from a JSON string.

Details
Parameters
json_config
JSON string to read options from.
Returns
Returns an AppOptions instance if successful, null otherwise.