17typedef void (*TextInputCallback)(
void* context);
18typedef bool (*TextInputValidatorCallback)(
const char* text,
FuriString* error,
void* context);
62 TextInputCallback callback,
63 void* callback_context,
65 size_t text_buffer_size,
66 bool clear_default_text);
68void text_input_set_validator(
70 TextInputValidatorCallback callback,
71 void* callback_context);
73TextInputValidatorCallback text_input_get_validator_callback(
TextInput* text_input);
75void* text_input_get_validator_callback_context(
TextInput* text_input);
Definition text_input.c:6
TextInput * text_input_alloc(void)
Allocate and initialize text input.
Definition text_input.c:442
void text_input_set_header_text(TextInput *text_input, const char *text)
Set text input header text.
Definition text_input.c:571
void text_input_set_result_callback(TextInput *text_input, TextInputCallback callback, void *callback_context, char *text_buffer, size_t text_buffer_size, bool clear_default_text)
Set text input result callback.
Definition text_input.c:508
View * text_input_get_view(TextInput *text_input)
Get text input view.
Definition text_input.c:503
void text_input_reset(TextInput *text_input)
Clean text input view Note: this function does not free memory.
Definition text_input.c:481
void text_input_free(TextInput *text_input)
Deinitialize and free text input.
Definition text_input.c:463