public class

WearableDrawerLayout.DrawerStateCallback

extends java.lang.Object

 java.lang.Object

↳androidx.wear.widget.drawer.WearableDrawerLayout.DrawerStateCallback

Overview

Listener for monitoring events about drawers.

Summary

Constructors
publicDrawerStateCallback()

Methods
public voidonDrawerClosed(WearableDrawerLayout layout, WearableDrawerView drawerView)

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

public voidonDrawerOpened(WearableDrawerLayout layout, WearableDrawerView drawerView)

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

public voidonDrawerStateChanged(WearableDrawerLayout layout, int newState)

Called when the drawer motion state changes.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public DrawerStateCallback()

Methods

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.

public void onDrawerClosed(WearableDrawerLayout layout, WearableDrawerView drawerView)

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

public void onDrawerStateChanged(WearableDrawerLayout layout, int newState)

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