Beispiel #1
0
    private void OnShowInterstitialAdFinishedJavaListener(string adResponse)
    {
        List <string> results  = GetResultArguments(adResponse);
        ShowAdResult  response = (ShowAdResult)(Int32.Parse(results[0]));

        if (_onShowInterstitialListener != null)
        {
            _onShowInterstitialListener(response, results[1]);
        }
    }
Beispiel #2
0
    private void OnIsAdAvailableJavaListener(string adResponse)
    {
        List <string> results  = GetResultArguments(adResponse);
        ShowAdResult  response = (ShowAdResult)(Int32.Parse(results[0]));
        bool          result   = (response == ShowAdResult.AD_AVAILABLE) ? true : false;

        if (_onIsAdAvailableListener != null)
        {
            _onIsAdAvailableListener(result, response, results[1]);
        }
    }
Beispiel #3
0
 static void NotifyInterstitialEvent(InterstitialCallBack callback, ShowAdResult result)
 {
     if (callback != null)
     {
         callback(result);
     }
     if (allInterstitialsEvent != null)
     {
         allInterstitialsEvent(result);
     }
 }