Class HorizontalOffset

com.yandex.mobile.ads.nativeads.template

java.lang.Object ⇽ HorizontalOffset

public class HorizontalOffset

The class defines the horizontal margins on the left and right relative to the content.

Constructors

HorizontalOffset(final float left, final float right)

Creates an object of the HorizontalOffset class with horizontal margins.

HorizontalOffset(final Parcel in)

Methods

int describeContents()
boolean equals(final Object o)
float getLeft()

Returns the value of the left margin in pixels.

float getRight()

Returns the value of the right margin in pixels.

int hashCode()
String toString()
void writeToParcel(final Parcel dest, final int flags)

Fields

final Creator< HorizontalOffset > CREATOR

Constructor Detail

HorizontalOffset

public HorizontalOffset (final float left, final float right)

Creates an object of the HorizontalOffset class with horizontal margins.

Parameters:
left

The value of the left margin in pixels.

right

The value of the right margin in pixels.

HorizontalOffset

protected HorizontalOffset (final Parcel in)

Method Detail

describeContents

public int describeContents ()

equals

public boolean equals (final Object o)

getLeft

public float getLeft ()

Returns the value of the left margin in pixels.

Returns:

The value of the left margin in pixels.

getRight

public float getRight ()

Returns the value of the right margin in pixels.

Returns:

The value of the right margin in pixels.

hashCode

public int hashCode ()

toString

public String toString ()

writeToParcel

public void writeToParcel (final Parcel dest, final int flags)