# BuildCompat

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/os/BuildCompat.kt+class:androidx.core.os.BuildCompat) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

*** ** * ** ***


```
object BuildCompat
```

<br />

*** ** * ** ***

This class contains additional platform version checking methods for targeting pre-release versions of Android.

## Summary

| ### Nested types |
|---|
| `@https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-requires-opt-in/index.html @https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.annotation/-retention/index.html(value = https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.annotation/-annotation-retention/-b-i-n-a-r-y/index.html) annotation https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat.PrereleaseSdkCheck` Experimental feature set for pre-release SDK checks. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ChecksSdkIntAtLeast(api = 36, codename = "Baklava") [isAtLeastB](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastB())()` **This function is deprecated.** Android Baklava is a finalized release and this method is no longer necessary. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ChecksSdkIntAtLeast(api = 3600001) [isAtLeastB_1](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastB_1())()` **This function is deprecated.** Android Baklava minor release 1 is a finalized release and this method is no longer necessary. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ChecksSdkIntAtLeast(api = 24) [isAtLeastN](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastN())()` **This function is deprecated.** Android N is a finalized release and this method is no longer necessary. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ChecksSdkIntAtLeast(api = 25) [isAtLeastNMR1](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastNMR1())()` **This function is deprecated.** Android N MR1 is a finalized release and this method is no longer necessary. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ChecksSdkIntAtLeast(api = 26) [isAtLeastO](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastO())()` **This function is deprecated.** Android O is a finalized release and this method is no longer necessary. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ChecksSdkIntAtLeast(api = 27) [isAtLeastOMR1](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastOMR1())()` **This function is deprecated.** Android O MR1 is a finalized release and this method is no longer necessary. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ChecksSdkIntAtLeast(api = 28) [isAtLeastP](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastP())()` **This function is deprecated.** Android P is a finalized release and this method is no longer necessary. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ChecksSdkIntAtLeast(api = 29) [isAtLeastQ](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastQ())()` **This function is deprecated.** Android Q is a finalized release and this method is no longer necessary. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ChecksSdkIntAtLeast(api = 30) [isAtLeastR](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastR())()` **This function is deprecated.** Android R is a finalized release and this method is no longer necessary. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ChecksSdkIntAtLeast(api = 31, codename = "S") [isAtLeastS](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastS())()` **This function is deprecated.** Android S is a finalized release and this method is no longer necessary. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ChecksSdkIntAtLeast(api = 32, codename = "Sv2") [isAtLeastSv2](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastSv2())()` **This function is deprecated.** Android Sv2 is a finalized release and this method is no longer necessary. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ChecksSdkIntAtLeast(api = 33, codename = "Tiramisu") [isAtLeastT](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastT())()` **This function is deprecated.** Android Tiramisu is a finalized release and this method is no longer necessary. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ChecksSdkIntAtLeast(api = 34, codename = "UpsideDownCake") [isAtLeastU](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastU())()` **This function is deprecated.** Android UpsideDownCase is a finalized release and this method is no longer necessary. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ChecksSdkIntAtLeast(api = 35, codename = "VanillaIceCream") [isAtLeastV](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastV())()` **This function is deprecated.** Android VanillaIceCream is a finalized release and this method is no longer necessary. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ChecksSdkIntAtLeast(extension = 1000000) https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#AD_SERVICES_EXTENSION_INT()` The value of `SdkExtensions.getExtensionVersion(AD_SERVICES)`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ChecksSdkIntAtLeast(extension = 30) https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#R_EXTENSION_INT()` The value of `SdkExtensions.getExtensionVersion(R)`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ChecksSdkIntAtLeast(extension = 31) https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#S_EXTENSION_INT()` The value of `SdkExtensions.getExtensionVersion(S)`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/ChecksSdkIntAtLeast(extension = 33) https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#T_EXTENSION_INT()` The value of `SdkExtensions.getExtensionVersion(TIRAMISU)`. |

## Public functions

### isAtLeastB

