Enum SizeConstraint.SizeConstraintType

com.yandex.mobile.ads.nativeads.template

public enum SizeConstraint.SizeConstraintType

Sizing constraints.

Fields

FIXED

The content will have a fixed size set in the value of the SizeConstraint#SizeConstraint(SizeConstraintType, float) method.

FIXED_RATIO

The width of the content relative to the width of the container (where the content is located) will have a fixed size set in the value of theа SizeConstraint#SizeConstraint(SizeConstraintType, float) method.

PREFERRED_RATIO

The width of the content relative to the width of the container (where the content is located) will have the size set in the value of the SizeConstraint#SizeConstraint(SizeConstraintType, float) method, but not exceeding the actual width of the content.

Field Detail

FIXED

public

The content will have a fixed size set in the value of the SizeConstraint#SizeConstraint(SizeConstraintType, float) method.

FIXED_RATIO

public

The width of the content relative to the width of the container (where the content is located) will have a fixed size set in the value of theа SizeConstraint#SizeConstraint(SizeConstraintType, float) method.

PREFERRED_RATIO

public

The width of the content relative to the width of the container (where the content is located) will have the size set in the value of the SizeConstraint#SizeConstraint(SizeConstraintType, float) method, but not exceeding the actual width of the content.