Class BannerAppearance

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

java.lang.Object ⇽ BannerAppearance

public class BannerAppearance implements android.os.Parcelable

All Implemented Interfaces:
android.os.Parcelable

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

An object for customizing an ad's appearance is created using BannerAppearance.Builder.

Nested Classes

Methods

int describeContents()
boolean equals(final Object o)
int getBackgroundColor()

Returns the background color of the ad.

int getBorderColor()

Returns the ad border color.

float getBorderWidth()

Returns the width of the ad border.

HorizontalOffset getContentPadding()

Returns the horizontal margins from the content to the edges of the ad.

HorizontalOffset getImageMargins()

Returns the horizontal margins around the image, relative to the ad content.

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

Fields

final Creator< BannerAppearance > CREATOR

Method Detail

describeContents

public int describeContents ()

equals

public boolean equals (final Object o)

getBackgroundColor

public int getBackgroundColor ()

Returns the background color of the ad.

Returns:

The background color of the ad.

getBorderColor

public int getBorderColor ()

Returns the ad border color.

Returns:

Ad border color.

getBorderWidth

public float getBorderWidth ()

Returns the width of the ad border.

Returns:

The width of the ad border.

getContentPadding

public HorizontalOffset getContentPadding ()

Returns the horizontal margins from the content to the edges of the ad.

Returns:

Horizontal content margins.

getImageMargins

public HorizontalOffset getImageMargins ()

Returns the horizontal margins around the image, relative to the ad content.

Returns:

Horizontal image margins.

hashCode

public int hashCode ()

writeToParcel

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