Class NativeBeaconProcessor
-
- All Implemented Interfaces:
public final class NativeBeaconProcessor
-
-
Constructor Summary
Constructors Constructor Description NativeBeaconProcessor(VastBeaconData vastBeaconData, AdLifecycleData adLifecycleData, ResponseBeaconData responseBeaconData)
-
Method Summary
Modifier and Type Method Description final UnitonAdLoaded()Fires the ad loaded beacons when the ad has been successfully loaded. final UnitregisterViewForTracking()Fires the Start-Tracking beacon when the publisher has called startTracking function. final UnitimpressionShown()Fires the impression shown beacons when the ad impression is displayed. final UnitimpressionOccurred()Fires the impression beacons when an impression occurs. final UnitonMRC50EventOccurred()Fires the MRC 50% viewability beacons when the MRC 50% event occurs. final UnitonMediaEvent(MediaEvent mediaEvent)Handles media events and updates the macro data accordingly. final UnitonNativeAssetClick(Short assetType, List<String> trackers)Fires the click event beacons when a native asset is clicked. -
-
Constructor Detail
-
NativeBeaconProcessor
NativeBeaconProcessor(VastBeaconData vastBeaconData, AdLifecycleData adLifecycleData, ResponseBeaconData responseBeaconData)
-
-
Method Detail
-
onAdLoaded
final Unit onAdLoaded()
Fires the ad loaded beacons when the ad has been successfully loaded.
-
registerViewForTracking
final Unit registerViewForTracking()
Fires the Start-Tracking beacon when the publisher has called startTracking function.
-
impressionShown
final Unit impressionShown()
Fires the impression shown beacons when the ad impression is displayed.
-
impressionOccurred
final Unit impressionOccurred()
Fires the impression beacons when an impression occurs.
-
onMRC50EventOccurred
final Unit onMRC50EventOccurred()
Fires the MRC 50% viewability beacons when the MRC 50% event occurs.
-
onMediaEvent
final Unit onMediaEvent(MediaEvent mediaEvent)
Handles media events and updates the macro data accordingly.
This method is called when a media event occurs, such as video loaded or video progress.
- Parameters:
mediaEvent- The MediaEvent that occurred.
-
onNativeAssetClick
final Unit onNativeAssetClick(Short assetType, List<String> trackers)
Fires the click event beacons when a native asset is clicked.
- Parameters:
assetType- The NativeAssetType of the clicked asset.trackers- The list of trackers associated with the click event.
-
-
-
-