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 })

Properties

Link copied to clipboard
Link copied to clipboard
val autoCorrect: StateFlow<Boolean>
Link copied to clipboard
Link copied to clipboard
val formatText: (text: String) -> String
Link copied to clipboard
Link copied to clipboard
val onReturnKeyTap: () -> Unit
Link copied to clipboard
val placeholder: StateFlow<String>
Link copied to clipboard
val text: StateFlow<String>
Link copied to clipboard
val transformText: (text: String) -> String
Link copied to clipboard
val unformatText: (text: String) -> String

Functions

Link copied to clipboard
Link copied to clipboard