DefaultDirectoryObjectContent
Default implementation of DirectoryObjectContent using default colors and icons.
To customize specific part while keeping others default, you can use Kotlin delegation:
object MyDirectoryObjectContent : DirectoryObjectContent by DefaultDirectoryObjectContent {
@Composable
override fun Title(viewModel: DirectoryObjectViewModel) {
DirectoryObjectTitleComposable(
viewModel = viewModel,
colors = DirectoryObjectHeaderComposableDefaults.colors().copy(
titleColor = Color.Red
)
)
}
}Functions
Renders additional, non-essential information or metadata about the object.
Renders any important alerts, warnings, or status messages (e.g., "Temporarily Closed").
Renders a button to close or dismiss the detailed view.
Displays contact information such as phone numbers.
Shows the distance from the user's current location to the object.
Displays the full, detailed address of the object.
Renders information about entrances, porches, or specific access points (if applicable).
Displays the object's rating and review count.
Displays a shortened or compact version of the object's address.
Renders links to the object's official websites and social network profiles.
Renders the subtitle or secondary description of the directory object.
Renders the main title/name of the directory object in the detailed view.
Displays the working hours information for a directory object.