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

Constants

const String!
CONSTRAINT_OVERRIDE = "ConstraintOverride"
const String!
CUSTOM_ATTRIBUTE = "CustomAttribute"
const String!
CUSTOM_METHOD = "CustomMethod"
const String!
KEY_FRAME_SET_TAG = "KeyFrameSet"
const Int
const Int
const Int
const Int
const Int
const String!
VIEW_TRANSITION_TAG = "ViewTransition"

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!

debug string for a ViewTransition

Constants

CONSTRAINT_OVERRIDE

Added in 2.2.0-alpha13
const val CONSTRAINT_OVERRIDE = "ConstraintOverride": String!

CUSTOM_ATTRIBUTE

Added in 2.2.0-alpha13
const val CUSTOM_ATTRIBUTE = "CustomAttribute": String!

CUSTOM_METHOD

Added in 2.2.0-alpha13
const val CUSTOM_METHOD = "CustomMethod": String!

KEY_FRAME_SET_TAG

Added in 2.2.0-alpha13
const val KEY_FRAME_SET_TAG = "KeyFrameSet": String!

ONSTATE_ACTION_DOWN

Added in 2.2.0-alpha13
const val ONSTATE_ACTION_DOWN = 1: Int

ONSTATE_ACTION_DOWN_UP

Added in 2.2.0-alpha13
const val ONSTATE_ACTION_DOWN_UP = 3: Int

ONSTATE_ACTION_UP

Added in 2.2.0-alpha13
const val ONSTATE_ACTION_UP = 2: Int

ONSTATE_SHARED_VALUE_SET

Added in 2.2.0-alpha13
const val ONSTATE_SHARED_VALUE_SET = 4: Int

ONSTATE_SHARED_VALUE_UNSET

Added in 2.2.0-alpha13
const val ONSTATE_SHARED_VALUE_UNSET = 5: Int

VIEW_TRANSITION_TAG

Added in 2.2.0-alpha13
const val VIEW_TRANSITION_TAG = "ViewTransition": String!

Public functions

getSharedValue

Added in 2.2.0-alpha13
fun getSharedValue(): Int

Gets the SharedValue it will be listening for.

Returns
Int

getSharedValueCurrent

Added in 2.2.0-alpha13
fun getSharedValueCurrent(): Int

getSharedValueID

Added in 2.2.0-alpha13
fun getSharedValueID(): Int

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

Returns
Int

the id of the shared value

getStateTransition

Added in 2.2.0-alpha13
fun getStateTransition(): Int

Gets the type of transition to listen to.

Returns
Int

ONSTATE_TRANSITION_*

setSharedValue

Added in 2.2.0-alpha13
fun setSharedValue(sharedValue: Int): Unit

sets the SharedValue it will be listening for.

setSharedValueCurrent

Added in 2.2.0-alpha13
fun setSharedValueCurrent(sharedValueCurrent: Int): Unit

setSharedValueID

Added in 2.2.0-alpha13
fun setSharedValueID(sharedValueID: Int): Unit

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

setStateTransition

Added in 2.2.0-alpha13
fun setStateTransition(stateTransition: Int): Unit

Sets the type of transition to listen to.

Parameters
stateTransition: Int

toString

fun toString(): String!

debug string for a ViewTransition

Returns
String!