MotionScene.Transition.TransitionOnClick


class MotionScene.Transition.TransitionOnClick : View.OnClickListener


Summary

Constants

const Int
const Int
const Int
const Int
const Int

Public constructors

TransitionOnClick(
    context: Context!,
    transition: MotionScene.Transition!,
    parser: XmlPullParser!
)
TransitionOnClick(transition: MotionScene.Transition!, id: Int, action: Int)

Public functions

Unit
addOnClickListeners(
    motionLayout: MotionLayout!,
    currentState: Int,
    transition: MotionScene.Transition!
)

Add the on click listeners for the current state

Unit
onClick(view: View!)
Unit

Remove the OnClickListeners (typically called because you are removing the transition)

Constants

ANIM_TOGGLE

Added in 2.2.0
const val ANIM_TOGGLE = 17: Int

ANIM_TO_END

Added in 2.2.0
const val ANIM_TO_END = 1: Int

ANIM_TO_START

Added in 2.2.0
const val ANIM_TO_START = 16: Int

JUMP_TO_END

Added in 2.2.0
const val JUMP_TO_END = 256: Int

JUMP_TO_START

Added in 2.2.0
const val JUMP_TO_START = 4096: Int

Public constructors

TransitionOnClick

Added in 2.2.0
TransitionOnClick(
    context: Context!,
    transition: MotionScene.Transition!,
    parser: XmlPullParser!
)

TransitionOnClick

Added in 2.2.0
TransitionOnClick(transition: MotionScene.Transition!, id: Int, action: Int)

Public functions

addOnClickListeners

Added in 2.2.0
fun addOnClickListeners(
    motionLayout: MotionLayout!,
    currentState: Int,
    transition: MotionScene.Transition!
): Unit

Add the on click listeners for the current state

Parameters
motionLayout: MotionLayout!
currentState: Int
transition: MotionScene.Transition!

onClick

Added in 2.2.0
fun onClick(view: View!): Unit

removeOnClickListeners

Added in 2.2.0
fun removeOnClickListeners(motionLayout: MotionLayout!): Unit

Remove the OnClickListeners (typically called because you are removing the transition)

Parameters
motionLayout: MotionLayout!