Class NativeBeaconProcessorUtilsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • isNativeLifecycleVastBeacon

         final static Boolean isNativeLifecycleVastBeacon(String type)

        Checks if a VAST beacon type is related to native ad lifecycle events. Currently only impression beacons are considered part of the native lifecycle.

        Parameters:
        type - The VAST tracker event type to check.
        Returns:

        true if the beacon type is part of native lifecycle, false otherwise.

      • isNativeVideoVastBeacon

         final static Boolean isNativeVideoVastBeacon(String type)

        Checks if a VAST beacon type is related to native video events. Video beacons exclude impression and click events.

        Parameters:
        type - The VAST tracker event type to check.
        Returns:

        true if the beacon type is for video events, false otherwise.

      • substituteMacros

         final static String substituteMacros(String $self, NativeBeaconMacroData nativeBeaconModel, Map<String, String> extraMacros)

        Substitutes macros in a beacon URL with actual values from the beacon model and extra macros. This extension function replaces various predefined macros like timestamps, ad IDs, asset URLs, and playhead duration with their corresponding values.

        Parameters:
        nativeBeaconModel - The beacon model containing macro replacement data.
        extraMacros - Additional custom macros to be replaced in the URL.
        Returns:

        The URL with all macros substituted with actual values.