Google 致力于为黑人社区推动种族平等。查看具体举措

GnssStatusCompat

abstract class GnssStatusCompat
kotlin.Any
   ↳ 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
abstract

See GnssStatus.Callback.

Constants
static Int

Constellation type constant for Beidou.

static Int

Constellation type constant for Galileo.

static Int

Constellation type constant for Glonass.

static Int

Constellation type constant for GPS.

static Int

Constellation type constant for IRNSS.

static Int

Constellation type constant for QZSS.

static Int

Constellation type constant for SBAS.

static Int

Unknown constellation type.

Public methods
abstract Float
getAzimuthDegrees(@IntRange(0) satelliteIndex: Int)

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

abstract Float
getBasebandCn0DbHz(@IntRange(0) satelliteIndex: Int)

See GnssStatus#getCarrierFrequencyHz(int).

abstract Float
getCarrierFrequencyHz(@IntRange(0) satelliteIndex: Int)

See GnssStatus#getCarrierFrequencyHz(int).

abstract Float
getCn0DbHz(@IntRange(0) satelliteIndex: Int)

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

abstract Int
getConstellationType(@IntRange(0) satelliteIndex: Int)

See GnssStatus#getConstellationType(int).

abstract Float
getElevationDegrees(@IntRange(0) satelliteIndex: Int)

See GnssStatus#getElevationDegrees(int) and GpsSatellite#getElevation().

abstract Int

See GnssStatus#getSatelliteCount() and GpsStatus#getMaxSatellites().

abstract Int
getSvid(@IntRange(0) satelliteIndex: Int)

See GnssStatus#getSvid(int) and GpsSatellite#getPrn().

abstract Boolean
hasAlmanacData(@IntRange(0) satelliteIndex: Int)

See GnssStatus#hasAlmanacData(int) and GpsSatellite#hasAlmanac().

abstract Boolean
hasBasebandCn0DbHz(@IntRange(0) satelliteIndex: Int)

See GnssStatus#hasBasebandCn0DbHz(int).

abstract Boolean
hasCarrierFrequencyHz(@IntRange(0) satelliteIndex: Int)

See GnssStatus#hasCarrierFrequencyHz(int).

abstract Boolean
hasEphemerisData(@IntRange(0) satelliteIndex: Int)

See GnssStatus#hasEphemerisData(int) and GpsSatellite#hasEphemeris().

abstract Boolean
usedInFix(@IntRange(0) satelliteIndex: Int)

See GnssStatus#usedInFix(int) and GpsSatellite#usedInFix().

open static GnssStatusCompat
wrap(@NonNull gnssStatus: GnssStatus)

Wraps the given GnssStatus as GnssStatusCompat.

open static GnssStatusCompat
wrap(@NonNull gpsStatus: GpsStatus)

Wraps the given GpsStatus as GnssStatusCompat.

Constants

CONSTELLATION_BEIDOU

static val CONSTELLATION_BEIDOU: Int

Constellation type constant for Beidou.

Value: GnssStatus.CONSTELLATION_BEIDOU