Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# GpsStatus.Listener

*** ** * ** ***

` public static interface GpsStatus.Listener `   
` `

|---|
| android.location.GpsStatus.Listener |

<br />

*** ** * ** ***

<br />

**This interface was deprecated in API level 24.**   

Use `https://developer.android.com/reference/android/location/GnssStatus.Callback` instead.

Used for receiving notifications when GPS status has changed.

## Summary

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/location/GpsStatus.Listener#onGpsStatusChanged(int)(int event) ` Called to report changes in the GPS status. |

## Public methods

### onGpsStatusChanged

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onGpsStatusChanged (int event)
```

Called to report changes in the GPS status. The event number is one of:

- `https://developer.android.com/reference/android/location/GpsStatus#GPS_EVENT_STARTED`
- `https://developer.android.com/reference/android/location/GpsStatus#GPS_EVENT_STOPPED`
- `https://developer.android.com/reference/android/location/GpsStatus#GPS_EVENT_FIRST_FIX`
- `https://developer.android.com/reference/android/location/GpsStatus#GPS_EVENT_SATELLITE_STATUS`

When this method is called, the client should call `https://developer.android.com/reference/android/location/LocationManager#getGpsStatus(android.location.GpsStatus)` to get additional status information.

<br />

<br />

| Parameters ||
|---|---|
| `event` | `int`: event number for this notification <br /> |