AFAdSDKHimonoBannerView Class Reference

Inherits from UIView
Declared in AFAdSDKHimonoBannerView.h

Overview

AFAdSDKHimonoBannerView is a customized UIView that represents the himono banner.

  delegate

The object that acts as the delegate of the receiving Himono banner view.

@property (nonatomic, weak, readwrite) id<AFAdSDKHimonoBannerViewDelegate> delegate

Declared In

AFAdSDKHimonoBannerView.h

  refreshInterval

The refresh rate interval in seconds of the ads cycling.

@property (nonatomic, assign, readwrite) NSTimeInterval refreshInterval

Discussion

Note: The default value is 45sec and the minimum allowed interval is 30sec.

Declared In

AFAdSDKHimonoBannerView.h

  refreshAutomatically

Boolean specifying if automatic refresh should be used.

@property (nonatomic, assign, readwrite) BOOL refreshAutomatically

Discussion

You should set this property to NO when hidding the Himono banner view and set it back to YES when showing is again.

The default value is YES.

Declared In

AFAdSDKHimonoBannerView.h

  loaded

Boolean informing whether an ad is currenly loaded in the himono banner.

@property (nonatomic, assign, readonly) BOOL loaded

Declared In

AFAdSDKHimonoBannerView.h

– initWithAdSize:

Initializes and returns a new instance of AFAdSDKHimonoBannerView to the size passed in argument.

- (instancetype)initWithAdSize:(CGSize)size

Parameters

size

The size of the banner view.

Return Value

A new instance of AFAdSDKHimonoBannerView.

Declared In

AFAdSDKHimonoBannerView.h

– initWithAdSize:properties:

Initializes and returns a new instance of AFAdSDKHimonoBannerView to the size passed in argument.

- (instancetype)initWithAdSize:(CGSize)size properties:(AFAdSDKHimonoProperties *)properties

Parameters

size

The size of the banner view.

properties

The properties to customize the look of the himono view.

Return Value

A new instance of AFAdSDKHimonoBannerView.

Declared In

AFAdSDKHimonoBannerView.h

– loadAd

Tells to the himono banner view to start showing ads.

- (void)loadAd

Discussion

Note: Make sure to implement the delegate to be notified of ad loading or errors during the retrieval.

Declared In

AFAdSDKHimonoBannerView.h