Method call
Once you have done the setup described in the Quick Start section you are good to start a verification. In this part of the documentation we will start a verification using a method call
In your Activity simply call MetamapSdk.startFlow(...)
method with the respective params.
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main);
//..
MetamapSdk.startFlow(this,"YOUR_CLIENT_ID", "YOUR_FLOW_ID")
}
}
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//..
MetamapSdk.INSTANCE.createFlowIntent(this,"YOUR_CLIENT_ID", "YOUR_FLOW_ID", null, null);
}
}
In order to make this work you need to set your own CLIENT_ID
and FLOW_ID
. You can find them in the Metamap Dashboard, for more details please check this section.
Congratulations! On this stage you are already able to start the Metamap SDK and have your first verification.
Updated 10 months ago
Now it's time to get the callback from the SDK, to understand whether the verification was completed or cancelled. To learn how to set up a callback please follow the SDK Callback section.