예제 #1
0
 public static void showMoreApps()
 {
     if (!CBBinding.checkInitialized())
     {
         return;
     }
     CBBinding._plugin.Call("showMoreApps", new object[0]);
 }
예제 #2
0
 public static void destroy()
 {
     if (!CBBinding.checkInitialized())
     {
         return;
     }
     CBBinding._plugin.Call("destroy", new object[0]);
     CBBinding.initialized = false;
 }
예제 #3
0
 public static void pause(bool paused)
 {
     if (!CBBinding.checkInitialized())
     {
         return;
     }
     CBBinding._plugin.Call("pause", new object[]
     {
         paused
     });
 }
예제 #4
0
 public static void forceOrientation(ScreenOrientation orient)
 {
     if (!CBBinding.checkInitialized())
     {
         return;
     }
     CBBinding._plugin.Call("forceOrientation", new object[]
     {
         orient.ToString()
     });
 }
예제 #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
     });
 }
예제 #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);
        }
예제 #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
     }));
 }
예제 #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
            }
        }
예제 #9
0
 public static bool isImpressionVisible()
 {
     return(CBBinding.checkInitialized() && CBManager.isImpressionVisible());
 }
예제 #10
0
 public static bool onBackPressed()
 {
     return(CBBinding.checkInitialized() && CBBinding._plugin.Call <bool>("onBackPressed", new object[0]));
 }
예제 #11
0
 public static bool hasCachedMoreApps()
 {
     return(CBBinding.checkInitialized() && CBBinding._plugin.Call <bool>("hasCachedMoreApps", new object[0]));
 }