# rememberTimePickerState

Common/AllAndroid/JVM

## Functions summary

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/TimePickerState` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/rememberTimePickerState.composable#rememberTimePickerState(kotlin.Int,kotlin.Int,kotlin.Boolean)( initialHour: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, initialMinute: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, is24Hour: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` Creates a `https://developer.android.com/reference/kotlin/androidx/compose/material3/TimePickerState` for a time picker that is remembered across compositions and configuration changes. | Cmn |

## Functions

### rememberTimePickerState

Cmn Artifact: [androidx.compose.material3:material3](https://developer.android.com/jetpack/androidx/releases/compose-material3) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/TimePicker.kt+function:rememberTimePickerState)

```
@Composable
fun rememberTimePickerState(
    initialHour: Int = 0,
    initialMinute: Int = 0,
    is24Hour: Boolean = is24HourFormat
): TimePickerState
```

Creates a `https://developer.android.com/reference/kotlin/androidx/compose/material3/TimePickerState` for a time picker that is remembered across compositions and configuration changes.

| Parameters |
|---|---|
| `initialHour: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | starting hour for this state, will be displayed in the time picker when launched. Ranges from 0 to 23 |
| `initialMinute: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | starting minute for this state, will be displayed in the time picker when launched. Ranges from 0 to 59 |
| `is24Hour: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = is24HourFormat` | The format for this time picker. `false` for 12 hour format with an AM/PM toggle or `true` for 24 hour format without toggle. Defaults to follow system setting. |