-
- All Implemented Interfaces:
public final class NativeTemplateAppearance.BuilderBuilds a NativeTemplateAppearance.
-
-
Constructor Summary
Constructors Constructor Description NativeTemplateAppearance.Builder()Creates a new NativeTemplateAppearance.Builder for constructing a NativeTemplateAppearance
-
Method Summary
Modifier and Type Method Description NativeTemplateAppearancebuild()Constructs a NativeTemplateAppearance with the specified appearance values. NativeTemplateAppearance.BuilderwithAgeAppearance(@NonNull() TextAppearance ageAppearance)Returns NativeTemplateAppearance configured with age appearance. NativeTemplateAppearance.BuilderwithBannerAppearance(@NonNull() BannerAppearance bannerAppearance)Returns NativeTemplateAppearance configured with banner appearance. NativeTemplateAppearance.BuilderwithBodyAppearance(@NonNull() TextAppearance bodyAppearance)Returns NativeTemplateAppearance configured with body appearance. NativeTemplateAppearance.BuilderwithCallToActionAppearance(@NonNull() ButtonAppearance appearance)Returns NativeTemplateAppearance configured with callToAction appearance. NativeTemplateAppearance.BuilderwithDomainAppearance(@NonNull() TextAppearance domainAppearance)Returns NativeTemplateAppearance configured with domain appearance. NativeTemplateAppearance.BuilderwithFaviconAppearance(@NonNull() ImageAppearance faviconAppearance)Returns NativeTemplateAppearance configured with favicon appearance. NativeTemplateAppearance.BuilderwithImageAppearance(@NonNull() ImageAppearance imageAppearance)Returns NativeTemplateAppearance configured with image appearance. NativeTemplateAppearance.BuilderwithRatingAppearance(@NonNull() RatingAppearance ratingAppearance)Returns NativeTemplateAppearance configured with rating appearance. NativeTemplateAppearance.BuilderwithReviewCountAppearance(@NonNull() TextAppearance reviewCountAppearance)Returns NativeTemplateAppearance configured with review count appearance. NativeTemplateAppearance.BuilderwithSponsoredAppearance(@NonNull() TextAppearance sponsoredAppearance)Returns NativeTemplateAppearance configured with sponsored appearance. NativeTemplateAppearance.BuilderwithTitleAppearance(@NonNull() TextAppearance titleAppearance)Returns NativeTemplateAppearance configured with title appearance. NativeTemplateAppearance.BuilderwithWarningAppearance(@NonNull() TextAppearance warningAppearance)Returns NativeTemplateAppearance configured with warning appearance. -
-
Constructor Detail
-
NativeTemplateAppearance.Builder
NativeTemplateAppearance.Builder()
Creates a new NativeTemplateAppearance.Builder for constructing a NativeTemplateAppearance
-
-
Method Detail
-
build
@NonNull() NativeTemplateAppearance build()
Constructs a NativeTemplateAppearance with the specified appearance values.
-
withAgeAppearance
@NonNull() NativeTemplateAppearance.Builder withAgeAppearance(@NonNull() TextAppearance ageAppearance)
Returns NativeTemplateAppearance configured with age appearance.
- Parameters:
ageAppearance- Appearance for customization of the age asset.
-
withBannerAppearance
@NonNull() NativeTemplateAppearance.Builder withBannerAppearance(@NonNull() BannerAppearance bannerAppearance)
Returns NativeTemplateAppearance configured with banner appearance.
- Parameters:
bannerAppearance- Appearance for customization of the Banner.
-
withBodyAppearance
@NonNull() NativeTemplateAppearance.Builder withBodyAppearance(@NonNull() TextAppearance bodyAppearance)
Returns NativeTemplateAppearance configured with body appearance.
- Parameters:
bodyAppearance- Appearance for customization of the body asset.
-
withCallToActionAppearance
@NonNull() NativeTemplateAppearance.Builder withCallToActionAppearance(@NonNull() ButtonAppearance appearance)
Returns NativeTemplateAppearance configured with callToAction appearance.
- Parameters:
appearance- Appearance for customization of the callToAction asset.
-
withDomainAppearance
@NonNull() NativeTemplateAppearance.Builder withDomainAppearance(@NonNull() TextAppearance domainAppearance)
Returns NativeTemplateAppearance configured with domain appearance.
- Parameters:
domainAppearance- Appearance for customization of the domain asset.
-
withFaviconAppearance
NativeTemplateAppearance.Builder withFaviconAppearance(@NonNull() ImageAppearance faviconAppearance)
Returns NativeTemplateAppearance configured with favicon appearance.
- Parameters:
faviconAppearance- Appearance for customization of the favicon asset.
-
withImageAppearance
@NonNull() NativeTemplateAppearance.Builder withImageAppearance(@NonNull() 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
@NonNull() NativeTemplateAppearance.Builder withRatingAppearance(@NonNull() RatingAppearance ratingAppearance)
Returns NativeTemplateAppearance configured with rating appearance.
- Parameters:
ratingAppearance- Appearance for customization of the rating asset.
-
withReviewCountAppearance
@NonNull() NativeTemplateAppearance.Builder withReviewCountAppearance(@NonNull() TextAppearance reviewCountAppearance)
Returns NativeTemplateAppearance configured with review count appearance.
- Parameters:
reviewCountAppearance- Appearance for customization of the review count asset.
-
withSponsoredAppearance
@NonNull() NativeTemplateAppearance.Builder withSponsoredAppearance(@NonNull() TextAppearance sponsoredAppearance)
Returns NativeTemplateAppearance configured with sponsored appearance.
- Parameters:
sponsoredAppearance- Appearance for customization of the sponsored asset.
-
withTitleAppearance
@NonNull() NativeTemplateAppearance.Builder withTitleAppearance(@NonNull() TextAppearance titleAppearance)
Returns NativeTemplateAppearance configured with title appearance.
- Parameters:
titleAppearance- Appearance for customization of the title asset.
-
withWarningAppearance
@NonNull() NativeTemplateAppearance.Builder withWarningAppearance(@NonNull() TextAppearance warningAppearance)
Returns NativeTemplateAppearance configured with warning appearance.
- Parameters:
warningAppearance- Appearance for customization of the warning asset.
-
-
-
-