class TransitionParser


Contains code for Parsing Transitions

Summary

Public constructors

Public functions

java-static Unit
parse(json: CLObject!, transition: Transition!, dpToPixel: CorePixelDp!)

This function is deprecated.

dpToPixel is not necessary, use parse instead.

java-static Unit
parseKeyFrames(transitionCLObject: CLObject!, transition: Transition!)

Parses KeyFrames attributes from the CLObject into Transition.

Public constructors

TransitionParser

Added in 1.1.0
TransitionParser()

Public functions

parse

Added in 1.1.0
Deprecated in 1.1.0
java-static fun parse(json: CLObject!, transition: Transition!, dpToPixel: CorePixelDp!): Unit

Parse a JSON string of a Transition and insert it into the Transition object

Parameters
json: CLObject!

Transition Object to parse.

transition: Transition!

Transition Object to write transition to

parseKeyFrames

Added in 1.1.0
java-static fun parseKeyFrames(transitionCLObject: CLObject!, transition: Transition!): Unit

Parses KeyFrames attributes from the CLObject into Transition.

Parameters
transitionCLObject: CLObject!

the CLObject for the root transition json

transition: Transition!

core object that holds the state of the Transition