Package com.brightcove.ssai.omid
Class OpenMeasurementTracker.Factory
java.lang.Object
com.brightcove.ssai.omid.OpenMeasurementTracker.Factory
- Enclosing interface:
- OpenMeasurementTracker
Factory to create an
OpenMeasurementTracker
-
Constructor Summary
ConstructorDescriptionFactory
(String partnerName, String partnerVersion, BaseVideoView videoView) Construct a new factory with required fields to identify the partner integration and the video view. -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Creates a newOpenMeasurementTracker
for SSAI.listener
(OpenMeasurementTracker.Listener listener) Add aOpenMeasurementTracker.Listener
to theOpenMeasurementTracker
instance created by this factory.with
(OpenMeasurementTracker.Config config) Add a configuration to customize open-measurement tracking.
-
Constructor Details
-
Factory
public Factory(@NonNull String partnerName, @NonNull 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 Details
-
with
Add a configuration to customize open-measurement tracking.- Parameters:
config
- TheOpenMeasurementTracker.Config
to use.- Returns:
- This factory instance for chaining of method calls.
-
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
Creates a newOpenMeasurementTracker
for SSAI.- Returns:
- A new
OpenMeasurementTracker
to track Brightcove SSAI ads.
-