MenuContentHash

Utility class for calculating a hash of menu content to detect changes

Functions

Link copied to clipboard
fun calculateMenuHash(menuContent: TrayMenuBuilder.() -> Unit?): String

Calculates a hash of the menu content by capturing the menu structure This function should be called from a @Composable context to track state changes