All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yandex.div.dsl.model.DivFadeTransition.kt Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 30.19.0
Show newest version
// 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 DivFadeTransition internal constructor(
    @JsonIgnore val alpha: Property?,
    @JsonIgnore override val duration: Property?,
    @JsonIgnore override val interpolator: Property?,
    @JsonIgnore override val startDelay: Property?,
) : DivAppearanceTransition, DivTransitionBase {

    @JsonProperty("type") override val type = "fade"

    @JsonAnyGetter
    internal fun properties(): Map {
        return propertyMapOf(
            "alpha" to alpha,
            "duration" to duration,
            "interpolator" to interpolator,
            "start_delay" to startDelay,
        )
    }
}

fun  TemplateContext.divFadeTransition(): LiteralProperty {
    return value(DivFadeTransition(
        alpha = null,
        duration = null,
        interpolator = null,
        startDelay = null,
    ))
}

fun  TemplateContext.divFadeTransition(
    alpha: Property? = null,
    duration: Property? = null,
    interpolator: Property? = null,
    startDelay: Property? = null,
): LiteralProperty {
    return value(DivFadeTransition(
        alpha = alpha,
        duration = duration,
        interpolator = interpolator,
        startDelay = startDelay,
    ))
}

fun  TemplateContext.divFadeTransition(
    alpha: Double? = null,
    duration: Int? = null,
    interpolator: DivAnimationInterpolator? = null,
    startDelay: Int? = null,
): LiteralProperty {
    return value(DivFadeTransition(
        alpha = optionalValue(alpha),
        duration = optionalValue(duration),
        interpolator = optionalValue(interpolator),
        startDelay = optionalValue(startDelay),
    ))
}

fun CardContext.divFadeTransition(): DivFadeTransition {
    return DivFadeTransition(
        alpha = null,
        duration = null,
        interpolator = null,
        startDelay = null,
    )
}

fun CardContext.divFadeTransition(
    alpha: ValueProperty? = null,
    duration: ValueProperty? = null,
    interpolator: ValueProperty? = null,
    startDelay: ValueProperty? = null,
): DivFadeTransition {
    return DivFadeTransition(
        alpha = alpha,
        duration = duration,
        interpolator = interpolator,
        startDelay = startDelay,
    )
}

fun CardContext.divFadeTransition(
    alpha: Double? = null,
    duration: Int? = null,
    interpolator: DivAnimationInterpolator? = null,
    startDelay: Int? = null,
): DivFadeTransition {
    return DivFadeTransition(
        alpha = optionalValue(alpha),
        duration = optionalValue(duration),
        interpolator = optionalValue(interpolator),
        startDelay = optionalValue(startDelay),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy