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