SIMT Design
SPECIFICATION Cosmos 2.4.0Plain text

APP.SIMT:APP-UI

Native UI catalog

Shared Android and iOS Compose UI primitives, inspected through real Android host captures, production Kotlin source and published ABI dumps.

  • Android · API 28+
  • iOS · iosArm64
  • iOS Simulator · iosSimulatorArm64

NATIVE PREVIEWS

Published artifact, rendered by its capture harness.

Each image is generated by the package-owned capture harness using the provenance below. The cards pair the capture with its real production source and caller-owned usage contract.

01

Clearable text fields

Empty, populated, error, supporting-text and read-only states from one caller-state-owned field.

Clearable text fields: Robolectric Android host capture
Robolectric Android host capture · 420 × 560 px

Usage

var value by remember { mutableStateOf("Sample") }

ClearableTextField(
    value = value,
    onValueChange = { value = it },
    label = "Sample field",
    supportingText = { Text("Caller-owned guidance") },
)
02

City and country fields

A paired location input with normalized country-code presentation.

City and country fields: Robolectric Android host capture
Robolectric Android host capture · 420 × 240 px

Usage

CityCountryFields(
    city = city,
    onCityChange = { city = it },
    countryCode = countryCode,
    onCountryCodeChange = { countryCode = it },
)
03

Windowed typed list

A keyed lazy list with stable content types and an explicitly controlled initial scroll position.

Windowed typed list: Robolectric Android host capture
Robolectric Android host capture · 420 × 320 px

Usage

WindowedList(
    items = rows,
    key = Row::id,
    contentType = { "row" },
    state = rememberLazyListState(initialFirstVisibleItemIndex = 10),
) { _, row ->
    Text(row.label)
}
04

Empty list state

The same list primitive with a caller-authored empty state instead of fabricated rows.

Empty list state: Robolectric Android host capture
Robolectric Android host capture · 420 × 320 px

Usage

WindowedList(
    items = emptyList<Row>(),
    key = Row::id,
    emptyContent = { Text("No rows yet") },
) { _, row ->
    Text(row.label)
}
05

List DSL overload

Section headers and indexed rows through the lazy-list DSL without a separate component implementation.

List DSL overload: Robolectric Android host capture
Robolectric Android host capture · 420 × 320 px

Usage

WindowedList {
    item(key = "section") { Text("Section") }
    items(count = rows.size, key = { rows[it].id }) { index ->
        Text(rows[index].label)
    }
}
06

Attached scroll edges

Horizontal and vertical overflow indicators attached to real scroll state.

Attached scroll edges: Robolectric Android host capture
Robolectric Android host capture · 420 × 400 px

Usage

val state = rememberScrollState()

ScrollEdgeEffect(state, Orientation.Vertical) {
    Column(Modifier.verticalScroll(state)) {
        // Caller-owned scrollable content.
    }
}
07

Long-press tooltip

A tooltip effect whose anchor, copy and interaction remain owned by the caller.

Long-press tooltip: Robolectric Android host capture
Robolectric Android host capture · 420 × 180 px

Usage

LongPressTooltipEffect(tooltipText = "More information") {
    Text("Press and hold for help")
}
08

Top overlay header

A bounded overlay header with selected, unselected and disabled tool toggles.

Top overlay header: Robolectric Android host capture
Robolectric Android host capture · 420 × 240 px

Usage

TopOverlayHeader(
    title = "Survey",
    subtitle = "Current session",
    onClose = onClose,
    applyTopInsets = false,
    tools = tools,
    contentCard = { Text("Session details") },
)
09

Stable countdown

A one-second countdown fixture with motion disabled and no recurring timer work.

Stable countdown: Robolectric Android host capture
Robolectric Android host capture · 420 × 320 px

Usage

CountdownEffect(
    color = MaterialTheme.colorScheme.primary,
    startValue = 3,
    tickMs = 1_000,
    onStart = onStart,
    onFinished = onFinished,
    subtitle = "Get ready",
)
10

Fullscreen insets

Top and bottom inset modifiers applied to caller-owned fullscreen content.

Fullscreen insets: Robolectric Android host capture
Robolectric Android host capture · 420 × 560 px

Usage

Column(
    Modifier
        .fillMaxSize()
        .fullScreenTopInsets()
        .fullScreenBottomInsets()
) {
    // Caller-owned fullscreen content.
}

INTEGRATION

Consume the published native artifact.

The caller owns the theme, state, labels, callbacks, window policy, motion, visibility and lifecycle. Use the package coordinates and platform targets below with the integration shown here.

