Capacitor Plugin
Use the ANVISA Capacitor plugin to integrate the locked ANVISA measurement and calibration flow into a hybrid Android/iOS app.
Installing the plugin
See the Customer Portal for SDK downloads.
Add the plugin as a local dependency in package.json.
package.json
{
"dependencies": {
"capacitor-shenai-sdk": "file:./capacitor-shenai-sdk"
}
}WebView overlay
On Android and iOS, the SDK preview is rendered in a native view below the WebView, and the WebView background is made transparent so the camera feed stays visible. Touch events on the WebView are forwarded to the SDK view automatically.
You can reposition the preview and control whether it overlays the WebView with setViewRect and setOverlaysWebview. See Configuration for usage.
Further steps
See Initialization, Configuration, and Measurement preparation for the supported Shen.AI (ANVISA) flow.