// Token: 0x06000043 RID: 67 RVA: 0x0000381C File Offset: 0x00001C1C
        public static CBInPlay getInPlay(CBLocation location)
        {
            CBExternal.Log("Android : getInPlay at location = " + location.ToString());
            if (!CBExternal.checkInitialized())
            {
                return(null);
            }
            if (location == null)
            {
                Debug.LogError("Chartboost SDK: location passed is null cannot perform the operation requested");
                return(null);
            }
            CBInPlay result;

            try
            {
                AndroidJavaObject inPlayAd = CBExternal._plugin.Call <AndroidJavaObject>("getInPlay", new object[]
                {
                    location.ToString()
                });
                CBInPlay cbinPlay = new CBInPlay(inPlayAd, CBExternal._plugin);
                result = cbinPlay;
            }
            catch
            {
                result = null;
            }
            return(result);
        }
Esempio n. 2
0
        public static CBInPlay getInPlay(CBLocation location)
        {
            if (!checkInitialized())
            {
                return(null);
            }
            else if (location == null)
            {
                Debug.LogError("Chartboost SDK: location passed is null cannot perform the operation requested");
                return(null);
            }

            IntPtr inPlayId = _chartBoostGetInPlay(location.ToString());

            // No Inplay was available right now
            if (inPlayId == IntPtr.Zero)
            {
                return(null);
            }

            CBInPlay inPlayAd = new CBInPlay(inPlayId);

            Log("iOS : getInPlay at location = " + location.ToString());
            return(inPlayAd);
        }
Esempio n. 3
0
 /// Checks for a cached a rewarded video. Location is optional.
 public static bool hasRewardedVideo(CBLocation location)
 {
     if (!checkInitialized())
     {
         return(false);
     }
     else if (location == null)
     {
         Debug.LogError("Chartboost SDK: location passed is null cannot perform the operation requested");
         return(false);
     }
     Log("iOS : hasRewardedVideo at location = " + location.ToString());
     return(_chartBoostHasRewardedVideo(location.ToString()));
 }
Esempio n. 4
0
 /// Caches an interstitial. Location is optional.
 public static void cacheInterstitial(CBLocation location)
 {
     if (!checkInitialized())
     {
         return;
     }
     else if (location == null)
     {
         Debug.LogError("Chartboost SDK: location passed is null cannot perform the operation requested");
         return;
     }
     _plugin.Call("cacheInterstitial", location.ToString());
     Log("Android : cacheInterstitial at location = " + location.ToString());
 }
Esempio n. 5
0
 public static bool hasInPlay(CBLocation location)
 {
     if (!checkInitialized())
     {
         return(false);
     }
     else if (location == null)
     {
         Debug.LogError("Chartboost SDK: location passed is null cannot perform the operation requested");
         return(false);
     }
     Log("Android : hasInPlay at location = " + location.ToString());
     return(_plugin.Call <bool>("hasCachedInPlay", location.ToString()));
 }
Esempio n. 6
0
 /// Loads a rewarded video.
 public static void showRewardedVideo(CBLocation location)
 {
     if (!checkInitialized())
     {
         return;
     }
     else if (location == null)
     {
         Debug.LogError("Chartboost SDK: location passed is null cannot perform the operation requested");
         return;
     }
     _plugin.Call("showRewardedVideo", location.ToString());
     Log("Android : showRewardedVideo at location = " + location.ToString());
 }
Esempio n. 7
0
 public static void cacheInPlay(CBLocation location)
 {
     if (!checkInitialized())
     {
         return;
     }
     else if (location == null)
     {
         Debug.LogError("Chartboost SDK: location passed is null cannot perform the operation requested");
         return;
     }
     _chartBoostCacheInPlay(location.ToString());
     Log("iOS : cacheInPlay at location = " + location.ToString());
 }
