| class info |
| com.huawei.hms.mlsdk.common.MLApplicationSetting |
| APP信息配置类,用于指定应用初始化需要的应用ID,API秘钥等信息。 |
| Return type | Method name |
| boolean | equals(Object o) |
| MLApplicationSetting | fromResource(android.content.Context context) |
| String | getApiKey() |
| String | getAppId() |
| int | hashCode() |
| String | toString() |
| Method |
| public boolean equals(Object object) |
| 判断输入实例是否与本实例相等。 |
Parameters
| Parameter name | Parameter desc |
| object | 对比的实例。 |
Return
| Type | desc |
| boolean | true:表示两个实例相等 false:表示两个实例不相等 |
| Method |
| public static MLApplicationSetting fromResource(android.content.Context context) |
| 通过应用的上下文信息创建APP信息配置类的实例。 |
Parameters
| Parameter name | Parameter desc |
| context | 应用上下文。 |
Return
| Type | desc |
| MLApplicationSetting | 返回MLApplicationSetting的实例。 |
| Method |
| public String getApiKey() |
| 获取API秘钥。 |
Return
| Type | desc |
| String | 返回API秘钥。 |
| Method |
| public String getAppId() |
| 获取应用ID。 |
Return
| Type | desc |
| String | 返回应用ID。 |
| Method |
| public int hashCode() |
| 获取当前实例的哈希值。 |
Return
| Type | desc |
| int | 返回实例的哈希值。 |
| Method |
| public String toString() |
| 当前实例转换为字符串。 |
Return
| Type | desc |
| String | 当前实例的字符串。 |