原地址:http://blog.csdn.net/cynixway/article/details/7686393

ADBnnerView提供对Apple iAd框架中ADBannerView的包中,只在iPhone/iPad/iPod Touch中可用

它提供了用来向客户展示条幅广告的视图

private var banner : ADBannerView = null;

function ShowBanner() {
while (!banner.loaded && banner.error == null)
yield; if (banner.error == null)
banner.Show();
else banner = null;
} function OnGUI() {
GUI.enabled = (banner == null ? true : false); if (GUILayout.Button("Show Banner")) {
banner = new ADBannerView();
banner.autoSize = true;
banner.autoPosition = ADPosition.Bottom;
StartCoroutine(ShowBanner());
}
}
变量:
requiredSizeIdentifiers

条幅视图可以展示的广告的识别符.

currentSizeIdentifier

当前条幅视图正在显示的广告的识别符

autoSize

如果设置为使能,当前条幅视图大小随屏幕方向自动适应.默认为禁止.

position

条幅视图的位置

autoPosition

条幅视图位置是否自动放置

visible

条幅视图是否可见(只读)

loaded

条幅视图是否已经加载广告(只读)

actionInProgress

Is the banner currently executing a user-triggered action?(Read Only)条幅是否执行了用户触发动作(只读)

error

广告错误(只读)

构造函数
ADBannerView

创建一个条幅视图.

函数
Show

显示条幅视图

Hide

隐藏条幅视图

CancelAction

取消正在执行的动作

累函数
GetSizeFromSizeIdentifier

条幅内容转换为物理尺寸

Unity3d_ADBannerView的更多相关文章

随机推荐

  1. ubuntu安装wine

    1.安装源 sudo add-apt-repository ppa:wine/wine-builds sudo apt-get update 2.安装wine sudo apt-get install ...

  2. HRBUST 1313 火影忍者之~静音

    优先队列. 每次将$n$个人压入优先队列,取出$5$个,最后排序. #include<cstdio> #include<cstring> #include<cmath&g ...

  3. SCU - 4441 Necklace(树状数组求最长上升子数列)

    Necklace frog has \(n\) gems arranged in a cycle, whose beautifulness are \(a_1, a_2, \dots, a_n\). ...

  4. 德州扑克AI

    德州扑克: 1:outs数,就是所听的牌的数量. 例子: 1:听顺子 4567 outs数就是8,能够成顺子的牌为3和8. 5689 outs数就是4,能够成顺子的牌只有7. 2:听同花     35 ...

  5. Python开发基础-Day3-列表、元组和字典

    列表 列表定义:[]内以逗号分隔,按照索引,存放各种数据类型,每个位置代表一个元素 特性: 1.可存放多个值 2.可修改指定索引位置对应的值,可变 3.按照从左到右的顺序定义列表元素,下标从0开始顺序 ...

  6. Android系统UI交互控件Action Bar初探

    过年期间,Google正式宣布取消Android系统中MENU键的使用,也就是基于Android 4.0系统的手机都应没有MENU这一固定按键.这无疑是个变革性的改动,在我眼中,这似乎把Android ...

  7. Activity(活动)生命周期(2)--活动状态

    每个活动在其生命周期中最多会有4种状态 一.运行状态 当一个活动位于返回栈的栈顶的时候,这时活动就处于运行状态.系统一般不会回收,因为这会带来非常差的用户体验 二.暂停状态 当一个活动不处于栈顶状态的 ...

  8. poj 1654:Area 区域 ---- 叉积(求多边形面积)

    Area   Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 19398   Accepted: 5311 利用叉积求多边形面 ...

  9. iOS UIPrintInteractionController打印

    - (void)printData{ //为打印做准备,创建一个指向sharedPrintController的引用 UIPrintInteractionController *printer = [ ...

  10. Linux下Apache、PHP、MySQL默认安装路径

    Apache: 如果采用RPM包安装,安装路径应在 /etc/httpd 目录下 Apache配置文件:/etc/httpd/conf/httpd.conf Apache模块路径:/usr/sbin/ ...