MessageOptionItemState
class MessageOptionItemState(@StringRes val title: Int, val iconPainter: Painter, val destructive: Boolean, val action: MessageAction)
UI representation of a Message option, when the user selects a message in the list.
Parameters
title
The title to represent the action.
iconPainter
The icon to represent the action.
destructive
Whether the action is destructive. This is used to style the option accordingly.
action
The MessageAction the option represents.
Constructors
Link copied to clipboard
constructor(@StringRes title: Int, iconPainter: Painter, destructive: Boolean, action: MessageAction)