Beispiel #1
0
    public static bool CloseAd()
    {
#if UNITY_ANDROID
        return(AdTapsyAndroid.CloseAd());
#endif
        return(false);
    }
Beispiel #2
0
    public static bool CloseAd()
    {
#if UNITY_ANDROID && !UNITY_EDITOR
        return(AdTapsyAndroid.CloseAd());
#else
        return(false);
#endif
    }
Beispiel #3
0
    public static void ShowRewardedVideo()
    {
#if UNITY_ANDROID && !UNITY_EDITOR
        AdTapsyAndroid.ShowRewardedVideo();
#endif
#if UNITY_IPHONE && !UNITY_EDITOR
        AdTapsyIOS.ShowRewardedVideo();
#endif
    }
Beispiel #4
0
    public static void ShowInterstitial()
    {
#if UNITY_ANDROID && !UNITY_EDITOR
        AdTapsyAndroid.ShowInterstitial();
#endif
#if UNITY_IPHONE && !UNITY_EDITOR
        AdTapsyIOS.ShowInterstitial();
#endif
    }
Beispiel #5
0
    public static void SetTestMode(bool enabled, params string[] testDevices)
    {
#if UNITY_ANDROID && !UNITY_EDITOR
        AdTapsyAndroid.SetTestMode(enabled, testDevices);
#endif
#if UNITY_IPHONE && !UNITY_EDITOR
        AdTapsyIOS.SetTestMode(enabled, testDevices);
#endif
    }
Beispiel #6
0
    public static void SetConsentGrantedGdpr(bool value)
    {
#if UNITY_ANDROID && !UNITY_EDITOR
        AdTapsyAndroid.SetConsentGrantedGdpr(value);
#endif
#if UNITY_IPHONE && !UNITY_EDITOR
        AdTapsyIOS.SetConsentGrantedGdpr(value);
#endif
    }
Beispiel #7
0
    public static void SetUserSubjectToGdpr(bool value)
    {
#if UNITY_ANDROID && !UNITY_EDITOR
        AdTapsyAndroid.SetUserSubjectToGdpr(value);
#endif
#if UNITY_IPHONE && !UNITY_EDITOR
        AdTapsyIOS.SetUserSubjectToGdpr(value);
#endif
    }
Beispiel #8
0
    public static void SetRewardedVideoPostPopupEnabled(bool toShow)
    {
#if UNITY_ANDROID && !UNITY_EDITOR
        AdTapsyAndroid.SetRewardedVideoPostPopupEnabled(toShow);
#endif
#if UNITY_IPHONE && !UNITY_EDITOR
        AdTapsyIOS.SetRewardedVideoPrePopupEnabled(toShow);
#endif
    }
Beispiel #9
0
    public static void SetUserIdentifier(string userId)
    {
#if UNITY_ANDROID && !UNITY_EDITOR
        AdTapsyAndroid.SetUserIdentifier(userId);
#endif
#if UNITY_IPHONE && !UNITY_EDITOR
        AdTapsyIOS.SetUserIdentifier(userId);
#endif
    }
Beispiel #10
0
    public static void SetRewardedVideoAmount(int amount)
    {
#if UNITY_ANDROID && !UNITY_EDITOR
        AdTapsyAndroid.SetRewardedVideoAmount(amount);
#endif
#if UNITY_IPHONE && !UNITY_EDITOR
        AdTapsyIOS.SetRewardedVideoAmount(amount);
#endif
    }
Beispiel #11
0
    public static bool IsRewardedVideoReadyToShow()
    {
#if UNITY_ANDROID && !UNITY_EDITOR
        return(AdTapsyAndroid.IsRewardedVideoReadyToShow());
#endif
#if UNITY_IPHONE && !UNITY_EDITOR
        return(AdTapsyIOS.IsRewardedVideoReadyToShow());
#else
        return(false);
#endif
    }
Beispiel #12
0
    public static bool IsInterstitialReadyToShow()
    {
#if UNITY_ANDROID && !UNITY_EDITOR
        return(AdTapsyAndroid.IsInterstitialReadyToShow());
#endif
#if UNITY_IPHONE && !UNITY_EDITOR
        return(AdTapsyIOS.IsInterstitialReadyToShow());
#else
        return(false);
#endif
    }
Beispiel #13
0
    public static void StartSessionAndroid(string appId)
    {
#if UNITY_ANDROID && !UNITY_EDITOR
        AdTapsyAndroid.StartSession(appId);
#endif
    }