HostApp
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Google Workspace 外掛程式或 Google Chat 應用程式的 Google Workspace 應用程式。
對於外掛程式,則是 Google Workspace 外掛程式啟動的 Workspace 應用程式。對於 Chat 應用程式,主機應用程式一律為 CHAT
。
列舉 |
UNSPECIFIED_HOST_APP |
Google 無法辨識主機應用程式。 |
GMAIL |
外掛程式會從 Gmail 啟動。 |
CALENDAR |
外掛程式會從 Google 日曆啟動。 |
DRIVE |
外掛程式會從 Google 雲端硬碟啟動。 |
DEMO |
未使用。 |
DOCS |
外掛程式會從 Google 文件啟動。 |
MEET |
外掛程式會透過 Google Meet 啟動。 |
SHEETS |
外掛程式會從 Google 試算表啟動。 |
SLIDES |
外掛程式會透過 Google 簡報啟動。 |
DRAWINGS |
外掛程式會從 Google 繪圖啟動。 |
CHAT |
Google Chat 應用程式。不適用於 Google Workspace 外掛程式。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\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. |"]]