VIAd
@protocol VIAd <NSObject>
Common interface to rule process of displaying ad
-
Undocumented
Declaration
Objective-C
@property (nullable, nonatomic, weak) id<VIAdDelegate> delegateSwift
weak var delegate: VIAdDelegate? { get set } -
Undocumented
Declaration
Objective-C
@property (nonatomic, assign, readonly) BOOL cacheMediaContentSwift
var cacheMediaContent: Bool { get } -
Undocumented
Declaration
Objective-C
@property (nonatomic, assign, readonly) BOOL isReadySwift
var isReady: Bool { get } -
Undocumented
Declaration
Objective-C
@property (nonatomic, assign, readonly) BOOL isLoadingSwift
var isLoading: Bool { get } -
Undocumented
Declaration
Objective-C
@property (nonatomic, assign, readonly) BOOL isPausedSwift
var isPaused: Bool { get } -
Undocumented
Declaration
Objective-C
@property (nonatomic, assign, readonly) BOOL isPlayingSwift
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()
View on GitHub
VIAd Protocol Reference