TextInputCallback
public class TextInputCallback : AbstractCallback, ObservableObject, @unchecked Sendable
A callback that collects a text input from the user.
-
The prompt message displayed to the user.
Declaration
Swift
private(set) public var prompt: String { get } -
Default text value for the input field.
Declaration
Swift
private(set) public var defaultText: String { get } -
The text input collected from the user.
Declaration
Swift
public var text: String -
Initializes a new instance of
TextInputCallbackwith the provided JSON input.Declaration
Swift
public override func initValue(name: String, value: Any) -
Returns the payload with the text input value.
Declaration
Swift
public override func payload() -> [String : Any]
View on GitHub