public AndroidNativeAdView(NativeAdView view) : base(UIRuntime.CurrentActivity)
        {
            try
            {
                View = view;
                View.RotateRequested += LoadNext;

                EscalatePanningEvent();

                AddView(NativeView = new UnifiedNativeAdView(UIRuntime.CurrentActivity)
                {
                    LayoutParameters = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent),
                    AdChoicesView    = new AdChoicesView(UIRuntime.CurrentActivity)
                    {
                        LayoutParameters = new ViewGroup.LayoutParams(25, 25)
                    }
                });

                View.WhenShown(ConfigureAdView).RunInParallel();

                Agent = view.Agent ?? throw new Exception(".NativeAdView.Agent is null");

                LoadNext();
            }
            catch (Exception ex)
            {
                Log.For(this).Error(ex, "[Zebble.Admob]");
            }
        }
Esempio n. 2
0
        public UWPNativeAdView(NativeAdView view)
        {
            View = view;

            Result = new controls.Canvas();

            Agent = view.Agent ?? throw new Exception(".NativeAdView.Agent is null");

            view.RotateRequested += LoadNext;
            LoadNext();
        }
Esempio n. 3
0
        public IOSNativeAdView(NativeAdView view)
        {
            try
            {
                View = view;
                View.RotateRequested += LoadNext;

                NativeView = new UnifiedNativeAdView {
                    Frame = View.GetFrame()
                };
                Add(NativeView);
                View.WhenShown(ConfigureAdView).RunInParallel();

                Agent = view.Agent ?? throw new Exception(".NativeAdView.Agent is null");
                LoadNext();
            }
            catch (Exception ex)
            {
                Log.For(this).Error(ex, "[Zebble.Admob]");
            }
        }
Esempio n. 4
0
 public ZebbleAdListener(AdAgent agent) => Agent = agent;
Esempio n. 5
0
 public IOSNativeAdListener(AdAgent agent) => Agent = agent;
 public UnifiedNativeAdListener(AdAgent agent) => Agent = agent;