Encryption configuration

There are 2 ways to set encryptionConfigurationId

Using MetamapButton

If you use MetamapButton then you need to add encryptionConfigurationId to setParams(...) method

val button = findViewById<MetamapButton>(R.id.metamapButton)
button.setParams(this, "YOUR_CLIENT_ID", "YOUR_FLOW_ID", null, null, encryptionConfigurationId);
MetamapButton button = findViewById(R.id.metamapButton);
button.setParams(this, "YOUR_CLIENT_ID", "YOUR_FLOW_ID", null, null, encryptionConfigurationId);

Using method call

If you use Method call then you need to setencryptionConfigurationId to the MetamapSdk.startFlow(...) method

MetamapSdk.startFlow(this, "YOUR_CLIENT_ID", "YOUR_FLOW_ID", null, null, encryptionConfigurationId)
MetamapSdk.INSTANCE.createFlowIntent(this,"YOUR_CLIENT_ID", "YOUR_FLOW_ID", null, null,  encryptionConfigurationId);

Learn more about encryption feature here.

What’s Next

Having Troubles? Please visit Troubleshoot section or check out our demo apps.