DrawerStateCallback

open class DrawerStateCallback
kotlin.Any
   ↳ androidx.wear.widget.drawer.WearableDrawerLayout.DrawerStateCallback

Listener for monitoring events about drawers.

Summary

Public constructors

Listener for monitoring events about drawers.

Public methods

open Unit

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

open Unit

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

open Unit

Called when the drawer motion state changes.

Public constructors

<init>

DrawerStateCallback()

Listener for monitoring events about drawers.

Public methods

onDrawerClosed

open fun onDrawerClosed(layout: WearableDrawerLayout!, drawerView: WearableDrawerView!): Unit

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

onDrawerOpened

open fun onDrawerOpened(layout: WearableDrawerLayout!, drawerView: WearableDrawerView!): Unit

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

onDrawerStateChanged

open fun onDrawerStateChanged(layout: WearableDrawerLayout!, newState: Int): Unit

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