public static interface GpsStatus.Listener
| android.location.GpsStatus.Listener |
此接口在API级别24中已被弃用。
改为使用GnssStatus.Callback 。
用于在GPS状态发生变化时接收通知。
公共方法(Public methods) |
|
|---|---|
abstract void |
onGpsStatusChanged(int event) 打电话报告GPS状态的变化。 |
void onGpsStatusChanged (int event)
打电话报告GPS状态的变化。 活动号码是以下之一:
When this method is called, the client should callgetGpsStatus(GpsStatus) to get additional status information.
| 参数(Parameters) | |
|---|---|
event |
int: event number for this notification |