Class HorizontalOffset

com.yandex.mobile.ads.nativeads.template

java.lang.Object ⇽ HorizontalOffset

public class HorizontalOffset implements android.os.Parcelable

All Implemented Interfaces:
android.os.Parcelable

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.

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(android.os.Parcel dest, 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.

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 (android.os.Parcel dest, int flags)