이제 Android 11 개발자 프리뷰를 사용할 수 있습니다. 테스트해 보고 의견을 공유하세요.

androidx.ui.core.gesture.util

Classes

VelocityTracker

Computes a pointer's velocity.

Extension functions summary

For kotlin.collections.List
Boolean

Utility method that determines if any pointers are currently in bounds.

Extension functions

anyPointersInBounds

fun List<PointerInputChange>.anyPointersInBounds(bounds: IntPxSize): Boolean

Utility method that determines if any pointers are currently in bounds.

A pointer is considered in bounds if it is currently down and it's current position is within the provided bounds

Return
True if at least one pointer is in bounds.