public void onVideoStarted() { if (OnVideoStarted != null) { OnVideoStarted(); } UnityAdsExternal.Log("onVideoStarted"); }
public void onFetchFailed() { _campaignsAvailable = false; if (OnCampaignsFetchFailed != null) { OnCampaignsFetchFailed(); } UnityAdsExternal.Log("onFetchFailed"); }
public void onFetchCompleted() { _campaignsAvailable = true; if (OnCampaignsAvailable != null) { OnCampaignsAvailable(); } UnityAdsExternal.Log("onFetchCompleted"); }
/* Events */ public void onHide() { _adsShow = false; if (OnHide != null) { OnHide(); } UnityAdsExternal.Log("onHide"); }
public void onVideoCompleted(string parameters) { if (parameters != null) { List <string> splittedParameters = new List <string>(parameters.Split(';')); string rewardItemKey = splittedParameters.ToArray().GetValue(0).ToString(); bool skipped = splittedParameters.ToArray().GetValue(1).ToString() == "true" ? true : false; if (OnVideoCompleted != null) { OnVideoCompleted(rewardItemKey, skipped); } UnityAdsExternal.Log("onVideoCompleted: " + rewardItemKey + " - " + skipped); } }
public static Dictionary <string, string> getRewardItemDetailsWithKey(string rewardItemKey) { Dictionary <string, string> retDict = new Dictionary <string, string>(); string rewardItemDataString = ""; if (_campaignsAvailable) { rewardItemDataString = UnityAdsExternal.getRewardItemDetailsWithKey(rewardItemKey); if (rewardItemDataString != null) { List <string> splittedData = new List <string>(rewardItemDataString.Split(';')); UnityAdsExternal.Log("UnityAndroid: getRewardItemDetailsWithKey() rewardItemDataString=" + rewardItemDataString); if (splittedData.Count == 2) { retDict.Add(getRewardItemNameKey(), splittedData.ToArray().GetValue(0).ToString()); retDict.Add(getRewardItemPictureKey(), splittedData.ToArray().GetValue(1).ToString()); } } } return(retDict); }
public void onShow() { UnityAdsExternal.Log("onShow"); }