SignInValueSpec
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
作为 actions.intent.SIGN_IN
的输入从应用传递。
JSON 表示法 |
{
"optContext": string
} |
字段 |
optContext |
string
应用需要要求用户登录的可选上下文,作为用户意见征求提示的前缀,例如“追踪您的锻炼”或“查看账户余额”。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThe \u003ccode\u003eactions.intent.SIGN_IN\u003c/code\u003e intent uses JSON input with an optional \u003ccode\u003eoptContext\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eoptContext\u003c/code\u003e provides context for the sign-in request, aiding user consent by explaining the reason, for example, "To track your exercise".\u003c/p\u003e\n"]]],["The provided JSON schema outlines the input for the `actions.intent.SIGN_IN` intent. It uses a single field, `optContext`, which is a string. This optional string provides context to the user regarding why sign-in is required. Examples include \"To track your exercise\" or \"To check your account balance,\" and is intended as a prefix in the user consent prompt.\n"],null,["# SignInValueSpec\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nPassed from the app as input for `actions.intent.SIGN_IN`.\n\n| JSON representation ||\n|----------------------------------|---|\n| ``` { \"optContext\": string } ``` |\n\n| Fields ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `optContext` | `string` The optional context why the app needs to ask the user to sign in, as a prefix of a prompt for user consent, e.g. \"To track your exercise\", or \"To check your account balance\". |"]]