Exemplo n.º 1
0
        //Invoked when the user completed the video and should be rewarded.
        //If using server-to-server callbacks you may ignore this events and wait for the callback from the  ironSource server.
        //
        //@param - placement - placement object which contains the reward data
        //
        void RewardedVideoAdRewardedEvent(IronSourcePlacement placement)
        {
            onAdEventInfo(new AdEventInfo()
            {
                adType = AdType.RewardedAd, eventType = AdEventType.REWARDED_AD_REWARDED
            });
            var callbackData = new RewardedAdResultData(mCurrentPlacementName, true);

            doRewardedAdResultCallback(callbackData);
        }
Exemplo n.º 2
0
        private void doRewardedAdResultCallback(RewardedAdResultData resultData)
        {
            if (mOnRewardedAdResultCallback == null)
            {
                return;
            }
            var callback = mOnRewardedAdResultCallback;

            mOnRewardedAdResultCallback = null;
            callback(resultData);
        }