目录

ClientParas

Class Info

public class ClientParas

Parameters for the app to initiate the Navi SDK.

Public Method Summary

Qualifier and Type

Method Name and Description

void

setEnv(boolean env)

Sets whether the network is the live network environment.

void

setHwPhone(boolean hwPhone)

Sets whether the device is a Huawei phone.

Public Methods

[h2]setEnv

Method

public void setEnv(boolean env)

Sets whether the environment is the live network environment. This method must be called before any navigation method is called. You are advised to call this method in application.

Parameters

Name

Description

env

Indicates whether the network is the live network environment.

  • true: yes
  • false: no

[h2]setHwPhone

Method

public void setHwPhone(boolean hwPhone)

Sets whether the device is a Huawei phone. This method must be called before any navigation method is called. You are advised to call this method in application.

Parameters

Name

Description

hwPhone

Indicates whether the device is a Huawei phone.

  • true: yes
  • false: no