PromptDialogs
actual fun PromptDialogs(promptModel: PromptModel, imageLoader: ImageLoader?, maxHeight: Dp?, excludeTypes: List<PromptDialogModel.DialogType<*>>, toHumanReadable: ConvertToHumanReadableFn)
expect fun PromptDialogs(promptModel: PromptModel, imageLoader: ImageLoader? = null, maxHeight: Dp? = null, excludeTypes: List<PromptDialogModel.DialogType<*>> = emptyList(), toHumanReadable: ConvertToHumanReadableFn = ::defaultToHumanReadable)
Composable which can show prompts from PromptModel.
If an application wishes to implement a prompts itself but still wants other models, it can pass this the PromptDialogModel.DialogType in excludeTypes.
Parameters
promptModel
the PromptModel to show prompts from.
imageLoader
an ImageLoader to load images from the network or null.
maxHeight
the maximum height of a dialog or null if not restricted.
excludeTypes
a list of prompt model dialog types to not show.
toHumanReadable
a function to convert a org.multipaz.prompt.Reason to a org.multipaz.prompt.Reason.HumanReadable for display in prompts. Defaults to defaultToHumanReadable which uses translated strings from multipaz-compose.
actual fun PromptDialogs(promptModel: ERROR CLASS: Symbol not found for PromptModel, imageLoader: ERROR CLASS: Symbol not found for ImageLoader??, maxHeight: ERROR CLASS: Symbol not found for Dp??, excludeTypes: List<ERROR CLASS: Symbol not found for PromptDialogModel.DialogType<*>>, toHumanReadable: ERROR CLASS: Symbol not found for ConvertToHumanReadableFn)
actual fun PromptDialogs(promptModel: PromptModel, imageLoader: ImageLoader?, maxHeight: Dp?, excludeTypes: List<PromptDialogModel.DialogType<*>>, toHumanReadable: ConvertToHumanReadableFn)