public abstract static class GnssNavigationMessage.Callback extends Object
You can implement this interface and call
LocationManager.registerGnssNavigationMessageCallback(android.location.GnssNavigationMessageEvent.Callback)
.
Modifier and Type | Class and Description |
---|---|
static interface |
GnssNavigationMessage.Callback.GnssNavigationMessageStatus
The status of GNSS measurements event.
|
Modifier and Type | Field and Description |
---|---|
static int |
STATUS_LOCATION_DISABLED
GNSS provider or Location is disabled, updated will not be received until they are
enabled.
|
static int |
STATUS_NOT_SUPPORTED
The system does not support tracking of GNSS Navigation Messages.
|
static int |
STATUS_READY
GNSS Navigation Messages are successfully being tracked, it will receive updates once
they are available.
|
Constructor and Description |
---|
Callback() |
Modifier and Type | Method and Description |
---|---|
void |
onGnssNavigationMessageReceived(GnssNavigationMessage event)
Returns the latest collected GNSS Navigation Message.
|
void |
onStatusChanged(int status)
Returns the latest status of the GNSS Navigation Messages sub-system.
|
public static final int STATUS_NOT_SUPPORTED
public static final int STATUS_READY
public static final int STATUS_LOCATION_DISABLED
public void onGnssNavigationMessageReceived(GnssNavigationMessage event)
public void onStatusChanged(int status)