Stay organized with collections
Save and categorize content based on your preferences.
@MustBeDocumented
@Retention(value = RetentionPolicy.CLASS)
@Target(value = )
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 functions |
abstract Int |
|
abstract Int |
|
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\nKotlin \\|[Java](/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion \"View this page in Java\")\n\n\n```\n@MustBeDocumented\n@Retention(value = RetentionPolicy.CLASS)\n@Target(value = )\nannotation RequiresSchemaVersion\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nIndicates the minimum schema version the annotated type is supported at. [major](/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion#major()) and [minor](/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion#minor()) correspond to [getMajor](/reference/kotlin/androidx/wear/protolayout/expression/VersionBuilders.VersionInfo#getMajor()) and [getMinor](/reference/kotlin/androidx/wear/protolayout/expression/VersionBuilders.VersionInfo#getMinor()) values reported by renderers/evaluators of ProtoLayout.\n\nNote that [minor](/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion#minor()) version is usually in the form of `x00` such as 100, 200, ...\n\nSummary\n-------\n\n| ### Public functions |\n|----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|\n| `abstract `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [major](/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion#major())`()` |\n| `abstract `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [minor](/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion#minor())`()` |\n\nPublic functions\n----------------\n\n### major\n\nAdded in [1.1.0](/jetpack/androidx/releases/wear-protolayout#1.1.0) \n\n```\nabstract fun major(): Int\n``` \n\n### minor\n\nAdded in [1.1.0](/jetpack/androidx/releases/wear-protolayout#1.1.0) \n\n```\nabstract fun minor(): Int\n```"]]