Skip to main content

Monitoring Data Collection

Optional implementation

Monitoring Data Collection is optional. If you adopt it, only the openCameraSelfie call is affected — every other step in the capture flow (initialization, listeners, result handling) remains unchanged.

Attach user and flow metadata to a capture session so it can be correlated in monitoring and observability tools on Unico's side. When provided, the data is forwarded alongside the capture — it does not change the SDK's capture behavior or the API response.

UnicoCheckPrepareInfo attributes
AttributeTypeRequiredDescription
externalUserIdStringUser identifier in your system. Automatically hashed with SHA-256 before transmission — never sent in plain text.
useCaseStringIdentifier for the flow or context running (e.g., 'account_opening', 'password_recovery'). Transmitted as plain text.
Implementation

Pass a UnicoCheckPrepareInfo object via the prepareInfo parameter of openCameraSelfie. Everything else in the capture flow stays the same.

_opener.openCameraSelfie(
jsonFileName: androidJsonFileName,
listener: this,
prepareInfo: UnicoCheckPrepareInfo(
externalUserId: 'external_user_id',
useCase: 'use_case', // optional
),
);