set On Contextual Toolbar Lifecycle Listener
open fun setOnContextualToolbarLifecycleListener(@Nullable lifecycleListener: ToolbarCoordinatorLayout.OnContextualToolbarLifecycleListener)
Sets the listener for lifecycle changes of the ContextualToolbar as it goes through the ToolbarCoordinatorLayout - preparing, displaying, removing. Calling this method will replace any previously set listener. You may provide null
to clear the listener.
Parameters
lifecycle Listener
OnContextualToolbarLifecycleListener that should be notified, or null
to clear the listener.