WearableDrawerLayout.DrawerStateCallback

Added in 1.1.0

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

Added in 1.1.0
public DrawerStateCallback()

Public methods

onDrawerClosed

Added in 1.1.0
public void onDrawerClosed(
    WearableDrawerLayout layout,
    WearableDrawerView drawerView
)

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

onDrawerOpened

Added in 1.1.0
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

Added in 1.1.0
public void onDrawerStateChanged(WearableDrawerLayout layout, int newState)

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