Example #1
0
        public void PrepareInterstitialData()
        {
            data = GetOwnInterstitialData();

            if (!data.showOwnInterstitial)
            {
                Status = ServiceStatus.Off;
                return;
            }

            CoroutineHelper.StartCoroutineHelperFunction(LoadImageFromUrl());
        }
Example #2
0
        public static OwnInterstitialData GetOwnInterstitialData()
        {
            var fetchedData = new OwnInterstitialData
            {
                showOwnInterstitial = FirebaseRemoteConfig.GetValue(FrameworkValues.FIREBASE_REMOTE_CONFIG_SHOW_OWN_INTERSTITIAL_KEY_B).BooleanValue,
                imageURL            = FirebaseRemoteConfig.GetValue(FrameworkValues.FIREBASE_REMOTE_CONFIG_OWN_INTERSTITIAL_IMAGE_URL_KEY_S).StringValue,
                storeURL            = FirebaseRemoteConfig.GetValue(FrameworkValues.FIREBASE_REMOTE_CONFIG_OWN_INTERSTITIAL_STORE_URL_KEY_S).StringValue,
                title       = FirebaseRemoteConfig.GetValue(FrameworkValues.FIREBASE_REMOTE_CONFIG_OWN_INTERSTITIAL_TITLE_KEY_S).StringValue,
                description = FirebaseRemoteConfig.GetValue(FrameworkValues.FIREBASE_REMOTE_CONFIG_OWN_INTERSTITIAL_DESCRIPTION_KEY_S).StringValue
            };

            return(fetchedData);
        }
Example #3
0
        public void PrepareInterstitialData()
        {
            data = FirebaseManager.GetOwnInterstitialData();

            if (!data.showOwnInterstitial)
            {
                showInterstitial = false;
                loadingFinished  = true;
                return;
            }

            StartCoroutine(LoadImageFromUrl());
        }