TiltGesture.State


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-alpha10
State(tilt: Tilt = Tilt.UP, progress: @FloatRange(from = 0.0, to = 1.0) Float = 0.0f)
Parameters
tilt: Tilt = Tilt.UP

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

progress: @FloatRange(from = 0.0, to = 1.0) Float = 0.0f

A value from 0.0 to 1.0 indicating the progress of the current transition. It is 0.0 if no transition is in progress. This is useful for driving animations.

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-alpha10
val progressFloat

A value from 0.0 to 1.0 indicating the progress of the current transition. It is 0.0 if no transition is in progress. This is useful for driving animations.

tilt

Added in 1.0.0-alpha10
val tiltTilt

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