Ejemplo n.º 1
0
 public void didCacheInterstitial(string location)
 {
     if (CBManager.didCacheInterstitialEvent != null)
     {
         CBManager.didCacheInterstitialEvent(location);
     }
 }
Ejemplo n.º 2
0
        private static void doUnityPause(bool pause)
        {
            bool flag = true;

            if (pause)
            {
                if (CBManager.isPaused)
                {
                    flag = false;
                }
                CBManager.isPaused = true;
                if (flag)
                {
                    CBManager.doCustomPause(pause);
                }
            }
            else
            {
                if (!CBManager.isPaused)
                {
                    flag = false;
                }
                CBManager.isPaused = false;
                if (flag)
                {
                    CBManager.doCustomPause(pause);
                }
            }
        }
Ejemplo n.º 3
0
 public void didCacheMoreApps(string empty)
 {
     if (CBManager.didCacheMoreAppsEvent != null)
     {
         CBManager.didCacheMoreAppsEvent();
     }
 }
Ejemplo n.º 4
0
 public void didShowMoreApps(string empty)
 {
     CBManager.doUnityPause(true);
     if (CBManager.didShowMoreAppsEvent != null)
     {
         CBManager.didShowMoreAppsEvent();
     }
 }
Ejemplo n.º 5
0
 public void didDismissMoreApps(string empty)
 {
     CBManager.doUnityPause(false);
     if (CBManager.didDismissMoreAppsEvent != null)
     {
         CBManager.didDismissMoreAppsEvent();
     }
 }
Ejemplo n.º 6
0
 public void didShowInterstitial(string location)
 {
     CBManager.doUnityPause(true);
     if (CBManager.didShowInterstitialEvent != null)
     {
         CBManager.didShowInterstitialEvent(location);
     }
 }
Ejemplo n.º 7
0
 public void didDismissInterstitial(string location)
 {
     CBManager.doUnityPause(false);
     if (CBManager.didDismissInterstitialEvent != null)
     {
         CBManager.didDismissInterstitialEvent(location);
     }
 }
        /// Returns true if an impression (interstitial or more apps page) is currently visible
        /// Due to Unity optimizations, touch events will pass through Chartboost impressions.
        /// You will have to use this method to check if a Chartboost impression is open in any code that responds to touch events
        public static bool isImpressionVisible()
        {
            if (!checkInitialized())
            {
                return(false);
            }

            return(CBManager.isImpressionVisible());
        }
Ejemplo n.º 9
0
        public void didFailToLoadMoreApps(string dataString)
        {
            Hashtable hashtable = (Hashtable)CBJSON.Deserialize(dataString);

            CBManager.CBImpressionError obj = CBManager.impressionErrorFromInt(hashtable["errorCode"]);
            if (CBManager.didFailToLoadMoreAppsEvent != null)
            {
                CBManager.didFailToLoadMoreAppsEvent(obj);
            }
        }
Ejemplo n.º 10
0
        public void didFailToLoadInterstitial(string dataString)
        {
            Hashtable hashtable = (Hashtable)CBJSON.Deserialize(dataString);

            CBManager.CBImpressionError arg = CBManager.impressionErrorFromInt(hashtable["errorCode"]);
            if (CBManager.didFailToLoadInterstitialEvent != null)
            {
                CBManager.didFailToLoadInterstitialEvent(hashtable["location"] as string, arg);
            }
        }
Ejemplo n.º 11
0
	void didFailToLoadMoreAppsEvent(CBManager.CBImpressionError error) {
		Debug.Log(string.Format("didFailToLoadMoreAppsEvent: {0}", error));
	}
Ejemplo n.º 12
0
	void didFailToLoadInterstitialEvent(string location, CBManager.CBImpressionError error) {
		Debug.Log(string.Format("didFailToLoadInterstitialEvent: {0} at location {1}", error, location));
	}
Ejemplo n.º 13
0
 public static bool isImpressionVisible()
 {
     return(CBBinding.checkInitialized() && CBManager.isImpressionVisible());
 }