dependencies {
    implementation("app.simt:app-ui:0.1.0")
}

// The caller owns the Material3 theme, state, labels,
// callbacks, window policy and lifecycle.
app.simt:app-uiAndroid · API 28+
app.simt:app-uiiOS · iosArm64
app.simt:app-uiiOS Simulator · iosSimulatorArm64

CAPTURE PROVENANCE

Regenerate the evidence from source.

The package-owned command below documents the capture environment and build inputs. Captures are committed as reviewable evidence; rerun it whenever the rendered primitives or fixture content changes.

./gradlew :app-ui:publishAndroidPublicationToLocalValidationRepository && ./gradlew -p examples/android-consumer -PuiRepository=../../build/maven-repository -PpreviewOutput=../app-ui/previews testDebugUnitTest --tests app.simt.ui.preview.SharedUiPreviewsTest
Capture harness source

AUTOMATIC COVERAGE

New Kotlin source and ABI appear automatically.

The build discovers every production .kt file under commonMain/kotlin, androidMain/kotlin, iosMain/kotlin, publishes the committed ABI dumps, and marks files not yet referenced by an authored capture. Add a source file or refresh the ABI dump without editing this page template.

92Production Kotlin files
218Top-level ABI entries
84Files awaiting an example
android/app-ui.api · 126 top-level entries

Open the complete ABI dump

  • CanopyGlassKt class
  • CosmosFxKt class
  • GradientDividerKt class
  • TopOverlayHeaderKt class
  • TopOverlayToolToggle class
  • WindowedListKt class
  • AnimatedDialogBackgroundKt class
  • CosmosBackgroundKt class
  • CosmosSpecksKt class
  • CosmosVariant class
  • GradientBackgroundKt class
  • InformationBannerKt class
  • DialogActionButtonsKt class
  • FavoriteToggleButtonKt class
  • IconLabelAction class
  • IconLabelActionsToolbarColors class
  • IconLabelActionsToolbarDefaults class
  • IconLabelActionsToolbarKt class
  • IconLabelButtonKt class
  • IconLabelButtonRowKt class
  • LockButtonKt class
  • OverlayIconButtonKt class
  • PremiumIconLabelButtonKt class
  • QuickActionButtonKt class
  • RoundMultiButtonExpandAxis class
  • RoundMultiButtonExpandDirection class
  • RoundMultiButtonItem class
  • RoundMultiButtonKt class
  • VisibilityToggleButtonKt class
  • BetaChipKt class
  • MapControlPanelKt class
  • VerticalTwinControlKt class
  • ActionListDialogKt class
  • ActionListItem class
  • ConfirmDialogKt class
  • ContentDialogKt class
  • DateTimePickerDialogKt class
  • InfoDialogKt class
  • ModalDefaults class
  • PromptDialogKt class
  • RateAppDialogKt class
  • SimtDialogKt class
  • SimtDialogVariant class
  • AppMultiChoiceColor class
  • AppMultiChoiceIconDisplay class
  • AppMultiChoiceKt class
  • AppMultiChoiceLayout class
  • AppMultiChoiceOption class
  • AppMultiChoiceState class
  • AppSelectFieldKt class
  • AppSelectOption class
  • AppSingleChoiceKt class
  • AppSingleChoiceState class
  • CityCountryFieldsKt class
  • ClearableTextFieldKt class
  • DataFieldKt class
  • DebouncedTextFieldKt class
  • DoubleLabelSwitchKt class
  • EpochFreshness class
  • IconColorNameRowKt class
  • IconPickerKt class
  • NumberStepperFieldKt class
  • RadioOptionLineKt class
  • SettingLineKt class
  • TLEFieldKt class
  • TimePickerFieldKt class
  • TleValidation class
  • TleValidationError class
  • AccordionGroupKt class
  • AppScreenKt class
  • CustomToolbarKt class
  • EditableItemCardKt class
  • EditableItemViewAction class
  • InfoRowKt class
  • MetricBadgeKt class
  • BlockingLoaderController interface
  • BlockingLoaderHandle class
  • BlockingLoaderKt class
  • BlockingLoaderUiState class
  • LocalBlockingLoaderStateKt class
  • AnimatedDialogBackgroundKt class
  • AnimatedDialogBackgroundStyle class
  • FeatureRequirement class
  • FeatureRequirementKt class
  • PermissionGateKt class
  • PermissionPresentation class
  • PermissionRequestDialogKt class
  • RequirementStatus class
  • SettingsBottomSheetKt class
  • SheetEdge class
  • SimtSheetSurfaceKt class
  • GlobalToastHostKt class
  • LocalToastControllerKt class
  • ToastController interface
  • ToastStyle class
  • ToastSurfaceKt class
  • ToastUiState class
  • CosmosTier class
  • CountdownEffectKt class
  • DoubleBackToExitHandlerKt class
  • FullScreenExperienceEffectKt class
  • GlobalBlockingLoaderKt class
  • LockCurrentOrientationEffectKt class
  • LongPressTooltipEffectKt class
  • MotionKt class
  • ScrollEdgeEffectDefaults class
  • ScrollEdgeEffectKt class
  • SimtMotion class
  • UiHapticsKt class
  • UiMotionKt class
  • GoogleSignInLauncher class
  • GoogleSignInLauncherKt class
  • NotificationActionBuilder class
  • NotificationService interface
  • NotificationSpec class
  • SystemNotificationService class
  • OnboardingOverlayKt class
  • QRScannerOverlayKt class
  • QrCodeFullscreenOverlayKt class
  • PlayCoreUpdateChecker class
  • UpdateAvailableDialogKt class
  • UpdateCheckResult interface
  • UpdateChecker interface
  • AppScreenTransitionKt class
  • StaggeredEntranceKt class
  • FullscreenInsetsKt class
