GpsSatellite
classGpsSatellite
kotlin.Any | |
↳ | android.location.GpsSatellite |
This class represents the current state of a GPS satellite. This class is used in conjunction with the GpsStatus
class.
Summary
Public methods | |
---|---|
Float |
Returns the azimuth of the satellite in degrees. |
Float |
Returns the elevation of the satellite in degrees. |
Int |
getPrn() Returns the PRN (pseudo-random number) for the satellite. |
Float |
getSnr() Returns the signal to noise ratio for the satellite. |
Boolean |
Returns true if the GPS engine has almanac data for the satellite. |
Boolean |
Returns true if the GPS engine has ephemeris data for the satellite. |
Boolean |
Returns true if the satellite was used by the GPS engine when calculating the most recent GPS fix. |
Public methods
getAzimuth
fungetAzimuth(): Float
Deprecated: Deprecated in Java.
Returns the azimuth of the satellite in degrees. The azimuth can vary between 0 and 360.
Return | |
---|---|
Float |
the azimuth in degrees |
getElevation
fungetElevation(): Float
Deprecated: Deprecated in Java.
Returns the elevation of the satellite in degrees. The elevation can vary between 0 and 90.
Return | |
---|---|
Float |
the elevation in degrees |
getPrn
fungetPrn(): Int
Deprecated: Deprecated in Java.
Returns the PRN (pseudo-random number) for the satellite.
Return | |
---|---|
Int |
PRN number |
getSnr
fungetSnr(): Float
Deprecated: Deprecated in Java.
Returns the signal to noise ratio for the satellite.
Return | |
---|---|
Float |
the signal to noise ratio |
hasAlmanac
funhasAlmanac(): Boolean
Deprecated: Deprecated in Java.
Returns true if the GPS engine has almanac data for the satellite.
Return | |
---|---|
Boolean |
true if the satellite has almanac data |
hasEphemeris
funhasEphemeris(): Boolean
Deprecated: Deprecated in Java.
Returns true if the GPS engine has ephemeris data for the satellite.
Return | |
---|---|
Boolean |
true if the satellite has ephemeris data |
usedInFix
funusedInFix(): Boolean
Deprecated: Deprecated in Java.
Returns true if the satellite was used by the GPS engine when calculating the most recent GPS fix.
Return | |
---|---|
Boolean |
true if the satellite was used to compute the most recent fix. |