ConstraintsChangedListener


abstract class ConstraintsChangedListener


Added in 2.0

Callbacks on state change

Summary

Public constructors

Public functions

Unit
postLayoutChange(stateId: Int, constraintId: Int)

called after layout happens

Unit
preLayoutChange(stateId: Int, constraintId: Int)

called before layout happens

Public constructors

ConstraintsChangedListener

Added in 2.2.0-alpha13
ConstraintsChangedListener()

Public functions

postLayoutChange

Added in 2.2.0-alpha13
fun postLayoutChange(stateId: Int, constraintId: Int): Unit

called after layout happens

Parameters
stateId: Int

-1 if state unknown, otherwise the current state

constraintId: Int

the current constraintSet id we transitioned to

preLayoutChange

Added in 2.2.0-alpha13
fun preLayoutChange(stateId: Int, constraintId: Int): Unit

called before layout happens

Parameters
stateId: Int

-1 if state unknown, otherwise the state we will transition to

constraintId: Int

the constraintSet id that we will transition to