GnssStatusCompat

abstract class GnssStatusCompat(source)

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.

Types

Link copied to clipboard
abstract class Callback
Link copied to clipboard

Properties

Link copied to clipboard
Constellation type constant for Beidou.
Link copied to clipboard
Constellation type constant for Galileo.
Link copied to clipboard
Constellation type constant for Glonass.
Link copied to clipboard
Constellation type constant for GPS.
Link copied to clipboard
Constellation type constant for IRNSS.
Link copied to clipboard
Constellation type constant for QZSS.
Link copied to clipboard
Constellation type constant for SBAS.
Link copied to clipboard
Unknown constellation type.

Functions

Link copied to clipboard
@FloatRange(from = 0, to = 360)
abstract fun getAzimuthDegrees(@IntRange(from = 0) satelliteIndex: Int): Float
Link copied to clipboard
@FloatRange(from = 0, to = 63)
abstract fun getBasebandCn0DbHz(@IntRange(from = 0) satelliteIndex: Int): Float
Link copied to clipboard
@FloatRange(from = 0)
abstract fun getCarrierFrequencyHz(@IntRange(from = 0) satelliteIndex: Int): Float
Link copied to clipboard
@FloatRange(from = 0, to = 63)
abstract fun getCn0DbHz(@IntRange(from = 0) satelliteIndex: Int): Float
Link copied to clipboard
abstract fun getConstellationType(@IntRange(from = 0) satelliteIndex: Int): Int
Link copied to clipboard
@FloatRange(from = "-90", to = 90)
abstract fun getElevationDegrees(@IntRange(from = 0) satelliteIndex: Int): Float
Link copied to clipboard
Link copied to clipboard
@IntRange(from = 1, to = 200)
abstract fun getSvid(@IntRange(from = 0) satelliteIndex: Int): Int
See getSvid and getPrn.
Link copied to clipboard
abstract fun hasAlmanacData(@IntRange(from = 0) satelliteIndex: Int): Boolean
Link copied to clipboard
abstract fun hasBasebandCn0DbHz(@IntRange(from = 0) satelliteIndex: Int): Boolean
Link copied to clipboard
abstract fun hasCarrierFrequencyHz(@IntRange(from = 0) satelliteIndex: Int): Boolean
Link copied to clipboard
abstract fun hasEphemerisData(@IntRange(from = 0) satelliteIndex: Int): Boolean
Link copied to clipboard
abstract fun usedInFix(@IntRange(from = 0) satelliteIndex: Int): Boolean
Link copied to clipboard
@NonNull
open fun wrap(@NonNull gnssStatus: @NonNull GnssStatus): @NonNull GnssStatusCompat
Wraps the given GnssStatus as GnssStatusCompat.
@NonNull
open fun wrap(@NonNull gpsStatus: @NonNull GpsStatus): @NonNull GnssStatusCompat
Wraps the given GpsStatus as GnssStatusCompat.