Compass

public final class Compass
extends Object

java.lang.Object
   ↳ androidx.car.app.hardware.info.Compass


Information about car specific compass available from the car hardware.

Summary

Public constructors

Compass(CarValue<List<Float>> orientations)

Creates an Compass with the given raw data.

Public methods

boolean equals(Object other)
CarValue<List<Float>> getOrientations()

Returns the raw compass data from the car sensor.

int hashCode()
String toString()

Inherited methods

Public constructors

Compass

public Compass (CarValue<List<Float>> orientations)

Creates an Compass with the given raw data.

Parameters
orientations CarValue

Throws
NullPointerException if orientations is null

Public methods

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean