Added in API level 3
Deprecated in API level 24

GpsSatellite


class GpsSatellite
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

Returns the PRN (pseudo-random number) for the satellite.

Float

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

Added in API level 3
fun getAzimuth(): 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

Added in API level 3
fun getElevation(): 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

Added in API level 3
fun getPrn(): Int

Deprecated: Deprecated in Java.

Returns the PRN (pseudo-random number) for the satellite.

Return
Int PRN number

getSnr

Added in API level 3
fun getSnr(): Float

Deprecated: Deprecated in Java.

Returns the signal to noise ratio for the satellite.

Return
Float the signal to noise ratio

hasAlmanac

Added in API level 3
fun hasAlmanac(): 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

Added in API level 3
fun hasEphemeris(): 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

Added in API level 3
fun usedInFix(): 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.