NativeAdViewManager class

Concrete implementation of NativeAdViewManagerInterface.

Manages the creation and configuration of native advertisement widgets using the provided SDK configuration.

Implemented types

Constructors

NativeAdViewManager(OsmosConfig _config)
Creates a NativeAdViewManager with the specified configuration.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showAd({required Map<String, dynamic> adData, required Widget contentView, void onAdClick(Map)?, void onViewAppeared(Map, String)?}) Widget
Creates a native ad widget with the specified configuration.
override
showHorizontalAd({required Map<String, dynamic> adData, NativeAdType? adType, required double width, double? height, String? adLabelText, Alignment? adLabelAlignment, Widget? customCtaView, Widget? customBadgeView, NativeAdStyle? customStyle, void onAdClick(Map)?, void onViewAppeared(Map, String)?}) Widget
Creates a horizontal native ad widget.
override
showNativeAdCarousel({required Map<String, dynamic> adData, NativeAdType? adType, required double width, double? height, double? elementWidth, double? elementHeight, String? adLabelText, Alignment? adLabelAlignment, NativeAdStyle? customStyle, Widget? customCtaView, Widget? customBadgeView, void onAdClicked(Map<String, dynamic>)?, void onViewLoad(Map<String, dynamic>)?, void errorCallback(String error)?}) Widget
Creates a native ad carousel widget with the specified configuration.
override
showNativeAdCarouselFromProducts({required List<NativeAd> nativeAds, required String cliUbid, NativeAdType? adType, required double width, double? height, double? elementWidth, double? elementHeight, Axis scrollDirection = Axis.horizontal, String? adLabelText, Alignment? adLabelAlignment, NativeAdStyle? customStyle, Widget? customCtaView, Widget? customBadgeView, void onAdClicked(Map<String, dynamic>)?, void onViewLoad(Map<String, dynamic>)?}) Widget
Creates a native ad carousel widget from a list of NativeAd objects.
override
showPdaAd({required Map<String, dynamic> ad, required String cliUbid, NativeAdType? adType, required double width, double? height, double? imageHeight, bool layoutHorizontal = false, double mediaRatio = 0.6, double? plaItemWidth, double? plaItemHeight, NativeAdStyle? plaCustomStyle, Widget? plaCustomCtaView, Widget? plaCustomBadgeView, String? plaAdLabelText, String? adLabelText, Alignment? adLabelAlignment, Widget? customCtaView, Widget? customBadgeView, NativeAdStyle? customStyle, void onAdClicked(Map<String, dynamic>)?, void onAdLoaded(Map<String, dynamic>)?, void onProductClicked(dynamic)?}) Widget
Creates a PDA (Product Display Ad) widget.
override
showVerticalAd({required Map<String, dynamic> adData, NativeAdType? adType, required double width, double? height, String? adLabelText, Alignment? adLabelAlignment, Widget? customCtaView, Widget? customBadgeView, NativeAdStyle? customStyle, void onAdClick(Map)?, void onViewAppeared(Map, String)?}) Widget
Creates a vertical native ad widget.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited