commit | cf11bce075dff8a5f6319c0d2933854fd5d15efa | [log] [tgz] |
---|---|---|
author | Levi Albuquerque <levima@google.com> | Thu Feb 08 10:21:24 2024 +0000 |
committer | Levi Albuquerque <levima@google.com> | Thu Feb 08 17:25:20 2024 +0000 |
tree | 7408e9f9e2005806293105c79a225d1c0ffda9c6 | |
parent | 8dfd47d1b155855962c5555e6671dd6c4321c379 [diff] |
Address API council feedback no SnapPosition Update kdocs to include information about return type of position method. Test: N/A Fixes: 323350731 Relnote: N/A Change-Id: If234ef164ac0e037dccf51c7fcc798fdf7688c6a
diff --git a/compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/gestures/snapping/SnapPosition.kt b/compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/gestures/snapping/SnapPosition.kt index 691bedf..b592443 100644 --- a/compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/gestures/snapping/SnapPosition.kt +++ b/compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/gestures/snapping/SnapPosition.kt
@@ -46,6 +46,9 @@ * content. * @param itemIndex The index of the item being positioned. * @param itemCount The total amount of items in the snapping container. + * + * @return The offset of the snap position where items will be aligned to in a snapping + * container. */ fun position( layoutSize: Int,