setSignatureData

public final static Unit setSignatureData(String signatureData, String signatureDataCoordinates)

Signature Capture

Developer Guides :

public class YourActivity extends Activity {

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        signatureCapture.setOnClickListener{
            SignatureSDK.captureSignature(this@YourActivity)
        }
    }

    override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
        if(requestCode == SignatureConstants.SIGNATURE_CAPTURE_RESPONSE_CODE){
           var signatureData = data?.getStringExtra("SignatureImage"))
           var signatureDataCoordinates = data?.getStringExtra("SignatureDataCoordinates"))
           IdentityProofingSDK.setSignatureData(signatureData,signatureDataCoordinates)
         }else if (requestCode == SignatureConstants.SIGNATURE_CANCEL_RESPONSE_CODE){
               // cancelled by user
               IdentityProofingSDK.setSignatureData(null,null)
         }
    }
}

Parameters

signatureData

: Base64 image data.

signatureDataCoordinates

: Base64 image data with signature coordinates data options. It will take default options, if null or not passed while invocation.