Class NativeExtsKt
-
- All Implemented Interfaces:
public final class NativeExtsKt
-
-
Method Summary
Modifier and Type Method Description final static List<View>getViews(PublisherNativeViewData $self)Extension function to get all views from the publisher's native view data. final static List<Pair<View, Short>>getViewPairs(PublisherNativeViewData $self)Extension function to get view-asset type pairs from the publisher's native view data. final static UnitlogViewAttachedStatus(PublisherNativeViewData $self, InMobiLogger logger, String tag)This function prints the current state of the views displayed by the publisher -
-
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.
-
logViewAttachedStatus
final static Unit logViewAttachedStatus(PublisherNativeViewData $self, InMobiLogger logger, String tag)
This function prints the current state of the views displayed by the publisher
- Parameters:
logger- InMobiLoggertag- TAG for logging the view states
-
-
-
-