Package-level declarations

Types

Link copied to clipboard
enum Level : Enum<Level>

The Level enum class is used to determine the level of the user. The level of the user is determined by the LevelValidator.

Link copied to clipboard
data class LevelReadiness(val level: Level, val horizontalRotation: Float, val verticalRotation: Float)

The LevelReadiness class returns all of the values used to determine the level of the user. It is used to determine if the user is in a forwards, level, or backwards position.

Link copied to clipboard
class LevelReadinessDistributor(context: Context, dispatcher: CoroutineDispatcher = Dispatchers.Main)

LevelReadinessDistributor is responsible for distributing level readiness events to listeners.

Functions

Link copied to clipboard
fun validateLevelReadiness(data: DeviceMotion, maximumTiltDegrees: Float = 3.0f): LevelReadiness

validateLevelReadiness is used to validate the motion data of a capture session. It is used to determine if the user is in a forwards, level, or backwards position.