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

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

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

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

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

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

            if (container)
            {
                container.onError = callback;
            }
        }
Beispiel #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);
            }
        }