Compose UI API Reference
Installation
implementation("androidx.compose.ui:ui:1.9.0-beta02")
Composable Functions
- AndroidView
- Dialog
- Group
- InterceptPlatformTextInput
- Layout
- LookaheadScope
- MultiMeasureLayout
- Path
- Popup
- RenderVectorGroup
- SubcomposeLayout
- booleanResource
- colorResource
- dimensionResource
- fontResource
- imageResource
- integerArrayResource
- integerResource
- painterResource
- pluralStringResource
- rememberGraphicsLayer
- rememberNestedScrollInteropConnection
- rememberTextMeasurer
- rememberVectorPainter
- stringArrayResource
- stringResource
- vectorResource
Modifiers
- alpha
- approachLayout
- blur
- clearAndSetSemantics
- clip
- clipToBounds
- composed
- contentType
- drawBehind
- drawWithCache
- drawWithContent
- dropShadow
- focusModifier
- focusOrder
- focusProperties
- focusRequester
- focusRestorer
- focusTarget
- graphicsLayer
- innerShadow
- inspectable
- keepScreenOn
- layout
- layoutBounds
- layoutId
- modifierLocalConsumer
- modifierLocalProvider
- motionEventSpy
- nestedScroll
- onFirstVisible
- onFocusChanged
- onFocusEvent
- onGloballyPositioned
- onIndirectTouchEvent
- onInterceptKeyBeforeSoftKeyboard
- onKeyEvent
- onLayoutRectChanged
- onPlaced
- onPreIndirectTouchEvent
- onPreInterceptKeyBeforeSoftKeyboard
- onPreRotaryScrollEvent
- onPreviewKeyEvent
- onRotaryScrollEvent
- onSizeChanged
- onVisibilityChanged
- paint
- pointerHoverIcon
- pointerInput
- pointerInteropFilter
- preferredFrameRate
- rotate
- scale
- semantics
- sensitiveContent
- shadow
- stylusHoverIcon
- testTag
- toolingGraphicsLayer
- zIndex
Classes
- AbstractComposeView
- AccessibilityAction
- AlignmentLine
- AndroidUiDispatcher
- AndroidUiFrameClock
- AndroidUriHandler
- AndroidViewConfiguration
- AutofillManager
- AutofillNode
- AutofillTree
- AutofillType
- BiasAbsoluteAlignment
- BiasAlignment
- BlurredEdgeTreatment
- CacheDrawScope
- ClipEntry
- ClipMetadata
- CollectionInfo
- CollectionItemInfo
- CombinedModifier
- ComposeView
- CompositingStrategy
- ConsumedData
- CustomAccessibilityAction
- DelegatingNode
- DialogProperties
- DpTouchBoundsExpansion
- DragAndDropEvent
- DragAndDropTransferData
- DrawResult
- ExperimentalVelocityTrackerApi
- FixedScale
- FocusDirection
- FocusOrder
- FocusRequester
- Focusability
- FrameRateCategory
- HapticFeedbackType
- HistoricalChange
- HorizontalAlignmentLine
- HorizontalRuler
- ImageVector
- IndirectTouchEventType
- InputMode
- InspectableModifier
- InspectorInfo
- InspectorValueInfo
- InternalCoreApi
- Key
- KeyEvent
- KeyEventType
- LayoutBoundsHolder
- LiveRegionMode
- MeasureScopeMarker
- ModifierInfo
- ModifierLocal
- ModifierLocalMap
- ModifierNodeElement
- NativeClipboard
- NativeKeyEvent
- NativePointerButtons
- NativePointerKeyboardModifiers
- NestedScrollDispatcher
- NestedScrollSource
- Placeable
- PlacementScopeMarker
- PointerButtons
- PointerEvent
- PointerEventPass
- PointerEventTimeoutCancellationException
- PointerEventType
- PointerId
- PointerInputChange
- PointerInputFilter
- PointerKeyboardModifiers
- PointerType
- PopupProperties
- ProgressBarRangeInfo
- ProvidableModifierLocal
- Ref
- RelativeLayoutBounds
- RequestDisallowInterceptTouchEvent
- ResourceResolutionException
- Role
- RotaryScrollEvent
- Ruler
- ScaleFactor
- ScrollAxisRange
- SecureFlagPolicy
- SemanticsConfiguration
- SemanticsNode
- SemanticsOwner
- SemanticsPropertyKey
- SubcomposeLayoutState
- TextToolbarStatus
- ToggleableState
- TouchBoundsExpansion
- TransformOrigin
- UiComposable
- VNode
- ValueElement
- ValueElementSequence
- VectorApplier
- VectorComposable
- VectorGroup
- VectorNode
- VectorPainter
- VectorPath
- VectorProperty
- VelocityTracker
- VelocityTracker1D
- VerticalAlignmentLine
- VerticalRuler
Interfaces
- AccessibilityManager
- Alignment
- ApproachIntrinsicMeasureScope
- ApproachLayoutModifierNode
- ApproachMeasureScope
- Autofill
- AwaitPointerEventScope
- BeyondBoundsLayout
- BringIntoViewModifierNode
- BuildDrawCacheParams
- CacheDrawModifierNode
- Clipboard
- ClipboardManager
- CompositionLocalConsumerModifierNode
- ContentCaptureManager
- ContentDataType
- ContentScale
- ContentType
- DelegatableNode
- DialogWindowProvider
- DragAndDropModifierNode
- DragAndDropSourceModifierNode
- DragAndDropStartTransferScope
- DragAndDropTarget
- DragAndDropTargetModifierNode
- DrawCacheModifier
- DrawModifier
- DrawModifierNode
- DropShadowScope
- FocusEnterExitScope
- FocusEventModifier
- FocusEventModifierNode
- FocusManager
- FocusOrderModifier
- FocusProperties
- FocusPropertiesModifierNode
- FocusRequesterModifier
- FocusRequesterModifierNode
- FocusState
- FocusTargetModifierNode
- GlobalPositionAwareModifierNode
- GraphicLayerInfo
- GraphicsLayerScope
- HapticFeedback
- IndirectTouchEvent
- IndirectTouchInputModifierNode
- InfiniteAnimationPolicy
- InnerShadowScope
- InputModeManager
- InspectableValue
- IntrinsicMeasurable
- IntrinsicMeasureScope
- KeyInputModifierNode
- LayoutAwareModifierNode
- LayoutCoordinates
- LayoutIdParentData
- LayoutInfo
- LayoutModifier
- LayoutModifierNode
- LookaheadScope
- Measurable
- MeasurePolicy
- MeasureResult
- MeasureScope
- Measured
- Modifier
- ModifierLocalConsumer
- ModifierLocalModifierNode
- ModifierLocalProvider
- ModifierLocalReadScope
- MotionDurationScale
- MultiContentMeasurePolicy
- NestedScrollConnection
- ObserverModifierNode
- OnGloballyPositionedModifier
- OnPlacedModifier
- OnRemeasuredModifier
- ParentDataModifier
- ParentDataModifierNode
- PinnableContainer
- PlatformTextInputInterceptor
- PlatformTextInputMethodRequest
- PlatformTextInputModifierNode
- PlatformTextInputSession
- PlatformTextInputSessionScope
- PointerIcon
- PointerInputEventHandler
- PointerInputModifier
- PointerInputModifierNode
- PointerInputScope
- PopupPositionProvider
- RectRulers
- Remeasurement
- RemeasurementModifier
- RootForTest
- RotaryInputModifierNode
- RulerScope
- SemanticsModifier
- SemanticsModifierNode
- SemanticsPropertyReceiver
- ShadowScope
- SoftKeyboardInterceptionModifierNode
- SoftwareKeyboardController
- SubcomposeMeasureScope
- SubcomposeSlotReusePolicy
- SuspendingPointerInputModifierNode
- TextToolbar
- TraversableNode
- UriHandler
- VectorConfig
- ViewCompositionStrategy
- ViewConfiguration
- ViewRootForInspector
- ViewRootForTest
- WindowInfo
- WindowInsetsAnimation
- WindowInsetsRulers
Properties
- DefaultCameraDistance
- DefaultFillType
- DefaultGroupName
- DefaultPathName
- DefaultPivotX
- DefaultPivotY
- DefaultRotation
- DefaultScaleX
- DefaultScaleY
- DefaultShadowColor
- DefaultStrokeLineCap
- DefaultStrokeLineJoin
- DefaultStrokeLineMiter
- DefaultStrokeLineWidth
- DefaultTintBlendMode
- DefaultTintColor
- DefaultTranslationX
- DefaultTranslationY
- DefaultTrimPathEnd
- DefaultTrimPathOffset
- DefaultTrimPathStart
- DisableContentCapture
- EmptyPath
- FirstBaseline
- LastBaseline
- LocalAccessibilityManager
- LocalAutofill
- LocalAutofillManager
- LocalAutofillTree
- LocalClipboard
- LocalClipboardManager
- LocalConfiguration
- LocalContext
- LocalCursorBlinkEnabled
- LocalDensity
- LocalFocusManager
- LocalFontFamilyResolver
- LocalFontLoader
- LocalGraphicsContext
- LocalHapticFeedback
- LocalInputModeManager
- LocalInspectionMode
- LocalLayoutDirection
- LocalLifecycleOwner
- LocalPinnableContainer
- LocalResources
- LocalSavedStateRegistryOwner
- LocalScrollCaptureInProgress
- LocalSoftwareKeyboardController
- LocalTextInputService
- LocalTextToolbar
- LocalUriHandler
- LocalView
- LocalViewConfiguration
- LocalWindowInfo
- ModifierLocalBeyondBoundsLayout
- NoInspectorInfo
- NoOpUpdate
- RootGroupName
- VelocityTrackerAddPointsFix
- VelocityTrackerStrategyUseImpulse
- accessibilityClassName
- areAnyPressed
- collectionInfo
- collectionItemInfo
- compositionContext
- contentDataType
- contentDescription
- contentType
- customActions
- dataType
- editableText
- focused
- horizontalScrollAxisRange
- imeAction
- inputText
- isAltGraphPressed
- isAltPressed
- isBackPressed
- isCapsLockOn
- isContainer
- isCtrlPressed
- isDebugInspectorInfoEnabled
- isEditable
- isForwardPressed
- isFunctionPressed
- isMetaPressed
- isNumLockOn
- isPrimaryPressed
- isScrollLockOn
- isSecondaryPressed
- isSensitiveData
- isShiftPressed
- isShowingTextSubstitution
- isSpecified
- isSymPressed
- isTertiaryPressed
- isTraversalGroup
- isUnspecified
- key
- layoutId
- liveRegion
- maxTextLength
- nativeEvent
- nativeKeyCode
- paneTitle
- progressBarRangeInfo
- role
- selected
- shape
- stateDescription
- testTag
- testTagsAsResourceId
- text
- textSelectionRange
- textSubstitution
- toggleableState
- traversalIndex
- type
- utf16CodePoint
- verticalScrollAxisRange
- view
Functions
- addPathNodes
- addPointerInputChange
- anyChangeConsumed
- boundsInParent
- boundsInRoot
- boundsInWindow
- bringIntoView
- CacheDrawModifierNode
- captureFocus
- changedToDown
- changedToDownIgnoreConsumed
- changedToUp
- changedToUpIgnoreConsumed
- clearTextSubstitution
- collapse
- consumeAllChanges
- consumeDownChange
- consumePositionChange
- ContentDataType
- ContentType
- copyText
- createLifecycleAwareWindowRecomposer
- currentValueOf
- cutText
- debugInspectorInfo
- dialog
- disabled
- dismiss
- dispatchOnScrollChanged
- div
- DpTouchBoundsExpansion
- DragAndDropModifierNode
- DragAndDropSourceModifierNode
- DragAndDropTargetModifierNode
- error
- establishTextInputSession
- expand
- findNearestAncestor
- findRootCoordinates
- findViewTreeCompositionContext
- firstUriOrNull
- FocusTargetModifierNode
- freeFocus
- getAllSemanticsNodes
- getDisplayCutoutBounds
- getOrNull
- getScrollViewportLength
- getTextLayoutResult
- GraphicsLayerScope
- group
- heading
- hideFromAccessibility
- imageResource
- indexForKey
- indexOfFirstPressed
- indexOfLastPressed
- IndirectTouchEvent
- innermostOf
- insertTextAtCursor
- invalidateDraw
- invalidateFocusProperties
- invalidateLayer
- invalidateMeasurement
- invalidateParentData
- invalidatePlacement
- invalidateSemantics
- invalidateSubtree
- invisibleToUser
- isOutOfBounds
- isPopupLayout
- isPressed
- Key
- lerp
- materialize
- materializeWithCompositionLocalInjection
- mimeTypes
- modifierLocalMapOf
- modifierLocalOf
- nestedScrollModifierNode
- observeReads
- onAutofillText
- onClick
- onImeAction
- onLongClick
- outermostOf
- pageDown
- pageLeft
- pageRight
- pageUp
- password
- pasteText
- path
- PathData
- performImeAction
- PointerIcon
- popup
- positionChange
- positionChangeConsumed
- positionChanged
- positionChangedIgnoreConsumed
- positionChangeIgnoreConsumed
- positionInParent
- positionInRoot
- positionInWindow
- positionOnScreen
- RectRulers
- registerOnGlobalLayoutListener
- registerOnLayoutRectChanged
- remeasureSync
- requestAutofill
- requestFocus
- requireDensity
- requireGraphicsContext
- requireLayoutCoordinates
- requireLayoutDirection
- requireView
- restoreFocusedChild
- saveFocusedChild
- ScaleFactor
- scrollBy
- scrollByOffset
- scrollToIndex
- selectableGroup
- SemanticsPropertyKey
- setProgress
- setSelection
- setText
- setTextSubstitution
- showTextSubstitution
- SubcomposeSlotReusePolicy
- SuspendingPointerInputModifierNode
- takeOrElse
- times
- toAndroidDragEvent
- toClipEntry
- toClipMetadata
- ToggleableState
- TouchBoundsExpansion
- TransformOrigin
- traverseAncestors
- traverseChildren
- traverseDescendants
- vectorResource