Class BannerAppearance

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

java.lang.Object ⇽ BannerAppearance

public class BannerAppearance

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

Constructors

BannerAppearance(final Parcel in)

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(final Parcel dest, final int flags)

Fields

final Creator< BannerAppearance > CREATOR

Constructor Detail

BannerAppearance

protected BannerAppearance (final Parcel in)

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 (final Parcel dest, final int flags)