public class TransitionParser


Contains code for Parsing Transitions

Summary

Public constructors

Public methods

static void
parse(CLObject json, Transition transition, CorePixelDp dpToPixel)

This method is deprecated.

dpToPixel is not necessary, use parse instead.

static void
parseKeyFrames(CLObject transitionCLObject, Transition transition)

Parses KeyFrames attributes from the CLObject into Transition.

Public constructors

TransitionParser

Added in 1.1.0
public TransitionParser()

Public methods

parse

Added in 1.1.0
Deprecated in 1.1.0
public static void parse(CLObject json, Transition transition, CorePixelDp dpToPixel)

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

Parameters
CLObject json

Transition Object to parse.

Transition transition

Transition Object to write transition to

parseKeyFrames

Added in 1.1.0
public static void parseKeyFrames(CLObject transitionCLObject, Transition transition)

Parses KeyFrames attributes from the CLObject into Transition.

Parameters
CLObject transitionCLObject

the CLObject for the root transition json

Transition transition

core object that holds the state of the Transition