Package io. aircore. panel. chat. view
Types
Link copied to clipboard
class ChatPanelTheme @JvmOverloads constructor( val colors: PanelColors = PanelColors(), val incomingMessageStyle: MessageStyle = MessageStyle(
backgroundColor = colors.background.toArgb(),
backgroundContrastColor = colors.text.toArgb(),
borderColor = colors.border.toArgb(),
userNameColor = colors.primary.toArgb()
), val outgoingMessageStyle: MessageStyle = MessageStyle(
backgroundColor = colors.primary.toArgb(),
backgroundContrastColor = colors.primaryContrast.toArgb(),
borderColor = colors.primary.toArgb(),
userNameColor = colors.primaryContrast.toArgb()
), val icons: PanelIconography = PanelIconography(), val shapes: Shapes = Shapes(
small = RoundedCornerShape(4.dp),
medium = RoundedCornerShape(4.dp),
large = RoundedCornerShape(0.dp)
), val avatarStyle: AvatarStyle = AvatarStyle(
shape = shapes.small,
backgroundColor = colors.background.copy(alpha = AlphaDefaults.TranslucentLightMode)
.toSolidColor()
), val avatarStackStyle: AvatarStackStyle = AvatarStackStyle(), val typography: Typography = Typography())
Content copied to clipboard
Class that enclosing all theming properties of the Aircore Chat Panel.
Link copied to clipboard
class ChatPanelView @JvmOverloads constructor( context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : AbstractComposeView
Content copied to clipboard
View that renders an Aircore Chat Panel.
Link copied to clipboard
class MessageStyle @JvmOverloads constructor( @ColorInt val backgroundColor: Int, @ColorInt val backgroundContrastColor: Int, @ColorInt val borderColor: Int, @ColorInt val userNameColor: Int)
Content copied to clipboard
Message style
Link copied to clipboard