IDScan.net
Search Results for

    Show / Hide Table of Contents

    Web Library Event Handlers

    clickGuidlines - callback-function which will be called after guidelines button.

    onChange - function which will be called after each step completes

    Sample Input Parameter

    {
        "index": 3, // step number
        "img": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/...",  // base 64 encoded image 
        "type": "face",  // step type
        "isAuto": false,  // was the image auto captured
        "source": "file"  // what is the source of the image
    }
    

    onRetakeHook - function which will be called after the retake button is clicked

    onMounted - the function that will be called on the component mounted. This function doesn't return a value.

    onReset - function which will be called after reset all the steps button is clicked

    Sample Input Parameter

    {
        "steps": [
            {
                "index": 1,  // step number
                "img": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/...",  // base 64 encoded image
                "type": "front", // step type
                "isAuto": false, // was the image auto captured
                "source": "file" // what is the source of the image
            },
            {
                "index": 2,
                "img": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/...",
                "type": "back",
                "isAuto": false,
                "source": "file"
            },
            {
                "index": 3,
                "img": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/...",
                "type": "face",
                "isAuto": false,
                "source": "file"
            }
        ],
        "documentType": 1,  // the selected document type is encoded with an integer
    }
    

    onCameraError - function which will be called in case the camera is not available

    submit - function which will be called after clicking the submit button

    Sample Input Parameter

    {
        "event": "submit",
        "steps": [
            {
                "index": 1,  // step number
                "img": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/...",  // base 64 encoded image
                "type": "front",  // step type
                "isAuto": false,  // was the image auto captured
                "source": "file"  // what is the source of the image
            },
            {
                "index": 2,
                "img": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/...",
                "type": "back",
                "isAuto": false,
                "source": "file"
            },
            {
                "index": 3,
                "img": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/...",
                "type": "face",
                "isAuto": false,
                "source": "file"
            }
        ],
        "documentType": 1,  // the selected document type is encoded with an integer
       
    }
    
    Back to top IDScan.net IDScan.net GitHub