Class NativeTemplateAppearance.Builder
-
- All Implemented Interfaces:
public final class NativeTemplateAppearance.BuilderBuilds a NativeTemplateAppearance.
-
-
Constructor Summary
Constructors Constructor Description NativeTemplateAppearance.Builder()
-
Method Summary
Modifier and Type Method Description final NativeTemplateAppearancebuild()Constructs a NativeTemplateAppearance with the specified appearance values. final NativeTemplateAppearance.BuilderwithAgeAppearance(TextAppearance ageAppearance)Returns NativeTemplateAppearance configured with age appearance. final NativeTemplateAppearance.BuilderwithBannerAppearance(BannerAppearance bannerAppearance)Returns NativeTemplateAppearance configured with banner appearance. final NativeTemplateAppearance.BuilderwithBodyAppearance(TextAppearance bodyAppearance)Returns NativeTemplateAppearance configured with body appearance. final NativeTemplateAppearance.BuilderwithCallToActionAppearance(ButtonAppearance appearance)Returns NativeTemplateAppearance configured with callToAction appearance. final NativeTemplateAppearance.BuilderwithDomainAppearance(TextAppearance domainAppearance)Returns NativeTemplateAppearance configured with domain appearance. final NativeTemplateAppearance.BuilderwithFaviconAppearance(ImageAppearance faviconAppearance)Returns NativeTemplateAppearance configured with favicon appearance. final NativeTemplateAppearance.BuilderwithImageAppearance(ImageAppearance imageAppearance)Returns NativeTemplateAppearance configured with image appearance. final NativeTemplateAppearance.BuilderwithRatingAppearance(RatingAppearance ratingAppearance)Returns NativeTemplateAppearance configured with rating appearance. final NativeTemplateAppearance.BuilderwithReviewCountAppearance(TextAppearance reviewCountAppearance)Returns NativeTemplateAppearance configured with review count appearance. final NativeTemplateAppearance.BuilderwithSponsoredAppearance(TextAppearance sponsoredAppearance)Returns NativeTemplateAppearance configured with sponsored appearance. final NativeTemplateAppearance.BuilderwithTitleAppearance(TextAppearance titleAppearance)Returns NativeTemplateAppearance configured with title appearance. final NativeTemplateAppearance.BuilderwithWarningAppearance(TextAppearance warningAppearance)Returns NativeTemplateAppearance configured with warning appearance. -
-
Method Detail
-
build
final NativeTemplateAppearance build()
Constructs a NativeTemplateAppearance with the specified appearance values.
-
withAgeAppearance
final NativeTemplateAppearance.Builder withAgeAppearance(TextAppearance ageAppearance)
Returns NativeTemplateAppearance configured with age appearance.
- Parameters:
ageAppearance- Appearance for customization of the age asset.
-
withBannerAppearance
final NativeTemplateAppearance.Builder withBannerAppearance(BannerAppearance bannerAppearance)
Returns NativeTemplateAppearance configured with banner appearance.
- Parameters:
bannerAppearance- Appearance for customization of the Banner.
-
withBodyAppearance
final NativeTemplateAppearance.Builder withBodyAppearance(TextAppearance bodyAppearance)
Returns NativeTemplateAppearance configured with body appearance.
- Parameters:
bodyAppearance- Appearance for customization of the body asset.
-
withCallToActionAppearance
final NativeTemplateAppearance.Builder withCallToActionAppearance(ButtonAppearance appearance)
Returns NativeTemplateAppearance configured with callToAction appearance.
- Parameters:
appearance- Appearance for customization of the callToAction asset.
-
withDomainAppearance
final NativeTemplateAppearance.Builder withDomainAppearance(TextAppearance domainAppearance)
Returns NativeTemplateAppearance configured with domain appearance.
- Parameters:
domainAppearance- Appearance for customization of the domain asset.
-
withFaviconAppearance
final NativeTemplateAppearance.Builder withFaviconAppearance(ImageAppearance faviconAppearance)
Returns NativeTemplateAppearance configured with favicon appearance.
- Parameters:
faviconAppearance- Appearance for customization of the favicon asset.
-
withImageAppearance
final NativeTemplateAppearance.Builder withImageAppearance(ImageAppearance imageAppearance)
Returns NativeTemplateAppearance configured with image appearance. Image appearance is ignored for big images which are located below text block and stretched to match banner width.
- Parameters:
imageAppearance- Appearance for customization of the image asset.
-
withRatingAppearance
final NativeTemplateAppearance.Builder withRatingAppearance(RatingAppearance ratingAppearance)
Returns NativeTemplateAppearance configured with rating appearance.
- Parameters:
ratingAppearance- Appearance for customization of the rating asset.
-
withReviewCountAppearance
final NativeTemplateAppearance.Builder withReviewCountAppearance(TextAppearance reviewCountAppearance)
Returns NativeTemplateAppearance configured with review count appearance.
- Parameters:
reviewCountAppearance- Appearance for customization of the review count asset.
-
withSponsoredAppearance
final NativeTemplateAppearance.Builder withSponsoredAppearance(TextAppearance sponsoredAppearance)
Returns NativeTemplateAppearance configured with sponsored appearance.
- Parameters:
sponsoredAppearance- Appearance for customization of the sponsored asset.
-
withTitleAppearance
final NativeTemplateAppearance.Builder withTitleAppearance(TextAppearance titleAppearance)
Returns NativeTemplateAppearance configured with title appearance.
- Parameters:
titleAppearance- Appearance for customization of the title asset.
-
withWarningAppearance
final NativeTemplateAppearance.Builder withWarningAppearance(TextAppearance warningAppearance)
Returns NativeTemplateAppearance configured with warning appearance.
- Parameters:
warningAppearance- Appearance for customization of the warning asset.
-
-
-
-