Refresh the contents of a template
Stay organized with collections
Save and categorize content based on your preferences.
Your app can request the content of a Screen to be invalidated by calling the
Screen.invalidate method. The host subsequently calls back into your
app's Screen.onGetTemplate method to retrieve the template with the new
contents.
When refreshing a Screen, it's important to understand the specific content
in the template that can be updated so the host doesn't count the new template
against the template quota. To learn more, see Template restrictions.
We recommend that you structure your screens to have a one-to-one mapping
between a Screen and the type of template it returns through its
onGetTemplate implementation.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-01-14 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 2026-01-14 UTC."],[],[]]