Callback
abstract class Callback
| kotlin.Any | |
| ↳ | android.location.GnssNavigationMessage.Callback |
Used for receiving GNSS satellite Navigation Messages from the GNSS engine.
You can implement this interface and call android.location.LocationManager#registerGnssNavigationMessageCallback.
Summary
| Constants | |
|---|---|
| static Int |
GNSS provider or Location is disabled, updated will not be received until they are enabled. |
| static Int |
The system does not support tracking of GNSS Navigation Messages. |
| static Int |
GNSS Navigation Messages are successfully being tracked, it will receive updates once they are available. |
| Public constructors | |
|---|---|
Callback() |
|
| Public methods | |
|---|---|
| open Unit |
Returns the latest collected GNSS Navigation Message. |
| open Unit |
Returns the latest status of the GNSS Navigation Messages sub-system. |
Constants
STATUS_LOCATION_DISABLED
static valSTATUS_LOCATION_DISABLED: Int
Deprecated: Do not use.
GNSS provider or Location is disabled, updated will not be received until they are enabled.
Value: 2STATUS_NOT_SUPPORTED
static valSTATUS_NOT_SUPPORTED: Int
Deprecated: Do not use.
The system does not support tracking of GNSS Navigation Messages. This status will not change in the future.
Value: 0STATUS_READY
static valSTATUS_READY: Int
Deprecated: Do not use.
GNSS Navigation Messages are successfully being tracked, it will receive updates once they are available.
Value: 1Public constructors
Public methods
onGnssNavigationMessageReceived
open fun onGnssNavigationMessageReceived(: GnssNavigationMessage!): Unit
Returns the latest collected GNSS Navigation Message.
onStatusChanged
open funonStatusChanged(: Int): Unit
Deprecated: Do not rely on this callback. From Android S onwards this callback will be invoked once with STATUS_READY in all cases for backwards compatibility, and then never invoked again. Use LocationManager APIs if you need to determine if GNSS navigation messages are supported or if location is off, etc...
Returns the latest status of the GNSS Navigation Messages sub-system.