WearableDrawerLayout.DrawerStateCallback

public class WearableDrawerLayout.DrawerStateCallback


Listener for monitoring events about drawers.

Summary

Public constructors

Public methods

void
onDrawerClosed(
    WearableDrawerLayout layout,
    WearableDrawerView drawerView
)

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

void
onDrawerOpened(
    WearableDrawerLayout layout,
    WearableDrawerView drawerView
)

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

void

Called when the drawer motion state changes.

Public constructors

DrawerStateCallback

public final DrawerStateCallback()

Public methods

onDrawerClosed

public void onDrawerClosed(
    WearableDrawerLayout layout,
    WearableDrawerView drawerView
)

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

onDrawerOpened

public void onDrawerOpened(
    WearableDrawerLayout layout,
    WearableDrawerView drawerView
)

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

onDrawerStateChanged

public void onDrawerStateChanged(
    WearableDrawerLayout layout,
    @WearableDrawerView.DrawerState int newState
)

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