MotionLayoutScope.CustomProperties

inner class MotionLayoutScope.CustomProperties


Summary

Public functions

Color
color(name: String)

Return the current Color value of the custom property name, of the id layout.

Dp

Return the current Dp value of the custom property name, of the id layout.

Float
float(name: String)

Return the current Color value of the custom property name, of the id layout.

TextUnit

Return the current TextUnit value of the custom property name, of the id layout.

Int
int(name: String)

Return the current Int value of the custom property name, of the id layout.

Public functions

color

Added in 1.1.0
fun color(name: String): Color

Return the current Color value of the custom property name, of the id layout.

Returns Color.Unspecified if the property does not exist.

distance

Added in 1.1.0
fun distance(name: String): Dp

Return the current Dp value of the custom property name, of the id layout.

Returns Dp.Unspecified if the property does not exist.

float

Added in 1.1.0
fun float(name: String): Float

Return the current Color value of the custom property name, of the id layout.

Returns Color.Unspecified if the property does not exist.

fontSize

Added in 1.1.0
fun fontSize(name: String): TextUnit

Return the current TextUnit value of the custom property name, of the id layout.

Returns TextUnit.Unspecified if the property does not exist.

int

Added in 1.1.0
fun int(name: String): Int

Return the current Int value of the custom property name, of the id layout.

Returns 0 if the property does not exist.