private void OnShowInterstitialAdFinishedJavaListener(string adResponse) { List <string> results = GetResultArguments(adResponse); ShowAdResult response = (ShowAdResult)(Int32.Parse(results[0])); if (_onShowInterstitialListener != null) { _onShowInterstitialListener(response, results[1]); } }
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]); } }
static void NotifyInterstitialEvent(InterstitialCallBack callback, ShowAdResult result) { if (callback != null) { callback(result); } if (allInterstitialsEvent != null) { allInterstitialsEvent(result); } }