com.yandex.div.dsl.model.DivImage.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 DivImage internal constructor(
@JsonIgnore override val accessibility: Property?,
@JsonIgnore val action: Property?,
@JsonIgnore val actionAnimation: Property?,
@JsonIgnore val actions: Property>?,
@JsonIgnore override val alignmentHorizontal: Property?,
@JsonIgnore override val alignmentVertical: Property?,
@JsonIgnore override val alpha: Property?,
@JsonIgnore val appearanceAnimation: Property?,
@JsonIgnore val aspect: Property?,
@JsonIgnore override val background: Property>?,
@JsonIgnore override val border: Property?,
@JsonIgnore override val columnSpan: Property?,
@JsonIgnore val contentAlignmentHorizontal: Property?,
@JsonIgnore val contentAlignmentVertical: Property?,
@JsonIgnore val doubletapActions: Property>?,
@JsonIgnore override val extensions: Property>?,
@JsonIgnore val filters: Property>?,
@JsonIgnore override val focus: Property?,
@JsonIgnore override val height: Property?,
@JsonIgnore val highPriorityPreviewShow: Property?,
@JsonIgnore override val id: Property?,
@JsonIgnore val imageUrl: Property?,
@JsonIgnore val longtapActions: Property>?,
@JsonIgnore override val margins: Property?,
@JsonIgnore override val paddings: Property?,
@JsonIgnore val placeholderColor: Property?,
@JsonIgnore val preloadRequired: Property?,
@JsonIgnore val preview: Property?,
@JsonIgnore override val rowSpan: Property?,
@JsonIgnore val scale: Property?,
@JsonIgnore override val selectedActions: Property>?,
@JsonIgnore val tintColor: Property?,
@JsonIgnore val tintMode: Property?,
@JsonIgnore override val tooltips: Property>?,
@JsonIgnore override val transform: Property?,
@JsonIgnore override val transitionChange: Property?,
@JsonIgnore override val transitionIn: Property?,
@JsonIgnore override val transitionOut: Property?,
@JsonIgnore override val transitionTriggers: Property>?,
@JsonIgnore override val visibility: Property?,
@JsonIgnore override val visibilityAction: Property?,
@JsonIgnore override val visibilityActions: Property>?,
@JsonIgnore override val width: Property?,
) : Div, DivBase {
@JsonProperty("type") override val type = "image"
@JsonAnyGetter
internal fun properties(): Map {
return propertyMapOf(
"accessibility" to accessibility,
"action" to action,
"action_animation" to actionAnimation,
"actions" to actions,
"alignment_horizontal" to alignmentHorizontal,
"alignment_vertical" to alignmentVertical,
"alpha" to alpha,
"appearance_animation" to appearanceAnimation,
"aspect" to aspect,
"background" to background,
"border" to border,
"column_span" to columnSpan,
"content_alignment_horizontal" to contentAlignmentHorizontal,
"content_alignment_vertical" to contentAlignmentVertical,
"doubletap_actions" to doubletapActions,
"extensions" to extensions,
"filters" to filters,
"focus" to focus,
"height" to height,
"high_priority_preview_show" to highPriorityPreviewShow,
"id" to id,
"image_url" to imageUrl,
"longtap_actions" to longtapActions,
"margins" to margins,
"paddings" to paddings,
"placeholder_color" to placeholderColor,
"preload_required" to preloadRequired,
"preview" to preview,
"row_span" to rowSpan,
"scale" to scale,
"selected_actions" to selectedActions,
"tint_color" to tintColor,
"tint_mode" to tintMode,
"tooltips" to tooltips,
"transform" to transform,
"transition_change" to transitionChange,
"transition_in" to transitionIn,
"transition_out" to transitionOut,
"transition_triggers" to transitionTriggers,
"visibility" to visibility,
"visibility_action" to visibilityAction,
"visibility_actions" to visibilityActions,
"width" to width,
)
}
}
fun TemplateContext.divImage(): LiteralProperty {
return value(DivImage(
accessibility = null,
action = null,
actionAnimation = null,
actions = null,
alignmentHorizontal = null,
alignmentVertical = null,
alpha = null,
appearanceAnimation = null,
aspect = null,
background = null,
border = null,
columnSpan = null,
contentAlignmentHorizontal = null,
contentAlignmentVertical = null,
doubletapActions = null,
extensions = null,
filters = null,
focus = null,
height = null,
highPriorityPreviewShow = null,
id = null,
imageUrl = null,
longtapActions = null,
margins = null,
paddings = null,
placeholderColor = null,
preloadRequired = null,
preview = null,
rowSpan = null,
scale = null,
selectedActions = null,
tintColor = null,
tintMode = null,
tooltips = null,
transform = null,
transitionChange = null,
transitionIn = null,
transitionOut = null,
transitionTriggers = null,
visibility = null,
visibilityAction = null,
visibilityActions = null,
width = null,
))
}
fun TemplateContext.divImage(
imageUrl: Property? = null,
accessibility: Property? = null,
action: Property? = null,
actionAnimation: Property? = null,
actions: Property>? = null,
alignmentHorizontal: Property? = null,
alignmentVertical: Property? = null,
alpha: Property? = null,
appearanceAnimation: Property? = null,
aspect: Property? = null,
background: Property>? = null,
border: Property? = null,
columnSpan: Property? = null,
contentAlignmentHorizontal: Property? = null,
contentAlignmentVertical: Property? = null,
doubletapActions: Property>? = null,
extensions: Property>? = null,
filters: Property>? = null,
focus: Property? = null,
height: Property? = null,
highPriorityPreviewShow: Property? = null,
id: Property? = null,
longtapActions: Property>? = null,
margins: Property? = null,
paddings: Property? = null,
placeholderColor: Property? = null,
preloadRequired: Property? = null,
preview: Property? = null,
rowSpan: Property? = null,
scale: Property? = null,
selectedActions: Property>? = null,
tintColor: Property? = null,
tintMode: Property? = null,
tooltips: Property>? = null,
transform: Property? = null,
transitionChange: Property? = null,
transitionIn: Property? = null,
transitionOut: Property? = null,
transitionTriggers: Property>? = null,
visibility: Property? = null,
visibilityAction: Property? = null,
visibilityActions: Property>? = null,
width: Property? = null,
): LiteralProperty {
return value(DivImage(
accessibility = accessibility,
action = action,
actionAnimation = actionAnimation,
actions = actions,
alignmentHorizontal = alignmentHorizontal,
alignmentVertical = alignmentVertical,
alpha = alpha,
appearanceAnimation = appearanceAnimation,
aspect = aspect,
background = background,
border = border,
columnSpan = columnSpan,
contentAlignmentHorizontal = contentAlignmentHorizontal,
contentAlignmentVertical = contentAlignmentVertical,
doubletapActions = doubletapActions,
extensions = extensions,
filters = filters,
focus = focus,
height = height,
highPriorityPreviewShow = highPriorityPreviewShow,
id = id,
imageUrl = imageUrl,
longtapActions = longtapActions,
margins = margins,
paddings = paddings,
placeholderColor = placeholderColor,
preloadRequired = preloadRequired,
preview = preview,
rowSpan = rowSpan,
scale = scale,
selectedActions = selectedActions,
tintColor = tintColor,
tintMode = tintMode,
tooltips = tooltips,
transform = transform,
transitionChange = transitionChange,
transitionIn = transitionIn,
transitionOut = transitionOut,
transitionTriggers = transitionTriggers,
visibility = visibility,
visibilityAction = visibilityAction,
visibilityActions = visibilityActions,
width = width,
))
}
fun TemplateContext.divImage(
imageUrl: URI? = null,
accessibility: DivAccessibility? = null,
action: DivAction? = null,
actionAnimation: DivAnimation? = null,
actions: List? = null,
alignmentHorizontal: DivAlignmentHorizontal? = null,
alignmentVertical: DivAlignmentVertical? = null,
alpha: Double? = null,
appearanceAnimation: DivFadeTransition? = null,
aspect: DivAspect? = null,
background: List? = null,
border: DivBorder? = null,
columnSpan: Int? = null,
contentAlignmentHorizontal: DivAlignmentHorizontal? = null,
contentAlignmentVertical: DivAlignmentVertical? = null,
doubletapActions: List? = null,
extensions: List? = null,
filters: List? = null,
focus: DivFocus? = null,
height: DivSize? = null,
highPriorityPreviewShow: BoolInt? = null,
id: String? = null,
longtapActions: List? = null,
margins: DivEdgeInsets? = null,
paddings: DivEdgeInsets? = null,
placeholderColor: Color? = null,
preloadRequired: BoolInt? = null,
preview: String? = null,
rowSpan: Int? = null,
scale: DivImageScale? = null,
selectedActions: List? = null,
tintColor: Color? = null,
tintMode: DivBlendMode? = null,
tooltips: List? = null,
transform: DivTransform? = null,
transitionChange: DivChangeTransition? = null,
transitionIn: DivAppearanceTransition? = null,
transitionOut: DivAppearanceTransition? = null,
transitionTriggers: List? = null,
visibility: DivVisibility? = null,
visibilityAction: DivVisibilityAction? = null,
visibilityActions: List? = null,
width: DivSize? = null,
): LiteralProperty {
return value(DivImage(
accessibility = optionalValue(accessibility),
action = optionalValue(action),
actionAnimation = optionalValue(actionAnimation),
actions = optionalValue(actions),
alignmentHorizontal = optionalValue(alignmentHorizontal),
alignmentVertical = optionalValue(alignmentVertical),
alpha = optionalValue(alpha),
appearanceAnimation = optionalValue(appearanceAnimation),
aspect = optionalValue(aspect),
background = optionalValue(background),
border = optionalValue(border),
columnSpan = optionalValue(columnSpan),
contentAlignmentHorizontal = optionalValue(contentAlignmentHorizontal),
contentAlignmentVertical = optionalValue(contentAlignmentVertical),
doubletapActions = optionalValue(doubletapActions),
extensions = optionalValue(extensions),
filters = optionalValue(filters),
focus = optionalValue(focus),
height = optionalValue(height),
highPriorityPreviewShow = optionalValue(highPriorityPreviewShow),
id = optionalValue(id),
imageUrl = optionalValue(imageUrl),
longtapActions = optionalValue(longtapActions),
margins = optionalValue(margins),
paddings = optionalValue(paddings),
placeholderColor = optionalValue(placeholderColor),
preloadRequired = optionalValue(preloadRequired),
preview = optionalValue(preview),
rowSpan = optionalValue(rowSpan),
scale = optionalValue(scale),
selectedActions = optionalValue(selectedActions),
tintColor = optionalValue(tintColor),
tintMode = optionalValue(tintMode),
tooltips = optionalValue(tooltips),
transform = optionalValue(transform),
transitionChange = optionalValue(transitionChange),
transitionIn = optionalValue(transitionIn),
transitionOut = optionalValue(transitionOut),
transitionTriggers = optionalValue(transitionTriggers),
visibility = optionalValue(visibility),
visibilityAction = optionalValue(visibilityAction),
visibilityActions = optionalValue(visibilityActions),
width = optionalValue(width),
))
}
fun CardContext.divImage(
imageUrl: ValueProperty,
accessibility: ValueProperty? = null,
action: ValueProperty? = null,
actionAnimation: ValueProperty? = null,
actions: ValueProperty>? = null,
alignmentHorizontal: ValueProperty? = null,
alignmentVertical: ValueProperty? = null,
alpha: ValueProperty? = null,
appearanceAnimation: ValueProperty? = null,
aspect: ValueProperty? = null,
background: ValueProperty>? = null,
border: ValueProperty? = null,
columnSpan: ValueProperty? = null,
contentAlignmentHorizontal: ValueProperty? = null,
contentAlignmentVertical: ValueProperty? = null,
doubletapActions: ValueProperty>? = null,
extensions: ValueProperty>? = null,
filters: ValueProperty>? = null,
focus: ValueProperty? = null,
height: ValueProperty? = null,
highPriorityPreviewShow: ValueProperty? = null,
id: ValueProperty? = null,
longtapActions: ValueProperty>? = null,
margins: ValueProperty? = null,
paddings: ValueProperty? = null,
placeholderColor: ValueProperty? = null,
preloadRequired: ValueProperty? = null,
preview: ValueProperty? = null,
rowSpan: ValueProperty? = null,
scale: ValueProperty? = null,
selectedActions: ValueProperty>? = null,
tintColor: ValueProperty? = null,
tintMode: ValueProperty? = null,
tooltips: ValueProperty>? = null,
transform: ValueProperty? = null,
transitionChange: ValueProperty? = null,
transitionIn: ValueProperty? = null,
transitionOut: ValueProperty? = null,
transitionTriggers: ValueProperty>? = null,
visibility: ValueProperty? = null,
visibilityAction: ValueProperty? = null,
visibilityActions: ValueProperty>? = null,
width: ValueProperty? = null,
): DivImage {
return DivImage(
accessibility = accessibility,
action = action,
actionAnimation = actionAnimation,
actions = actions,
alignmentHorizontal = alignmentHorizontal,
alignmentVertical = alignmentVertical,
alpha = alpha,
appearanceAnimation = appearanceAnimation,
aspect = aspect,
background = background,
border = border,
columnSpan = columnSpan,
contentAlignmentHorizontal = contentAlignmentHorizontal,
contentAlignmentVertical = contentAlignmentVertical,
doubletapActions = doubletapActions,
extensions = extensions,
filters = filters,
focus = focus,
height = height,
highPriorityPreviewShow = highPriorityPreviewShow,
id = id,
imageUrl = imageUrl,
longtapActions = longtapActions,
margins = margins,
paddings = paddings,
placeholderColor = placeholderColor,
preloadRequired = preloadRequired,
preview = preview,
rowSpan = rowSpan,
scale = scale,
selectedActions = selectedActions,
tintColor = tintColor,
tintMode = tintMode,
tooltips = tooltips,
transform = transform,
transitionChange = transitionChange,
transitionIn = transitionIn,
transitionOut = transitionOut,
transitionTriggers = transitionTriggers,
visibility = visibility,
visibilityAction = visibilityAction,
visibilityActions = visibilityActions,
width = width,
)
}
fun CardContext.divImage(
imageUrl: URI,
accessibility: DivAccessibility? = null,
action: DivAction? = null,
actionAnimation: DivAnimation? = null,
actions: List? = null,
alignmentHorizontal: DivAlignmentHorizontal? = null,
alignmentVertical: DivAlignmentVertical? = null,
alpha: Double? = null,
appearanceAnimation: DivFadeTransition? = null,
aspect: DivAspect? = null,
background: List? = null,
border: DivBorder? = null,
columnSpan: Int? = null,
contentAlignmentHorizontal: DivAlignmentHorizontal? = null,
contentAlignmentVertical: DivAlignmentVertical? = null,
doubletapActions: List? = null,
extensions: List? = null,
filters: List? = null,
focus: DivFocus? = null,
height: DivSize? = null,
highPriorityPreviewShow: BoolInt? = null,
id: String? = null,
longtapActions: List? = null,
margins: DivEdgeInsets? = null,
paddings: DivEdgeInsets? = null,
placeholderColor: Color? = null,
preloadRequired: BoolInt? = null,
preview: String? = null,
rowSpan: Int? = null,
scale: DivImageScale? = null,
selectedActions: List? = null,
tintColor: Color? = null,
tintMode: DivBlendMode? = null,
tooltips: List? = null,
transform: DivTransform? = null,
transitionChange: DivChangeTransition? = null,
transitionIn: DivAppearanceTransition? = null,
transitionOut: DivAppearanceTransition? = null,
transitionTriggers: List? = null,
visibility: DivVisibility? = null,
visibilityAction: DivVisibilityAction? = null,
visibilityActions: List? = null,
width: DivSize? = null,
): DivImage {
return DivImage(
accessibility = optionalValue(accessibility),
action = optionalValue(action),
actionAnimation = optionalValue(actionAnimation),
actions = optionalValue(actions),
alignmentHorizontal = optionalValue(alignmentHorizontal),
alignmentVertical = optionalValue(alignmentVertical),
alpha = optionalValue(alpha),
appearanceAnimation = optionalValue(appearanceAnimation),
aspect = optionalValue(aspect),
background = optionalValue(background),
border = optionalValue(border),
columnSpan = optionalValue(columnSpan),
contentAlignmentHorizontal = optionalValue(contentAlignmentHorizontal),
contentAlignmentVertical = optionalValue(contentAlignmentVertical),
doubletapActions = optionalValue(doubletapActions),
extensions = optionalValue(extensions),
filters = optionalValue(filters),
focus = optionalValue(focus),
height = optionalValue(height),
highPriorityPreviewShow = optionalValue(highPriorityPreviewShow),
id = optionalValue(id),
imageUrl = value(imageUrl),
longtapActions = optionalValue(longtapActions),
margins = optionalValue(margins),
paddings = optionalValue(paddings),
placeholderColor = optionalValue(placeholderColor),
preloadRequired = optionalValue(preloadRequired),
preview = optionalValue(preview),
rowSpan = optionalValue(rowSpan),
scale = optionalValue(scale),
selectedActions = optionalValue(selectedActions),
tintColor = optionalValue(tintColor),
tintMode = optionalValue(tintMode),
tooltips = optionalValue(tooltips),
transform = optionalValue(transform),
transitionChange = optionalValue(transitionChange),
transitionIn = optionalValue(transitionIn),
transitionOut = optionalValue(transitionOut),
transitionTriggers = optionalValue(transitionTriggers),
visibility = optionalValue(visibility),
visibilityAction = optionalValue(visibilityAction),
visibilityActions = optionalValue(visibilityActions),
width = optionalValue(width),
)
}