InboxUIStyle

Class representing the style for the Inbox composable. Use the Builder class to create an instance with custom styling options.

Builder Methods

Method
Parameter Type
Description
headingStyle
AepTextStyle
Style for the inbox heading text.
lazyColumnStyle
AepLazyColumnStyle
Style for vertical layout (LazyColumn).
lazyRowStyle
AepLazyRowStyle
Style for horizontal layout (LazyRow).
emptyMessageStyle
AepTextStyle
Style for empty state message text.
emptyImageStyle
AepImageStyle
Style for empty state image.
unreadIconStyle
AepImageStyle
Style for unread indicator icon.
unreadIconAlignment
Alignment
Position of unread indicator on cards.
unreadBgColor
AepColor
Background color for unread cards with light and dark theme support.
loadingView
@Composable () -> Unit
Custom loading view composable.
errorView
@Composable () -> Unit
Custom error view composable.

Usage Example

data-slots=heading, code
data-repeat=1
data-languages=Kotlin

Kotlin

val inboxStyle = InboxUIStyle.Builder()
    .headingStyle(AepTextStyle(
        modifier = Modifier.fillMaxWidth().padding(16.dp),
        textStyle = TextStyle(
            fontWeight = FontWeight.Bold,
            fontSize = 24.sp
        )
    ))
    .lazyColumnStyle(AepLazyColumnStyle(
        contentPadding = PaddingValues(16.dp),
        verticalArrangement = Arrangement.spacedBy(12.dp)
    ))
    .unreadBgColor(AepColor(
        light = Color(0xFFE3F2FD),
        dark = Color(0xFF1E3A5F)
    ))
    .loadingView {
        CircularProgressIndicator()
    }
    .build()