VISDK
@interface VISDK : NSObject
Singletone, provides access to the api. Initialize in AppDelegate
-
Version of the SDK
Declaration
Objective-C
@property (readonly, strong, nonatomic, nonnull) NSString *version;Swift
var version: String { get } -
Undocumented
Declaration
Objective-C
@property (nonatomic, strong, nullable, readonly) VIOptions * optionsSwift
var options: VIOptions? { get } -
Undocumented
Declaration
Objective-C
+ (nonnull instancetype)sharedInstance;Swift
class func sharedInstance() -> Self -
Put and hold instance of ViAd where you are going to display the instream ad.
Declaration
Objective-C
- (nullable id<VIVideoAd>)createVideoAdFor:(nonnull VIPlacement *)placement inContainer:(id)view;Swift
func createVideoAd(for placement: VIPlacement, inContainer view: Any!) -> VIVideoAd?Parameters
placementfor ad
viewin which video ad will be displayed
Return Value
VIVideoAd instance
-
Undocumented
Declaration
Objective-C
- (nullable id<VIVideoAd>)createVideoAdFor:(nonnull VIPlacement *)placement inContainer:(nonnull UIView *)view useCahe:(BOOL)shouldUseCache;Swift
func createVideoAd(for placement: VIPlacement, inContainer view: Any!, useCahe shouldUseCache: Bool) -> VIVideoAd? -
Put and hold instance of VIInterstitialAd where you are going to display the interstitial ad.
Declaration
Objective-C
- (nullable id<VIInterstitialAd>)createInterstitialAdFor: (nonnull VIPlacement *)placement;Swift
func createInterstitialAd(for placement: VIPlacement) -> VIInterstitialAd?Parameters
placementfor ad
Return Value
VIInterstitialAd instance
-
Registers external event tracking service.
Declaration
Objective-C
- (void)registerExternalTracker:(nonnull VIExternalTracker *)tracker;Swift
func register(_ tracker: VIExternalTracker)
View on GitHub
VISDK Class Reference