TiltGesture.State


@ExperimentalGesturesApi
public final class TiltGesture.State


Represents the tilt state of the device, transition progress.

Summary

Public constructors

State(@NonNull Tilt tilt, @FloatRange(from = 0.0, to = 1.0) float progress)

Public methods

boolean
equals(Object other)
final float

a value from 0.0 to 1.0 indicating the progress of the current transition

final @NonNull Tilt

the current tilt state (Tilt.UP or Tilt.DOWN)

int
@NonNull String

Public constructors

State

Added in 1.0.0-alpha12
public State(@NonNull Tilt tilt, @FloatRange(from = 0.0, to = 1.0) float progress)

Public methods

equals

public boolean equals(Object other)

getProgress

Added in 1.0.0-alpha12
public final float getProgress()

a value from 0.0 to 1.0 indicating the progress of the current transition

getTilt

Added in 1.0.0-alpha12
public final @NonNull Tilt getTilt()

the current tilt state (Tilt.UP or Tilt.DOWN)

hashCode

public int hashCode()

toString

public @NonNull String toString()