All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.deque.axe.android.constants.AxeScrollDirection.kt Maven / Gradle / Ivy

There is a newer version: 5.5.2
Show newest version
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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy