rememberOudsPasswordInputState

fun rememberOudsPasswordInputState(initialText: String = "", initialSelection: TextRange = TextRange(initialText.length), initialIsPasswordHidden: Boolean = true): OudsPasswordInputState

Create and remember an OudsPasswordInputState. The state is remembered using rememberSaveable and so will be saved and restored with the composition.

If you need to store an OudsPasswordInputState in another object, use the OudsPasswordInputState.Saver object to manually save and restore the state.

Parameters

initialText

The initial text state. If a different value is passed in a subsequent recomposition, the value of the state will not be updated. To update the state after it's initialized, call methods on OudsPasswordInputState.

initialSelection

The initial selection state. If a different value is passed in a subsequent recomposition, the value of the state will not be updated. To update the state after it's initialized, call methods on OudsPasswordInputState.

initialIsPasswordHidden

Whether the password should initially be hidden (masked). Defaults to true. If a different value is passed in a subsequent recomposition, the value of the state will not be updated. To update the state after it's initialized, call OudsPasswordInputState.isPasswordHidden.