Skip to main content

Information Gathering

To trigger data collection and submission, you must (after obtaining the user’s permissions) call the collectData. method. In addition to capturing device information, this method is intended to map the customer journey within the application. For this reason, it also accepts the eventId and eventType fields. The method takes the following parameters:

nametypedefinition
documentNumberStringThe user’s document number, if available (CPF/CNPJ without dots, dashes, or slashes)
eventIdStringAn identifier for the event being reported
eventTypeStringAn enumerated value that defines the type of event being reported. Take care to ensure that very similar events are reported with the same enum value, so that intelligence can be built on top of this data.

After the data collection call, one of the two methods on the DeviceScanNotifier instance passed into the DeviceScan constructor will be called: onSuccess if all goes as expected, or onError if an error occurs.