// 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);
        }
Ejemplo 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);
        }
Ejemplo 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()));
 }
Ejemplo 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());
 }
Ejemplo 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()));
 }
Ejemplo 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());
 }
Ejemplo 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());
 }
Ejemplo 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()
     }));
 }
Ejemplo 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);
 }
Ejemplo 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;
        }
Ejemplo 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());
 }
Ejemplo n.º 14
0
 public static bool hasInPlay(CBLocation location)
 {
     Log("Unity : hasInPlay at location = " + location.ToString());
     return false;
 }
Ejemplo 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());
 }
Ejemplo 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);
 }
Ejemplo n.º 17
0
 /// Caches the more apps screen. Location is optional.
 public static void cacheMoreApps(CBLocation location)
 {
     Log("Unity : cacheMoreApps at location = " + location.ToString());
 }
Ejemplo 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());
 }
Ejemplo n.º 19
0
 public static CBInPlay getInPlay(CBLocation location)
 {
     Log("Unity : getInPlay at location = " + location.ToString());
     return null;
 }
Ejemplo 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;
     }
 }
Ejemplo 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());
 }
Ejemplo 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());
 }
Ejemplo n.º 23
0
 /// Caches a rewarded video. Location is optional.
 public static void cacheRewardedVideo(CBLocation location)
 {
     Log("Unity : cacheRewardedVideo at location = " + location.ToString());
 }
Ejemplo 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());
 }
Ejemplo 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;
 }
Ejemplo n.º 26
0
 /// Shows the more apps screen. Location is optional.
 public static void showMoreApps(CBLocation location)
 {
     Log("Unity : showMoreApps at location = " + location.ToString());
 }
Ejemplo n.º 27
0
 /// Loads an interstitial. Location is optional.
 public static void showInterstitial(CBLocation location)
 {
     Log("Unity : showInterstitial at location = " + location.ToString());
 }
Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo n.º 30
0
 /// Caches an interstitial. Location is optional.
 public static void cacheInterstitial(CBLocation location)
 {
     Log("Unity : cacheInterstitial at location = " + location.ToString());
 }
Ejemplo n.º 31
0
 public static void cacheInPlay(CBLocation location)
 {
     Log("Unity : cacheInPlay at location = " + location.ToString());
 }
Ejemplo 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);
 }
Ejemplo n.º 33
0
 public static bool hasInPlay(CBLocation location)
 {
     Log("Unity : hasInPlay at location = " + location.ToString());
     return(false);
 }
Ejemplo n.º 34
0
 /// Loads a rewarded video. Location is optional.
 public static void showRewardedVideo(CBLocation location)
 {
     Log("Unity : showRewardedVideo at location = " + location.ToString());
 }
Ejemplo n.º 35
0
 public static CBInPlay getInPlay(CBLocation location)
 {
     Log("Unity : getInPlay at location = " + location.ToString());
     return(null);
 }
Ejemplo n.º 36
0
 public static void cacheInPlay(CBLocation location)
 {
     Log("Unity : cacheInPlay at location = " + location.ToString());
 }