GnssStatusCompat

public abstract class GnssStatusCompat
extends Object

java.lang.Object
   ↳ androidx.core.location.GnssStatusCompat


GnssStatus representation that works across all Android versions. See GnssStatus and GpsStatus.

Note: When used to wrap GpsStatus, the best performance can be obtained by using a monotonically increasing satelliteIndex parameter (for instance, by using a loop from 0 to getSatelliteCount()). Random access is supported but performance may suffer.

Summary

Nested classes

class GnssStatusCompat.Callback

See GnssStatus.Callback

Constants

int CONSTELLATION_BEIDOU

Constellation type constant for Beidou.

int CONSTELLATION_GALILEO

Constellation type constant for Galileo.

int CONSTELLATION_GLONASS

Constellation type constant for Glonass.

int CONSTELLATION_GPS

Constellation type constant for GPS.

int CONSTELLATION_IRNSS

Constellation type constant for IRNSS.

int CONSTELLATION_QZSS

Constellation type constant for QZSS.

int CONSTELLATION_SBAS

Constellation type constant for SBAS.

int CONSTELLATION_UNKNOWN

Unknown constellation type.

Public methods

abstract float getAzimuthDegrees(int satelliteIndex)

See GnssStatus.getAzimuthDegrees(int) and GpsSatellite.getAzimuth().

abstract float getBasebandCn0DbHz(int satelliteIndex)

See GnssStatus.getCarrierFrequencyHz(int).

abstract float getCarrierFrequencyHz(int satelliteIndex)

See GnssStatus.getCarrierFrequencyHz(int).

abstract float getCn0DbHz(int satelliteIndex)

See GnssStatus.getCn0DbHz(int) and GpsSatellite.getSnr().

abstract int getConstellationType(int satelliteIndex)

See