added in version 26.1.0
belongs to Maven artifact com.android.support:wear:28.0.0-alpha1

WearableDrawerLayout.DrawerStateCallback

public static class WearableDrawerLayout.DrawerStateCallback
extends Object

java.lang.Object
   ↳ android.support.wear.widget.drawer.WearableDrawerLayout.DrawerStateCallback


Listener for monitoring events about drawers.

Summary

Public constructors

WearableDrawerLayout.DrawerStateCallback()

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 onDrawerStateChanged(WearableDrawerLayout layout, int newState)

Called when the drawer motion state changes.

Inherited methods

From class java.lang.Object

Public constructors

WearableDrawerLayout.DrawerStateCallback

added in version 26.1.0
WearableDrawerLayout.DrawerStateCallback ()

Public methods

onDrawerClosed

added in version 26.1.0
void onDrawerClosed (WearableDrawerLayout layout, 
                WearableDrawerView drawerView)

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

Parameters
layout WearableDrawerLayout

drawerView WearableDrawerView

onDrawerOpened

added in version 26.1.0
void onDrawerOpened (WearableDrawerLayout layout, 
                WearableDrawerView drawerView)

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

Parameters
layout WearableDrawerLayout

drawerView WearableDrawerView

onDrawerStateChanged

added in version 26.1.0
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.

Parameters
layout WearableDrawerLayout

newState int