As ações que os complementos podem usar em cards ou no aplicativo host.
Disponível para complementos do Google Workspace que estendem o Google Chat.
const notification = AddOnsResponseService.newNotification().setText("You closed a dialog!"); const navigation = AddOnsResponseService.newNavigation() .setEndNavigation(AddOnsResponseService.EndNavigation.CLOSE_DIALOG); // An action that closes the dialog and shows a notification. const action = AddOnsResponseService.newActionResponseBuilder() .setNavigation(navigation) .setNotification(notification) .build();
Métodos
| Método | Tipo de retorno | Breve descrição |
|---|---|---|
print | String | Imprime a representação JSON deste objeto. |
Documentação detalhada
print Json()
Imprime a representação JSON deste objeto. Isso é apenas para depuração.
Retornar
String