VIAd
@protocol VIAd <NSObject>
Common interface to rule process of displaying ad
-
Undocumented
Declaration
Objective-C
@property (nullable, nonatomic, weak) id<VIAdDelegate> delegate
Swift
weak var delegate: VIAdDelegate? { get set }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, assign, readonly) BOOL cacheMediaContent
Swift
var cacheMediaContent: Bool { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, assign, readonly) BOOL isReady
Swift
var isReady: Bool { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, assign, readonly) BOOL isLoading
Swift
var isLoading: Bool { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, assign, readonly) BOOL isPaused
Swift
var isPaused: Bool { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, assign, readonly) BOOL isPlaying
Swift
var isPlaying: Bool { get }
-
Load ad for specified placement. Performs async network request in background. Listn for delegate method ‘adDidReceiveEvent:VIAdEventLoaded’ in case of success and ‘adDidReceiveError:’ for fail. Both will be fired on the main queue.
Declaration
Objective-C
- (void)load;
Swift
func load()
-
Stops playing all the ads. All VISDK views will be removed from the provided container. Delegate will be notified with ‘VIAdEventClosed’
Declaration
Objective-C
- (void)close;
Swift
func close()
-
Undocumented
Declaration
Objective-C
- (void)registerMediations:(NSArray <VIMediator*>* _Nonnull)mediations;
Swift
optional func registerMediations(_ mediations: [VIMediator])
-
Undocumented
Declaration
Objective-C
- (void)registerMediation:(VIMediator* _Nonnull)mediation;
Swift
optional func registerMediation(_ mediation: VIMediator)
-
Undocumented
Declaration
Objective-C
- (void)clearMediators;
Swift
optional func clearMediators()