public class InstreamResearch extends BaseAd
| Modifier and Type | Class and Description |
|---|---|
static interface |
InstreamResearch.InstreamResearchListener |
adConfig, metricFactory| Modifier and Type | Method and Description |
|---|---|
void |
load()
Method responsible for loading data.
|
static InstreamResearch |
newResearch(int slotId,
int duration,
android.content.Context context)
The static constructor of the object.
|
void |
registerPlayerView(android.view.View v)
Method for registering the View in which the creative will be displayed.
|
void |
setListener(InstreamResearch.InstreamResearchListener listener)
Method for setting the listener.
|
void |
trackFullscreen(boolean fullscreen)
Method for tracking full screen mode on / off.
|
void |
trackMute(boolean mute)
A method for tracking sound on / off.
|
void |
trackPause()
Method for pause tracking.
|
void |
trackProgress(float progress)
Method for tracking video progress.
|
void |
trackResume()
Method for tracking unpause.
|
void |
unregisterPlayerView()
Method for deregistering View, clears references to View.
|
getCustomParams, isLoadCalled@NonNull public static InstreamResearch newResearch(int slotId, int duration, @NonNull android.content.Context context)
slotId - slot numberduration - creative length in seconds. If the length is unknown (for example, streaming
content), a value of 0 is acceptable.context - application contextpublic void load()
InstreamResearch.InstreamResearchListener).
Listener must be added before loadingsetListener(InstreamResearchListener)public void registerPlayerView(@NonNull
android.view.View v)
v - view of the creativepublic void unregisterPlayerView()
public void trackPause()
public void trackResume()
public void trackProgress(float progress)
progress - progress in seconds with fractional partpublic void trackMute(boolean mute)
mute - enable / disable sound flagpublic void trackFullscreen(boolean fullscreen)
fullscreen - flag to enable / disable fullscreen modepublic void setListener(@Nullable
InstreamResearch.InstreamResearchListener listener)
load()listener - listener for research