alerts.AlertEvent interface

Firebase 警報的自訂 CloudEvent(具有自訂擴充屬性)。

簽名:

export interface AlertEvent<T> extends CloudEvent<FirebaseAlertData<T>> 

擴充: CloudEvent < Firebase警報數據<T>>

特性

財產類型描述
警報類型細繩觸發的警報的類型。
應用程式ID細繩與提醒關聯的 Firebase 應用程式 ID。這是可選的,僅當警報針對特定 Firebase 應用程式時才出現。
數據Firebase警報數據<T> AlertEvent的資料是具有給定負載的FirebaseAlertData物件。

警報.AlertEvent.alertType

觸發的警報的類型。

簽名:

alertType: string;

警報.AlertEvent.appId

與提醒關聯的 Firebase 應用程式 ID。這是可選的,僅當警報針對特定 Firebase 應用程式時才出現。

簽名:

appId?: string;

警報.AlertEvent.data

AlertEvent的資料是具有給定負載的FirebaseAlertData物件。

簽名:

data: FirebaseAlertData<T>;