Class NativeExtsKt

  • All Implemented Interfaces:

    
    public final class NativeExtsKt
    
                        
    • 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

      • getViews

         final static List<View> getViews(PublisherNativeViewData $self)

        Extension function to get all views from the publisher's native view data. This function collects all the views that are part of the native ad including media view, ad choice, and all publisher-configured views.

        Returns:

        A list of all views in the native ad.

      • getViewPairs

         final static List<Pair<View, Short>> getViewPairs(PublisherNativeViewData $self)

        Extension function to get view-asset type pairs from the publisher's native view data. This function creates pairs of views with their corresponding asset types for tracking purposes.

        Returns:

        A list of pairs where each pair contains a view and its corresponding asset type.