public class Triggers
extends java.lang.Object
TimedTrackingTrigger
.Modifier and Type | Method and Description |
---|---|
static java.util.List<com.brightcove.ssai.tracking.timed.TimedTrackingTrigger> |
create(EventEmitter eventEmitter)
Crates the
TimedTrackingTrigger s of the supported
TrackingEvent s. |
static void |
emitTrackingEvents(EventEmitter eventEmitter,
java.util.List<TrackingEvent> trackingEvents,
TrackingType trackingType)
Helper method to emit each
TrackingEvent from a list. |
static boolean |
isValueInBetween(long value,
long min,
long max)
Checks whether a value is in between the min and the max.
|
public static java.util.List<com.brightcove.ssai.tracking.timed.TimedTrackingTrigger> create(@NonNull EventEmitter eventEmitter)
TimedTrackingTrigger
s of the supported
TrackingEvent
s.List
of the TimedTrackingTrigger
spublic static boolean isValueInBetween(long value, long min, long max)
value
- the value to check.min
- the minimum value.max
- the maximum value.public static void emitTrackingEvents(@NonNull EventEmitter eventEmitter, @NonNull java.util.List<TrackingEvent> trackingEvents, @NonNull TrackingType trackingType)
TrackingEvent
from a list.eventEmitter
- EventEmitter used to mit the TrackingEvents.trackingEvents
- TrackingEvents to be emitted.