Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ADBannerView

ADBannerView is a wrapper around the ADBannerView class found in the Apple iAd framework and is only available on iOS.
Read time 1 minuteLast updated 12 days ago

Definition

Warning
Removed. iOS.ADBannerView class is obsolete, Apple iAD service discontinued
public sealed class ADBannerView

Remarks

It provides a view that displays banner advertisements to the user.
iOS.ADBannerView class is obsolete. Apple iAD service discontinued.

Constructors

Constructor

Description

ADBannerView(UnityEngine.iOS.ADBannerView.Type,UnityEngine.iOS.ADBannerView.Layout)Creates a banner view with given type and auto-layout params.

Properties

Property

Description

layoutBanner layout.
loadedChecks if banner contents are loaded.
positionThe position of the banner view.
sizeThe size of the banner view.
visibleBanner visibility. Initially banner is not visible.

Static Methods

Method

Description

IsAvailableChecks if the banner type is available (e.g. MediumRect is available only starting with ios6).

Enums

Enum

Description

ADBannerView.LayoutSpecifies how banner should be layed out on screen.
ADBannerView.TypeThe type of the banner view.

Delegates

Delegate

Description

ADBannerView.BannerFailedToLoadDelegateWill be fired when banner ad failed to load.
ADBannerView.BannerWasClickedDelegateWill be fired when banner was clicked.
ADBannerView.BannerWasLoadedDelegateWill be fired when banner loaded new ad.