-
public final class LocationFieldComposableKt
-
-
Method Summary
-
-
Method Detail
-
LocationFieldComposable
@Composable() final static Unit LocationFieldComposable(FormField field, Map<String, Object> values, Map<String, String> errors, Modifier modifier)
SPEC-070-A I.18 — Reusable location-autocomplete composable for legacy form-step
FormFieldType.LOCATIONfields. Ports the autocomplete logic previously embedded inline inContentBlockRenderer.kt:3840-3974 FormInputLocationPlaceholderso the legacy onboardingFormStepComposablecan use the same UI fidelity that block-based rendering already enjoys.Wires three FormFieldConfig knobs:
location_type— surfaced as anx-location-typequery header so the backend can return only the requested level (city / region / country / address). Falls back to "address".location_bias_country— ISO 3166-1 alpha-2 country bias hint (country=us).location_language— BCP-47 language tag for response strings (language=fr-FR).location_min_chars— minimum keystrokes before triggering the /api/v1/sdk/geocode/autocomplete debounce (default 3).
The IME action is
Searchso the keyboard's enter key submits the query. Mirrors iOSOnboarding/OnboardingStepViews/LocationFieldView.swift.
-
-
-
-