This site requires javascript.
Android Code Search
file:androidx/compose/foundation/gestures/AnchoredDraggable.kt function:snapTo
search
close
info_outline
more_vert
Result 1 of 1
content_copy
Search Result Root
androidx/platform/frameworks/support
keyboard_arrow_right
Branch
Branch
androidx-main
keyboard_arrow_right
Search Result Path
compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/gestures/
AnchoredDraggable.kt
content_copy
Preview
1225:
1226:
1227:
*/
private
fun
try
SnapTo
(targetValue: T): Boolean =
dragMutex.tryMutate {
1295:
1296:
1297:
*/
suspend
fun
<T> AnchoredDraggableState<T>.
snapTo
(targetValue: T) {
anchoredDrag(targetValue = targetValue) { anchors, latestTarget ->
chevron_left
1
chevron_right
Results per page
10
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Got it
Help
Open branch androidx-main