//[app](../../../index.md)/[org.mjdev.tvapp.base.state](../index.md)/[ScreenState](index.md) # ScreenState class [ScreenState](index.md)(title: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)? = null, error: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)? = null) Activity view state. Used to keep states and change in activity. #### Parameters androidJvm | | |---| | title | | error | ## Constructors | | | |---|---| | [ScreenState](-screen-state.md) | [androidJvm]
constructor(title: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)? = null, error: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)? = null)
Create [ScreenState](index.md) | ## Types | Name | Summary | |---|---| | [Companion](-companion/index.md) | [androidJvm]
object [Companion](-companion/index.md) | ## Functions | Name | Summary | |---|---| | [clearError](clear-error.md) | [androidJvm]
fun [clearError](clear-error.md)()
Clear error. | | [error](error.md) | [androidJvm]
fun [error](error.md)(message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html))
fun [error](error.md)(e: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)?)
Set Error. | | [info](info.md) | [androidJvm]
fun [info](info.md)(message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html))
Set info message.
[androidJvm]
fun [info](info.md)(e: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html))
Set info from throwable. | | [setTitle](set-title.md) | [androidJvm]
fun [setTitle](set-title.md)(title: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?)
Set title. | ## Properties | Name | Summary | |---|---| | [errorState](error-state.md) | [androidJvm]
val [errorState](error-state.md): [MutableState](https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState.html)<[Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)?> | | [titleState](title-state.md) | [androidJvm]
val [titleState](title-state.md): [MutableState](https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState.html)<[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?> |