HostApp
The Google Workspace application for a Google Workspace add-on or Google Chat app.
For add-ons, the Workspace application from which a Google Workspace add-on launches. For Chat apps, the host app is always CHAT
.
Enums |
UNSPECIFIED_HOST_APP |
Google can't identify a host app. |
GMAIL |
The add-on launches from Gmail. |
CALENDAR |
The add-on launches from Google Calendar. |
DRIVE |
The add-on launches from Google Drive. |
DEMO |
Not used. |
DOCS |
The add-on launches from Google Docs. |
MEET |
The add-on launches from Google Meet. |
SHEETS |
The add-on launches from Google Sheets. |
SLIDES |
The add-on launches from Google Slides. |
DRAWINGS |
The add-on launches from Google Drawings. |
CHAT |
A Google Chat app. Not used for Google Workspace add-ons. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-04 UTC.
[null,null,["Last updated 2025-02-04 UTC."],[[["The `HostApp` enum indicates the Google Workspace application from which a Google Workspace Add-on or Google Chat app launches."],["For add-ons, the `HostApp` specifies the originating application like Gmail, Calendar, or Drive, while for Chat apps, it's always `CHAT`."],["`UNSPECIFIED_HOST_APP` is used when Google cannot identify the host app, and `DEMO` is not utilized."]]],["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"]]