-
- All Implemented Interfaces:
-
android.os.Parcelable,com.monetization.ads.nativeads.template.appearance.NativeTemplateHorizontalOffset
public final class HorizontalOffset implements Parcelable, NativeTemplateHorizontalOffset
HorizontalOffset defines the horizontal offset of the left and right edges of the content.
-
-
Field Summary
Fields Modifier and Type Field Description public final static Parcelable.Creator<HorizontalOffset>CREATORpublic final static intCONTENTS_FILE_DESCRIPTORpublic final static intPARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
Constructors Constructor Description HorizontalOffset(float left, float right)Constructs a new HorizontalOffset configured with left and right offsets.
-
Method Summary
Modifier and Type Method Description floatgetLeft()Returns left offset. floatgetRight()Returns right offset. inthashCode()booleanequals(Object o)StringtoString()intdescribeContents()voidwriteToParcel(Parcel dest, int flags)-
-
Constructor Detail
-
HorizontalOffset
HorizontalOffset(float left, float right)
Constructs a new HorizontalOffset configured with left and right offsets.- Parameters:
left- Left offset.right- Right offset.
-
-
Method Detail
-
getLeft
float getLeft()
Returns left offset.
-
getRight
float getRight()
Returns right offset.
-
hashCode
int hashCode()
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
-
-
-