com.deque.axe.android.constants.AxeScrollDirection.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of axe-devtools-android-data Show documentation
Show all versions of axe-devtools-android-data Show documentation
The Axe Devtools Android Data Library
package com.deque.axe.android.constants
import com.deque.axe.android.wrappers.AxeRect
sealed class AxeScrollDirection(val bounds: AxeRect) {
class ScrollHorizontal(bounds: AxeRect) : AxeScrollDirection(bounds)
class ScrollVertical(bounds: AxeRect) : AxeScrollDirection(bounds)
class NonScrolling : AxeScrollDirection(AxeRect(0, 0, 0, 0))
companion object {
@JvmStatic
fun nonScrollingForJava(): List = listOf(NonScrolling())
}
}
// Values determined from android.view.View.canScrollHorizontally
val ANDROID_SCROLLS_LEFT: Int = -1
val ANDROID_SCROLLS_RIGHT: Int = 1
val ANDROID_SCROLLS_UP: Int = -1
val ANDROID_SCROLLS_DOWN: Int = 1