HostApp
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Ứng dụng Google Workspace cho tiện ích bổ sung Google Workspace hoặc ứng dụng Google Chat.
Đối với tiện ích bổ sung, ứng dụng Workspace mà từ đó tiện ích bổ sung của Google Workspace khởi chạy. Đối với ứng dụng Chat, ứng dụng lưu trữ luôn là CHAT
.
Enum |
UNSPECIFIED_HOST_APP |
Google không thể xác định ứng dụng lưu trữ. |
GMAIL |
Tiện ích bổ sung sẽ chạy từ Gmail. |
CALENDAR |
Tiện ích bổ sung sẽ chạy từ Lịch Google. |
DRIVE |
Tiện ích bổ sung sẽ khởi chạy từ Google Drive. |
DEMO |
Không được sử dụng. |
DOCS |
Tiện ích bổ sung sẽ chạy từ Google Tài liệu. |
MEET |
Tiện ích bổ sung sẽ khởi chạy từ Google Meet. |
SHEETS |
Tiện ích bổ sung sẽ chạy từ Google Trang tính. |
SLIDES |
Tiện ích bổ sung sẽ chạy từ Google Trang trình bày. |
DRAWINGS |
Tiện ích bổ sung này chạy từ Google Drawings. |
CHAT |
Ứng dụng Google Chat. Không dùng cho các tiện ích bổ sung của Google Workspace. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eHostApp\u003c/code\u003e enum indicates the Google Workspace application from which a Google Workspace Add-on or Google Chat app launches.\u003c/p\u003e\n"],["\u003cp\u003eFor add-ons, the \u003ccode\u003eHostApp\u003c/code\u003e specifies the originating application like Gmail, Calendar, or Drive, while for Chat apps, it's always \u003ccode\u003eCHAT\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUNSPECIFIED_HOST_APP\u003c/code\u003e is used when Google cannot identify the host app, and \u003ccode\u003eDEMO\u003c/code\u003e is not utilized.\u003c/p\u003e\n"]]],["The content defines the host applications for Google Workspace add-ons and Google Chat apps. For add-ons, host apps include Gmail, Calendar, Drive, Docs, Meet, Sheets, Slides, and Drawings. Each of these indicates where the add-on is launched from. For Chat apps, the host app is always `CHAT`. An `UNSPECIFIED_HOST_APP` means Google can't identify the host. `DEMO` is listed but not used for either add-ons or Chat apps.\n"],null,["# HostApp\n\nThe Google Workspace application for a Google Workspace add-on or Google Chat app.\n\nFor add-ons, the Workspace application from which a Google Workspace add-on launches. For Chat apps, the host app is always `CHAT`.\n\n| Enums ||\n|------------------------|-----------------------------------------------------------|\n| `UNSPECIFIED_HOST_APP` | Google can't identify a host app. |\n| `GMAIL` | The add-on launches from Gmail. |\n| `CALENDAR` | The add-on launches from Google Calendar. |\n| `DRIVE` | The add-on launches from Google Drive. |\n| `DEMO` | Not used. |\n| `DOCS` | The add-on launches from Google Docs. |\n| `MEET` | The add-on launches from Google Meet. |\n| `SHEETS` | The add-on launches from Google Sheets. |\n| `SLIDES` | The add-on launches from Google Slides. |\n| `DRAWINGS` | The add-on launches from Google Drawings. |\n| `CHAT` | A Google Chat app. Not used for Google Workspace add-ons. |"]]