This site requires javascript.
Android Code Search
file:androidx/constraintlayout/compose/MotionSceneScope.kt function:MotionScene
search
close
info_outline
more_vert
Result 1 of 1
content_copy
Search Result Root
androidx/platform/frameworks/support
keyboard_arrow_right
Branch
Branch
androidx-main
keyboard_arrow_right
Search Result Path
constraintlayout/constraintlayout-compose/src/androidMain/kotlin/androidx/constraintlayout/compose/
MotionSceneScope.kt
content_copy
Preview
34:
35:
36:
@ExperimentalMotionApi
fun
MotionScene
(motionSceneContent: MotionSceneScope.() -> Unit): MotionScene {
val
scope = MotionSceneScope().apply(motionSceneContent)
367:
368:
369:
/** Sets the custom Float [value] at the frame of the current [KeyAttributeScope]. */
fun
KeyAttribut
e
Scope.customFloat(name: String, value: Float) {
customPropertiesValue[name] = value
372:
373:
374:
/** Sets the custom Color [value] at the frame of the current [KeyAttributeScope]. */
fun
KeyAttribut
e
Scope.customColor(name: String, value: Color) {
// Colors must be in the following format: "#AARRGGBB"
378:
379:
380:
/** Sets the custom Int [value] at the frame of the current [KeyAttributeScope]. */
fun
KeyAttribut
e
Scope.customInt(name: String, value: Int) {
customPropertiesValue[name] = value
383:
384:
385:
/** Sets the custom Dp [value] at the frame of the current [KeyAttributeScope]. */
fun
KeyAttribut
e
Scope.customDistance(name: String, value: Dp) {
customPropertiesValue[name] = value.value
388:
389:
390:
/** Sets the custom TextUnit [value] at the frame of the current [KeyAttributeScope]. */
fun
KeyAttribut
e
Scope.customFontSize(name: String, value: TextUnit) {
customPropertiesValue[name] = value.value
chevron_left
1
chevron_right
Results per page
10
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Got it
Help
Open branch androidx-main