Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!

FloatingActionButton.OnVisibilityChangedListener

public static abstract class FloatingActionButton.OnVisibilityChangedListener
extends Object

java.lang.Object
   ↳ com.google.android.material.floatingactionbutton.FloatingActionButton.OnVisibilityChangedListener


Callback to be invoked when the visibility of a FloatingActionButton changes.

Summary

Public constructors

FloatingActionButton.OnVisibilityChangedListener()

Public methods

void onHidden(FloatingActionButton fab)

Called when a FloatingActionButton has been hidden.

void onShown(FloatingActionButton fab)

Called when a FloatingActionButton has been shown.

Inherited methods

From class java.lang.Object

Public constructors

FloatingActionButton.OnVisibilityChangedListener

FloatingActionButton.OnVisibilityChangedListener ()

Public methods

onHidden

void onHidden (FloatingActionButton fab)

Called when a FloatingActionButton has been hidden.

Parameters
fab FloatingActionButton: the FloatingActionButton that was hidden.

onShown

void onShown (FloatingActionButton fab)

Called when a FloatingActionButton has been shown.

Parameters
fab FloatingActionButton: the FloatingActionButton that was shown.