setOnToolbarItemClickListener

Sets the handler for main-toolbar item taps — the Compose-toolbar replacement for intercepting onOptionsItemSelected. The listener is consulted before the SDK's default handler; return true to consume the click. Pass null to clear it.

Parameters

listener

the click listener, or null.