Class ImageAppearance.Builder

com.yandex.mobile.ads.nativeads.template.appearance

public class ImageAppearance.Builder

A class for changing the settings of the standard image appearance in native ads.

Methods

Builder()

Creates an object of the ImageAppearance.Builder class.

ImageAppearance build()

Creates an object of the ImageAppearance class with the specified values.

ImageAppearance.Builder setWidthConstraint(final SizeConstraint widthConstraint)

Sets the image width constraint.

Method Detail

Builder

public Builder ()

Creates an object of the ImageAppearance.Builder class.

build

public ImageAppearance build ()

Creates an object of the ImageAppearance class with the specified values.

Returns:

An object of the ImageAppearance class with the specified values.

setWidthConstraint

public ImageAppearance.Builder setWidthConstraint (final SizeConstraint widthConstraint)

Sets the image width constraint.

Parameters:
widthConstraint

The image width constraint (SizeConstraint).

Returns:

An object of the ImageAppearance class with the specified image width constraint.