WearableDrawerLayout.DrawerStateCallback

Added in 1.1.0

class WearableDrawerLayout.DrawerStateCallback


Listener for monitoring events about drawers.

Summary

Public constructors

Public functions

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

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

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

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

Unit

Called when the drawer motion state changes.

Public constructors

DrawerStateCallback

Added in 1.1.0
DrawerStateCallback()

Public functions

onDrawerClosed

Added in 1.1.0
fun onDrawerClosed(
    layout: WearableDrawerLayout!,
    drawerView: WearableDrawerView!
): Unit

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

onDrawerOpened

Added in 1.1.0
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

Added in 1.1.0
fun onDrawerStateChanged(layout: WearableDrawerLayout!, newState: Int): Unit

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