public static void HideDisplayAd() { if (Application.isEditor) { return; } TapjoyPlatformPlugin.HideDisplayAd(); }
//======================================================================================================================== // MULTIPLE CURRENCY (currency cannot be managed by Tapjoy) //======================================================================================================================== /// <summary> /// Shows the offer wall with a specified currencyID. The selector is whether /// the offer wall should allow toggling between the app's currencies. /// </summary> /// <param name="currencyID"> /// A <see cref="System.String"/> /// </param> /// <param name="selector"> /// A <see cref="System.Boolean"/> /// </param> public static void ShowOffersWithCurrencyID(string currencyID, bool selector) { if (Application.platform == RuntimePlatform.OSXEditor) { return; } TapjoyPlatformPlugin.ShowOffersWithCurrencyID(currencyID, selector); }
/// <summary> /// Initiates a request to get the full screen ad with a specified currencyID. /// </summary> /// <param name="currencyID"> /// A <see cref="System.String"/> /// </param> public static void GetFullScreenAdWithCurrencyID(string currencyID) { if (Application.platform == RuntimePlatform.OSXEditor) { return; } TapjoyPlatformPlugin.GetFullScreenAdWithCurrencyID(currencyID); }
/// <summary> /// Shows a full screen ad. This should be called after full screen ad data is retrieved from the server. /// </summary> public static void ShowFullScreenAd() { if (Application.platform == RuntimePlatform.OSXEditor) { return; } TapjoyPlatformPlugin.ShowFullScreenAd(); }
/// <summary> /// Shows a daily reward ad. This should be called after daily reward ad data is retrieved from the server. /// </summary> public static void ShowDailyRewardAd() { if (Application.platform == RuntimePlatform.OSXEditor) { return; } TapjoyPlatformPlugin.ShowDailyRewardAd(); }
/// <summary> /// Updates the Display ad with a new one or disables auto-refresh. /// </summary> /// <param name="enable"> /// A <see cref="System.Boolean"/> /// </param> public static void EnableDisplayAdAutoRefresh(bool enable) { if (Application.platform == RuntimePlatform.OSXEditor) { return; } TapjoyPlatformPlugin.EnableDisplayAdAutoRefresh(enable); }
/// <summary> /// IOS ONLY /// Sets the transition effect. /// </summary> /// <param name='transition'> /// Transition. /// </param> public static void SetTransitionEffect(int transition) { if (Application.platform == RuntimePlatform.OSXEditor) { return; } TapjoyPlatformPlugin.SetTransitionEffect(transition); }
public static void GetReEngagementAdWithCurrencyID(string currencyID) { if (Application.platform == RuntimePlatform.OSXEditor) { return; } TapjoyPlatformPlugin.GetDailyRewardAdWithCurrencyID(currencyID); }
/// <summary> /// Sets the callback handler. /// </summary> /// <param name='handlerName'> /// Handler name. Must match a Unity GameObject name, for the native code /// to utilize UnitySendMessage() properly. /// </param> public static void SetCallbackHandler(string handlerName) { if (Application.platform == RuntimePlatform.OSXEditor) { return; } TapjoyPlatformPlugin.SetCallbackHandler(handlerName); }
public static void ShowEvent(string guid) { if (Application.isEditor) { return; } TapjoyPlatformPlugin.ShowEvent(guid); }
/// <summary> /// Set a multiplier for virtual currency appearance on the offer wall, Display ads, etc. /// </summary> /// <param name="multiplier"> /// A <see cref="System.Single"/> /// </param> public static void SetCurrencyMultiplier(float multiplier) { if (Application.platform == RuntimePlatform.OSXEditor) { return; } TapjoyPlatformPlugin.SetCurrencyMultiplier(multiplier); }
/// <summary> /// Initiates a request to get a Tapjoy Display ad with a specified currencyID. /// </summary> /// <param name="currencyID"> /// A <see cref="System.String"/> /// </param> public static void GetDisplayAdWithCurrencyID(string currencyID) { if (Application.isEditor) { return; } TapjoyPlatformPlugin.GetDisplayAdWithCurrencyID(currencyID); }
public static void ShowFullScreenAd() { if (Application.isEditor) { return; } TapjoyPlatformPlugin.ShowFullScreenAd(); }
public static void SetTransitionEffect(int transition) { if (Application.isEditor) { return; } TapjoyPlatformPlugin.SetTransitionEffect(transition); }
/// <summary> /// Shows the default earned currency alert in iOS. /// </summary> public static void ShowDefaultEarnedCurrencyAlert() { if (Application.platform == RuntimePlatform.OSXEditor) { return; } TapjoyPlatformPlugin.ShowDefaultEarnedCurrencyAlert(); }
/// <summary> /// This method is called to initialize the TapjoyConnect system. /// This method should be called upon app initialization and must /// not have logic to prevent it from being called in any case. /// </summary> /// <param name="appID"> /// A <see cref="System.String"/> /// </param> /// <param name="secretKey"> /// A <see cref="System.String"/> /// </param> /// <param name="flags"> /// A <see cref="System.Collections.Hashtable" /> /// </param> public static void RequestTapjoyConnect(string appID, string secretKey, Dictionary <string, string> flags) { if (Application.platform == RuntimePlatform.OSXEditor) { return; } TapjoyPlatformPlugin.RequestTapjoyConnect(appID, secretKey, flags); }
/// <summary> /// Hides the Display ad. /// </summary> public static void HideDisplayAd() { if (Application.platform == RuntimePlatform.OSXEditor) { return; } TapjoyPlatformPlugin.HideDisplayAd(); }
/// <summary> /// Enables Tapjoy library logging to the console. /// </summary> /// <param name="enable"> /// A <see cref="System.Boolean"/> /// </param> public static void EnableLogging(bool enable) { if (Application.platform == RuntimePlatform.OSXEditor) { return; } TapjoyPlatformPlugin.EnableLogging(enable); }
/// <summary> /// Moves the location of the Display Ad. /// </summary> /// <param name="x"> /// A <see cref="System.Int32"/> /// </param> /// <param name="y"> /// A <see cref="System.Int32"/> /// </param> public static void MoveDisplayAd(int x, int y) { if (Application.platform == RuntimePlatform.OSXEditor) { return; } TapjoyPlatformPlugin.MoveDisplayAd(x, y); }
/// <summary> /// This is called when an action is completed. /// Actions are much like connects, except that this method is /// only called when a user completes an in-game action. /// </summary> /// <param name="actionID"> /// A <see cref="System.String"/> /// </param> public static void ActionComplete(string actionID) { if (Application.platform == RuntimePlatform.OSXEditor) { return; } TapjoyPlatformPlugin.ActionComplete(actionID); }
public static void GetFeaturedApp() { if (Application.platform == RuntimePlatform.OSXEditor) { return; } TapjoyPlatformPlugin.GetFullScreenAd(); }
/// <summary> /// Sets the user ID. The user ID defaults to the UDID. /// This is only changed when NOT using Tapjoy Managed Currency. /// </summary> /// <param name="userID"> /// A <see cref="System.String"/> /// </param> public static void SetUserID(string userID) { if (Application.platform == RuntimePlatform.OSXEditor) { return; } TapjoyPlatformPlugin.SetUserID(userID); }
public static void GetReEngagementAd() { if (Application.platform == RuntimePlatform.OSXEditor) { return; } TapjoyPlatformPlugin.GetDailyRewardAd(); }
/// <summary> /// Initiates a request to get a user's Tap Points (Tapjoy Managed currency). /// </summary> public static void GetTapPoints() { if (Application.platform == RuntimePlatform.OSXEditor) { return; } TapjoyPlatformPlugin.GetTapPoints(); }
/// <summary> /// Event when an In-App-Purchased occurs. /// </summary> /// <param name="name"> /// A <see cref="System.String"/> /// </param> /// <param name="price"> /// A <see cref="System.Single"/> /// </param> /// <param name="quantity"> /// A <see cref="System.Int32"/> /// </param> /// <param name="currencyID"> /// A <see cref="System.String"/> /// </param> public static void SendIAPEvent(string name, float price, int quantity, string currencyCode) { if (Application.platform == RuntimePlatform.OSXEditor) { return; } TapjoyPlatformPlugin.SendIAPEvent(name, price, quantity, currencyCode); }
/// <summary> /// Updates the Tap Points for the user with the given awarded amount of currency. /// </summary> /// <param name="points"> /// A <see cref="System.Int32"/> /// </param> public static void AwardTapPoints(int points) { if (Application.platform == RuntimePlatform.OSXEditor) { return; } TapjoyPlatformPlugin.AwardTapPoints(points); }
public static void RefreshDisplayAdWithCurrencyID(string currencyID) { if (Application.platform == RuntimePlatform.OSXEditor) { return; } TapjoyPlatformPlugin.GetDisplayAdWithCurrencyID(currencyID); }
/// <summary> /// Returns the current amount of Tap Points that a user has. /// When using Tapjoy Managed currency, the user is determined by the UDID of the device. /// This can safely be called after Tap Points data is retrieved from the server. /// </summary> /// <returns> /// A <see cref="System.Int32"/> /// </returns> public static int QueryTapPoints() { if (Application.platform == RuntimePlatform.OSXEditor) { return(0); } return(TapjoyPlatformPlugin.QueryTapPoints()); }
// Use this for initialization void Awake() { //Set Static flags ChartBoostActiveStaticFlag = ChartBoostActiveFlag; RevMobActiveStaticFlag = RevMobActiveFlag; AdMobActiveStaticFlag = AdMobActiveFlag; PlayHavenActiveStaticFlag = PlayHavenActiveFlag; IAdsActiveStaticFlag = IAdsActiveFlag; TapJoyActiveStaticFlag = TapJoyActiveFlag; FlurryActiveStaticFlag = FlurryActiveFlag; //Initialize ChartBoost if (ChartBoostActiveFlag) { ChartBoostAndroid.init(ChartBoostID, ChartBoostSIG, false); ChartBoostAndroid.onStart(); ChartBoostAndroid.cacheInterstitial(null); ChartBoostAndroid.cacheMoreApps(); } //Initialize RevMob if (RevMobActiveFlag) { REVMOB_APP_IDS.Add("Android", RevMobID); revMobSession = RevMob.Start(REVMOB_APP_IDS); } //Initialize Admob if (AdMobActiveFlag) { AdMobAndroid.init(AdMobID); } //Initialize Playhaven if (PlayHavenActiveFlag) { gameObject.SendMessage("OpenNotification"); } //Initialize iAds if (IAdsActiveFlag) { } //Initialize TapJoy if (TapJoyActiveFlag) { TapjoyPluginAndroid.RequestTapjoyConnect(TapJoyID, TapJoySecretKey); } //Initialize Flurry if (FlurryActiveFlag) { flurrySession = new FlurryAgent(); flurrySession.onStartSession(FlurryID); } }
/// <summary> /// Returns the current amount of Tap Points that a user has. /// When using Tapjoy Managed currency, the user is determined by the UDID of the device. /// This can safely be called after Tap Points data is retrieved from the server. /// </summary> /// <returns> /// A <see cref="System.Int32"/> /// </returns> public static int QueryTapPoints() { if (Application.isEditor) { return(0); } return(TapjoyPlatformPlugin.QueryTapPoints()); }