Skip to main content

Install

Download the Android AAR, rename it to doubledata-proxy.aar, and place it in app/libs/:
Supports Android API 23+ and ARMv7, ARM64, x86, and x86_64.

Create a client

The SDK includes the DoubleData notice. Set only your app’s connection settings and optional limits:
Import io.doubledata.DoubleDataClient and org.json.JSONObject. Use your application-scoped SDK settings, not an account API key. JSON configuration.

Use the built-in dialog

The dialog displays the supplied notice and clickable privacy link. Only Enable sharing permits a start. Decline, dismissal, or leaving the screen keeps sharing off.

Render your own screen

Implement io.doubledata.ConsentPresenter:
Here sharingScreen is your native UI bridge. The SDK calls it on a worker: post UI work to main, display the complete notice with your styling, and return "accept", "decline", or "dismiss" after the person’s choice. cancel() must promptly dismiss and unblock with a nonaccepting result, including when called before the view opens.

Close the session

Call closeAsync() when the sharing screen leaves the foreground. Await its result off the UI thread before replacing the client. Complete Activity · Application JSON · Participation flow.