HorizontalDirectionTracker

class HorizontalDirectionTracker

A HorizontalDirectionTracker tracks the direction of horizontal movement.

Constructors

Link copied to clipboard
fun HorizontalDirectionTracker()

Types

Link copied to clipboard
enum Direction : Enum<HorizontalDirectionTracker.Direction>

Direction of horizontal movement.

Properties

Link copied to clipboard

Direction calculated from recently provided movements.

Functions

Link copied to clipboard
fun clear()

Clears the state of a HorizontalDirectionTracker object.

Link copied to clipboard
fun updateDirection(horizontalPositionPx: Float)

Consumes horizontal position.