PilotTextField
open class PilotTextField(textFlow: MutableStateFlow<String>, val placeholder: StateFlow<String>, val keyboardType: StateFlow<PilotKeyboardType> = MutableStateFlow(PilotKeyboardType.Default), val keyboardReturnKeyType: StateFlow<PilotKeyboardReturnKeyType> = MutableStateFlow(PilotKeyboardReturnKeyType.Default), val contentType: StateFlow<PilotTextContentType> = MutableStateFlow(PilotTextContentType.NotSet), val autoCorrect: StateFlow<Boolean> = MutableStateFlow(true), val autoCapitalization: StateFlow<PilotKeyboardAutoCapitalization> = MutableStateFlow(PilotKeyboardAutoCapitalization.Sentences), val onReturnKeyTap: () -> Unit = {}, val formatText: (text: String) -> String = { it }, val unformatText: (text: String) -> String = { it }, val transformText: (text: String) -> String = { it })
Constructors
Link copied to clipboard
constructor(textFlow: MutableStateFlow<String>, placeholder: StateFlow<String>, keyboardType: StateFlow<PilotKeyboardType> = MutableStateFlow(PilotKeyboardType.Default), keyboardReturnKeyType: StateFlow<PilotKeyboardReturnKeyType> = MutableStateFlow(PilotKeyboardReturnKeyType.Default), contentType: StateFlow<PilotTextContentType> = MutableStateFlow(PilotTextContentType.NotSet), autoCorrect: StateFlow<Boolean> = MutableStateFlow(true), autoCapitalization: StateFlow<PilotKeyboardAutoCapitalization> = MutableStateFlow(PilotKeyboardAutoCapitalization.Sentences), onReturnKeyTap: () -> Unit = {}, formatText: (text: String) -> String = { it }, unformatText: (text: String) -> String = { it }, transformText: (text: String) -> String = { it })