目录

class info
com.huawei.hms.mlsdk.common.MLApplicationSetting
APP信息配置类,用于指定应用初始化需要的应用ID,API秘钥等信息。

Public Method Summary

Return typeMethod name
booleanequals(Object o)
MLApplicationSettingfromResource(android.content.Context context)
StringgetApiKey()
StringgetAppId()
inthashCode()
StringtoString()

Public Methods

Method
public boolean equals(Object object)
判断输入实例是否与本实例相等。

Parameters

Parameter nameParameter desc
object对比的实例。


Return

Typedesc
booleantrue:表示两个实例相等
false:表示两个实例不相等
Method
public static MLApplicationSetting fromResource(android.content.Context context)
通过应用的上下文信息创建APP信息配置类的实例。

Parameters

Parameter nameParameter desc
context应用上下文。


Return

Typedesc
MLApplicationSetting返回MLApplicationSetting的实例。
Method
public String getApiKey()
获取API秘钥。

Return

Typedesc
String返回API秘钥。
Method
public String getAppId()
获取应用ID。

Return

Typedesc
String返回应用ID。
Method
public int hashCode()
获取当前实例的哈希值。

Return

Typedesc
int返回实例的哈希值。
Method
public String toString()
当前实例转换为字符串。

Return

Typedesc
String当前实例的字符串。