Class RatingAppearance.Builder

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

public  class  RatingAppearance.Builder 

A class for changing the design settings for the rating.

Methods

Builder()

Creates an object of the RatingAppearance.Builder class.

RatingAppearance build()

Creates an object of the RatingAppearance class with the specified values.

RatingAppearance.Builder setBackgroundStarColor(final int backgroundStarColor)

Specifies the outline color of an empty (unfilled) star.

RatingAppearance.Builder setProgressStarColor(final int progressStarColor)

Specifies the color of a filled star.

Method Detail

Builder

public Builder ()

Creates an object of the RatingAppearance.Builder class.

build

public RatingAppearance build ()

Creates an object of the RatingAppearance class with the specified values.

Returns:

An object of the RatingAppearance class with the specified values.

setBackgroundStarColor

public RatingAppearance.Builder setBackgroundStarColor (final int backgroundStarColor)

Specifies the outline color of an empty (unfilled) star.

Parameters:
backgroundStarColor

The outline color of an empty (unfilled) star.

Returns:

An object of the RatingAppearance.Builder class with the specified outline color of an empty (unfilled) star.

setProgressStarColor

public RatingAppearance.Builder setProgressStarColor (final int progressStarColor)

Specifies the color of a filled star.

Parameters:
progressStarColor

The color of a filled star.

Returns:

An object of the RatingAppearance.Builder class with the specified color of a filled star.