We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

Documents from this version have been archived, and will not continue to be maintained. Please use the latest version.

HMS Core ReferencesML Kitmlsdk.commonMLApplicationSettingFactory

MLApplicationSetting.Factory

class info
com.huawei.hms.mlsdk.common.MLApplicationSetting.Factory
Creates an instance of MLApplicationSetting for setting app attributes.

Public Method Summary

Return typeMethod name
MLApplicationSettingcreate()
MLApplicationSetting.FactorysetApiKey(String apiKey)
MLApplicationSetting.FactorysetApplicationId(String applicationId)
MLApplicationSetting.FactorysetCertFingerprint(String certFingerprint)

Public Methods

Method
public MLApplicationSetting create()
Creates an instance of MLApplicationSetting.

Return

Typedesc
MLApplicationSettingAn instance of MLApplicationSetting.
Method
public MLApplicationSetting.Factory setApiKey(String apiKey)
Sets an API key.

Parameters

Parameter nameParameter desc
apiKeyAPI key


Return

Typedesc
MLApplicationSetting.FactoryAn instance of MLApplicationSetting.Factory.
Method
public MLApplicationSetting.Factory setApplicationId(String applicationId)
Sets the ID of an app.

Parameters

Parameter nameParameter desc
applicationIdApp ID


Return

Typedesc
MLApplicationSetting.FactoryAn instance of MLApplicationSetting.Factory.
Method
public MLApplicationSetting.Factory setCertFingerprint(String certFingerprint)
Sets a certificate fingerprint.

Parameters

Parameter nameParameter desc
certFingerprintCertificate fingerprint.


Return

Typedesc
MLApplicationSetting.FactoryAn instance of MLApplicationSetting.Factory.
This page may contain third-party content. For details, click here.
Search in References
Enter a keyword.