Adpluginx Documentation
  • 👋Welcome to AdPluginx
  • Installation
    • ⚙️Install Adpluginx
    • Configure Pod For Ios
    • Configure Info.plist
    • Configure SkAdNetworks
    • Configure AppDelegate
    • Creating Native AdView
    • Init Native View to Swift Class
    • Add Onesignal to Project
  • Ad Network Indexes
    • AdConfig
    • FullScreen Ad Indexes
    • Banner Ad Indexes
    • Native Ad Indexes
  • Apple SignIn & In App Purchase
    • Enable Apple SignIn And Use
    • Skip Logic
    • InApp Purchases
    • Coin Login
Powered by GitBook
On this page
  • Watch Coin Change
  • Read Coin Change
  • Set Coin
  • Refresh Coin
  • Bundle Logic

Was this helpful?

  1. Apple SignIn & In App Purchase

Coin Login

Watch Coin Change

context.watchCoin(); // Return int with Continues Change

Read Coin Change

context.readCoin(); // Return int with single Instance

Set Coin

AppAuthProvider.setCoins(coins: 200); // Set Coin

Refresh Coin

context.refreshCoin(); // Refresh Coin From Server

Bundle Logic

// Set your Coin Logic
// To Add
int coin = context.readCoin(); // get current coins.
AppAuthProvider.setCoins(coins: coin + 100); // give 100 coin to user.
context.refreshCoin(); // refresh for all widget.

// To Subtract
int coin = context.readCoin(); // get current coins.
AppAuthProvider.setCoins(coins: coin - 100); // Take 100 coins from user.
context.refreshCoin(); // refresh for all widget.

PreviousInApp Purchases

Last updated 2 years ago

Was this helpful?