SIDTagManager
From version 6.3.0 the library enables unique job configuration for multiple jobs which are sent at once using submitAll() and these may have different user id information and or job configuration

This is optional for when you are calling submit() method from SIDNetworkRequest class but if you are using submitAll() then this is required .

Below is a general example of how this could be used, however you may use the tag manager class for every job configuration

Step 1 User Id Information Example (can be used)

Instantiate the tag manager object from the singleton
1
SIDTagManager sidTagManager = SIDTagManager.getInstance(this);
Copied!
Step 2
Setup the metadata for the job
1
//Instantiate the metadata
2
SIDMetadata metadata = new SIDMetadata();
3
4
//Set user id information
5
SIDUserIdInfo userIdInfo = metadata.getSidUserIdInfo();
6
userIdInfo.setCountry("Country");
7
userIdInfo.setIdNumber("ID Number");
8
userIdInfo.setIdType("ID Type");
9
10
//set the metadata on the SIDConfig
11
SIDConfig.Builder builder = new SIDConfig.Builder(this)
12
....
13
.setSIDMetadata(metadata)
14
...
15
16
SIDConfig config = builder.build($UNIQUE_TAG);
Copied!

Step 3

Before submitting the job save the configuration for the job by calling
1
/**
2
*
3
* @param tag (required) the tag for the SIDConfig
4
* @param jobType (required) the job type as per smile id job types
5
* @param mode (required) either enrol or authentication
6
* @param geoInfos (optional) geolocation information for the job
7
* @param sidMetadata (required) can have only partner params and
8
or userid information
9
* @param useIdCard (required) true or false depending on whether the job is usig an id card image or not
10
*/
11
sidTagManager.saveConfig();
Copied!
Once the above method has been called you may call the methods fro SIDNetworkRequest class and the library will associate the correct job to the correct configuration
1
mSINetworkrequest.submit(sidConfig);
2
or
3
mSINetworkrequest.submitAll(sidConfig);
Copied!
Last modified 4mo ago
Copy link