convertToAbsoluteDirection

open fun convertToAbsoluteDirection(flags: Int, layoutDirection: Int): Int(source)

Converts a given set of flags to absolution direction which means START and END are replaced with LEFT and RIGHT depending on the layout direction.

Return

Updated flags which includes only absolute direction values.

Parameters

flags

The flag value that include any number of movement flags.

layoutDirection

The layout direction of the RecyclerView.