public final class GpsStatus extends Object
GpsStatus.Listener
interface.Modifier and Type | Class and Description |
---|---|
static interface |
GpsStatus.Listener
Used for receiving notifications when GPS status has changed.
|
static interface |
GpsStatus.NmeaListener
Used for receiving NMEA sentences from the GPS.
|
Modifier and Type | Field and Description |
---|---|
static int |
GPS_EVENT_FIRST_FIX
Event sent when the GPS system has received its first fix since starting.
|
static int |
GPS_EVENT_SATELLITE_STATUS
Event sent periodically to report GPS satellite status.
|
static int |
GPS_EVENT_STARTED
Event sent when the GPS system has started.
|
static int |
GPS_EVENT_STOPPED
Event sent when the GPS system has stopped.
|
Modifier and Type | Method and Description |
---|---|
int |
getMaxSatellites()
Returns the maximum number of satellites that can be in the satellite
list that can be returned by
getSatellites() . |
Iterable<GpsSatellite> |
getSatellites()
Returns an array of
GpsSatellite objects, which represent the
current state of the GPS engine. |
int |
getTimeToFirstFix()
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()
.