Skip to content

An adapter to track events and send them to the Youbora to build the analytics

License

Notifications You must be signed in to change notification settings

NPAW/spotx-adapter-ios

Repository files navigation

YouboraSpotXPlayerAdapter

An adapter to track events and send them to the Youbora to build the analytics

Installation

CocoaPods

Insert into your Podfile

  pod 'YouboraSpotXPlayerAdapter'

and then run

pod install

How to use

Swift

Import
import YouboraSpotXPlayerAdapter
Initialize Adapter and add to plugin
// Intialize
let adPlayer = SpotXInterstitialAdPlayer()

// Add to plugin
guard let adapter = YBSpotXPlayerAdAdapterManager(player: adPlayer, delegate: delegate).getAdapter() as? YBPlayerAdapter<AnyObject> else {
    return
}

self.plugin.adsAdapter = adapter

Obj-c

Import
#import <YouboraSpotXPlayerAdapter/YouboraSpotXPlayerAdapter-Swift.h>
Initialize Adapter and add to plugin
YBSpotXPlayerAdAdapterManager *adapterManger = [[YBSpotXPlayerAdAdapterManager alloc] initWithPlayer:self.player];
YBOptions *options = [YouboraConfigManager getOptions];

self.plugin = [[YBPlugin alloc] initWithOptions:options andAdapter:[adapterManger getAdapter]];

For more information you can check the examples in the folder ./Samples/Swift for swift and for obj-c ./Samples/Objc

About

An adapter to track events and send them to the Youbora to build the analytics

Resources

License

Stars

Watchers

Forks

Packages

No packages published