Build 1.0_r1(from source)

android.location
Interface GpsStatusListener


public interface GpsStatusListener

Used for receiving notifications from the SensorManager when sensor values have changed.


Method Summary
 void onFirstFix(int ttff)
          Called when the GPS status has received its first fix since starting.
 void onGpsStarted()
          Called when the GPS has started.
 void onGpsStopped()
          Called when the GPS has stopped.
 void onSvStatusChanged(int svCount, int[] prns, float[] snrs, float[] elevations, float[] azimuths, int ephemerisMask, int almanacMask, int usedInFixMask)
          Called when the GPS SV status has changed.
 

Method Detail

onGpsStarted

void onGpsStarted()
Called when the GPS has started.


onGpsStopped

void onGpsStopped()
Called when the GPS has stopped.


onFirstFix

void onFirstFix(int ttff)
Called when the GPS status has received its first fix since starting.

Parameters:
ttff - Time to first fix in milliseconds.

onSvStatusChanged

void onSvStatusChanged(int svCount,
                       int[] prns,
                       float[] snrs,
                       float[] elevations,
                       float[] azimuths,
                       int ephemerisMask,
                       int almanacMask,
                       int usedInFixMask)
Called when the GPS SV status has changed.

Parameters:
svCount - The number of visible SVs
prns - Array of SV prns. Length of array is svCount.
snrs - Array of signal to noise ratios for SVs, in 1/10 dB units. Length of array is svCount.
elevations - Array of SV elevations in degrees. Length of array is svCount.
azimuths - Array of SV azimuths in degrees. Length of array is svCount.
ephemerisMask - Bit mask indicating which SVs the GPS has ephemeris data for.
almanacMask - Bit mask indicating which SVs the GPS has almanac data for.
usedInFixMask - Bit mask indicating which SVs were used in the most recent GPS fix.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature