-
public final class NativeAdCarouselSettingsConfiguration parameters for native ad carousel view creation.
-
-
Field Summary
Fields Modifier and Type Field Description private final NativeAdStyleadTypeprivate final Integerwidthprivate final Integerheightprivate final IntegerelementWidthprivate final StringadLabelTextprivate final IntegeradLabelAlignmentprivate final NativeAdCustomStylecustomStyleprivate final ViewcustomCtaViewprivate final ViewcustomBadgeViewprivate final AttributeSetattributeSetprivate final ErrorCallbackerrorCallback
-
Constructor Summary
Constructors Constructor Description NativeAdCarouselSettings(NativeAdStyle adType, Integer width, Integer height, Integer elementWidth, String adLabelText, Integer adLabelAlignment, NativeAdCustomStyle customStyle, View customCtaView, View customBadgeView, AttributeSet attributeSet, ErrorCallback errorCallback)
-
Method Summary
Modifier and Type Method Description final NativeAdStylegetAdType()final IntegergetWidth()final IntegergetHeight()final IntegergetElementWidth()final StringgetAdLabelText()final IntegergetAdLabelAlignment()final NativeAdCustomStylegetCustomStyle()final ViewgetCustomCtaView()final ViewgetCustomBadgeView()final AttributeSetgetAttributeSet()final ErrorCallbackgetErrorCallback()-
-
Constructor Detail
-
NativeAdCarouselSettings
NativeAdCarouselSettings(NativeAdStyle adType, Integer width, Integer height, Integer elementWidth, String adLabelText, Integer adLabelAlignment, NativeAdCustomStyle customStyle, View customCtaView, View customBadgeView, AttributeSet attributeSet, ErrorCallback errorCallback)
- Parameters:
adType- Type of native ad (SMALL, MEDIUM, LARGE)width- Width of native ad carousel view in pixelsheight- Optional height of native ad carousel view in pixelsadLabelText- Optional text for ad labeladLabelAlignment- Optional alignment for ad labelcustomStyle- Optional custom styling for the native adcustomCtaView- Optional custom CTA button viewcustomBadgeView- Optional custom badge viewattributeSet- Optional attribute set for view stylingerrorCallback- Optional callback for error handling
-
-
Method Detail
-
getAdType
final NativeAdStyle getAdType()
-
getElementWidth
final Integer getElementWidth()
-
getAdLabelText
final String getAdLabelText()
-
getAdLabelAlignment
final Integer getAdLabelAlignment()
-
getCustomStyle
final NativeAdCustomStyle getCustomStyle()
-
getCustomCtaView
final View getCustomCtaView()
-
getCustomBadgeView
final View getCustomBadgeView()
-
getAttributeSet
final AttributeSet getAttributeSet()
-
getErrorCallback
final ErrorCallback getErrorCallback()
-
-
-
-