public static void showMoreApps() { if (!CBBinding.checkInitialized()) { return; } CBBinding._plugin.Call("showMoreApps", new object[0]); }
public static void destroy() { if (!CBBinding.checkInitialized()) { return; } CBBinding._plugin.Call("destroy", new object[0]); CBBinding.initialized = false; }
public static void pause(bool paused) { if (!CBBinding.checkInitialized()) { return; } CBBinding._plugin.Call("pause", new object[] { paused }); }
public static void forceOrientation(ScreenOrientation orient) { if (!CBBinding.checkInitialized()) { return; } CBBinding._plugin.Call("forceOrientation", new object[] { orient.ToString() }); }
public static void cacheInterstitial(string location) { if (!CBBinding.checkInitialized()) { return; } if (location == null) { location = string.Empty; } CBBinding._plugin.Call("cacheInterstitial", new object[] { location }); }
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); }
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 })); }
/// 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 } }
public static bool isImpressionVisible() { return(CBBinding.checkInitialized() && CBManager.isImpressionVisible()); }
public static bool onBackPressed() { return(CBBinding.checkInitialized() && CBBinding._plugin.Call <bool>("onBackPressed", new object[0])); }
public static bool hasCachedMoreApps() { return(CBBinding.checkInitialized() && CBBinding._plugin.Call <bool>("hasCachedMoreApps", new object[0])); }