예제 #1
0
 protected void RewardCompletedCallback(string currencyName, int currencyAmount)
 {
     Log.D("Reward completed." + " currencyName:" + currencyName + " currencyAmount:" + currencyAmount.ToString());
     if (null != RewardCompleted)
     {
         RewardCompleted(this, currencyName, currencyAmount);
     }
 }
예제 #2
0
 public bool isReleased()
 {
     if (m_isReleased)
     {
         Log.W("ViidleAd is already released.");
     }
     return(m_isReleased);
 }
예제 #3
0
 protected void VideoDisplayedCallback()
 {
     Log.D("Video displayed.");
     if (null != VideoDisplayed)
     {
         VideoDisplayed(this);
     }
 }
예제 #4
0
 protected void ShowVideoFailedCallback()
 {
     Log.E("Show video failed.");
     m_isShowing = false;
     if (null != ShowVideoFailed)
     {
         ShowVideoFailed(this);
     }
 }
예제 #5
0
 protected void VideoClosedCallback()
 {
     Log.D("Video closed.");
     m_isShowing     = false;
     m_isLoadSuccess = false;
     if (null != VideoClosed)
     {
         VideoClosed(this);
     }
 }
예제 #6
0
 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);
     }
 }
예제 #7
0
 protected void LoadCompletedCallback()
 {
     Log.D("Load completed.");
     m_isLoadSuccess = true;
     m_isLoading     = false;
     if (null != LoadCompleted)
     {
         LoadCompleted(this);
     }
 }
예제 #8
0
        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);
                }
            }
        }
예제 #9
0
        public void Load()
        {
            if (isReleased())
            {
                return;
            }

            if (m_isLoading)
            {
                Log.W("An ad is already loading.");
                return;
            }

            m_isLoading = true;
            LoadInternal();
        }
예제 #10
0
        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();
        }
예제 #11
0
 public override void Dispose()
 {
     Log.D("Dispose AndroidViddleAd.");
 }