public
static
abstract
class
GnssNavigationMessage.Callback
extends Object
java.lang.Object | |
↳ | android.location.GnssNavigationMessage.Callback |
Used for receiving GNSS satellite Navigation Messages from the GNSS engine.
You can implement this interface and call
registerGnssNavigationMessageCallback(GnssNavigationMessage.Callback)
.
Constants | |
---|---|
int |
STATUS_LOCATION_DISABLED
GNSS provider or Location is disabled, updated will not be received until they are enabled. |
int |
STATUS_NOT_SUPPORTED
The system does not support tracking of GNSS Navigation Messages. |
int |
STATUS_READY
GNSS Navigation Messages are successfully being tracked, it will receive updates once they are available. |
Public constructors | |
---|---|
GnssNavigationMessage.Callback()
|
Public methods | |
---|---|
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. |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
int STATUS_LOCATION_DISABLED
GNSS provider or Location is disabled, updated will not be received until they are enabled.
Constant Value: 2 (0x00000002)
int STATUS_NOT_SUPPORTED
The system does not support tracking of GNSS Navigation Messages. This status will not change in the future.
Constant Value: 0 (0x00000000)
int STATUS_READY
GNSS Navigation Messages are successfully being tracked, it will receive updates once they are available.
Constant Value: 1 (0x00000001)
void onGnssNavigationMessageReceived (GnssNavigationMessage event)
Returns the latest collected GNSS Navigation Message.
Parameters | |
---|---|
event |
GnssNavigationMessage
|
void onStatusChanged (int status)
Returns the latest status of the GNSS Navigation Messages sub-system.
Parameters | |
---|---|
status |
int
|