validateLevelReadiness

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.

Parameters

data

The motion data from the device.

maximumTiltDegrees

The maximum tilt degrees that the device can be off level.