Package com.brightcove.ssai.omid
Class OpenMeasurementTracker.Factory
- java.lang.Object
-
- com.brightcove.ssai.omid.OpenMeasurementTracker.Factory
-
- Enclosing interface:
- OpenMeasurementTracker
public static class OpenMeasurementTracker.Factory extends java.lang.Object
Factory to create anOpenMeasurementTracker
-
-
Constructor Summary
Constructors Constructor Description Factory(java.lang.String partnerName, java.lang.String partnerVersion, BaseVideoView videoView)
Construct a new factory with required fields to identify the partner integration and the video view.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenMeasurementTracker
create()
Creates a newOpenMeasurementTracker
for SSAI.OpenMeasurementTracker.Factory
listener(OpenMeasurementTracker.Listener listener)
Add aOpenMeasurementTracker.Listener
to theOpenMeasurementTracker
instance created by this factory.OpenMeasurementTracker.Factory
with(OpenMeasurementTracker.Config config)
Add a configuration to customize open-measurement tracking.
-
-
-
Constructor Detail
-
Factory
public Factory(@NonNull java.lang.String partnerName, @NonNull java.lang.String partnerVersion, @NonNull BaseVideoView videoView)
Construct a new factory with required fields to identify the partner integration and the video view.- Parameters:
partnerName
- The "partner name" assigned to Publishers by IAB Tech Lab.partnerVersion
- Version of the OM SDK integration.videoView
- TheBaseVideoView
used to play ads.
-
-
Method Detail
-
with
public OpenMeasurementTracker.Factory with(@NonNull OpenMeasurementTracker.Config config)
Add a configuration to customize open-measurement tracking.- Parameters:
config
- TheOpenMeasurementTracker.Config
to use.- Returns:
- This factory instance for chaining of method calls.
-
listener
public OpenMeasurementTracker.Factory listener(@NonNull OpenMeasurementTracker.Listener listener)
Add aOpenMeasurementTracker.Listener
to theOpenMeasurementTracker
instance created by this factory.- Parameters:
listener
- The listener- Returns:
- This factory instance for chaining of method calls.
-
create
public OpenMeasurementTracker create()
Creates a newOpenMeasurementTracker
for SSAI.- Returns:
- A new
OpenMeasurementTracker
to track Brightcove SSAI ads.
-
-