currentActionResource
Returns the ActionResource of the currently visible screen, or null if the screen does not define one.
Must be called inside a composable that is a descendant of NavigationRender.
Example:
TopAppBar(
actions = {
currentActionResource()?.invoke()
}
)Content copied to clipboard