public final class

SmaatoSdkVideo

extends Object
java.lang.Object
   ↳ com.smaato.soma.sdk.video.SmaatoSdkVideo

Summary

Nested Classes
interface SmaatoSdkVideo.LoadListener A listener to provide with loadAd(Context, String, String, SmaatoSdkVideo.LoadListener) request

Events are always delivered on main thread. 

Public Methods
static void loadAd(Context context, String publisherId, String adSpaceId, SmaatoSdkVideo.LoadListener loadListener)
Requests new advertisement.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void loadAd (Context context, String publisherId, String adSpaceId, SmaatoSdkVideo.LoadListener loadListener)

Requests new advertisement.

Parameters
context a context to build Video ad instance on success response. Can not be null.
publisherId Publisher ID (assigned by Smaato). Can not be null.
adSpaceId AdSpace ID (assigned by Smaato). Can not be null.
loadListener a listener to receive loadAd callbacks. Can not be null. SmaatoSdkVideo keeps java.lang.ref.WeakReference on listener to prevent memory leaks. It's responsibility of SmaatoSdkVideo's user to keep instances from been collected by garbage collector.