protected void RewardCompletedCallback(string currencyName, int currencyAmount) { Log.D("Reward completed." + " currencyName:" + currencyName + " currencyAmount:" + currencyAmount.ToString()); if (null != RewardCompleted) { RewardCompleted(this, currencyName, currencyAmount); } }
public bool isReleased() { if (m_isReleased) { Log.W("ViidleAd is already released."); } return(m_isReleased); }
protected void VideoDisplayedCallback() { Log.D("Video displayed."); if (null != VideoDisplayed) { VideoDisplayed(this); } }
protected void ShowVideoFailedCallback() { Log.E("Show video failed."); m_isShowing = false; if (null != ShowVideoFailed) { ShowVideoFailed(this); } }
protected void VideoClosedCallback() { Log.D("Video closed."); m_isShowing = false; m_isLoadSuccess = false; if (null != VideoClosed) { VideoClosed(this); } }
protected void LoadFailedCallback(int errorCode, string errorMessage) { Log.E("Load failed." + " errorCode:" + errorCode.ToString() + " errorMessage:" + errorMessage); m_isLoadSuccess = false; m_isLoading = false; if (null != LoadFailed) { LoadFailed(this, (ViidleAdErrorType)errorCode, errorMessage); } }
protected void LoadCompletedCallback() { Log.D("Load completed."); m_isLoadSuccess = true; m_isLoading = false; if (null != LoadCompleted) { LoadCompleted(this); } }
internal override void PauseInternal() { Log.D("Pause activity."); using (var unityPlayer = new AndroidJavaClass(UnityPlayerClassName)) { using (var activity = unityPlayer.GetStatic <AndroidJavaObject> ("currentActivity")) { m_JavaObject.Call("pause", activity); } } }
public void Load() { if (isReleased()) { return; } if (m_isLoading) { Log.W("An ad is already loading."); return; } m_isLoading = true; LoadInternal(); }
public void Show() { if (isReleased()) { return; } if (m_isShowing) { Log.W("An ad is already showing."); return; } if (!m_isLoadSuccess) { Log.W("There is no ad to show."); return; } m_isShowing = true; ShowInternal(); }
public override void Dispose() { Log.D("Dispose AndroidViddleAd."); }