NativeFormAdapter
Experimental adapter over the existing Compose-backed form engine. Collect and mutate on the main thread. No Compose view or recomposer is required. Each collector owns and disposes its snapshot observer when collection is cancelled.
Functions
The live Kotlin field behind a CUSTOM snapshot, for the application's own renderer to cast to its class and read or update typed state. Null when the key is not a visible custom field. The renderer must honor the snapshot's enabled state itself.
Runs the Kotlin callback of a visible, enabled action field.
Null requests user clearing. The model enforces clearing and option membership.
Sets the typed dial code of a phone row without a country picker and returns the dial code the row now holds, which the input shows instead of dialCode: a rejected digit leaves the value, and so the snapshots, unchanged. Null when the row has a country picker or is not editable.
The option key identifies the control; its typed value stays in Kotlin. In a single selection group, selecting moves the selection and deselecting follows the group's deselection policy.
Cancels pending navigation when this renderer is detached. Form values remain shared.