ZLZRequest

Framework: hummer

class ZLZRequest : NSObject 

This class is an abstract description of an operation to be performed, which can be used with theZLZFacade class to launch the ZOLOZ SDK.

Fields

Field name

Data type

Description

kZLZCurrentViewControllerKey

NSString

Standard biz config key that is used to represent the current ViewController.

kZLZChameleonConfigKey

NSString

Standard biz config key that is used to represent the UI configuration file path.

For more information about UI configuration,

see Customize UI for App SDK-mode products.

kZLZLocaleKey

NSString

Standard biz config key that is used to represent the language, which is used by the ZOLOZ SDK.

For more information about LOCALE,

see Locale related parameter value format.

kZLZVoiceLocaleKey

NSString

The voice announcement language used for face verification in the ZOLOZ SDK. (You need to check the corresponding language on the UI configuration platform and export the configuration file. Currently only zh-CN / en-US / id-ID are supported.)

If this parameter is not passed, kZLZVoiceLocaleKey defaults to being consistent with kZLZLocaleKey.

When kZLZVoiceLocaleKey is manually set to a certain language but the corresponding audio resource does not exist in the UI configuration file, no voice announcement will be played, and the SDK will return a parameter to notify the developer that the corresponding voice resource does not exist

bizConfig

NSDictionary

Specifies the configuration information of the merchant, including ViewController, locale and so on. You can use the constant value to specify the information in bizConfig, for example: request.bizConfig.put(kZLZCurrentViewControllerKey, viewController)

zlzConfig

NSString

Specifies the configuration information that is used to start the ZOLOZ SDK. The information is generated by the ZOLOZ server when the merchant calls the initialize API.

Methods

initWithzlzConfig: bizConfig:

- (instancetype) initWithzlzConfig:(NSString *)config bizConfig:(NSDictionary *)param; 

Constructs the ZLZRequst Object.

Paramters

Parameter name

Data type

Description

config

NSString

Specifies the configuration information that is used to start the ZOLOZ SDK. The information is generated by the ZOLOZ server when the merchant calls the initialize API.

param

NSDictionary

Specifies the configuration information of the merchant, including ViewController, locale and so on. You can use the constant value to specify the information in bizConfig, for example: request.bizConfig.put(kZLZCurrentViewControllerKey, viewController)

Returns

Data type

Description

instancetype

Returns the constructed ZLZRequst object.

Throws

N/A