DeviceDirection

data class DeviceDirection(val attitude: FloatArray, val headingDegrees: Float, val headingAccuracyDegrees: Float, val elapsedRealtimeNanos: Long)

Custom DeviceOrientation class to replace Google Play Services DeviceOrientation. This allows the app to run on devices without Google Play Services.

Constructors

Link copied to clipboard
constructor(attitude: FloatArray, headingDegrees: Float, headingAccuracyDegrees: Float, elapsedRealtimeNanos: Long)

Types

Link copied to clipboard
class Builder(attitude: FloatArray, headingDegrees: Float, headingAccuracyDegrees: Float, elapsedRealtimeNanos: Long)

Builder class to match the Google Play Services DeviceOrientation.Builder pattern

Properties

Link copied to clipboard

Quaternion representing device orientation x, y, z, w

Link copied to clipboard

Timestamp in nanoseconds

Link copied to clipboard

Estimated heading accuracy in degrees

Link copied to clipboard

Heading in degrees (0-360, where 0 is north)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int