Firebase 实例 ID 服务。
Functions
函数 | 说明 |
---|---|
get 安装(app) | 获取默认应用或指定应用的安装服务。可调用getInstallations() 不使用任何参数,以访问默认应用的 Installations 服务,或以 getInstallations(app) 的形式访问特定应用服务。Installations |
类
类 | 说明 |
---|---|
Firebase 安装 s 错误 | Firebase 安装服务错误代码结构。这会扩展 FirebaseError 。 |
安装次数 | 当前应用的 Installations 服务。 |
安装客户端错误代码 |
get 安装(app)
获取默认应用或指定应用的安装次数服务。
可以不使用任何参数调用 getInstallations()
,以访问默认应用的 Installations
服务,或者以 getInstallations(app)
的形式调用,以访问与特定应用相关联的 Installations
服务。
签名:
export declare function getInstallations(app?: App): Installations;
参数
参数 | 类型 | 说明 |
---|---|---|
app | 应用 | 要返回其 Installations 服务的可选应用。如果未提供,系统将返回默认的 Installations 服务。 |
返回:
如果未提供应用,或与提供的应用关联的 Installations
服务,则为默认的 Installations
服务。
示例 1
// Get the Installations service for the default app
const defaultInstallations = getInstallations();
示例 2
// Get the Installations service for a given app
const otherInstallations = getInstallations(otherApp);