TiltGesture.State


@ExperimentalGesturesApi
class TiltGesture.State


Represents the tilt state of the device, transition progress.

Summary

Public constructors

State(tilt: Tilt, progress: @FloatRange(from = 0.0, to = 1.0) Float)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Float

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

Tilt

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

Public constructors

State

Added in 1.0.0-alpha12
State(tilt: Tilt = Tilt.UP, progress: @FloatRange(from = 0.0, to = 1.0) Float = 0.0f)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

progress

Added in 1.0.0-alpha12
val progressFloat

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

tilt

Added in 1.0.0-alpha12
val tiltTilt

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