Stay organized with collections
Save and categorize content based on your preferences.
Represents a predefined or user-defined key-value pair.
Introduced in Wear OS 4.
Syntax
<Metadata key="string" value="string" />
Attributes
Each Metadata element contains 2 attributes, key and value. User-defined
metadata elements must use strings for both key and value.
Predefined values for key include the following:
PREVIEW_TIME
Sets the time that appears in the watch face preview. The value must be in
HH:MM:SS format; for example, 22:10:00 represents 10:10 PM.
If this value is invalid or unspecified, the watch face uses the system's
default time.
CLOCK_TYPE
Specifies the primary watch face type, either DIGITAL or ANALOG. Even if
your watch face supports both types, you must specify a primary type to appear
in the watch face preview.
If this value is invalid or unspecified, the system uses a default value of
ANALOG.
STEP_GOAL
Sets the daily "number of steps" goal that appears in the watch face preview.
This value must be a positive integer.
If this value is invalid or unspecified, the watch face uses the system's
default daily step goal.
Recommended for you
Note: link text is displayed when JavaScript is off
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 2024-06-17 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-06-17 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-06-17 UTC."]]