目录

NavigationRequest

  1. 使用室外高精度能力的开发者需要遵守国家法律法规与华为公司共同向国家有关部门申请高精度偏转插件的使用许可。
  2. 室外高精度能力当前仅支持中国大陆地区的部分城市:深圳市、广州市、苏州市、杭州市、重庆市、成都市、天津市、东莞市(持续增加中),海外暂不支持。

Class Info

public class NavigationRequest implements IMessageEntity

导航的请求信息类。

Public Field Summary

Qualifier and Type

Field and Description

static final int

IS_SUPPORT_EX

用于请求设备是否支持室外高精度。

static final int

OVERPASS

用于请求设备导航状态。

Public Constructor Summary

Constructor Name

NavigationRequest(int type)

构建一个NavigationRequest实例。

Public Method Summary

Qualifier and Type

Method Name and Description

int

getType()

获取请求类型。

void

setType(int type)

设置请求类型,请求类型请参阅:Constant-values。

Public Fields

[h2]IS_SUPPORT_EX

Fields

public static final int IS_SUPPORT_EX

用于请求设备是否支持室外高精度。

IS_SUPPORT_EX:2,其余常量值请参阅:Constant-values。

[h2]OVERPASS

Fields

public static final int OVERPASS

用于请求导航状态。

OVERPASS:1,其余常量值请参阅:Constant-values。

Public Constructors

[h2]NavigationRequest

Constructor

public NavigationRequest(int type)

构建一个NavigationRequest实例。

Parameters

Name

Description

type

请求类型,具体支持类型请参阅:Constant-values。

Public Methods

[h2]getType

Method

public int getType()

获取请求类型。

Returns

Type

Description

int

请求类型。

[h2]setType

Method

public void setType(int type)

设置请求类型。

Parameters

Name

Description

type

请求的类型,请求类型请参阅:Constant-values。