Respond to a timed alert
Stay organized with collections
Save and categorize content based on your preferences.
You can use a timed alert to let users know how much time they have to respond
before a default action is chosen.
To create a timed alert message, use the Pane
view within the Navigation template,
with timed buttons
for the default action.
Sample flow
User action |
Where action is performed |
Step count after action |
The user is driving their vehicle. |
Navigation template

|
1 |
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 |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-23 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-23 UTC."],[[["\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 |"]]