initConfiguration()

The initConfiguration() method is used to initialize SDK configuration.

Note: This method must be called before calling createComponent().

Declaration

copy
- (void)initConfiguration:(AMSConfiguration *)configuration;

Parameters

Parameter

Type

Required

Description

configuration

AMSConfiguration

Yes

SDK configuration object. Pass the corresponding instance based on the scenario:

completion

(AMSStatusResult) -> Void

No

Callback for initialization completion.

Return value

This method does not return any value.

Error codes

code

status

Suggested prompt for buyers (message)

Description

Recommended action

UI_STATE_ERROR

N/A

The request is abnormal and the transaction cannot be initiated.

Abnormal timing for creating SDK instance or calling createComponent().

Integration code exception, please troubleshoot on your own. Contact Antom technical support if you have problem.