Class NativeAdUnitComponent
-
- All Implemented Interfaces:
public final class NativeAdUnitComponentDependency injection component for native ad units. This component provides all the necessary dependencies for native ad unit operations, using a modular approach with lazy initialization for optimal performance.
The component acts as a central hub for managing dependencies required throughout the native ad lifecycle, from loading to rendering and interaction handling.
-
-
Field Summary
Fields Modifier and Type Field Description private VastClickModelvastClickModelprivate final <Error class: unknown class>nativeAdTelemetryHelperprivate final <Error class: unknown class>mediaViewManagerprivate final AdComponentadComponentprivate final InMobiJsonResponseinMobiJsonResponseprivate final NativeAdUnitCallbackadUnitCallback
-
Constructor Summary
Constructors Constructor Description NativeAdUnitComponent(AdComponent adComponent, InMobiJsonResponse inMobiJsonResponse, NativeAdUnitCallback adUnitCallback)
-
Method Summary
Modifier and Type Method Description final VastClickModelgetVastClickModel()VAST click model for handling video ad clicks, if applicable. final UnitsetVastClickModel(VastClickModel vastClickModel)VAST click model for handling video ad clicks, if applicable. final <Error class: unknown class>getNativeAdTelemetryHelper()Native ad telemetry helper for tracking and analytics. final <Error class: unknown class>getMediaViewManager()Manager for media view functionality including video and image handling. final AdComponentgetAdComponent()final InMobiJsonResponsegetInMobiJsonResponse()final NativeAdUnitCallbackgetAdUnitCallback()-
-
Constructor Detail
-
NativeAdUnitComponent
NativeAdUnitComponent(AdComponent adComponent, InMobiJsonResponse inMobiJsonResponse, NativeAdUnitCallback adUnitCallback)
- Parameters:
adComponent- The main ad component providing core ad functionality.inMobiJsonResponse- The JSON response containing ad configuration and data.adUnitCallback- The callback interface for native ad unit events.
-
-
Method Detail
-
getVastClickModel
final VastClickModel getVastClickModel()
VAST click model for handling video ad clicks, if applicable. This is set when video content is processed and contains click-through URLs and tracking information for video interactions.
-
setVastClickModel
final Unit setVastClickModel(VastClickModel vastClickModel)
VAST click model for handling video ad clicks, if applicable. This is set when video content is processed and contains click-through URLs and tracking information for video interactions.
-
getNativeAdTelemetryHelper
final <Error class: unknown class> getNativeAdTelemetryHelper()
Native ad telemetry helper for tracking and analytics. Provides methods for submitting telemetry events related to native ad operations.
-
getMediaViewManager
final <Error class: unknown class> getMediaViewManager()
Manager for media view functionality including video and image handling. Responsible for loading and displaying media content within native ads.
-
getAdComponent
final AdComponent getAdComponent()
-
getInMobiJsonResponse
final InMobiJsonResponse getInMobiJsonResponse()
-
getAdUnitCallback
final NativeAdUnitCallback getAdUnitCallback()
-
-
-
-