Example #1
0
        private static void adViewDidFinishClickBridgeCallback(int uniqueId)
        {
            AdViewContainer container = AdViewBridgeIOS.adViewContainerForAdViewId(uniqueId);

            if (container && container.onFinishedClick != null)
            {
                container.onFinishedClick();
            }
        }
Example #2
0
        private static void adViewWillLogImpressionBridgeCallback(int uniqueId)
        {
            AdViewContainer container = AdViewBridgeIOS.adViewContainerForAdViewId(uniqueId);

            if (container && container.onImpression != null)
            {
                container.onImpression();
            }
        }
Example #3
0
        private static void adViewDidFailWithErrorBridgeCallback(int uniqueId, string error)
        {
            AdViewContainer container = AdViewBridgeIOS.adViewContainerForAdViewId(uniqueId);

            if (container && container.onError != null)
            {
                container.onError(error);
            }
        }
Example #4
0
        private static void adViewDidLoadBridgeCallback(int uniqueId)
        {
            AdViewContainer container = AdViewBridgeIOS.adViewContainerForAdViewId(uniqueId);

            if (container && container.onLoad != null)
            {
                container.onLoad();
            }
        }
Example #5
0
        public override void OnFinishedClick(int uniqueId,
                                             FBAdViewBridgeCallback callback)
        {
            AdViewContainer container = AdViewBridgeIOS.adViewContainerForAdViewId(uniqueId);

            if (container)
            {
                container.onFinishedClick = callback;
            }
        }
Example #6
0
        public override void OnError(int uniqueId,
                                     FBAdViewBridgeErrorCallback callback)
        {
            AdViewContainer container = AdViewBridgeIOS.adViewContainerForAdViewId(uniqueId);

            if (container)
            {
                container.onError = callback;
            }
        }
Example #7
0
        public override void OnImpression(int uniqueId,
                                          FBAdViewBridgeCallback callback)
        {
            AdViewContainer container = AdViewBridgeIOS.adViewContainerForAdViewId(uniqueId);

            if (container)
            {
                container.onImpression = callback;
            }
        }
        // Sets up internal managed callbacks

        public override void OnLoad(int uniqueId,
                                    FBAdViewBridgeCallback callback)
        {
            AdViewContainer container = AdViewBridgeIOS.adViewContainerForAdViewId(uniqueId);

            if (container)
            {
                container.onLoad = (container.adView.LoadAdFromData);
            }
        }