ALAdView Class Reference
Inherits from | UIView |
---|---|
Conforms to | ALAdLoadDelegate |
Declared in | ALAdView.h |
Ad Delegates
adLoadDelegate
An object conforming to the ALAdLoadDelegate protocol, which, if set, will be notified of ad load events.
@property (strong, atomic) id<ALAdLoadDelegate> __alnullable adLoadDelegate
Discussion
An object conforming to the ALAdLoadDelegate protocol, which, if set, will be notified of ad load events.
Declared In
ALAdView.h
adDisplayDelegate
An object conforming to the ALAdDisplayDelegate protocol, which, if set, will be notified of ad show/hide events.
@property (strong, atomic) id<ALAdDisplayDelegate> __alnullable adDisplayDelegate
Discussion
An object conforming to the ALAdDisplayDelegate protocol, which, if set, will be notified of ad show/hide events.
Declared In
ALAdView.h
Ad View Configuration
adSize
The size of ads to be loaded within this ALAdView.
@property (strong, atomic) ALAdSize *adSize
Discussion
The size of ads to be loaded within this ALAdView.
Declared In
ALAdView.h
)
Whether or not this ALAdView should automatically load and rotate banners.
@property (assign, atomic, getter=isAutoloadEnabled, setter=setAutoloadEnabled:) BOOL autoload __deprecated_msg ( "Banners and MRecs are deprecated and will be removed in a future SDK version." )
Discussion
Whether or not this ALAdView should automatically load and rotate banners.
If YES, ads will be automatically loaded and updated. If NO, you are reponsible for this behavior via [ALAdView loadNextAd]. Defaults to YES.
Declared In
ALAdView.h
parentController
The UIViewController in whose view this ALAdView is placed.
@property (strong, atomic) UIViewController *parentController
Discussion
The UIViewController in whose view this ALAdView is placed.
Declared In
ALAdView.h
Loading and Rendering Ads
– loadNextAd
Start loading a new advertisement. This method will return immediately. An advertisement will be rendered by this view asynchonously when available. (Deprecated: Banners and MRecs are deprecated and will be removed in a future SDK version.)
- (void)loadNextAd
Discussion
Start loading a new advertisement. This method will return immediately. An advertisement will be rendered by this view asynchonously when available.
Declared In
ALAdView.h
readyForDisplay
Check if the next ad is currently ready to display.
@property (readonly, atomic, getter=isReadyForDisplay) BOOL readyForDisplay
Return Value
YES if a subsequent call to a show method will result in an immediate display. NO if a call to a show method will require network activity first.
Discussion
Check if the next ad is currently ready to display.
Declared In
ALAdView.h
– render:
Render a specific ad that was loaded via ALAdService.
- (void)render:(alnullable ALAd *)ad
Parameters
ad |
Ad to render. Must not be nil. |
---|
Discussion
Render a specific ad that was loaded via ALAdService.
Declared In
ALAdView.h
Initialization
– initWithSize:
Initialize the ad view with a given size. (Deprecated: Banners and MRecs are deprecated and will be removed in a future SDK version.)
- (alnonnull instancetype)initWithSize:(alnonnull ALAdSize *)aSize
Parameters
aSize |
ALAdSize representing the size of this ad. For example, [ALAdSize sizeBanner]. |
---|
Return Value
A new instance of ALAdView.
Discussion
Initialize the ad view with a given size.
Declared In
ALAdView.h
– initWithSdk:size:
Initialize the ad view with a given size. (Deprecated: Banners and MRecs are deprecated and will be removed in a future SDK version.)
- (alnonnull instancetype)initWithSdk:(alnonnull ALSdk *)anSdk size:(alnonnull ALAdSize *)aSize
Parameters
anSdk |
Instance of ALSdk to use. |
---|---|
aSize |
ALAdSize representing the size of this ad. For example, [ALAdSize sizeBanner]. |
Return Value
A new instance of ALAdView.
Discussion
Initialize the ad view with a given size.
Declared In
ALAdView.h
– initWithFrame:size:sdk:
Initialize ad view with a given frame, ad size, and ALSdk instance. (Deprecated: Banners and MRecs are deprecated and will be removed in a future SDK version.)
- (alnonnull id)initWithFrame:(CGRect)aFrame size:(alnonnull ALAdSize *)aSize sdk:(alnonnull ALSdk *)anSdk
Parameters
aFrame |
Frame to use. |
---|---|
aSize |
Ad size to use. |
anSdk |
Instace of ALSdk to use. |
Return Value
A new instance of ALAdView.
Discussion
Initialize ad view with a given frame, ad size, and ALSdk instance.
Declared In
ALAdView.h