CarHardwareLocation

public final class CarHardwareLocation
extends Object

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


Information about car specific car location available from the car hardware.

Summary

Public constructors

CarHardwareLocation(CarValue<Location> location)

Creates an CarHardwareLocation with the given raw data.

Public methods

boolean equals(Object other)
CarValue<Location> getLocation()

Returns the raw location data from the car sensor.

int hashCode()
String toString()

Inherited methods

Public constructors

CarHardwareLocation

public CarHardwareLocation (CarValue<Location> location)

Creates an CarHardwareLocation with the given raw data.

Parameters
location CarValue

Throws
NullPointerException if location is null

Public methods

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

getLocation

public CarValue<Location> getLocation ()

Returns the raw location data from the car sensor.

Returns
CarValue<Location>

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String