app.App interface

Firebase 앱은 서비스 모음에 대한 초기화 정보를 보관합니다.

이 생성자를 직접 호출하면 안 됩니다. 대신 initializeApp()을 사용하여 앱을 만드세요.

서명:

interface App extends AppCore 

확장: AppCore

방법

메서드 설명
appCheck()
인증()
데이터베이스(URL)
삭제() 이 로컬 FirebaseApp를 사용할 수 없게 하고 연결된 모든 서비스의 리소스를 해제합니다 (백엔드 리소스는 정리하지 *않음*). SDK를 로컬에서 실행하는 경우 프로세스를 정상적으로 종료하려면 이 메서드를 호출해야 합니다.
firestore()를 사용합니다.
installs()를 예로 들 수 있습니다.
instanceId())
machineLearning()을 호출합니다.
messaging()
projectManagement()
remoteConfig()
securityRules()
저장소()

app.App.appCheck()

서명:

appCheck(): appCheck.AppCheck;

반환:

appCheck.AppCheck

app.App.auth()

서명:

auth(): auth.Auth;

반환:

인증

app.App.database()

서명:

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

매개변수

매개변수 유형 설명
url 문자열

반환:

데이터베이스.데이터베이스

app.App.delete()

이 로컬 FirebaseApp를 사용할 수 없게 하고 연결된 모든 서비스의 리소스를 해제합니다 (백엔드 리소스는 정리하지 *않음*). SDK를 로컬에서 실행하는 경우 프로세스를 정상적으로 종료하려면 이 메서드를 호출해야 합니다.

서명:

delete(): Promise<void>;

반환:

프로미스<void>

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.Firestore

app.App.installations()

서명:

installations(): installations.Installations;

반환:

installs.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