ViewTransition

class ViewTransition


Provides a support for tag it Parses tag it implement the transition it will update ConstraintSet or sets For asynchronous it will create and drive a MotionController.

Summary

Public functions

Int

Gets the SharedValue it will be listening for.

Int
Int

Gets the ID of the SharedValue it will be listening for.

Int

Gets the type of transition to listen to.

Unit
setSharedValue(sharedValue: Int)

sets the SharedValue it will be listening for.

Unit
setSharedValueCurrent(sharedValueCurrent: Int)
Unit
setSharedValueID(sharedValueID: Int)

sets the ID of the SharedValue it will be listening for.

Unit
setStateTransition(stateTransition: Int)

Sets the type of transition to listen to.

String

Constants

CONSTRAINT_OVERRIDE

val CONSTRAINT_OVERRIDEString

CUSTOM_ATTRIBUTE

val CUSTOM_ATTRIBUTEString

CUSTOM_METHOD

val CUSTOM_METHODString

KEY_FRAME_SET_TAG

val KEY_FRAME_SET_TAGString

ONSTATE_ACTION_DOWN

val ONSTATE_ACTION_DOWNInt

ONSTATE_ACTION_DOWN_UP

val ONSTATE_ACTION_DOWN_UPInt

ONSTATE_ACTION_UP

val ONSTATE_ACTION_UPInt

ONSTATE_SHARED_VALUE_SET

val ONSTATE_SHARED_VALUE_SETInt

ONSTATE_SHARED_VALUE_UNSET

val ONSTATE_SHARED_VALUE_UNSETInt

VIEW_TRANSITION_TAG

val VIEW_TRANSITION_TAGString

Public functions

getSharedValue

fun getSharedValue(): Int

Gets the SharedValue it will be listening for.

Returns
Int

getSharedValueCurrent

fun getSharedValueCurrent(): Int

getSharedValueID

fun getSharedValueID(): Int

Gets the ID of the SharedValue it will be listening for.

Returns
Int

the id of the shared value

getStateTransition

fun getStateTransition(): Int

Gets the type of transition to listen to.

Returns
Int

ONSTATE_TRANSITION_*

setSharedValue

fun setSharedValue(sharedValue: Int): Unit

sets the SharedValue it will be listening for.

setSharedValueCurrent

fun setSharedValueCurrent(sharedValueCurrent: Int): Unit

setSharedValueID

fun setSharedValueID(sharedValueID: Int): Unit

sets the ID of the SharedValue it will be listening for.

setStateTransition

fun setStateTransition(stateTransition: Int): Unit

Sets the type of transition to listen to.

Parameters
stateTransition: Int

toString

fun toString(): String