class CustomVariable


Defines non standard Attributes

Summary

Public constructors

CustomVariable(name: String!, attributeType: Int)
CustomVariable(source: CustomVariable!, value: Any!)
CustomVariable(name: String!, attributeType: Int, value: Any!)
CustomVariable(name: String!, type: Int, value: Boolean)
CustomVariable(name: String!, type: Int, value: Float)
CustomVariable(name: String!, type: Int, value: Int)
CustomVariable(name: String!, type: Int, value: String!)

Public functions

Unit
java-static String!
CustomVariable!
Boolean
diff(customAttribute: CustomVariable!)

test if the two attributes are different

Boolean
Int
Float
Int
Int
String!
String!
Int
Float

Transforms value to a float for the purpose of interpolation

Unit
java-static Int
hsvToRgb(hue: Float, saturation: Float, value: Float)
Boolean

Continuous types are interpolated they are fired only at

Int

The number of interpolation values that need to be interpolated Typically 1 but 3 for colors.

java-static Int
rgbaTocColor(r: Float, g: Float, b: Float, a: Float)
Unit
Unit
Unit
setIntValue(value: Int)
Unit
Unit
Unit
setValue(value: Any!)
Unit
String!

Public constructors

CustomVariable

Added in 1.1.0-alpha13
CustomVariable(c: CustomVariable!)

CustomVariable

Added in 1.1.0-alpha13
CustomVariable(name: String!, attributeType: Int)

CustomVariable

Added in 1.1.0-alpha13
CustomVariable(source: CustomVariable!, value: Any!)

CustomVariable

Added in 1.1.0-alpha13
CustomVariable(name: String!, attributeType: Int, value: Any!)

CustomVariable

Added in 1.1.0-alpha13
CustomVariable(name: String!, type: Int, value: Boolean)

CustomVariable

Added in 1.1.0-alpha13
CustomVariable(name: String!, type: Int, value: Float)

CustomVariable

Added in 1.1.0-alpha13
CustomVariable(name: String!, type: Int, value: Int)

CustomVariable

Added in 1.1.0-alpha13
CustomVariable(name: String!, type: Int, value: String!)

Public functions

applyToWidget

Added in 1.1.0-alpha13
fun applyToWidget(view: MotionWidget!): Unit

colorString

Added in 1.1.0-alpha13
java-static fun colorString(v: Int): String!

copy

Added in 1.1.0-alpha13
fun copy(): CustomVariable!

diff

Added in 1.1.0-alpha13
fun diff(customAttribute: CustomVariable!): Boolean

test if the two attributes are different

getBooleanValue

Added in 1.1.0-alpha13
fun getBooleanValue(): Boolean

getColorValue

Added in 1.1.0-alpha13
fun getColorValue(): Int

getFloatValue

Added in 1.1.0-alpha13
fun getFloatValue(): Float

getIntegerValue

Added in 1.1.0-alpha13
fun getIntegerValue(): Int

getInterpolatedColor

Added in 1.1.0-alpha13
fun getInterpolatedColor(value: FloatArray!): Int

getName

Added in 1.1.0-alpha13
fun getName(): String!

getStringValue

Added in 1.1.0-alpha13
fun getStringValue(): String!

getType

Added in 1.1.0-alpha13
fun getType(): Int

getValueToInterpolate

Added in 1.1.0-alpha13
fun getValueToInterpolate(): Float

Transforms value to a float for the purpose of interpolation

Returns
Float

interpolation value

getValuesToInterpolate

Added in 1.1.0-alpha13
fun getValuesToInterpolate(ret: FloatArray!): Unit

hsvToRgb

Added in 1.1.0-alpha13
java-static fun hsvToRgb(hue: Float, saturation: Float, value: Float): Int

isContinuous

Added in 1.1.0-alpha13
fun isContinuous(): Boolean

Continuous types are interpolated they are fired only at

numberOfInterpolatedValues

Added in 1.1.0-alpha13
fun numberOfInterpolatedValues(): Int

The number of interpolation values that need to be interpolated Typically 1 but 3 for colors.

Returns
Int

Typically 1 but 3 for colors.

rgbaTocColor

Added in 1.1.0-alpha13
java-static fun rgbaTocColor(r: Float, g: Float, b: Float, a: Float): Int

setBooleanValue

Added in 1.1.0-alpha13
fun setBooleanValue(value: Boolean): Unit

setFloatValue

Added in 1.1.0-alpha13
fun setFloatValue(value: Float): Unit

setIntValue

Added in 1.1.0-alpha13
fun setIntValue(value: Int): Unit

setInterpolatedValue

Added in 1.1.0-alpha13
fun setInterpolatedValue(view: MotionWidget!, value: FloatArray!): Unit

setStringValue

Added in 1.1.0-alpha13
fun setStringValue(value: String!): Unit

setValue

Added in 1.1.0-alpha13
fun setValue(value: Any!): Unit

setValue

Added in 1.1.0-alpha13
fun setValue(value: FloatArray!): Unit

toString

fun toString(): String!