NewSurfaceValueSpec
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
作为 actions.intent.NEW_SURFACE
的输入从应用传递。
JSON 表示法 |
{
"capabilities": [
string
],
"context": string,
"notificationTitle": string
} |
字段 |
capabilities[] |
string
表面所需的功能列表。例如,["actions.capability.SCREEN_OUTPUT"]
|
context |
string
描述用户将在新 surface 上收到的内容的上下文。例如,“[好的,我知道有 10 个非常热门。评分最高的地点是 Mount Marcy。]我可以把这项内容发到你的手机上吗?”
|
notificationTitle |
string
提示用户在新 surface 上继续操作的通知的标题。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-28。
[null,null,["最后更新时间 (UTC):2025-07-28。"],[[["\u003cp\u003eThe \u003ccode\u003eactions.intent.NEW_SURFACE\u003c/code\u003e intent uses JSON input to request a new surface with specific capabilities.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON input must define the desired capabilities, context for the new surface, and the notification title to prompt the user.\u003c/p\u003e\n"],["\u003cp\u003eCapabilities are specified as a string array, context is a descriptive string, and notification title is also a string.\u003c/p\u003e\n"]]],[],null,["# NewSurfaceValueSpec\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nPassed from the app as input for `actions.intent.NEW_SURFACE`.\n\n| JSON representation ||\n|----------------------------------------------------------------------------------------|---|\n| ``` { \"capabilities\": [ string ], \"context\": string, \"notificationTitle\": string } ``` |\n\n| Fields ||\n|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `capabilities[]` | `string` The list of capabilities required from the surface. Eg, \\[\"actions.capability.SCREEN_OUTPUT\"\\] |\n| `context` | `string` Context describing the content the user will receive on the new surface. Eg, \"\\[Sure, I know of 10 that are really popular. The highest-rated one is at Mount Marcy.\\] Is it okay if I send that to your phone?\" |\n| `notificationTitle` | `string` title of the notification which prompts the user to continue on the new surface. |"]]