Usage
Reclaim Protocol's InApp Android SDK for ZK proof generations for requests with an in-app experience of web verification
Usage
To use ReclaimInAppSdk in your project, follow these steps:
- Import the ReclaimInAppSdk module into your Kotlin/Java file.
- Create a request object.
Or if you have added the APP_ID and APP_SECRET metadata to your AndroidManifest.xml file, you can create the request object using the ReclaimVerification.Request.fromManifestMetaData method.
- Start the verification flow.
The returned result ReclaimVerification.ResultHandler.onResponse in is a ReclaimVerification.Response object. This object contains a response that has proofs, exception, and the sessionId if the verification is successful.
If the verification is cancelled or failed, the handler's ReclaimVerification.ResultHandler.onException method is called with a ReclaimVerification.ReclaimVerificationException object.
Example
- See the Reclaim Compose Example - Android for a complete example of how to use the SDK in an Android application.