-
public final class CloudXNativeAdViewBinderMaps layout resource IDs to native ad view components.
Publishers create a Builder with their custom layout resource and set the resource IDs for each native ad component. The binder is then passed to CloudXNativeAdView to inflate and resolve the views.
val binder = CloudXNativeAdViewBinder.Builder(R.layout.native_ad_layout) .setTitleTextViewId(R.id.native_ad_title) .setBodyTextViewId(R.id.native_ad_body) .setIconImageViewId(R.id.native_ad_icon) .setMediaContentViewGroupId(R.id.native_ad_media_container) .setCallToActionButtonId(R.id.native_ad_call_to_action) .setOptionsContentViewGroupId(R.id.native_ad_options) .build()
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCloudXNativeAdViewBinder.Builder
-
Field Summary
Fields Modifier and Type Field Description private final IntegerlayoutResourceIdprivate final IntegertitleTextViewIdprivate final IntegerbodyTextViewIdprivate final IntegercallToActionButtonIdprivate final IntegericonImageViewIdprivate final IntegermediaContentViewGroupIdprivate final IntegeroptionsContentViewGroupIdprivate final IntegeradvertiserTextViewIdprivate final IntegerstarRatingContentViewGroupId
-
Method Summary
Modifier and Type Method Description final IntegergetLayoutResourceId()final IntegergetTitleTextViewId()final IntegergetBodyTextViewId()final IntegergetCallToActionButtonId()final IntegergetIconImageViewId()final IntegergetMediaContentViewGroupId()final IntegergetOptionsContentViewGroupId()final IntegergetAdvertiserTextViewId()final IntegergetStarRatingContentViewGroupId()-
-
Method Detail
-
getLayoutResourceId
final Integer getLayoutResourceId()
-
getTitleTextViewId
final Integer getTitleTextViewId()
-
getBodyTextViewId
final Integer getBodyTextViewId()
-
getCallToActionButtonId
final Integer getCallToActionButtonId()
-
getIconImageViewId
final Integer getIconImageViewId()
-
getMediaContentViewGroupId
final Integer getMediaContentViewGroupId()
-
getOptionsContentViewGroupId
final Integer getOptionsContentViewGroupId()
-
getAdvertiserTextViewId
final Integer getAdvertiserTextViewId()
-
getStarRatingContentViewGroupId
final Integer getStarRatingContentViewGroupId()
-
-
-
-