GnssStatus
and GnssStatus.Callback
.@Deprecated public final class GpsStatus extends Object
This class is used in conjunction with the GpsStatus.Listener
interface.
Modifier and Type | Class and Description |
---|---|
static interface |
GpsStatus.Listener
Deprecated.
use
GnssStatus.Callback instead. |
static interface |
GpsStatus.NmeaListener
Deprecated.
use
OnNmeaMessageListener instead. |
Modifier and Type | Field and Description |
---|---|
static int |
GPS_EVENT_FIRST_FIX
Deprecated.
Event sent when the GPS system has received its first fix since starting.
|
static int |
GPS_EVENT_SATELLITE_STATUS
Deprecated.
Event sent periodically to report GPS satellite status.
|
static int |
GPS_EVENT_STARTED
Deprecated.
Event sent when the GPS system has started.
|
static int |
GPS_EVENT_STOPPED
Deprecated.
Event sent when the GPS system has stopped.
|
Modifier and Type | Method and Description |
---|---|
int |
getMaxSatellites()
Deprecated.
Returns the maximum number of satellites that can be in the satellite
list that can be returned by
getSatellites() . |
Iterable<GpsSatellite> |
getSatellites()
Deprecated.
Returns an array of
GpsSatellite objects, which represent the
current state of the GPS engine. |
int |
getTimeToFirstFix()
Deprecated.
Returns the time required to receive the first fix since the most recent
restart of the GPS engine.
|
public static final int GPS_EVENT_STARTED
public static final int GPS_EVENT_STOPPED
public static final int GPS_EVENT_FIRST_FIX
getTimeToFirstFix()
to find the time from start to first fix.public static final int GPS_EVENT_SATELLITE_STATUS
getSatellites()
to retrieve the status for each satellite.public int getTimeToFirstFix()
public Iterable<GpsSatellite> getSatellites()
GpsSatellite
objects, which represent the
current state of the GPS engine.public int getMaxSatellites()
getSatellites()
.