com.yandex.mobile.ads.nativeads.template.appearance
Class ImageAppearance.Builder
java.lang.Object
com.yandex.mobile.ads.nativeads.template.appearance.ImageAppearance.Builder
- Enclosing class:
- ImageAppearance
public static final class ImageAppearance.Builder
extends java.lang.Object
Builds a
ImageAppearance
.Constructor Summary
Constructor and Description |
---|
Builder()
Creates a new
ImageAppearance.Builder for constructing a ImageAppearance |
Method Summary
Modifier and Type | Method and Description |
---|---|
ImageAppearance | build()
Constructs a
ImageAppearance with the specified appearance values. |
ImageAppearance.Builder | setWidthConstraint(SizeConstraint widthConstraint)
Returns ImageView appearance configured with width constraint.
|
Method Detail
build
@NonNull public ImageAppearance build()
Constructs a
ImageAppearance
with the specified appearance values.- Returns:
ImageAppearance
.
setWidthConstraint
@NonNull public ImageAppearance.Builder setWidthConstraint(@NonNull SizeConstraint widthConstraint)
Returns ImageView appearance configured with width constraint.
- Parameters:
widthConstraint
- Constraint which defines the way image width should be calculated.- Returns:
- ImageAppearance.Builder with the specified width constraint.