com.yandex.div.dsl.model.DivChangeBoundsTransition.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-json-builder Show documentation
Show all versions of kotlin-json-builder Show documentation
DivKit is an open source Server-Driven UI (SDUI) framework. SDUI is a an emerging technique that leverage the server to build the user interfaces of their mobile app.
// Generated code. Do not modify.
package com.yandex.div.dsl.model
import java.net.URI
import com.fasterxml.jackson.annotation.*
import com.yandex.div.dsl.*
import com.yandex.div.dsl.context.*
import com.yandex.div.dsl.type.*
import com.yandex.div.dsl.util.*
class DivChangeBoundsTransition internal constructor(
@JsonIgnore override val duration: Property?,
@JsonIgnore override val interpolator: Property?,
@JsonIgnore override val startDelay: Property?,
) : DivChangeTransition, DivTransitionBase {
@JsonProperty("type") override val type = "change_bounds"
@JsonAnyGetter
internal fun properties(): Map {
return propertyMapOf(
"duration" to duration,
"interpolator" to interpolator,
"start_delay" to startDelay,
)
}
}
fun TemplateContext.divChangeBoundsTransition(): LiteralProperty {
return value(DivChangeBoundsTransition(
duration = null,
interpolator = null,
startDelay = null,
))
}
fun TemplateContext.divChangeBoundsTransition(
duration: Property? = null,
interpolator: Property? = null,
startDelay: Property? = null,
): LiteralProperty {
return value(DivChangeBoundsTransition(
duration = duration,
interpolator = interpolator,
startDelay = startDelay,
))
}
fun TemplateContext.divChangeBoundsTransition(
duration: Int? = null,
interpolator: DivAnimationInterpolator? = null,
startDelay: Int? = null,
): LiteralProperty {
return value(DivChangeBoundsTransition(
duration = optionalValue(duration),
interpolator = optionalValue(interpolator),
startDelay = optionalValue(startDelay),
))
}
fun CardContext.divChangeBoundsTransition(): DivChangeBoundsTransition {
return DivChangeBoundsTransition(
duration = null,
interpolator = null,
startDelay = null,
)
}
fun CardContext.divChangeBoundsTransition(
duration: ValueProperty? = null,
interpolator: ValueProperty? = null,
startDelay: ValueProperty? = null,
): DivChangeBoundsTransition {
return DivChangeBoundsTransition(
duration = duration,
interpolator = interpolator,
startDelay = startDelay,
)
}
fun CardContext.divChangeBoundsTransition(
duration: Int? = null,
interpolator: DivAnimationInterpolator? = null,
startDelay: Int? = null,
): DivChangeBoundsTransition {
return DivChangeBoundsTransition(
duration = optionalValue(duration),
interpolator = optionalValue(interpolator),
startDelay = optionalValue(startDelay),
)
}