SettingsFieldFocus

The control a settings search result named, handed from the search field to the config screen it opened.

Each request carries the schema string key of the field (schema_lora_hop_limit) and an id unique to that selection. The screen's list host scrolls to the item carrying the key and calls consume; a screen whose items carry no matching key leaves the request pending until the host leaves composition, which clears it.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val pending: StateFlow<FieldFocusRequest?>

Functions

Link copied to clipboard
fun clear(request: FieldFocusRequest?)

Clears the pending request only if it is still request; same guard as consume, for a host that is leaving.

Link copied to clipboard

Clears the pending request only if it is still request, so a newer selection is not dropped by an older host.

Link copied to clipboard
fun request(fieldKey: String?)