// 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); }
// Token: 0x0600005B RID: 91 RVA: 0x00003D98 File Offset: 0x00002198 public static void setMediation(CBMediation mediator, string version) { CBExternal._plugin.Call("setMediation", new object[] { mediator.ToString(), version }); CBExternal.Log("Android : setMediation to = " + mediator.ToString() + " " + version); }
// Token: 0x06000057 RID: 87 RVA: 0x00003CA9 File Offset: 0x000020A9 public static void destroy() { if (!CBExternal.checkInitialized()) { return; } CBExternal._plugin.Call("destroy", new object[0]); CBExternal.initialized = false; CBExternal.Log("Android : destroy"); }
// Token: 0x06000058 RID: 88 RVA: 0x00003CDC File Offset: 0x000020DC public static bool onBackPressed() { if (!CBExternal.checkInitialized()) { return(false); } bool result = CBExternal._plugin.Call <bool>("onBackPressed", new object[0]); CBExternal.Log("Android : onBackPressed"); return(result); }
// Token: 0x0600003A RID: 58 RVA: 0x000034E8 File Offset: 0x000018E8 public static bool isAnyViewVisible() { bool flag = false; if (!CBExternal.checkInitialized()) { return(flag); } flag = CBExternal._plugin.Call <bool>("isAnyViewVisible", new object[0]); CBExternal.Log("Android : isAnyViewVisible = " + flag); return(flag); }
// Token: 0x06000056 RID: 86 RVA: 0x00003C74 File Offset: 0x00002074 public static void pause(bool paused) { if (!CBExternal.checkInitialized()) { return; } CBExternal._plugin.Call("pause", new object[] { paused }); CBExternal.Log("Android : pause"); }
// Token: 0x06000049 RID: 73 RVA: 0x00003A2A File Offset: 0x00001E2A public static void chartBoostShouldDisplayMoreAppsCallbackResult(bool result) { if (!CBExternal.checkInitialized()) { return; } CBExternal._plugin.Call("chartBoostShouldDisplayMoreAppsCallbackResult", new object[] { result }); CBExternal.Log("Android : chartBoostShouldDisplayMoreAppsCallbackResult"); }
// Token: 0x0600005A RID: 90 RVA: 0x00003D58 File Offset: 0x00002158 public static void trackInAppAmazonStorePurchaseEvent(string title, string description, string price, string currency, string productID, string userID, string purchaseToken) { CBExternal.Log("Android: trackInAppAmazonStorePurchaseEvent"); CBExternal._plugin.Call("trackInAppAmazonStorePurchaseEvent", new object[] { title, description, price, currency, productID, userID, purchaseToken }); }
// Token: 0x06000059 RID: 89 RVA: 0x00003D18 File Offset: 0x00002118 public static void trackInAppGooglePlayPurchaseEvent(string title, string description, string price, string currency, string productID, string purchaseData, string purchaseSignature) { CBExternal.Log("Android: trackInAppGooglePlayPurchaseEvent"); CBExternal._plugin.Call("trackInAppGooglePlayPurchaseEvent", new object[] { title, description, price, currency, productID, purchaseData, purchaseSignature }); }
// 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() })); }
// Token: 0x06000054 RID: 84 RVA: 0x00003BEC File Offset: 0x00001FEC public static void trackLevelInfo(string eventLabel, CBLevelType type, int mainLevel, string description) { CBExternal._plugin.Call("trackLevelInfo", new object[] { eventLabel, (int)type, mainLevel, description }); CBExternal.Log(string.Format("Android : PIA Level Tracking:\n\teventLabel = {0}\n\ttype = {1}\n\tmainLevel = {2}\n\tdescription = {3}", new object[] { eventLabel, (int)type, mainLevel, description })); }
// Token: 0x06000039 RID: 57 RVA: 0x00003454 File Offset: 0x00001854 public static void initWithAppId(string appId, string appSignature) { string unityVersion = Application.unityVersion; CBExternal.Log("Unity : initWithAppId " + appId + " and version " + unityVersion); using (AndroidJavaClass androidJavaClass = new AndroidJavaClass("com.chartboost.sdk.unity.CBPlugin")) { CBExternal._plugin = androidJavaClass.CallStatic <AndroidJavaObject>("instance", new object[0]); } CBExternal._plugin.Call("init", new object[] { appId, appSignature, unityVersion }); CBExternal.initialized = true; }
// 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()); }