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]"); } }
public UWPNativeAdView(NativeAdView view) { View = view; Result = new controls.Canvas(); Agent = view.Agent ?? throw new Exception(".NativeAdView.Agent is null"); view.RotateRequested += LoadNext; LoadNext(); }
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]"); } }
public ZebbleAdListener(AdAgent agent) => Agent = agent;
public IOSNativeAdListener(AdAgent agent) => Agent = agent;
public UnifiedNativeAdListener(AdAgent agent) => Agent = agent;