Class TextAppearance

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

java.lang.Object ⇽ TextAppearance

public class TextAppearance implements android.os.Parcelable

All Implemented Interfaces:
android.os.Parcelable

A class that defines the interface for customizing an ad's text layout.

An object for customizing an ad's text layout is created using TextAppearance.Builder.

Nested Classes

Methods

int describeContents()
boolean equals(final Object o)
String getFontFamilyName()

Returns the font name.

int getFontStyle()

Returns the font style.

int getTextColor()

Returns the text color.

float getTextSize()

Returns the text size in scale-independent pixels.

int hashCode()
void writeToParcel(android.os.Parcel dest, int flags)

Fields

final Creator< TextAppearance > CREATOR

Method Detail

describeContents

public int describeContents ()

equals

public boolean equals (final Object o)

getFontFamilyName

public String getFontFamilyName ()

Returns the font name.

Returns:

Font name.

getFontStyle

public int getFontStyle ()

Returns the font style.

Returns:

Font style.

getTextColor

public int getTextColor ()

Returns the text color.

Returns:

Text color.

getTextSize

public float getTextSize ()

Returns the text size in scale-independent pixels.

Returns:

Text size in scale-independent pixels.

hashCode

public int hashCode ()

writeToParcel

public void writeToParcel (android.os.Parcel dest, int flags)