文档管理中心
我的
API参考导航服务Androidcom.huawei.hms.navi.navibase.modelClass SummaryDayNightMsg

DayNightMsg

展开

Class Info

public class DayNightMsg

白天黑夜返回结果类。

Public Method Summary

展开

Qualifier and Type

Method Name and Description

String

getMsg()

获取计算信息。

boolean

isDayTime()

获取是否是白天。

boolean

isResult()

获取接口计算结果。

Public Methods

getMsg

展开

Method

public String getMsg()

您调用此API可以获取白天黑夜接口的计算信息。

Returns

展开

Type

Description

String

白天黑夜接口的计算信息,即错误原因。

isDayTime

展开

Method

public boolean isDayTime()

您调用此API可以获取是否是白天。

Returns

展开

Type

Description

boolean

  • ture 是白天
  • false 是黑夜

isResult

展开

Method

public boolean isResult()

您调用此API可以获取白天黑夜接口的计算结果。

Returns

展开

Type

Description

boolean

白天黑夜接口计算结果

  • ture 获取计算结果成功
  • false 获取计算结果失败