Beispiel #1
0
 public static void showMoreApps()
 {
     if (!CBBinding.checkInitialized())
     {
         return;
     }
     CBBinding._plugin.Call("showMoreApps", new object[0]);
 }
Beispiel #2
0
 public static void destroy()
 {
     if (!CBBinding.checkInitialized())
     {
         return;
     }
     CBBinding._plugin.Call("destroy", new object[0]);
     CBBinding.initialized = false;
 }
Beispiel #3
0
 public static void pause(bool paused)
 {
     if (!CBBinding.checkInitialized())
     {
         return;
     }
     CBBinding._plugin.Call("pause", new object[]
     {
         paused
     });
 }
Beispiel #4
0
 public static void forceOrientation(ScreenOrientation orient)
 {
     if (!CBBinding.checkInitialized())
     {
         return;
     }
     CBBinding._plugin.Call("forceOrientation", new object[]
     {
         orient.ToString()
     });
 }
Beispiel #5
0
 public static void cacheInterstitial(string location)
 {
     if (!CBBinding.checkInitialized())
     {
         return;
     }
     if (location == null)
     {
         location = string.Empty;
     }
     CBBinding._plugin.Call("cacheInterstitial", new object[]
     {
         location
     });
 }
Beispiel #6
0
        public void OnEnable()
        {
            if (!Application.isPlaying)
            {
                return;
            }
            string appId        = string.Empty;
            string appSignature = string.Empty;

            if (Application.platform != RuntimePlatform.Android)
            {
                return;
            }
            appId        = "53b3ad95c26ee417a9d1e3fb";
            appSignature = "88a91a14027104f1f32e7c9a0a898d7c9ad281c9";
            CBBinding.init(appId, appSignature);
        }
Beispiel #7
0
 public static bool hasCachedInterstitial(string location)
 {
     if (!CBBinding.checkInitialized())
     {
         return(false);
     }
     if (location == null)
     {
         location = string.Empty;
     }
     if (location == null)
     {
         location = string.Empty;
     }
     return(CBBinding._plugin.Call <bool>("hasCachedInterstitial", new object[]
     {
         location
     }));
 }
Beispiel #8
0
        /// Manages pausing
        private static void doUnityPause(bool pause)
        {
#if UNITY_ANDROID
            bool useCustomPause = true;
#endif
            if (pause)
            {
#if UNITY_ANDROID
                if (isPaused)
                {
                    useCustomPause = false;
                }
#endif
                isPaused = true;
#if UNITY_ANDROID
                if (useCustomPause && !CBBinding.getImpressionsUseActivities())
                {
                    doCustomPause(pause);
                }
#endif
            }
            else
            {
#if UNITY_ANDROID
                if (!isPaused)
                {
                    useCustomPause = false;
                }
#endif
                isPaused = false;
#if UNITY_ANDROID
                if (useCustomPause && !CBBinding.getImpressionsUseActivities())
                {
                    doCustomPause(pause);
                }
#endif
            }
        }
Beispiel #9
0
 public static bool isImpressionVisible()
 {
     return(CBBinding.checkInitialized() && CBManager.isImpressionVisible());
 }
Beispiel #10
0
 public static bool onBackPressed()
 {
     return(CBBinding.checkInitialized() && CBBinding._plugin.Call <bool>("onBackPressed", new object[0]));
 }
Beispiel #11
0
 public static bool hasCachedMoreApps()
 {
     return(CBBinding.checkInitialized() && CBBinding._plugin.Call <bool>("hasCachedMoreApps", new object[0]));
 }