Stay organized with collections
Save and categorize content based on your preferences.
@MustBeDocumented
@Retention(value = RetentionPolicy.CLASS)
@Target(value = )
public annotation RequiresSchemaVersion
Indicates the minimum schema version the annotated type is supported at. major
and minor
correspond to getMajor
and getMinor
values reported by renderers/evaluators of ProtoLayout.
Note that minor
version is usually in the form of x00
such as 100, 200, ...
Summary
Public methods |
abstract int |
|
abstract int |
|
Public methods
public abstract int major()
public abstract int minor()
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 2025-07-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 2025-07-17 UTC."],[],[],null,["# RequiresSchemaVersion\n=====================\n\nArtifact: [androidx.wear.protolayout:protolayout-expression](/jetpack/androidx/releases/wear-protolayout) \n[View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/expression/RequiresSchemaVersion.java+class:androidx.wear.protolayout.expression.RequiresSchemaVersion) \nAdded in [1.1.0](/jetpack/androidx/releases/wear-protolayout#1.1.0)\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion \"View this page in Kotlin\") \\|Java\n\n\n```\n@MustBeDocumented\n@Retention(value = RetentionPolicy.CLASS)\n@Target(value = )\npublic annotation RequiresSchemaVersion\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nIndicates the minimum schema version the annotated type is supported at. [major](/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion#major()) and [minor](/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion#minor()) correspond to [getMajor](/reference/androidx/wear/protolayout/expression/VersionBuilders.VersionInfo#getMajor()) and [getMinor](/reference/androidx/wear/protolayout/expression/VersionBuilders.VersionInfo#getMinor()) values reported by renderers/evaluators of ProtoLayout.\n\nNote that [minor](/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion#minor()) version is usually in the form of `x00` such as 100, 200, ...\n\nSummary\n-------\n\n| ### Public methods |\n|--------------------|--------------------------------------------------------------------------------------------|\n| `abstract int` | [major](/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion#major())`()` |\n| `abstract int` | [minor](/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion#minor())`()` |\n\nPublic methods\n--------------\n\n### major\n\nAdded in [1.1.0](/jetpack/androidx/releases/wear-protolayout#1.1.0) \n\n```\npublic abstract int major()\n``` \n\n### minor\n\nAdded in [1.1.0](/jetpack/androidx/releases/wear-protolayout#1.1.0) \n\n```\npublic abstract int minor()\n```"]]