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
WearableDrawerLayout.DrawerStateCallback ()
Public methods
onDrawerClosed
void onDrawerClosed (WearableDrawerLayout layout, WearableDrawerView drawerView)
Called when a drawer has settled in a completely closed state.
Parameters | |
---|---|
layout |
WearableDrawerLayout |
drawerView |
WearableDrawerView |
onDrawerOpened
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
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 |