trsurveys 1.0.1 copy "trsurveys: ^1.0.1" to clipboard
trsurveys: ^1.0.1 copied to clipboard

unlistedoutdated

A plugin for TheoremReach Surveys SDK for both Android & iOS

TheoremReach Plugin #

Getting started: #

1. Initialise TheoremReach #

Call init() during app initialization & set your listeners.

 TheoremReach.instance
        .init(apiToken: 'api_key', userId: 'userId');
    TheoremReach.instance.setTheoremReachOnRewardListener(onTheoremReachReward);
    TheoremReach.instance
        .setTheoremReachRewardCenterClosed(onTheoremReachRewardCenterClosed);
    TheoremReach.instance
        .setTheoremReachRewardCenterOpened(onTheoremReachRewardCenterOpened);
    TheoremReach.instance
        .setTheoremReachSurveyAvaiableListener(onTheoremReachSurveyAvailable);

2. Initialise callback listeners #

 void onTheoremReachReward(int quantity) {
   print('TR: $quantity');
 }

 void onTheoremReachSurveyAvailable(int survey) {
   print('TR: $survey'); // 1 represents if a survey is available 
 }

 void onTheoremReachRewardCenterClosed() {
   print('TR: closed');
 }

 void onTheoremReachRewardCenterOpened() {
   print('TR: opened');
 }

3. Call TheoremReach #

TheoremReach.instance.show()

IMPORTANT: If you’re Publishing and using Proguard add these lines to your configuration file: #

-keep class theoremreach.com.** { *; }

For the complete implementation, please refer to the example repo.

2
likes
0
pub points
0%
popularity

Publisher

verified publisheranavrinapps.com

A plugin for TheoremReach Surveys SDK for both Android & iOS

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on trsurveys