Esempio n. 8
0
        public static CBInPlay getInPlay(CBLocation location)
        {
            Log("Android : getInPlay at location = " + location.ToString());

            if (!checkInitialized())
            {
                return(null);
            }

            else if (location == null)
            {
                Debug.LogError("Chartboost SDK: location passed is null cannot perform the operation requested");

                return(null);
            }

            try

            {
                AndroidJavaObject androidInPlayAd = _plugin.Call <AndroidJavaObject>("getInPlay", location.ToString());

                CBInPlay inPlayAd = new CBInPlay(androidInPlayAd, _plugin);

                return(inPlayAd);
            }

            catch

            {
                return(null);
            }
        }
 // Token: 0x06000046 RID: 70 RVA: 0x00003964 File Offset: 0x00001D64
 public static void showRewardedVideo(CBLocation location)
 {
     if (!CBExternal.checkInitialized())
     {
         return;
     }
     if (location == null)
     {
         Debug.LogError("Chartboost SDK: location passed is null cannot perform the operation requested");
         return;
     }
     CBExternal._plugin.Call("showRewardedVideo", new object[]
     {
         location.ToString()
     });
     CBExternal.Log("Android : showRewardedVideo at location = " + location.ToString());
 }
 // Token: 0x0600003C RID: 60 RVA: 0x0000358C File Offset: 0x0000198C
 public static bool hasInterstitial(CBLocation location)
 {
     if (!CBExternal.checkInitialized())
     {
         return(false);
     }
     if (location == null)
     {
         Debug.LogError("Chartboost SDK: location passed is null cannot perform the operation requested");
         return(false);
     }
     CBExternal.Log("Android : hasInterstitial at location = " + location.ToString());
     return(CBExternal._plugin.Call <bool>("hasInterstitial", new object[]
     {
         location.ToString()
     }));
 }
Esempio n. 11
0
 /// Checks for a cached an interstitial. Location is optional.
 public static bool hasInterstitial(CBLocation location)
 {
     Log("Unity : hasInterstitial at location = " + location.ToString());
     return(false);
 }
Esempio n. 12
0
        public static CBInPlay getInPlay(CBLocation location)
        {
            if (!checkInitialized())
                return null;
            else if(location == null) {
                Debug.LogError("Chartboost SDK: location passed is null cannot perform the operation requested");
                return null;
            }

            IntPtr inPlayId = _chartBoostGetInPlay(location.ToString());
            // No Inplay was available right now
            if(inPlayId == IntPtr.Zero) {
                return null;
            }

            CBInPlay inPlayAd = new CBInPlay(inPlayId);
            Log("iOS : getInPlay at location = " + location.ToString());
            return inPlayAd;
        }
Esempio n. 13
0
 /// Caches a rewarded video. Location is optional.
 public static void cacheRewardedVideo(CBLocation location)
 {
     if (!checkInitialized())
         return;
     else if(location == null) {
         Debug.LogError("Chartboost SDK: location passed is null cannot perform the operation requested");
         return;
     }
     _chartBoostCacheRewardedVideo(location.ToString());
     Log("iOS : cacheRewardedVideo at location = " + location.ToString());
 }
Esempio n. 14
0
 public static bool hasInPlay(CBLocation location)
 {
     Log("Unity : hasInPlay at location = " + location.ToString());
     return false;
 }
Esempio n. 15
0
 /// Checks for a cached an interstitial. Location is optional.
 public static bool hasInterstitial(CBLocation location)
 {
     if (!checkInitialized())
         return false;
     else if(location == null) {
         Debug.LogError("Chartboost SDK: location passed is null cannot perform the operation requested");
         return false;
     }
     Log("iOS : hasInterstitial at location = " + location.ToString());
     return _chartBoostHasInterstitial(location.ToString());
 }
Esempio n. 16
0
 /// Checks to see if the more apps screen is cached. Location is optional.
 public static bool hasMoreApps(CBLocation location)
 {
     Log("Unity : hasMoreApps at location = " + location.ToString());
     return(false);
 }
Esempio n. 17
0
 /// Caches the more apps screen. Location is optional.
 public static void cacheMoreApps(CBLocation location)
 {
     Log("Unity : cacheMoreApps at location = " + location.ToString());
 }
Esempio n. 18
0
 /// Loads a rewarded video. 
 public static void showRewardedVideo(CBLocation location)
 {
     if (!checkInitialized())
         return;
     else if(location == null) {
         Debug.LogError("Chartboost SDK: location passed is null cannot perform the operation requested");
         return;
     }
     _plugin.Call("showRewardedVideo", location.ToString());
     Log("Android : showRewardedVideo at location = " + location.ToString());
 }
Esempio n. 19
0
 public static CBInPlay getInPlay(CBLocation location)
 {
     Log("Unity : getInPlay at location = " + location.ToString());
     return null;
 }
