Package com.yandex.mobile.ads.nativeads
Class NativeAdViewBinder.Builder
-
- All Implemented Interfaces:
public final class NativeAdViewBinder.Builder
Builds a NativeAdViewBinder.
-
-
Constructor Summary
Constructors Constructor Description NativeAdViewBinder.Builder(NativeAdView nativeAdView)
Creates a new Builder for constructing a NativeAdViewBinder NativeAdViewBinder.Builder(View nativeAdView)
-
Method Summary
Modifier and Type Method Description final NativeAdViewBinder
build()
Constructs a NativeAdViewBinder contains views for all of native ad assets. final NativeAdViewBinder.Builder
setAgeView(TextView ageView)
Sets view for age. final NativeAdViewBinder.Builder
setBodyView(TextView bodyView)
Sets view for body. final NativeAdViewBinder.Builder
setCallToActionView(TextView callToActionView)
Sets TextView for call to action final NativeAdViewBinder.Builder
setDomainView(TextView domainView)
Sets view for domain. final NativeAdViewBinder.Builder
setFaviconView(ImageView faviconView)
Sets view for app favicon. final NativeAdViewBinder.Builder
setFeedbackView(ImageView feedbackView)
Sets view for feedback. final NativeAdViewBinder.Builder
setIconView(ImageView iconView)
Sets view for app icon. final NativeAdViewBinder.Builder
setMediaView(MediaView mediaView)
Sets view for media content. final NativeAdViewBinder.Builder
setPriceView(TextView priceView)
Sets view for app price. final <T extends View, Rating> NativeAdViewBinder.Builder
setRatingView(T ratingView)
Sets view for app star rating. final NativeAdViewBinder.Builder
setReviewCountView(TextView reviewCountView)
Sets view for number of app reviews. final NativeAdViewBinder.Builder
setSponsoredView(TextView sponsoredView)
Sets view for sponsored by final NativeAdViewBinder.Builder
setTitleView(TextView titleView)
Sets view for title. final NativeAdViewBinder.Builder
setWarningView(TextView warningView)
Sets view for warning. -
-
Constructor Detail
-
NativeAdViewBinder.Builder
NativeAdViewBinder.Builder(NativeAdView nativeAdView)
Creates a new Builder for constructing a NativeAdViewBinder- Parameters:
nativeAdView
- View represents view for native ad.
-
NativeAdViewBinder.Builder
NativeAdViewBinder.Builder(View nativeAdView)
-
-
Method Detail
-
build
final NativeAdViewBinder build()
Constructs a NativeAdViewBinder contains views for all of native ad assets.
-
setAgeView
final NativeAdViewBinder.Builder setAgeView(TextView ageView)
Sets view for age.
- Parameters:
ageView
- TextView for native ad age.
-
setBodyView
final NativeAdViewBinder.Builder setBodyView(TextView bodyView)
Sets view for body.
- Parameters:
bodyView
- TextView for native ad body.
-
setCallToActionView
final NativeAdViewBinder.Builder setCallToActionView(TextView callToActionView)
Sets TextView for call to action
- Parameters:
callToActionView
- TextView for call to action.
-
setDomainView
final NativeAdViewBinder.Builder setDomainView(TextView domainView)
Sets view for domain.
- Parameters:
domainView
- TextView for native ad domain.
-
setFaviconView
final NativeAdViewBinder.Builder setFaviconView(ImageView faviconView)
Sets view for app favicon.
- Parameters:
faviconView
- ImageView for app favicon.
-
setFeedbackView
final NativeAdViewBinder.Builder setFeedbackView(ImageView feedbackView)
Sets view for feedback.
- Parameters:
feedbackView
- ImageView for feedback.
-
setIconView
final NativeAdViewBinder.Builder setIconView(ImageView iconView)
Sets view for app icon.
- Parameters:
iconView
- ImageView for app icon.
-
setMediaView
final NativeAdViewBinder.Builder setMediaView(MediaView mediaView)
Sets view for media content.
- Parameters:
mediaView
- MediaView for media content.
-
setPriceView
final NativeAdViewBinder.Builder setPriceView(TextView priceView)
Sets view for app price.
- Parameters:
priceView
- TextView for app price.
-
setRatingView
final <T extends View, Rating> NativeAdViewBinder.Builder setRatingView(T ratingView)
Sets view for app star rating.
- Parameters:
ratingView
- View implements Rating for app star rating.
-
setReviewCountView
final NativeAdViewBinder.Builder setReviewCountView(TextView reviewCountView)
Sets view for number of app reviews.
- Parameters:
reviewCountView
- TextView for number of app reviews.
-
setSponsoredView
final NativeAdViewBinder.Builder setSponsoredView(TextView sponsoredView)
Sets view for sponsored by
- Parameters:
sponsoredView
- TextView for sponsored by.
-
setTitleView
final NativeAdViewBinder.Builder setTitleView(TextView titleView)
Sets view for title.
- Parameters:
titleView
- TextView for native ad title.
-
setWarningView
final NativeAdViewBinder.Builder setWarningView(TextView warningView)
Sets view for warning.
- Parameters:
warningView
- TextView for native ad warning.
-
-
-
-