app-ui.klib.api · 92 top-level entries

Open the complete ABI dump

  • CosmosVariant class
  • RoundMultiButtonExpandAxis class
  • RoundMultiButtonExpandDirection class
  • AppMultiChoiceColor class
  • AppMultiChoiceIconDisplay class
  • AppMultiChoiceLayout class
  • CosmosTier class
  • UpdateChecker interface
  • UpdateCheckResult interface
  • AppMultiChoiceOption class
  • AppMultiChoiceState class
  • AppSelectOption class
  • AppSingleChoiceState class
  • IconLabelAction class
  • IconLabelActionsToolbarColors class
  • RoundMultiButtonItem class
  • EditableItemViewAction class
  • TopOverlayToolToggle class
  • IconLabelActionsToolbarDefaults object
  • ScrollEdgeEffectDefaults object
  • SimtMotion object
  • CITY_NAME_MAX_LENGTH val
  • COUNTRY_CODE_LENGTH val
  • LocalCosmosTier val
  • LocalUiHapticsEnabled val
  • LocalUiMotionEnabled val
  • canopyGlass fun
  • staggeredEntrance fun
  • fullScreenBottomInsets fun
  • fullScreenTopInsets fun
  • AppMultiChoice fun
  • AppSelectField fun
  • AppSingleChoice fun
  • IconColorNameRow fun
  • IconPickerPalette fun
  • rememberAppMultiChoiceState fun
  • rememberAppSingleChoiceState fun
  • WindowedList fun
  • CosmosBackground fun
  • CosmosSpecks fun
  • GradientBackground fun
  • InformationBanner fun
  • CancelLinkButton fun
  • CloseLinkButton fun
  • DialogActionButtons fun
  • FavoriteToggleButton fun
  • IconLabelActionsToolbar fun
  • IconLabelButton fun
  • IconLabelButtonRow fun
  • LockButton fun
  • OverlayIconButton fun
  • PremiumIconLabelButton fun
  • QuickActionButton fun
  • RoundMultiButton fun
  • SaveButton fun
  • VisibilityToggleButton fun
  • BetaChip fun
  • MapControlButton fun
  • MapControlLabel fun
  • MapControlLabel fun
  • MapControlPanel fun
  • VerticalTwinControl fun
  • CityCountryFields fun
  • ClearableTextField fun
  • DataField fun
  • DebouncedTextField fun
  • DoubleLabelSwitch fun
  • IconPickerChip fun
  • NumberStepperField fun
  • RadioOptionLine fun
  • SettingLine fun
  • AccordionGroup fun
  • AppScreen fun
  • CustomToolbar fun
  • EditableItemCard fun
  • InfoRow fun
  • MetricBadge fun
  • SettingsBottomSheet fun
  • CosmosErrorBurst fun
  • CosmosSuccessBurst fun
  • CosmosWaveField fun
  • GradientDivider fun
  • TopOverlayHeader fun
  • WindowedList fun
  • CountdownEffect fun
  • CountdownEffect fun
  • LongPressTooltipEffect fun
  • ScrollEdgeEffect fun
  • UpdateAvailableDialog fun
  • appScreenEnterTransition fun
  • appScreenExitTransition fun
  • appScreenTransition fun
All 92 production Kotlin files