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

Link copied to clipboard

Renders additional, non-essential information or metadata about the object.

Link copied to clipboard
open override fun Alert(viewModel: DirectoryObjectViewModel)

Renders any important alerts, warnings, or status messages (e.g., "Temporarily Closed").

Link copied to clipboard
open override fun CloseButton(viewModel: DirectoryObjectViewModel)

Renders a button to close or dismiss the detailed view.

Link copied to clipboard
open override fun Contacts(viewModel: DirectoryObjectViewModel)

Displays contact information such as phone numbers.

Link copied to clipboard
open override fun Distance(viewModel: DirectoryObjectViewModel)

Shows the distance from the user's current location to the object.

Link copied to clipboard
open override fun FullAddress(viewModel: DirectoryObjectViewModel)

Displays the full, detailed address of the object.

Link copied to clipboard
open override fun Porches(viewModel: DirectoryObjectViewModel)

Renders information about entrances, porches, or specific access points (if applicable).

Link copied to clipboard
open override fun Rating(viewModel: DirectoryObjectViewModel)

Displays the object's rating and review count.

Link copied to clipboard
open override fun ShortAddress(viewModel: DirectoryObjectViewModel)

Displays a shortened or compact version of the object's address.

Link copied to clipboard

Renders links to the object's official websites and social network profiles.

Link copied to clipboard
open override fun Subtitle(viewModel: DirectoryObjectViewModel)

Renders the subtitle or secondary description of the directory object.

Link copied to clipboard
open override fun Title(viewModel: DirectoryObjectViewModel)

Renders the main title/name of the directory object in the detailed view.

Link copied to clipboard
open override fun WorkingHours(viewModel: DirectoryObjectViewModel)

Displays the working hours information for a directory object.