Added in [1.16.0](https://developer.android.com/jetpack/androidx/releases/core#1.16.0) Deprecated in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
@ChecksSdkIntAtLeast(api = 36, codename = "Baklava")
fun [isAtLeastB](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastB())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Android Baklava is a finalized release and this method is no longer necessary. It will be removed in a future release of this library. Instead, use \`Build.VERSION.SDK_INT \>= 36\`, use this instead:
>
> ```kotlin
> android.os.Build.VERSION.SDK_INT >= 36
> ```

Checks if the device is running on a pre-release version of Android Baklava or a release version of Android Baklava or newer.

**Note:** When Android Baklava is finalized for release, this method will be removed and all calls must be replaced with `Build.VERSION.SDK_INT >= 36`.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if Baklava APIs are available for use, `false` otherwise |

### isAtLeastB_1

Added in [1.18.0](https://developer.android.com/jetpack/androidx/releases/core#1.18.0) Deprecated in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
@ChecksSdkIntAtLeast(api = 3600001)
fun [isAtLeastB_1](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastB_1())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Android Baklava minor release 1 is a finalized release and this method is no longer necessary. It will be removed in a future release of this library. Instead, use \`Build.VERSION.SDK_INT_FULL \>= Build.VERSION_CODES_FULL.BAKLAVA_1\`, use this instead:
>
> ```kotlin
> android.os.Build.VERSION.SDK_INT_FULL >= android.os.Build.VERSION_CODES_FULL.BAKLAVA_1
> ```

Checks if the device is running on a release version of Android Baklava minor release 1, or newer.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if Baklava minor release 1 APIs are available for use, `false` otherwise |

### isAtLeastN

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ChecksSdkIntAtLeast(api = 24)
fun [isAtLeastN](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastN())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Android N is a finalized release and this method is no longer necessary. It will be removed in a future release of this library. Instead, use \`Build.VERSION.SDK_INT \>= 24\`, use this instead:
>
> ```kotlin
> android.os.Build.VERSION.SDK_INT >= 24
> ```

Checks if the device is running on the Android N release or newer.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if N APIs are available for use |

### isAtLeastNMR1

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ChecksSdkIntAtLeast(api = 25)
fun [isAtLeastNMR1](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastNMR1())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Android N MR1 is a finalized release and this method is no longer necessary. It will be removed in a future release of this library. Instead, use \`Build.VERSION.SDK_INT \>= 25\`, use this instead:
>
> ```kotlin
> android.os.Build.VERSION.SDK_INT >= 25
> ```

Checks if the device is running on the Android N MR1 release or newer.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if N MR1 APIs are available for use |

### isAtLeastO

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ChecksSdkIntAtLeast(api = 26)
fun [isAtLeastO](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastO())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Android O is a finalized release and this method is no longer necessary. It will be removed in a future release of this library. Instead use \`Build.VERSION.SDK_INT \>= 26\`, use this instead:
>
> ```kotlin
> android.os.Build.VERSION.SDK_INT >= 26
> ```

Checks if the device is running on a release version of Android O or newer.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if O APIs are available for use, `false` otherwise |

### isAtLeastOMR1

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ChecksSdkIntAtLeast(api = 27)
fun [isAtLeastOMR1](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastOMR1())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Android O MR1 is a finalized release and this method is no longer necessary. It will be removed in a future release of this library. Instead, use \`Build.VERSION.SDK_INT \>= 27\`, use this instead:
>
> ```kotlin
> android.os.Build.VERSION.SDK_INT >= 27
> ```

Checks if the device is running on a release version of Android O MR1 or newer.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if O MR1 APIs are available for use, `false` otherwise |

### isAtLeastP

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@ChecksSdkIntAtLeast(api = 28)
fun [isAtLeastP](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastP())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Android P is a finalized release and this method is no longer necessary. It will be removed in a future release of this library. Instead, use \`Build.VERSION.SDK_INT \>= 28\`, use this instead:
>
> ```kotlin
> android.os.Build.VERSION.SDK_INT >= 28
> ```

Checks if the device is running on a release version of Android P or newer.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if P APIs are available for use, `false` otherwise |

### isAtLeastQ

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/core#1.2.0)

```
@ChecksSdkIntAtLeast(api = 29)
fun [isAtLeastQ](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastQ())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Android Q is a finalized release and this method is no longer necessary. It will be removed in a future release of this library. Instead, use \`Build.VERSION.SDK_INT \>= 29\`, use this instead:
>
> ```kotlin
> android.os.Build.VERSION.SDK_INT >= 29
> ```

Checks if the device is running on release version of Android Q or newer.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if Q APIs are available for use, `false` otherwise |

### isAtLeastR

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/core#1.2.0) Deprecated in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
@ChecksSdkIntAtLeast(api = 30)
fun [isAtLeastR](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastR())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Android R is a finalized release and this method is no longer necessary. It will be removed in a future release of this library. Instead, use \`Build.VERSION.SDK_INT \>= 30\`, use this instead:
>
> ```kotlin
> android.os.Build.VERSION.SDK_INT >= 30
> ```

Checks if the device is running on release version of Android R or newer.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if R APIs are available for use, `false` otherwise |

### isAtLeastS

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0) Deprecated in [1.8.0](https://developer.android.com/jetpack/androidx/releases/core#1.8.0)

```
@ChecksSdkIntAtLeast(api = 31, codename = "S")
fun [isAtLeastS](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastS())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Android S is a finalized release and this method is no longer necessary. It will be removed in a future release of this library. Instead, use \`Build.VERSION.SDK_INT \>= 31\`, use this instead:
>
> ```kotlin
> android.os.Build.VERSION.SDK_INT >= 31
> ```

Checks if the device is running on a pre-release version of Android S or a release version of Android S or newer.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if S APIs are available for use, `false` otherwise |

### isAtLeastSv2

Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/core#1.8.0) Deprecated in [1.9.0](https://developer.android.com/jetpack/androidx/releases/core#1.9.0)

```
@ChecksSdkIntAtLeast(api = 32, codename = "Sv2")
fun [isAtLeastSv2](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastSv2())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Android Sv2 is a finalized release and this method is no longer necessary. It will be removed in a future release of this library. Instead, use \`Build.VERSION.SDK_INT \>= 32\`, use this instead:
>
> ```kotlin
> android.os.Build.VERSION.SDK_INT >= 32
> ```

Checks if the device is running on a pre-release version of Android Sv2 or a release version of Android Sv2 or newer.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if Sv2 APIs are available for use, `false` otherwise |

### isAtLeastT

Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/core#1.6.0) Deprecated in [1.11.0](https://developer.android.com/jetpack/androidx/releases/core#1.11.0)

```
@ChecksSdkIntAtLeast(api = 33, codename = "Tiramisu")
fun [isAtLeastT](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastT())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Android Tiramisu is a finalized release and this method is no longer necessary. It will be removed in a future release of this library. Instead, use \`Build.VERSION.SDK_INT \>= 33\`, use this instead:
>
> ```kotlin
> android.os.Build.VERSION.SDK_INT >= 33
> ```

Checks if the device is running on a pre-release version of Android Tiramisu or a release version of Android Tiramisu or newer.

**Note:** When Android Tiramisu is finalized for release, this method will be removed and all calls must be replaced with `Build.VERSION.SDK_INT >= 33`.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if Tiramisu APIs are available for use, `false` otherwise |

### isAtLeastU

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/core#1.9.0) Deprecated in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
@ChecksSdkIntAtLeast(api = 34, codename = "UpsideDownCake")
fun [isAtLeastU](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastU())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Android UpsideDownCase is a finalized release and this method is no longer necessary. It will be removed in a future release of this library. Instead, use \`Build.VERSION.SDK_INT \>= 34\`, use this instead:
>
> ```kotlin
> android.os.Build.VERSION.SDK_INT >= 34
> ```

Checks if the device is running on a pre-release version of Android UpsideDownCake or a release version of Android UpsideDownCake or newer.

**Note:** When Android UpsideDownCake is finalized for release, this method will be removed and all calls must be replaced with `Build.VERSION.SDK_INT >= 34`.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if UpsideDownCake APIs are available for use, `false` otherwise |

### isAtLeastV

Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/core#1.11.0) Deprecated in [1.16.0](https://developer.android.com/jetpack/androidx/releases/core#1.16.0)

```
@ChecksSdkIntAtLeast(api = 35, codename = "VanillaIceCream")
fun [isAtLeastV](https://developer.android.com/reference/kotlin/androidx/core/os/BuildCompat#isAtLeastV())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Android VanillaIceCream is a finalized release and this method is no longer necessary. It will be removed in a future release of this library. Instead, use \`Build.VERSION.SDK_INT \>= 35\`, use this instead:
>
> ```kotlin
> android.os.Build.VERSION.SDK_INT >= 35
> ```

Checks if the device is running on a pre-release version of Android VanillaIceCream or a release version of Android VanillaIceCream or newer.

**Note:** When Android VanillaIceCream is finalized for release, this method will be removed and all calls must be replaced with `Build.VERSION.SDK_INT >= 35`.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if VanillaIceCream APIs are available for use, `false` otherwise |

## Public properties

### AD_SERVICES_EXTENSION_INT

Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
@ChecksSdkIntAtLeast(extension = 1000000)
val AD_SERVICES_EXTENSION_INT: Int
```

The value of `SdkExtensions.getExtensionVersion(AD_SERVICES)`. This is a convenience constant which provides the extension version in a similar style to `Build.VERSION.SDK_INT`.

Compared to calling `getExtensionVersion` directly, using this constant has the benefit of not having to verify the `getExtensionVersion` method is available.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the version of the AdServices extension, if it exists. 0 otherwise. |

### R_EXTENSION_INT

Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
@ChecksSdkIntAtLeast(extension = 30)
val R_EXTENSION_INT: Int
```

The value of `SdkExtensions.getExtensionVersion(R)`. This is a convenience constant which provides the extension version in a similar style to `Build.VERSION.SDK_INT`.

Compared to calling `getExtensionVersion` directly, using this constant has the benefit of not having to verify the `getExtensionVersion` method is available.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the version of the R extension, if it exists. 0 otherwise. |

### S_EXTENSION_INT

Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
@ChecksSdkIntAtLeast(extension = 31)
val S_EXTENSION_INT: Int
```

The value of `SdkExtensions.getExtensionVersion(S)`. This is a convenience constant which provides the extension version in a similar style to `Build.VERSION.SDK_INT`.

Compared to calling `getExtensionVersion` directly, using this constant has the benefit of not having to verify the `getExtensionVersion` method is available.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the version of the S extension, if it exists. 0 otherwise. |

### T_EXTENSION_INT

Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
@ChecksSdkIntAtLeast(extension = 33)
val T_EXTENSION_INT: Int
```

The value of `SdkExtensions.getExtensionVersion(TIRAMISU)`. This is a convenience constant which provides the extension version in a similar style to `Build.VERSION.SDK_INT`.

Compared to calling `getExtensionVersion` directly, using this constant has the benefit of not having to verify the `getExtensionVersion` method is available.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the version of the T extension, if it exists. 0 otherwise. |