Enum Interaction
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
상호작용
사용자가 카드 메시지의 버튼을 클릭하는 등 사용자와의 상호작용에 대한 응답으로 실행할 작업을 지정하는 enum 유형입니다.
Google Chat 앱에서만 사용할 수 있습니다. Google Workspace 부가기능에는 사용할 수 없습니다.
enum을 호출하려면 상위 클래스, 이름, 속성을 호출합니다. 예를 들면
CardService.Interaction.OPEN_DIALOG
입니다.
속성
속성 | 유형 | 설명 |
INTERACTION_UNSPECIFIED | Enum | 기본값 action 가 정상적으로 실행됩니다. |
OPEN_DIALOG | Enum | Chat 앱에서 사용자와 상호작용하는 데 사용하는 카드 기반 인터페이스인 대화상자를 엽니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003e\u003ccode\u003eInteraction\u003c/code\u003e is an enum type used to define how a Google Chat app responds to user actions, like clicking a button.\u003c/p\u003e\n"],["\u003cp\u003eThis feature is exclusive to Google Chat apps and is not supported in Google Workspace Add-ons.\u003c/p\u003e\n"],["\u003cp\u003eTo utilize an enum, you need to reference its parent class, name, and property, such as \u003ccode\u003eCardService.Interaction.OPEN_DIALOG\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eInteraction\u003c/code\u003e includes properties like \u003ccode\u003eOPEN_DIALOG\u003c/code\u003e for opening card-based interfaces and \u003ccode\u003eINTERACTION_UNSPECIFIED\u003c/code\u003e for default actions.\u003c/p\u003e\n"]]],["This content defines the `Interaction` enum for Google Chat apps, which dictates the app's response to user interactions. It's exclusive to Google Chat apps and unavailable for Google Workspace add-ons. The enum includes properties like `INTERACTION_UNSPECIFIED`, which executes the default action, and `OPEN_DIALOG`, which triggers a card-based dialog. To use these properties call it with its class name for example `CardService.Interaction.OPEN_DIALOG`.\n"],null,["# Enum Interaction\n\nInteraction\n\nAn enum type that specifies what to do in response to an interaction with a user, such as a user\nclicking a button in a card message.\n\nOnly available for Google Chat apps. Not available for Google Workspace add-ons.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.Interaction.OPEN_DIALOG`. \n\n### Properties\n\n| Property | Type | Description |\n|---------------------------|--------|-----------------------------------------------------------------------------------|\n| `INTERACTION_UNSPECIFIED` | `Enum` | Default value. The `action` executes as normal. |\n| `OPEN_DIALOG` | `Enum` | Opens a dialog, a card-based interface that Chat apps use to interact with users. |"]]