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
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()