app.App interface

Firebase アプリは、サービスのコレクションの初期化情報を保持します。

このコンストラクタを直接呼び出さないでください。代わりに InitializeApp() を使用してアプリを作成します。

署名:

interface App extends AppCore 

拡張: AppCore

方法

メソッド 説明
appCheck()
auth()
データベース(URL)
delete() このローカル FirebaseApp を使用不能にして、関連するすべてのサービスのリソースを解放します(ただし、バックエンド リソースはクリーンアップされません)。SDK をローカルで実行する場合は、プロセスを正常に終了するために、このメソッドを呼び出す必要があります。
firestore()
installations()
instanceId()
machineLearning()
messaging()
projectManagement()
remoteConfig()
securityRules()
storage()

app.App.appCheck()

署名:

appCheck(): appCheck.AppCheck;

戻り値:

appCheck.AppCheck

app.App.auth()

署名:

auth(): auth.Auth;

戻り値:

auth.Auth

app.App.database()

署名:

database(url?: string): database.Database;

パラメータ

パラメータ 説明
URL 文字列

戻り値:

database.Database

app.App.delete()

このローカル FirebaseApp を使用不能にして、関連するすべてのサービスのリソースを解放します(ただし、バックエンド リソースはクリーンアップされません)。SDK をローカルで実行する場合は、プロセスを正常に終了するために、このメソッドを呼び出す必要があります。

署名:

delete(): Promise<void>;

戻り値:

Promise

app.delete()
  .then(function() {
    console.log("App deleted successfully");
  })
  .catch(function(error) {
    console.log("Error deleting app:", error);
  });

app.App.firestore()

署名:

firestore(): firestore.Firestore;

戻り値:

Firestore

app.App.installations()

署名:

installations(): installations.Installations;

戻り値:

installations.Installations

app.App.instanceId()

代わりにインストールを使用してください。

署名:

instanceId(): instanceId.InstanceId;

戻り値:

instanceId.InstanceId

app.App.machineLearning()

署名:

machineLearning(): machineLearning.MachineLearning;

戻り値:

machineLearning.MachineLearning

app.App.messaging()

署名:

messaging(): messaging.Messaging;

戻り値:

messaging.Messaging

app.App.projectManagement()

署名:

projectManagement(): projectManagement.ProjectManagement;

戻り値:

projectManagement.ProjectManagement

app.App.remoteConfig()

署名:

remoteConfig(): remoteConfig.RemoteConfig;

戻り値:

remoteConfig.RemoteConfig

app.App.securityRules()

署名:

securityRules(): securityRules.SecurityRules;

戻り値:

SecurityRules.SecurityRules

app.App.storage()

署名:

storage(): storage.Storage;

戻り値:

storage.Storage