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

com.yandex.div.dsl.model.DivAspect.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 DivAspect internal constructor(
    @JsonIgnore val ratio: Property?,
) {

    @JsonAnyGetter
    internal fun properties(): Map {
        return propertyMapOf(
            "ratio" to ratio,
        )
    }
}

fun  TemplateContext.divAspect(): LiteralProperty {
    return value(DivAspect(
        ratio = null,
    ))
}

fun  TemplateContext.divAspect(
    ratio: Property? = null,
): LiteralProperty {
    return value(DivAspect(
        ratio = ratio,
    ))
}

fun  TemplateContext.divAspect(
    ratio: Double? = null,
): LiteralProperty {
    return value(DivAspect(
        ratio = optionalValue(ratio),
    ))
}

fun CardContext.divAspect(
    ratio: ValueProperty,
): DivAspect {
    return DivAspect(
        ratio = ratio,
    )
}

fun CardContext.divAspect(
    ratio: Double,
): DivAspect {
    return DivAspect(
        ratio = value(ratio),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy