GnssNavigationMessage.Callback

2017-7-31 6:42:40 来源: Gnsser 发布人:

GnssNavigationMessage.Callback

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).

Summary


Constants

intSTATUS_LOCATION_DISABLED

GNSS provider or Location is disabled, updated will not be received until they are enabled.

intSTATUS_NOT_SUPPORTED

The system does not support tracking of GNSS Navigation Messages.

intSTATUS_READY

GNSS Navigation Messages are successfully being tracked, it will receive updates once they are available.

Public constructors

GnssNavigationMessage.Callback()

Public methods

voidonGnssNavigationMessageReceived(GnssNavigationMessage event)

Returns the latest collected GNSS Navigation Message.

voidonStatusChanged(int status)

Returns the latest status of the GNSS Navigation Messages sub-system.

Inherited methods


 From class java.lang.Object

Constants


STATUS_LOCATION_DISABLED

added in API level 24

int STATUS_LOCATION_DISABLED

GNSS provider or Location is disabled, updated will not be received until they are enabled.


Constant Value: 2 (0x00000002)

STATUS_NOT_SUPPORTED

added in API level 24

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)

STATUS_READY

added in API level 24

int STATUS_READY

GNSS Navigation Messages are successfully being tracked, it will receive updates once they are available.


Constant Value: 1 (0x00000001)

Public constructors


GnssNavigationMessage.Callback

added in API level 24

GnssNavigationMessage.Callback ()



Public methods


onGnssNavigationMessageReceived

added in API level 24

void onGnssNavigationMessageReceived (GnssNavigationMessage event)

Returns the latest collected GNSS Navigation Message.


Parameters
eventGnssNavigationMessage


onStatusChanged

added in API level 24

void onStatusChanged (int status)

Returns the latest status of the GNSS Navigation Messages sub-system.


Parameters
statusint


阅读次数: 2398

下一篇: GnssNavigationMessage
上一篇: GnssStatus

尚无评论!

返回上一页面