コード例 #1
0
ファイル: RewardedVideoAd.cs プロジェクト: moto2002/Fish
        public override void OnImpression(int uniqueId,
                                          FBRewardedVideoAdBridgeCallback callback)
        {
            RewardedVideoAdContainer container = RewardedVideoAdBridgeIOS.rewardedVideoAdContainerForuniqueId(uniqueId);

            if (container)
            {
                container.onImpression = callback;
            }
        }
コード例 #2
0
        public override void OnDidSucceed(int uniqueId,
                                          FBRewardedVideoAdBridgeCallback callback)
        {
            RewardedVideoAdContainer container = RewardedVideoAdBridgeIOS.rewardedVideoAdContainerForuniqueId(uniqueId);

            if (container)
            {
                container.onDidSucceed = callback;
            }
        }
コード例 #3
0
        public override void OnWillClose(int uniqueId,
                                         FBRewardedVideoAdBridgeCallback callback)
        {
            RewardedVideoAdContainer container = RewardedVideoAdBridgeIOS.rewardedVideoAdContainerForuniqueId(uniqueId);

            if (container)
            {
                container.onWillClose = callback;
            }
        }
コード例 #4
0
        public override void OnError(int uniqueId,
                                     FBRewardedVideoAdBridgeErrorCallback callback)
        {
            RewardedVideoAdContainer container = RewardedVideoAdBridgeIOS.rewardedVideoAdContainerForuniqueId(uniqueId);

            if (container)
            {
                container.onError = callback;
            }
        }
コード例 #5
0
        // 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);
            }
        }
コード例 #6
0
        // 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();
                    }
                });
            }
        }