Esempio n. 20
0
 public static CBInPlay getInPlay(CBLocation location)
 {
     Log("Android : getInPlay at location = " + location.ToString());
     if (!checkInitialized())
         return null;
     else if(location == null) {
         Debug.LogError("Chartboost SDK: location passed is null cannot perform the operation requested");
         return null;
     }
     try
     {
         AndroidJavaObject androidInPlayAd = _plugin.Call<AndroidJavaObject>("getInPlay", location.ToString());
         CBInPlay inPlayAd = new CBInPlay(androidInPlayAd, _plugin);
         return inPlayAd;
     }
     catch
     {
         return null;
     }
 }
Esempio n. 21
0
 /// Checks for a cached a rewarded video. 
 public static bool hasRewardedVideo(CBLocation location)
 {
     if (!checkInitialized())
         return false;
     else if(location == null) {
         Debug.LogError("Chartboost SDK: location passed is null cannot perform the operation requested");
         return false;
     }
     Log("Android : hasRewardedVideo at location = " + location.ToString());
     return _plugin.Call<bool>("hasRewardedVideo", location.ToString());
 }
Esempio n. 22
0
 /// Caches the more apps screen. Location is optional.
 public static void cacheMoreApps(CBLocation location)
 {
     if (!checkInitialized())
         return;
     else if(location == null) {
         Debug.LogError("Chartboost SDK: location passed is null cannot perform the operation requested");
         return;
     };
     _plugin.Call("cacheMoreApps", location.ToString());
     Log("Android : cacheMoreApps at location = " + location.ToString());
 }
Esempio n. 23
0
 /// Caches a rewarded video. Location is optional.
 public static void cacheRewardedVideo(CBLocation location)
 {
     Log("Unity : cacheRewardedVideo at location = " + location.ToString());
 }
Esempio n. 24
0
 /// Shows the more apps screen. Location is optional.
 public static void showMoreApps(CBLocation location)
 {
     if (!checkInitialized())
         return;
     else if(location == null) {
         Debug.LogError("Chartboost SDK: location passed is null cannot perform the operation requested");
         return;
     }
     _chartBoostShowMoreApps(location.ToString());
     Log("iOS : showMoreApps at location = " + location.ToString());
 }
Esempio n. 25
0
 /// Checks for a cached a rewarded video. Location is optional.
 public static bool hasRewardedVideo(CBLocation location)
 {
     Log("Unity : hasRewardedVideo at location = " + location.ToString());
     return false;
 }
Esempio n. 26
0
 /// Shows the more apps screen. Location is optional.
 public static void showMoreApps(CBLocation location)
 {
     Log("Unity : showMoreApps at location = " + location.ToString());
 }
Esempio n. 27
0
 /// Loads an interstitial. Location is optional.
 public static void showInterstitial(CBLocation location)
 {
     Log("Unity : showInterstitial at location = " + location.ToString());
 }
Esempio n. 28
0
 /// Checks for a cached an interstitial. Location is optional.
 public static bool hasInterstitial(CBLocation location)
 {
     Log("Unity : hasInterstitial at location = " + location.ToString());
     return false;
 }
Esempio n. 29
0
 /// Checks to see if the more apps screen is cached. Location is optional.
 public static bool hasMoreApps(CBLocation location)
 {
     Log("Unity : hasMoreApps at location = " + location.ToString());
     return false;
 }
Esempio n. 30
0
 /// Caches an interstitial. Location is optional.
 public static void cacheInterstitial(CBLocation location)
 {
     Log("Unity : cacheInterstitial at location = " + location.ToString());
 }
Esempio n. 31
0
 public static void cacheInPlay(CBLocation location)
 {
     Log("Unity : cacheInPlay at location = " + location.ToString());
 }
Esempio n. 32
0
 /// Checks for a cached a rewarded video. Location is optional.
 public static bool hasRewardedVideo(CBLocation location)
 {
     Log("Unity : hasRewardedVideo at location = " + location.ToString());
     return(false);
 }
Esempio n. 33
0
 public static bool hasInPlay(CBLocation location)
 {
     Log("Unity : hasInPlay at location = " + location.ToString());
     return(false);
 }
Esempio n. 34
0
 /// Loads a rewarded video. Location is optional.
 public static void showRewardedVideo(CBLocation location)
 {
     Log("Unity : showRewardedVideo at location = " + location.ToString());
 }
Esempio n. 35
0
 public static CBInPlay getInPlay(CBLocation location)
 {
     Log("Unity : getInPlay at location = " + location.ToString());
     return(null);
 }
Esempio n. 36
0
 public static void cacheInPlay(CBLocation location)
 {
     Log("Unity : cacheInPlay at location = " + location.ToString());
 }