set Toolbar Navigation Icon
open fun setToolbarNavigationIcon(@Nullable icon: ToolbarIcon, @Nullable contentDescription: String)
Sets the main toolbar's navigation (up / back) icon and its accessibility label — the Compose-toolbar replacement for getSupportActionBar().setDisplayHomeAsUpEnabled(true) or Toolbar.setNavigationIcon. Taps arrive at the listener.
Parameters
icon
the icon to show (e.g. new ToolbarIcon.Resource(R.drawable.ic_back)), or null to remove the navigation icon.
content Description
accessibility label of the icon, or null for the default "Navigate up" (AppCompat's localized abc_action_bar_up_description).