回应定时提醒
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
您可以使用定时提醒,让用户知道在选择默认操作之前他们必须在多长时间内做出响应。
如需创建定时提醒消息,请使用 Navigation 模板中的窗格视图,并利用定时按钮执行默认操作。
示例流程
用户操作 |
执行操作的位置 |
操作之后的步数 |
用户正在驾车。 |
导航模板

|
1 |
系统会打开一条包含定时默认操作的提醒。用户可以关闭提醒或打开具有备选路线的地图。 |
导航模板

|
2 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eTimed alerts inform users of a pending default action if they don't respond within a given timeframe.\u003c/p\u003e\n"],["\u003cp\u003eThese alerts are built using the Navigation template's Pane view and incorporate timed buttons for the default action.\u003c/p\u003e\n"],["\u003cp\u003eA typical scenario involves an alert interrupting navigation, offering options like dismissal or an alternate route on a map before a default action is taken.\u003c/p\u003e\n"]]],[],null,["# Respond to a timed alert\n\n\u003cbr /\u003e\n\nYou can use a timed alert to let users know how much time they have to respond\nbefore a default action is chosen.\n\nTo create a timed alert message, use the Pane\nview within the [Navigation template](/cars/design/create-apps/apps-for-drivers/templates/navigation-template),\nwith [timed buttons](/cars/design/create-apps/apps-for-drivers/components/button#timed)\nfor the default action.\n\nSample flow\n-----------\n\n| User action | Where action is performed | Step count after action |\n|--------------------------------------------------------------------------------------------------------------------|---------------------------|-------------------------|\n| The user is driving their vehicle. | Navigation template | 1 |\n| An alert with a timed, default action opens. The user can dismiss the alert or open a map with an alternate route. | Navigation template | 2 |"]]