On this page, you will find detailed documentation for the
TheoremReach SDK. This software development kit allows you to quickly integrate TheoremReach surveys and rewarded tasks into your iOS and Android apps.
Getting Started
Installation
To install the TheoremReach SDK in your iOS app, follow these steps:
- Download the latest version of the SDK from the official TheoremReach GitHub repository.
- Extract the downloaded zip file.
- Drag and drop the TheoremReach framework into your Xcode project.
To install the SDK in your Android app:
- Add the TheoremReach SDK dependency to your app/build.gradle file.
- Sync your project with Gradle files to ensure the SDK is added.
Integration
Once the TheoremReach SDK is installed, follow these steps to start integrating it into your app:
- Import the TheoremReach module to your class files.
- Create an instance of the `TheoremReach` class using your API key.
- Implement the necessary methods to display surveys and rewarded tasks in your app.
Usage
The TheoremReach SDK provides various methods and features to enhance your app’s monetization. Here are some key functionalities:
Displaying Surveys
To display a survey to your users, use the following steps:
- Call the `TheoremReach.showRewardCenter` method to present the reward center UI to the user.
Displaying Rewarded Tasks
To display rewarded tasks to your users, follow these steps:
- Call the `TheoremReach.showRewardCenter` method to present the reward center UI to the user.
Callbacks
The TheoremReach SDK allows you to implement various callbacks to track user interactions and rewards. Use the following methods:
- `TheoremReach.rewardCenterOpened` – Called when the reward center is opened by the user.
- `TheoremReach.rewardCenterDismissed` – Called when the reward center is dismissed by the user.
- `TheoremReach.surveyReceived` – Called when a survey is received by the user.
- `TheoremReach.surveyCompleted` – Called when a survey is successfully completed by the user.
- `TheoremReach.userCreditReceived` – Called when the user receives credits after completing a survey or task.
Additional Resources
Official Documentation
For more detailed information and examples, check out the official TheoremReach SDK documentation.
GitHub Repository
Visit the TheoremReach GitHub repository to access the latest version of the SDK and contribute to its development.