# RequiresSchemaVersion

Artifact: [androidx.wear.protolayout:protolayout-expression](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/expression/RequiresSchemaVersion.java+class:androidx.wear.protolayout.expression.RequiresSchemaVersion) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.1.0)

*** ** * ** ***

<br />

```
@Retention(value = RetentionPolicy.CLASS)
@Target(value = )
annotation RequiresSchemaVersion
```

<br />

*** ** * ** ***

Indicates the minimum schema version the annotated type is supported at. `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion#major()` and `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion#minor()` correspond to `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/VersionBuilders.VersionInfo#getMajor()` and `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/VersionBuilders.VersionInfo#getMinor()` values reported by renderers/evaluators of ProtoLayout.

Note that `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion#minor()` version is usually in the form of `x00` such as 100, 200, ...

## Summary

| ### Public functions |
|---|---|
| `abstract https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion#major()()` |
| `abstract https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion#minor()()` |

## Public functions

### major

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.1.0)

```
abstract fun major(): Int
```

### minor

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.1.0)

```
abstract fun minor(): Int
```