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 | Style for the inbox heading text. | |
lazyColumnStyle | Style for vertical layout (LazyColumn). | |
lazyRowStyle | Style for horizontal layout (LazyRow). | |
emptyMessageStyle | Style for empty state message text. | |
emptyImageStyle | Style for empty state image. | |
unreadIconStyle | Style for unread indicator icon. | |
unreadIconAlignment | Position of unread indicator on cards. | |
unreadBgColor | 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
Kotlin
Copied to your clipboardval 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()
