setOnContextualToolbarLifecycleListener

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

lifecycleListener

OnContextualToolbarLifecycleListener that should be notified, or null to clear the listener.