如何在 google for phone 表面的操作中显示列表卡片时删除简单响应

How to remove simple response when displaying list card in actions on google for phone surface

嗨,我遇到了一个问题,我选择了 phone 表面,其中返回简单响应和显示列表 card.But 我正在 simulator.How 中删除使用或显示列表卡时的简单响应。 此要求适用于 google home mini 和 phone 中的助手。

Here i need to clear that their is no request from user by clicking list card.It is only meant for display purpose.

我的实现方式是否错误不知道是否正确 wrong.But 是否可以删除或以任何其他方式摆脱简单的响应?

  • 使用以下代码检测表面

    const screenAvailable = conv.available.surfaces.capabilities.has('actions.capability.SCREEN_OUTPUT');

  • 如果 Surface 存在,仅使用基于 UI 的响应。

  • 如果 Surface 不存在,仅使用简单响应。
  • 在真实的移动设备和家中进行测试,因为模拟器会在模拟过程中显示额外信息。

请记住,除了您可以发送的任何其他 RichResponses 之外,您必须 至少有一个 SimpleResponse。此 SimpleResponse 可以包含空白 space - 但它必须存在。 (但是,它应该包含的不仅仅是一个空白 space。)