| class info |
| com.huawei.hms.mlsdk.common.MLApplicationSetting |
| Represents an app information configuration class used to specify information such as the app ID and API key required for app initialization. |
| 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) |
| Determines whether the input instance is equal to the current instance. |
Parameters
| Parameter name | Parameter desc |
| object | Instance to be compared. |
Return
| Type | desc |
| boolean | true: equal instances false: unequal instances |
| Method |
| public static MLApplicationSetting fromResource(android.content.Context context) |
| Creates an instance of the MLApplicationSetting class based on the specified app context. |
Parameters
| Parameter name | Parameter desc |
| context | App context |
Return
| Type | desc |
| MLApplicationSetting | An instance of MLApplicationSetting. |
| Method |
| public String getApiKey() |
| Obtains an API key. |
Return
| Type | desc |
| String | API key |
| Method |
| public String getAppId() |
| Obtains the ID of an app. |
Return
| Type | desc |
| String | App ID |
| Method |
| public int hashCode() |
| Obtains the hash value of the current instance. |
Return
| Type | desc |
| int | Hash value of the current instance. |
| Method |
| public String toString() |
| Converts the current instance into a character string. |
Return
| Type | desc |
| String | Character string of the current instance. |