ReactionsConfigBuilder

class ReactionsConfigBuilder(context: Context)

Functions

build
Link copied to clipboard
fun build(): ReactionsConfig
withHorizontalMargin
Link copied to clipboard
fun withHorizontalMargin(horizontalMargin: Int): ReactionsConfigBuilder
withPopupAlpha
Link copied to clipboard
fun withPopupAlpha(popupAlpha: Int): ReactionsConfigBuilder
withPopupColor
Link copied to clipboard
fun withPopupColor(popupColor: Int): ReactionsConfigBuilder
withPopupCornerRadius
Link copied to clipboard
fun withPopupCornerRadius(popupCornerRadius: Int): ReactionsConfigBuilder
withPopupGravity
Link copied to clipboard
fun withPopupGravity(popupGravity: PopupGravity): ReactionsConfigBuilder
withPopupMargin
Link copied to clipboard
fun withPopupMargin(popupMargin: Int): ReactionsConfigBuilder
withReactions
Link copied to clipboard
fun withReactions(reactions: Collection<Reaction>): ReactionsConfigBuilder
fun withReactions(res: IntArray, scaleType: ImageView.ScaleType = ImageView.ScaleType.FIT_CENTER): ReactionsConfigBuilder
withReactionSize
Link copied to clipboard
fun withReactionSize(reactionSize: Int): ReactionsConfigBuilder
withReactionTexts
Link copied to clipboard
fun withReactionTexts(reactionTextProvider: ReactionTextProvider): ReactionsConfigBuilder
fun withReactionTexts(@ArrayRes() res: Int): ReactionsConfigBuilder
withTextBackground
Link copied to clipboard
fun withTextBackground(textBackground: Drawable): ReactionsConfigBuilder
withTextColor
Link copied to clipboard
fun withTextColor(textColor: Int): ReactionsConfigBuilder
withTextHorizontalPadding
Link copied to clipboard
fun withTextHorizontalPadding(textHorizontalPadding: Int): ReactionsConfigBuilder
withTextSize
Link copied to clipboard
fun withTextSize(textSize: Float): ReactionsConfigBuilder
withTextVerticalPadding
Link copied to clipboard
fun withTextVerticalPadding(textVerticalPadding: Int): ReactionsConfigBuilder
withTypeface
Link copied to clipboard
fun withTypeface(typeface: Typeface?): ReactionsConfigBuilder
withVerticalMargin
Link copied to clipboard
fun withVerticalMargin(verticalMargin: Int): ReactionsConfigBuilder

Properties

context
Link copied to clipboard
val context: Context
customTypeface
Link copied to clipboard
var customTypeface: Typeface? = null
horizontalMargin
Link copied to clipboard
@Px()
var horizontalMargin: Int
popupAlpha
Link copied to clipboard
var popupAlpha: Int = 230
popupColor
Link copied to clipboard
var popupColor: Int
popupCornerRadius
Link copied to clipboard
var popupCornerRadius: Int = 90
popupGravity
Link copied to clipboard
var popupGravity: PopupGravity
popupMargin
Link copied to clipboard
var popupMargin: Int
reactions
Link copied to clipboard
var reactions: Collection<Reaction>
reactionsIds
Link copied to clipboard
var reactionsIds: IntArray
reactionSize
Link copied to clipboard
@Px()
var reactionSize: Int
reactionTextProvider
Link copied to clipboard
var reactionTextProvider: ReactionTextProvider
reactionTexts
Link copied to clipboard
var reactionTexts: Int
textBackground
Link copied to clipboard
var textBackground: Drawable? = null
textColor
Link copied to clipboard
var textColor: Int
textHorizontalPadding
Link copied to clipboard
var textHorizontalPadding: Int = 0
textSize
Link copied to clipboard
var textSize: Float = 0f
textVerticalPadding
Link copied to clipboard
var textVerticalPadding: Int = 0
verticalMargin
Link copied to clipboard
@Px()
var verticalMargin: Int

Extensions

reactions
Link copied to clipboard
fun ReactionsConfigBuilder.reactions(scaleType: ImageView.ScaleType = ImageView.ScaleType.FIT_CENTER, config: ReactionsConfiguration.() -> Unit)
Reaction declaration block