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 * options

    Swift

    var options: VIOptions? { get }
  • Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)createWithOptions:(nullable VIOptions *)options;

    Swift

    class func create(with options: VIOptions?) -> Self
  • 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

    placement

    for ad

    view

    in 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

    placement

    for ad

    Return Value

    VIInterstitialAd instance

  • Registers external event tracking service.

    Declaration

    Objective-C

    - (void)registerExternalTracker:(nonnull VIExternalTracker *)tracker;

    Swift

    func register(_ tracker: VIExternalTracker)