Builder

class Builder

Builder class used to create your own SASNativeAdViewBinder.

Constructors

Link copied to clipboard
constructor(layoutView: ViewGroup)

Constructor with a ViewGroup.

constructor(@LayoutRes layoutId: Int)

Constructor with an LayoutId.

Functions

Link copied to clipboard

Create and return an initialized instance of SASNativeAdViewBinder with all already set IDs.

Link copied to clipboard

Sets the Id of the advertiser TextView. Please note: the Id must refer to a TextView element, otherwise this will lead to an error during the ad rendering.

Link copied to clipboard

Sets the Id of the body TextView. Please note: the Id must refer to a TextView element, otherwise this will lead to an error during the ad rendering.

Link copied to clipboard

Sets the Id of the call-to-action Button. Please note: the Id must refer to a Button element, otherwise this will lead to an error during the ad rendering.

Link copied to clipboard

Sets the Id of the customer feedback button container ViewGroup. Please note: the Id must refer to a ViewGroup element, otherwise this will lead to an error during the ad rendering.

Link copied to clipboard

Sets the Id of the icon container ViewGroup. Please note: the Id must refer to a ViewGroup element, otherwise this will lead to an error during the ad rendering.

Link copied to clipboard

Sets the Id of the main view container ViewGroup. Please note: the Id must refer to a ViewGroup element, otherwise this will lead to an error during the ad rendering.

Link copied to clipboard

Sets the Id of the rating bar. Please note: the Id must refer to a RatingBar element, otherwise this will lead to an error during the ad rendering.

Link copied to clipboard

Sets the Id of the title TextView. Please note: the Id must refer to a TextView element, otherwise this will lead to an error during the ad rendering.