Methods
(static) supportsAutoCapture(successCallBack, errorCallBack)
Checks browser and device model support for web capture.
This is useful in checking the compatibility for advanced document detection based capture experience.
This information can be used to configure capture experience options while creating capture control.
The API caches its result internally: first call may take some time to complete, but other calls
will complete immediately based on the first result till web page gets reloaded.
The API is asynchronous and checks:
1 Secure protocol HTTPS is used
2 Browser supports WebRTC
3 Device has proper auto focus hardware support
4 Device can provide at least FHD back camera resolution via WebRTC
The API is asynchronous and checks:
1 Secure protocol HTTPS is used
2 Browser supports WebRTC
3 Device has proper auto focus hardware support
4 Device can provide at least FHD back camera resolution via WebRTC
Parameters:
Name | Type | Description |
---|---|---|
successCallBack |
function | empty callback indicating that auto capture is supported |
errorCallBack |
function | empty callback indicating that auto capture is not supported |
(static) supportsSelfieCapture(successCallBack, errorCallBack)
Checks browser and device model support for selfie capture.
The API caches its result internally: first call may take some time to complete, but other calls
will complete immediately based on the first result till web page gets reloaded.
The API is asynchronous and checks:
1 Secure protocol HTTPS is used
2 Browser supports WebRTC
The API is asynchronous and checks:
1 Secure protocol HTTPS is used
2 Browser supports WebRTC
Parameters:
Name | Type | Description |
---|---|---|
successCallBack |
function | empty callback indicating that auto capture is supported |
errorCallBack |
function | empty callback indicating that auto capture is not supported |