collectDeviceDataOnSuccess
fun collectDeviceDataOnSuccess(context: Context, request: DataCollectorRequest, callback: DataCollectorCallback)
This method should be used for markets where high coverage of device data is needed (ex: Predictions Market). Collects device data based on your merchant configuration.
We recommend that you call this method as early as possible, e.g. at app launch. If that's too early, calling it when the customer initiates checkout is also fine. When using this method you should only proceed if a success is returned. In cases where an error is returned, retrying this method is recommended.
Parameters
context
Android Context
request
Optional client metadata id
callback
DataCollectorCallback invoked with either a device data string on success or an error with the failure reason. Retries are recommended on failure.