Exemplo n.º 1
0
        public override void OnImpression(int uniqueId,
                                          FBRewardedVideoAdBridgeCallback callback)
        {
            RewardedVideoAdContainer container = RewardedVideoAdBridgeIOS.rewardedVideoAdContainerForuniqueId(uniqueId);

            if (container)
            {
                container.onImpression = callback;
            }
        }
        public override void OnDidSucceed(int uniqueId,
                                          FBRewardedVideoAdBridgeCallback callback)
        {
            RewardedVideoAdContainer container = RewardedVideoAdBridgeIOS.rewardedVideoAdContainerForuniqueId(uniqueId);

            if (container)
            {
                container.onDidSucceed = callback;
            }
        }
        public override void OnWillClose(int uniqueId,
                                         FBRewardedVideoAdBridgeCallback callback)
        {
            RewardedVideoAdContainer container = RewardedVideoAdBridgeIOS.rewardedVideoAdContainerForuniqueId(uniqueId);

            if (container)
            {
                container.onWillClose = callback;
            }
        }
        public override void OnError(int uniqueId,
                                     FBRewardedVideoAdBridgeErrorCallback callback)
        {
            RewardedVideoAdContainer container = RewardedVideoAdBridgeIOS.rewardedVideoAdContainerForuniqueId(uniqueId);

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

        public override void OnLoad(int uniqueId,
                                    FBRewardedVideoAdBridgeCallback callback)
        {
            RewardedVideoAdContainer container = RewardedVideoAdBridgeIOS.rewardedVideoAdContainerForuniqueId(uniqueId);

            if (container)
            {
                container.onLoad = (container.rewardedVideoAd.LoadAdFromData);
            }
        }
        // Sets up internal managed callbacks

        public override void OnLoad(int uniqueId,
                                    FBRewardedVideoAdBridgeCallback callback)
        {
            RewardedVideoAdContainer container = RewardedVideoAdBridgeIOS.rewardedVideoAdContainerForuniqueId(uniqueId);

            if (container)
            {
                container.onLoad = (delegate() {
                    container.rewardedVideoAd.loadAdFromData();
                    if (callback != null)
                    {
                        callback();
                    }
                });
            }
        }