WearableDrawerLayout.DrawerStateCallback

public class WearableDrawerLayout.DrawerStateCallback


Listener for monitoring events about drawers.

Summary

Public methods

@NonNull void

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

@NonNull void

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

@NonNull void

Called when the drawer motion state changes.

Public methods

onDrawerClosed

@NonNull
public void onDrawerClosed(
    @NonNull WearableDrawerLayout layout,
    @NonNull WearableDrawerView drawerView
)

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

onDrawerOpened

@NonNull
public void onDrawerOpened(
    @NonNull WearableDrawerLayout layout,
    @NonNull WearableDrawerView drawerView
)

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

onDrawerStateChanged

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

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