Class ActionResponse

ActionResponse

Son las acciones que los complementos pueden usar en las tarjetas o en la aplicación host.

Disponible para los complementos de Google Workspace que extienden 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étodoTipo de datos que se muestraDescripción breve
printJson()StringImprime la representación JSON de este objeto.

Documentación detallada

printJson()

Imprime la representación JSON de este objeto. Esto es solo para depuración.

Volver

String