目录

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.

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)
Determines whether the input instance is equal to the current instance.

Parameters

Parameter nameParameter desc
objectInstance to be compared.


Return

Typedesc
booleantrue: 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 nameParameter desc
contextApp context


Return

Typedesc
MLApplicationSettingAn instance of MLApplicationSetting.
Method
public String getApiKey()
Obtains an API key.

Return

Typedesc
StringAPI key
Method
public String getAppId()
Obtains the ID of an app.

Return

Typedesc
StringApp ID
Method
public int hashCode()
Obtains the hash value of the current instance.

Return

Typedesc
intHash value of the current instance.
Method
public String toString()
Converts the current instance into a character string.

Return

Typedesc
StringCharacter string of the current instance.