Class YandexViewBinder.Builder
com.mopub.nativeads
public class YandexViewBinder.Builder
Class for creating a YandexViewBinder object.
Methods
Builder(final int layoutId) | Creates an object of the YandexViewBinder.Builder class. | |
YandexViewBinder | build() | Creates an object of the YandexViewBinder class, which contains the |
YandexViewBinder.Builder | setAgeId(final int ageId) | Sets the ID of the view that displays data on age restrictions. |
YandexViewBinder.Builder | setBodyId(final int bodyId) | Sets the ID of the view that displays the main ad text. |
YandexViewBinder.Builder | setCallToActionId(final int callToActionId) | Sets the ID of the view that displays a call-to-action button. |
YandexViewBinder.Builder | setDomainId(final int domainId) | Sets the ID of the view that displays domain data. |
YandexViewBinder.Builder | setFaviconId(final int faviconId) | Sets the ID of the view that displays the app's favicon. |
YandexViewBinder.Builder | setIconId(final int iconId) | Sets the ID of the view that displays the app's icon. |
YandexViewBinder.Builder | setMediaId(final int mediaId) | Sets the ID of the view that displays the media content. |
YandexViewBinder.Builder | setPriceId(final int priceId) | Sets the ID of the view that displays the cost of the advertised app. |
YandexViewBinder.Builder | setRatingId(final int ratingId) | Sets the ID of the view that displays data on the app's rating. |
YandexViewBinder.Builder | setReviewCountId(final int reviewCountId) | Sets the ID of the view that displays the number of reviews in the app. |
YandexViewBinder.Builder | setSponsoredId(final int sponsoredId) | Sets the ID of the view that displays data on the advertiser. |
YandexViewBinder.Builder | setTitleId(final int titleId) | Sets the ID of the view that displays the ad title. |
YandexViewBinder.Builder | setWarningId(final int warningId) | Sets the ID of the view that displays a warning. |
Builder(final int layoutId) | Creates an object of the YandexViewBinder.Builder class. | |
YandexViewBinder | build() | Creates an object of the YandexViewBinder class, which contains the |
YandexViewBinder.Builder | setAgeId(final int ageId) | Sets the ID of the view that displays data on age restrictions. |
YandexViewBinder.Builder | setBodyId(final int bodyId) | Sets the ID of the view that displays the main ad text. |
YandexViewBinder.Builder | setCallToActionId(final int callToActionId) | Sets the ID of the view that displays a call-to-action button. |
YandexViewBinder.Builder | setDomainId(final int domainId) | Sets the ID of the view that displays domain data. |
YandexViewBinder.Builder | setFaviconId(final int faviconId) | Sets the ID of the view that displays the app's favicon. |
YandexViewBinder.Builder | setIconId(final int iconId) | Sets the ID of the view that displays the app's icon. |
YandexViewBinder.Builder | setMediaId(final int mediaId) | Sets the ID of the view that displays the media content. |
YandexViewBinder.Builder | setPriceId(final int priceId) | Sets the ID of the view that displays the cost of the advertised app. |
YandexViewBinder.Builder | setRatingId(final int ratingId) | Sets the ID of the view that displays data on the app's rating. |
YandexViewBinder.Builder | setReviewCountId(final int reviewCountId) | Sets the ID of the view that displays the number of reviews in the app. |
YandexViewBinder.Builder | setSponsoredId(final int sponsoredId) | Sets the ID of the view that displays data on the advertiser. |
YandexViewBinder.Builder | setTitleId(final int titleId) | Sets the ID of the view that displays the ad title. |
YandexViewBinder.Builder | setWarningId(final int warningId) | Sets the ID of the view that displays a warning. |
Method Detail
Builder
public Builder (final int layoutId)
Creates an object of the YandexViewBinder.Builder class.
layoutId | ID for the layout of the root ad view (this is the view where the ad elements will be displayed). |
layoutId | ID for the layout of the root ad view (this is the view where the ad elements will be displayed). |
build
public YandexViewBinder build ()
Creates an object of the YandexViewBinder class, which contains the View
for all ad assets.
Returns:
An object of the YandexViewBinder class.
setAgeId
public YandexViewBinder.Builder setAgeId (final int ageId)
Sets the ID of the view that displays data on age restrictions.
ageId | The ID of the view that displays data on age restrictions. |
ageId | The ID of the view that displays data on age restrictions. |
Returns:
The ID of the view that displays data on age restrictions.
setBodyId
public YandexViewBinder.Builder setBodyId (final int bodyId)
Sets the ID of the view that displays the main ad text.
bodyId | The ID of the view that displays the main ad text. |
bodyId | The ID of the view that displays the main ad text. |
Returns:
The ID of the view that displays the main ad text.
setCallToActionId
public YandexViewBinder.Builder setCallToActionId (final int callToActionId)
Sets the ID of the view that displays a call-to-action button.
callToActionId | The ID of the view that displays a call-to-action button. |
callToActionId | The ID of the view that displays a call-to-action button. |
Returns:
The ID of the view that displays a call-to-action button.
setDomainId
public YandexViewBinder.Builder setDomainId (final int domainId)
Sets the ID of the view that displays domain data.
domainId | The ID of the view that displays domain data. |
domainId | The ID of the view that displays domain data. |
Returns:
The ID of the view that displays domain data.
setFaviconId
public YandexViewBinder.Builder setFaviconId (final int faviconId)
Sets the ID of the view that displays the app's favicon.
faviconId | The ID of the view that displays the app's favicon. |
faviconId | The ID of the view that displays the app's favicon. |
Returns:
The ID of the view that displays the app's favicon.
setIconId
public YandexViewBinder.Builder setIconId (final int iconId)
Sets the ID of the view that displays the app's icon.
iconId | The ID of the view that displays the app's icon. |
iconId | The ID of the view that displays the app's icon. |
Returns:
The ID of the view that displays the app's icon.
setMediaId
public YandexViewBinder.Builder setMediaId (final int mediaId)
Sets the ID of the view that displays the media content.
mediaId | The ID of the view that displays the media content. |
mediaId | The ID of the view that displays the media content. |
Returns:
The ID of the view that displays the media content.
setPriceId
public YandexViewBinder.Builder setPriceId (final int priceId)
Sets the ID of the view that displays the cost of the advertised app.
priceId | The ID of the view that displays the cost of the advertised app. |
priceId | The ID of the view that displays the cost of the advertised app. |
Returns:
The ID of the view that displays the cost of the advertised app.
setRatingId
public YandexViewBinder.Builder setRatingId (final int ratingId)
Sets the ID of the view that displays data on the app's rating.
ratingId | The ID of the view that displays data on the app's rating. |
ratingId | The ID of the view that displays data on the app's rating. |
Returns:
The ID of the view that displays data on the app's rating.
setReviewCountId
public YandexViewBinder.Builder setReviewCountId (final int reviewCountId)
Sets the ID of the view that displays the number of reviews in the app.
reviewCountId | The ID of the view that displays the number of reviews in the app. |
reviewCountId | The ID of the view that displays the number of reviews in the app. |
Returns:
The ID of the view that displays the number of reviews in the app.
setSponsoredId
public YandexViewBinder.Builder setSponsoredId (final int sponsoredId)
Sets the ID of the view that displays data on the advertiser.
Returns:
The ID of the view that displays data on the advertiser.
setTitleId
public YandexViewBinder.Builder setTitleId (final int titleId)
Sets the ID of the view that displays the ad title.
titleId | The ID of the view that displays the ad title. |
titleId | The ID of the view that displays the ad title. |
Returns:
The ID of the view that displays the ad title.
setWarningId
public YandexViewBinder.Builder setWarningId (final int warningId)
Sets the ID of the view that displays a warning.
warningId | The ID of the view that displays a warning. |
warningId | The ID of the view that displays a warning. |
Returns:
The ID of the view that displays a warning.