WearableDrawerLayout.DrawerStateCallback

public static abstract class WearableDrawerLayout.DrawerStateCallback
extends Object

java.lang.Object
   ↳ android.support.wearable.view.drawer.WearableDrawerLayout.DrawerStateCallback


This class is deprecated.
use androidx.wear.widget.drawer.WearableDrawerLayout provided by the Jetpack Wear library instead.

Listener for monitoring events about drawers.

Summary

Public constructors

DrawerStateCallback()

Public methods

abstract void onDrawerClosed(View drawerView)

Called when a drawer has settled in a completely closed state.

abstract void onDrawerOpened(View drawerView)

Called when a drawer has settled in a completely open state.

abstract void onDrawerStateChanged(int newState)

Called when the drawer motion state changes.

Inherited methods

Public constructors

DrawerStateCallback

public DrawerStateCallback ()

Public methods

onDrawerClosed

public abstract void onDrawerClosed (View drawerView)

Called when a drawer has settled in a completely closed state.

Parameters
drawerView View

onDrawerOpened

public abstract void onDrawerOpened (View drawerView)

Called when a drawer has settled in a completely open state. The drawer is interactive at this point.

Parameters
drawerView View

onDrawerStateChanged

public abstract void onDrawerStateChanged (int newState)

Called when the drawer motion state changes. The new state will be one of WearableDrawerView.DrawerState.STATE_IDLE, WearableDrawerView.DrawerState.STATE_DRAGGING or WearableDrawerView.DrawerState.STATE_SETTLING.

Parameters
newState int: The new WearableDrawerView.DrawerState