Ejemplo n.º 1
0
        protected override void OnDestroy()
        {
            if (_adView != null)
            {
                _adView.Destroy();
            }

            if (_billingManager == null)
            {
                _billingManager.HasPaiedChanged -= HandleHasPaiedChanged;
            }

            base.OnDestroy();
        }
Ejemplo n.º 2
0
        private void DestroyBasic()
        {
            try
            {
                MAdView?.Destroy();


                MAdapter           = null !;
                SwipeRefreshLayout = null !;
                MRecycler          = null !;
                EmptyStateLayout   = null !;
                Inflated           = null !;

                MAdView            = null !;
                AdapterModelsClass = null !;
                FollowersModel     = null !;
                GroupsModel        = null !;
                PagesModel         = null !;
                ImagesModel        = null !;
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
        private void DestroyBasic()
        {
            try
            {
                MAdView?.Destroy();
                RewardedVideoAd?.OnDestroy(this);

                MAdapter           = null;
                SwipeRefreshLayout = null;
                MRecycler          = null;
                EmptyStateLayout   = null;
                Inflated           = null;
                RewardedVideoAd    = null;
                MAdView            = null;
                AdapterModelsClass = null;
                FollowersModel     = null;
                GroupsModel        = null;
                PagesModel         = null;
                ImagesModel        = null;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
Ejemplo n.º 4
0
        private void DestroyBasic()
        {
            try
            {
                MAdView?.Destroy();

                TxtAdd         = null;
                IconTitle      = null;
                TxtTitle       = null;
                IconPrice      = null;
                TxtPrice       = null;
                TxtCurrency    = null;
                IconLocation   = null;
                TxtLocation    = null;
                IconCategories = null;
                TxtCategory    = null;
                IconAbout      = null;
                TxtAbout       = null;
                IconType       = null;
                RbNew          = null;
                RbUsed         = null;
                MAdapter       = null;
                MRecycler      = null;
                MAdView        = null;
                CategoryId     = "";
                CurrencyId     = "";
                ProductType    = "";
                PlaceText      = "";
                TypeDialog     = "";
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
Ejemplo n.º 5
0
        public static void InitAdView(AdView mAdView, RecyclerView mRecycler)
        {
            try
            {
                var isPro = ListUtils.MyUserInfo.FirstOrDefault()?.IsPro ?? "0";
                if (isPro == "0" && AppSettings.ShowAdMobBanner)
                {
                    if (mAdView != null)
                    {
                        mAdView.Visibility = ViewStates.Visible;
                        var adRequest = new AdRequest.Builder();
                        adRequest.AddTestDevice(UserDetails.AndroidId);
                        mAdView.LoadAd(adRequest.Build());
                        mAdView.AdListener = new MyAdListener(mAdView, mRecycler);
                    }
                }
                else
                {
                    if (mAdView != null)
                    {
                        mAdView.Destroy();
                        mAdView.Visibility = ViewStates.Gone;
                    }

                    Methods.SetMargin(mRecycler, 0, 0, 0, 0);
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
Ejemplo n.º 6
0
        private void DestroyBasic()
        {
            try
            {
                MAdView?.Destroy();

                ImageUser             = null !;
                NameUser              = null !;
                TxtSubTitle           = null !;
                CircleCommentsPoint   = null !;
                IconCommentsPoint     = null !;
                TextCommentsPoint     = null !;
                CircleCreatePostPoint = null !;
                IconCreatePostPoint   = null !;
                TextCreatePostPoint   = null !;
                ReactingPointLayouts  = null !;
                CircleReactingPoint   = null !;
                IconReactingPoint     = null !;
                TextReactingPoint     = null !;
                CircleCreateBlogPoint = null !;
                IconCreateBlogPoint   = null !;
                TextCreateBlogPoint   = null !;
                AddWalletLayouts      = null !;
                TextAddWallet         = null !;
                MAdView = null !;
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
Ejemplo n.º 7
0
        private void DestroyBasic()
        {
            try
            {
                MAdView?.Destroy();
                RewardedVideo?.Destroy();

                MAdapter           = null;
                SwipeRefreshLayout = null;
                MRecycler          = null;
                EmptyStateLayout   = null;
                Inflated           = null;
                MainScrollEvent    = null;
                MAdView            = null;
                SearchText         = null;
                SearchView         = null;
                BtnFilter          = null;
                ToolBar            = null;
                RewardedVideo      = null;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
 private void DestroyBasic()
 {
     try
     {
         MAdView?.Destroy();
         TxtSave          = null;
         IconName         = null;
         TxtFirstName     = null;
         TxtLastName      = null;
         IconLocation     = null;
         TxtLocation      = null;
         IconMobile       = null;
         TxtMobile        = null;
         IconWebsite      = null;
         TxtWebsite       = null;
         IconWork         = null;
         TxtWork          = null;
         IconSchool       = null;
         TxtSchool        = null;
         IconRelationship = null;
         TxtRelationship  = null;
         MAdView          = null;
         IdRelationShip   = null;
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
Ejemplo n.º 9
0
        protected override void OnDestroy()
        {
            // Destroy the AdView.
            adView.Destroy();

            base.OnDestroy();
        }
        private void DestroyBasic()
        {
            try
            {
                MAdView?.Destroy();
                RewardedVideo?.Destroy();

                MAdapter           = null !;
                SwipeRefreshLayout = null !;
                MRecycler          = null !;
                EmptyStateLayout   = null !;
                Inflated           = null !;
                MainScrollEvent    = null !;
                MAdView            = null !;
                SearchText         = null !;
                SearchView         = null !;
                BtnFilter          = null !;
                ToolBar            = null !;
                RewardedVideo      = null !;
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
        private void DestroyBasic()
        {
            try
            {
                MAdView?.Destroy();

                ImageUser             = null;
                NameUser              = null;
                TxtSubTitle           = null;
                CircleCommentsPoint   = null;
                IconCommentsPoint     = null;
                TextCommentsPoint     = null;
                CircleCreatePostPoint = null;
                IconCreatePostPoint   = null;
                TextCreatePostPoint   = null;
                ReactingPointLayouts  = null;
                CircleReactingPoint   = null;
                IconReactingPoint     = null;
                TextReactingPoint     = null;
                CircleCreateBlogPoint = null;
                IconCreateBlogPoint   = null;
                TextCreateBlogPoint   = null;
                AddWalletLayouts      = null;
                TextAddWallet         = null;
                MAdView = null;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
Ejemplo n.º 12
0
        public override void OnDestroy()
        {
            // Destroy the AdView.
            _adView.Destroy();

            base.OnDestroy();
        }
 /** Called before the activity is destroyed */
 protected override void OnDestroy()
 {
     if (mAdView != null)
     {
         mAdView.Destroy();
     }
     base.OnDestroy();
 }
Ejemplo n.º 14
0
 protected override void OnDestroy()
 {
     if (mAdView != null)
     {
         mAdView.Destroy();
     }
     RewardedVideoAd.Destroy(this);
     base.OnDestroy();
 }
Ejemplo n.º 15
0
 private void InitAdBanner()
 {
     mAdView = FindViewById <AdView>(Resource.Id.adView);
     if (mAdView != null)
     {
         mAdView.Visibility = ViewStates.Gone;
         mAdView.Destroy();
     }
 }
 protected override void OnDestroy()
 {
     try
     {
         MAdView?.Destroy();
         base.OnDestroy();
     }
     catch (Exception exception)
     {
         Methods.DisplayReportResultTrack(exception);
     }
 }
Ejemplo n.º 17
0
    void LoadBanner()
    {
#if UNITY_ANDROID
        string slotId = "57342e0d7174ea39844cac13";
#elif UNITY_IOS || UNITY_IPHONE
        string slotId = "57342fdd7174ea39844cac15";
#else
        return;
#endif
        if (adView != null)
        {
            adView.Destroy();
            adView = null;
        }

        adView                   = new AdView(slotId, AdView.POSITION_TOP);
        adView.OnAdLoaded       += AdView_OnAdLoaded;
        adView.OnAdFailedToLoad += AdView_OnAdFailedToLoad;
        adView.OnAdClicked      += AdView_OnAdClicked;
        adView.Load();
    }
Ejemplo n.º 18
0
 public override void OnDestroy()
 {
     try
     {
         BannerAd?.Destroy();
         base.OnDestroy();
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
 public override void OnDestroy()
 {
     try
     {
         BannerAd?.Destroy();
         base.OnDestroy();
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
 protected override void OnDestroy()
 {
     try
     {
         MAdView?.Destroy();
         base.OnDestroy();
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }
Ejemplo n.º 21
0
 protected override void OnDestroy()
 {
     try
     {
         mAdView?.Destroy();
         ImageService.Instance.InvalidateMemoryCache();
         base.OnDestroy();
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }
Ejemplo n.º 22
0
 public override void OnDestroy()
 {
     try
     {
         RewardedVideoAd?.OnDestroy(Context);
         MAdView?.Destroy();
         base.OnDestroy();
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }
Ejemplo n.º 23
0
 protected override void OnDestroy()
 {
     try
     {
         RewardedVideoAd?.OnDestroy(this);
         MAdView?.Destroy();
         base.OnDestroy();
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }
 protected override void OnDestroy()
 {
     try
     {
         base.OnDestroy();
         MainRecyclerView.ReleasePlayer();
         BannerAd?.Destroy();
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
 protected override void OnDestroy()
 {
     try
     {
         BannerAd?.Destroy();
         InterstitialAd?.Destroy();
         base.OnDestroy();
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }
Ejemplo n.º 26
0
 protected override void OnDestroy()
 {
     try
     {
         BannerAd?.Destroy();
         RewardedVideoAd?.Destroy();
         base.OnDestroy();
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }
Ejemplo n.º 27
0
        protected override void OnDestroy()
        {
            try
            {
                ListUtils.ChatList = MAdapter.UserList;

                MAdView?.Destroy();

                base.OnDestroy();
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }
        private void DestroyBasic()
        {
            try
            {
                MAdView?.Destroy();

                MAdapter           = null;
                SwipeRefreshLayout = null;
                MRecycler          = null;
                EmptyStateLayout   = null;
                MAdView            = null;
            }
            catch (System.Exception e)
            {
                Console.WriteLine(e);
            }
        }
Ejemplo n.º 29
0
        private void DestroyBasic()
        {
            try
            {
                MAdView?.Destroy();

                MAdapter           = null !;
                SwipeRefreshLayout = null !;
                MRecycler          = null !;
                EmptyStateLayout   = null !;
                MAdView            = null !;
            }
            catch (System.Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
Ejemplo n.º 30
0
        protected override void OnDestroy()
        {
            try
            {
                ListUtils.ChatList = MAdapter.UserList;

                MAdapter?.UserList.Clear();
                MAdapter?.NotifyDataSetChanged();

                MAdView?.Destroy();

                base.OnDestroy();
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }