Class NativeAdUnitClickExtKt
-
- All Implemented Interfaces:
public final class NativeAdUnitClickExtKt
-
-
Method Summary
Modifier and Type Method Description final static NativeClickProcessorgetNativeClickProcessor(NativeAdUnitComponent $self, ClickEventAdSessionInterface clickSession, ContextualDataHandler contextualDataHandler, NativeBeaconProcessor nativeBeaconProcessor, NativeLandingPageHandler nativeLandingPageHandler, InMobiLogger logger)Creates and configures a NativeClickProcessor for handling native ad clicks. final static Map<Short, NativeAssetClickModel>getViewObjectToLinkMapping(NativeAdUnitComponent $self)Extracts and maps native asset click models from the ad response. -
-
Method Detail
-
getNativeClickProcessor
final static NativeClickProcessor getNativeClickProcessor(NativeAdUnitComponent $self, ClickEventAdSessionInterface clickSession, ContextualDataHandler contextualDataHandler, NativeBeaconProcessor nativeBeaconProcessor, NativeLandingPageHandler nativeLandingPageHandler, InMobiLogger logger)
Creates and configures a NativeClickProcessor for handling native ad clicks.
This extension function creates a fully configured click processor that handles user interactions with native ad elements, including landing page navigation, click tracking, and beacon processing.
- Parameters:
clickSession- The ClickEventAdSessionInterface for OM-SDK ad session click tracking.contextualDataHandler- The ContextualDataHandler for contextual data processing.nativeBeaconProcessor- The NativeBeaconProcessor for processing click beacons.nativeLandingPageHandler- The NativeLandingPageHandler for managing landing page navigation.- Returns:
A configured NativeClickProcessor instance.
-
getViewObjectToLinkMapping
final static Map<Short, NativeAssetClickModel> getViewObjectToLinkMapping(NativeAdUnitComponent $self)
Extracts and maps native asset click models from the ad response.
This function processes the ad response to create a mapping between native asset types (title, description, icon, etc.) and their corresponding click models containing click URLs and tracking information.
- Returns:
A map where keys are NativeAssetType constants and values are NativeAssetClickModel instances.
-
-
-
-