Ejemplo n.º 1
0
        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]");
            }
        }
Ejemplo 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();
        }
Ejemplo 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]");
            }
        }
Ejemplo n.º 4
0
 public ZebbleAdListener(AdAgent agent) => Agent = agent;
Ejemplo n.º 5
0
 public IOSNativeAdListener(AdAgent agent) => Agent = agent;
 public UnifiedNativeAdListener(AdAgent agent) => Agent = agent;