-
AbsoluteCutCornerShape
Creates AbsoluteCutCornerShape with the same size applied for all four corners.
-
AbsoluteRoundedCornerShape
Creates AbsoluteRoundedCornerShape with the same size applied for all four corners.
-
allCaps
Returns a InputTransformation that forces all text to be uppercase.
-
AnchoredDraggableState
State of the anchoredDraggable modifier.
-
animateBy
Animate zoom, pan, and rotation simultaneously and suspend until the animation is finished.
-
animatePanBy
Animate pan by offset Offset in pixels and suspend until its finished
-
animateRotateBy
Animate rotate by a ratio of degrees clockwise and suspend until its finished.
-
animateScrollBy
Scroll by value pixels with animation.
-
animateTo
Animate to a targetValue.
-
animateToWithDecay
Attempt to animate using decay Animation to a targetValue.
-
animateZoomBy
Animate zoom by a ratio of zoomFactor over the current size and suspend until its finished.
-
appendInlineContent
Used to insert composables into the text layout.
-
apply
Apply style to the current StyleScope.
-
awaitDragOrCancellation
Reads pointer input events until a drag is detected or all pointers are up.
-
awaitEachGesture
Repeatedly calls block to handle gestures.
- awaitFirstDown
-
awaitHorizontalDragOrCancellation
Reads pointer input events until a horizontal drag is detected or all pointers are up.
-
awaitHorizontalPointerSlopOrCancellation
Waits for horizontal drag motion to pass pointerType's touch slop, using pointerId as the pointer to examine.
-
awaitHorizontalTouchSlopOrCancellation
Waits for horizontal drag motion to pass touch slop[ViewConfiguration.
-
awaitLongPressOrCancellation
Waits for a long press by examining pointerId.
-
awaitTouchSlopOrCancellation
Waits for drag motion to pass touch slop[ViewConfiguration.
-
awaitVerticalDragOrCancellation
Reads pointer input events until a vertical drag is detected or all pointers are up.
-
awaitVerticalPointerSlopOrCancellation
Waits for vertical drag motion to pass pointerType's touch slop using pointerId as the pointer to examine.
-
awaitVerticalTouchSlopOrCancellation
Waits for vertical drag motion to pass touch slop[ViewConfiguration.
-
BasicTooltipState
Constructor extension function for BasicTooltipState
-
BorderStroke
Create BorderStroke class with width and Color
-
BringIntoViewRequester
Create an instance of BringIntoViewRequester that can be used with [Modifier.
-
byValue
Creates an InputTransformation from a function that accepts both the current and proposed TextFieldCharSequence and returns the TextFieldCharSequence to use for the field.
-
calculateCentroid
Returns the centroid of all pointers that are down and were previously down.
-
calculateCentroidSize
Returns the average distance from the centroid for all pointers that are currently and were previously down.
-
calculatePan
Returns the change in the centroid location between the previous and the current pointers that are down.
-
calculateRotation
Returns the rotation, in degrees, of the pointers between the [PointerInputChange.
-
calculateZoom
Uses the change of the centroid size between the [PointerInputChange.
-
checked
Defines a Style to be applied when the component is [StyleState.
- checkScrollableContainerConstraints
-
clearText
Deletes all the text in the state.
-
consume
Helper function to consume parts of TransferableContent in Android by splitting it to [ClipData.
-
CornerSize
Creates CornerSize with provided size.
-
CutCornerShape
Creates CutCornerShape with the same size applied for all four corners.
-
delete
Delete the text between start (inclusive) and end (exclusive).
-
detectDragGestures
Gesture detector that waits for pointer down and touch slop in any direction and then calls onDrag for each drag event.
-
detectDragGesturesAfterLongPress
Gesture detector that waits for pointer down and long press, after which it calls onDrag for each drag event.
-
detectHorizontalDragGestures
Gesture detector that waits for pointer down and touch slop in the horizontal direction and then calls onHorizontalDrag for each horizontal drag event.
-
detectTapGestures
Detects tap, double-tap, and long press gestures and calls onTap, onDoubleTap, and onLongPress, respectively, when detected.
-
detectTransformGestures
A gesture detector for rotation, panning, and zoom.
-
detectVerticalDragGestures
Gesture detector that waits for pointer down and touch slop in the vertical direction and then calls onVerticalDrag for each vertical drag event.
-
disabled
Defines a Style to be applied when the component is disabled.
-
drag
Reads position change events for pointerId and calls onDrag for every change in position.
-
Draggable2DState
Default implementation of Draggable2DState interface that allows to pass a simple action that will be invoked when the drag occurs.
-
DraggableAnchors
Create a new DraggableAnchors instance using a builder function.
-
DraggableState
Default implementation of DraggableState interface that allows to pass a simple action that will be invoked when the drag occurs.
-
fillHeight
Sets the height of the component to fill the parent's available height (equivalent to `height(1.
-
fillSize
Sets the width and height of the component to fill the parent's available space (equivalent to `width(1.
-
fillWidth
Sets the width of the component to fill the parent's available width (equivalent to `width(1.
-
focused
Defines a Style to be applied when the component is focused.
-
forEach
Iterate over all the anchors.
-
forEachChange
Iterates over all the changes in this ChangeList.
-
forEachChangeReversed
Iterates over all the changes in this ChangeList in reverse order.
-
forEachGesture
Repeatedly calls block to handle gestures.
-
getDefaultLazyLayoutKey
This creates an object meeting following requirements: 1) Objects created for the same index are equals and never equals for different indexes.
-
GridItemSpan
Creates a GridItemSpan with a specified currentLineSpan.
-
hasMediaType
Returns whether this TransferableContent can provide an item with the mediaType.
-
horizontalDrag
Reads horizontal position change events for pointerId and calls onDrag for every change in position.
-
hovered
Defines a Style to be applied when the component is hovered.
-
insert
Insert text at the given index in this value.
-
item
Adds an item to the list of text context menu components.
-
items
Adds a list of items.
-
itemsIndexed
Adds a list of items where the content of an item is aware of its index.
-
KeyboardActions
Creates an instance of KeyboardActions that uses the specified lambda for all ImeActions.
-
LazyGridPrefetchStrategy
Creates an instance of the default LazyGridPrefetchStrategy, allowing for customization of the nested prefetch count.
-
LazyLayoutCacheWindow
A Dp based LazyLayoutCacheWindow.
-
LazyLayoutKeyIndexMap
A LazyLayoutKeyIndexMap that keeps a mapping over given IntRange of items.
-
LazyLayoutScrollScope
An implementation of LazyLayoutScrollScope that can be used with LazyLists.
-
LazyListPrefetchStrategy
Creates an instance of the default LazyListPrefetchStrategy, allowing for customization of the nested prefetch count.
-
MarqueeSpacing
A MarqueeSpacing with a fixed size.
-
maxLength
Returns InputTransformation that rejects input which causes the total length of the text field to be more than maxLength characters.
-
MutableInteractionSource
Return a new MutableInteractionSource that can be hoisted and provided to components, allowing listening to Interaction changes inside those components.
-
PagerState
Creates a default PagerState to be used with a Pager
-
panBy
Pan without animation by a offset Offset in pixels and suspend until it's set.
-
placeCursorAtEnd
Places the cursor at the end of the text.
-
pressed
Defines a Style to be applied when the component is pressed.
-
rotateBy
Rotate without animation by a degrees degrees and suspend until it's set.
-
RoundedCornerShape
Creates RoundedCornerShape with the same size applied for all four corners.
-
Scrollable2DState
Default implementation of Scrollable2DState interface that contains necessary information about the ongoing fling and provides smooth scrolling capabilities.
-
ScrollableState
Default implementation of ScrollableState interface that contains necessary information about the ongoing fling and provides smooth scrolling capabilities.
-
scrollBy
Jump instantly by value pixels.
-
selectAll
Places the selection around all the text.
-
selected
Defines a Style to be applied when the component is [StyleState.
-
setTextAndPlaceCursorAtEnd
Sets the text in this TextFieldState to text, replacing any text that was previously there, and places the cursor at the end of the new text.
-
setTextAndSelectAll
Sets the text in this TextFieldState to text, replacing any text that was previously there, and selects all the text.
-
snapFlingBehavior
A TargetedFlingBehavior that performs snapping to a given position in a layout.
-
SnapLayoutInfoProvider
A SnapLayoutInfoProvider for LazyLists.
-
snapTo
Snap to a targetValue without any animation.
-
stopScroll
Stop and suspend until any ongoing animation, smooth scrolling, fling, or any other scroll occurring via [ScrollableState.
-
stopTransformation
Stop and suspend until any ongoing [TransformableState.
-
Style
Combine multiple Style objects together.
-
then
Merges this styles with another.
-
toTextFieldBuffer
Creates a temporary, mutable TextFieldBuffer representing the current state of this TextFieldState.
-
TransformableState
Default implementation of TransformableState interface that contains necessary information about the ongoing transformations and provides smooth transformation capabilities.
-
triStateToggleIndeterminate
Defines a Style to be applied when the component is [StyleState.
-
triStateToggleOff
Defines a Style to be applied when the component is [StyleState.
-
triStateToggleOn
Defines a Style to be applied when the component is [StyleState.
-
verticalDrag
Reads vertical position change events for pointerId and calls onDrag for every change in position.
- waitForUpOrCancellation
-
withoutEventHandling
Returns a wrapped version of this OverscrollEffect that will not handle any incoming events.
-
withoutVisualEffect
Returns a wrapped version of this OverscrollEffect with an empty [OverscrollEffect.
-
zoomBy
Zoom without animation by a ratio of zoomFactor over the current size and suspend until it's set.
Compose Foundation
Jetpack Compose API reference for foundation.