firebase-admin.installations package

บริการรหัสอินสแตนซ์ของ Firebase

ฟังก์ชัน

ฟังก์ชัน คำอธิบาย
รับการติดตั้ง(แอป) รับบริการการติดตั้งสำหรับแอปเริ่มต้นหรือแอปที่ระบุ getInstallations() สามารถเรียกใช้โดยไม่มีอาร์กิวเมนต์เพื่อเข้าถึงบริการ Installations ของแอปเริ่มต้น หรือโดยใช้ getInstallations(app) เพื่อเข้าถึงบริการของ Installations ที่เชื่อมโยงกับแอปใดแอปหนึ่ง

คลาส

ชั้น คำอธิบาย
ข้อผิดพลาดการติดตั้ง Firebase โครงสร้างรหัสข้อผิดพลาดของบริการการติดตั้ง Firebase โดยจะขยายเวลาในวันที่ FirebaseError
การติดตั้ง บริการ Installations สำหรับแอปปัจจุบัน
installsClientErrorCode

getInstalls(แอป)

รับบริการการติดตั้งสำหรับแอปเริ่มต้นหรือแอปที่ระบุ

สามารถเรียก getInstallations() โดยไม่มีอาร์กิวเมนต์เพื่อเข้าถึงบริการ Installations ของแอปเริ่มต้น หรือเรียกใช้เป็น getInstallations(app) เพื่อเข้าถึงบริการของ Installations ที่เชื่อมโยงกับแอปใดแอปหนึ่งโดยเฉพาะ

ลายเซ็น:

export declare function getInstallations(app?: App): Installations;

พารามิเตอร์

พารามิเตอร์ ประเภท คำอธิบาย
แอป แอป แอปเสริมที่มีบริการ 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);