Most visited

Recently visited

Added in API level 24

GnssNavigationMessage.Callback

public static abstract class GnssNavigationMessage.Callback
extends Object

java.lang.Object
   ↳ android.location.GnssNavigationMessage.Callback


用于从GNSS引擎接收GNSS卫星导航信息。

您可以实现此界面并致电 registerGnssNavigationMessageCallback(GnssNavigationMessage.Callback)

Summary

Constants

int STATUS_LOCATION_DISABLED

GNSS提供商或位置已禁用,只有在启用后才会收到更新。

int STATUS_NOT_SUPPORTED

系统不支持跟踪GNSS导航消息。

int STATUS_READY

全球导航卫星系统导航信息已成功跟踪,一旦它们可用,它将收到更新。

Public constructors

GnssNavigationMessage.Callback()

Public methods

void onGnssNavigationMessageReceived(GnssNavigationMessage event)

返回最新收集的GNSS导航消息。

void onStatusChanged(int status)

返回GNSS导航消息子系统的最新状态。

Inherited methods

From class java.lang.Object

Constants

STATUS_LOCATION_DISABLED

Added in API level 24
int STATUS_LOCATION_DISABLED

GNSS提供商或位置已禁用,只有在启用后才会收到更新。

常量值:2(0x00000002)

STATUS_NOT_SUPPORTED

Added in API level 24
int STATUS_NOT_SUPPORTED

系统不支持跟踪GNSS导航消息。 这种状态在未来不会改变。

常量值:0(0x00000000)

STATUS_READY

Added in API level 24
int STATUS_READY

全球导航卫星系统导航信息已成功跟踪,一旦它们可用,它将收到更新。

常数值: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)

返回最新收集的GNSS导航消息。

Parameters
event GnssNavigationMessage

onStatusChanged

Added in API level 24
void onStatusChanged (int status)

返回GNSS导航消息子系统的最新状态。

Parameters
status int

Hooray!