# SecurityPatchState.SecurityPatchLevel

Artifact: [androidx.security:security-state](https://developer.android.com/jetpack/androidx/releases/security) [View Source](https://cs.android.com/search?q=file:androidx/security/state/SecurityPatchState.kt+class:androidx.security.state.SecurityPatchState.SecurityPatchLevel) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/security#1.0.0)

*** ** * ** ***


```
abstract class SecurityPatchState.SecurityPatchLevel : Comparable<SecurityPatchState.SecurityPatchLevel>
```

<br />

Known direct subclasses [SecurityPatchState.DateBasedSecurityPatchLevel](https://developer.android.com/reference/kotlin/androidx/security/state/SecurityPatchState.DateBasedSecurityPatchLevel), [SecurityPatchState.GenericStringSecurityPatchLevel](https://developer.android.com/reference/kotlin/androidx/security/state/SecurityPatchState.GenericStringSecurityPatchLevel), [SecurityPatchState.VersionedSecurityPatchLevel](https://developer.android.com/reference/kotlin/androidx/security/state/SecurityPatchState.VersionedSecurityPatchLevel)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/security/state/SecurityPatchState.DateBasedSecurityPatchLevel` | Implementation of `https://developer.android.com/reference/kotlin/androidx/security/state/SecurityPatchState.SecurityPatchLevel` for a date-based patch level. |
| `https://developer.android.com/reference/kotlin/androidx/security/state/SecurityPatchState.GenericStringSecurityPatchLevel` | Implementation of `https://developer.android.com/reference/kotlin/androidx/security/state/SecurityPatchState.SecurityPatchLevel` for a simple string patch level. |
| `https://developer.android.com/reference/kotlin/androidx/security/state/SecurityPatchState.VersionedSecurityPatchLevel` | Implementation of `https://developer.android.com/reference/kotlin/androidx/security/state/SecurityPatchState.SecurityPatchLevel` for a versioned patch level. |

*** ** * ** ***

Abstract base class representing a security patch level.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/security/state/SecurityPatchState.SecurityPatchLevel#SecurityPatchLevel()()` |

| ### Public functions |
|---|---|
| `abstract https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/security/state/SecurityPatchState.SecurityPatchLevel#toString()()` |

### Inherited functions

From [kotlin.Comparable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-comparable/index.html) `abstract operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-comparable/compare-to.html(other: https://developer.android.com/reference/kotlin/androidx/security/state/SecurityPatchState.SecurityPatchLevel)`

## Public constructors

### SecurityPatchLevel

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

```
SecurityPatchLevel()
```

## Public functions

### toString

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

```
abstract fun toString(): String
```