当前位置: 首页>>代码示例>>C#>>正文


C# ChartboostSDK.CBLocation类代码示例

本文整理汇总了C#中ChartboostSDK.CBLocation的典型用法代码示例。如果您正苦于以下问题:C# CBLocation类的具体用法?C# CBLocation怎么用?C# CBLocation使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


CBLocation类属于ChartboostSDK命名空间,在下文中一共展示了CBLocation类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CacheAd

    public void CacheAd(AdNetwork network, DisplayedAdType displayType, CBLocation location)
    {
        #if ADFREE
        // Don't cache if Ad-free
        return;

        #endif

        if (Debug.isDebugBuild)
        {
            Debug.Log("Caching ad");
        }

        switch (displayType)
        {
            case DisplayedAdType.FullScreen:

        #if !MOREAPPSONLY

                switch (network)
                {
                    case AdNetwork.ChartBoost:
                    default:
                        Chartboost.cacheInterstitial(location);
                        break;
                }

        #endif

                break;

            case DisplayedAdType.MoreGames:
                switch (network)
                {
                    case AdNetwork.ChartBoost:
                    default:
                        Chartboost.cacheMoreApps(location);
                        break;
                }
                break;

            case DisplayedAdType.Video:
                switch (network)
                {
                    case AdNetwork.ChartBoost:
                    default:
                        Chartboost.cacheRewardedVideo(location);
                        break;
                }
                break;
        }
    }
开发者ID:ttat,项目名称:puzzlewarrior,代码行数:52,代码来源:AdManager.cs

示例2: didDisplayRewardedVideo

 void didDisplayRewardedVideo(CBLocation location)
 {
 }
开发者ID:kitalkenhell,项目名称:KittenProject,代码行数:3,代码来源:ChartboostManager.cs

示例3: willDisplayVideo

	void willDisplayVideo(CBLocation location) {
		AddLog("willDisplayVideo: " + location);
	}
开发者ID:vit2005,项目名称:seaBattletest1,代码行数:3,代码来源:ChartboostExample.cs

示例4: didCacheInPlay

	void didCacheInPlay(CBLocation location) {
		AddLog("didCacheInPlay called: "+location);
	}
开发者ID:vit2005,项目名称:seaBattletest1,代码行数:3,代码来源:ChartboostExample.cs

示例5: didCompleteRewardedVideo

	void didCompleteRewardedVideo(CBLocation location, int reward) {
		AddLog(string.Format("didCompleteRewardedVideo: reward {0} at location {1}", reward, location));
	}
开发者ID:vit2005,项目名称:seaBattletest1,代码行数:3,代码来源:ChartboostExample.cs

示例6: didCacheRewardedVideo

	void didCacheRewardedVideo(CBLocation location) {
		AddLog("didCacheRewardedVideo: " + location);
	}
开发者ID:vit2005,项目名称:seaBattletest1,代码行数:3,代码来源:ChartboostExample.cs

示例7: didFailToRecordClick

	void didFailToRecordClick(CBLocation location, CBClickError error) {
		AddLog(string.Format("didFailToRecordClick: {0} at location: {1}", error, location));
	}
开发者ID:vit2005,项目名称:seaBattletest1,代码行数:3,代码来源:ChartboostExample.cs

示例8: shouldDisplayMoreApps

	bool shouldDisplayMoreApps(CBLocation location) {
		AddLog(string.Format("shouldDisplayMoreApps at location: {0}: {1}", location, showMoreApps));
		return showMoreApps;
	}
开发者ID:vit2005,项目名称:seaBattletest1,代码行数:4,代码来源:ChartboostExample.cs

示例9: shouldDisplayMoreApps

 bool shouldDisplayMoreApps(CBLocation location)
 {
     return showMoreApps;
 }
开发者ID:kitalkenhell,项目名称:KittenProject,代码行数:4,代码来源:ChartboostManager.cs

示例10: shouldDisplayInterstitial

 bool shouldDisplayInterstitial(CBLocation location)
 {
     return showInterstitial;
 }
开发者ID:kitalkenhell,项目名称:KittenProject,代码行数:4,代码来源:ChartboostManager.cs

示例11: didFailToRecordClick

 void didFailToRecordClick(CBLocation location, CBClickError error)
 {
 }
开发者ID:kitalkenhell,项目名称:KittenProject,代码行数:3,代码来源:ChartboostManager.cs

示例12: didFailToLoadRewardedVideo

 void didFailToLoadRewardedVideo(CBLocation location, CBImpressionError error)
 {
 }
开发者ID:kitalkenhell,项目名称:KittenProject,代码行数:3,代码来源:ChartboostManager.cs

示例13: didFailToLoadMoreApps

 void didFailToLoadMoreApps(CBLocation location, CBImpressionError error)
 {
 }
开发者ID:kitalkenhell,项目名称:KittenProject,代码行数:3,代码来源:ChartboostManager.cs

示例14: didFailToLoadInterstitial

 void didFailToLoadInterstitial(CBLocation location, CBImpressionError error)
 {
 }
开发者ID:kitalkenhell,项目名称:KittenProject,代码行数:3,代码来源:ChartboostManager.cs

示例15: didFailToLoadInPlay

 void didFailToLoadInPlay(CBLocation location, CBImpressionError error)
 {
 }
开发者ID:kitalkenhell,项目名称:KittenProject,代码行数:3,代码来源:ChartboostManager.cs


注:本文中的ChartboostSDK.CBLocation类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。