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

com.cloudinary.transformation.animated.Animated.kt Maven / Gradle / Ivy

package com.cloudinary.transformation.animated

import com.cloudinary.transformation.Action
import com.cloudinary.transformation.AnimatedComponentBuilder


abstract class Animated: Action {
    companion object {
        fun edit(options: (AnimatedEdit.Builder.() -> Unit)? = null) =
            buildAnimated(AnimatedEdit.Builder(), options)
    }
}

private fun  buildAnimated(builder: T, options: (T.() -> Unit)?): Animated {
    options?.let { builder.it() }
    return builder.build() as Animated
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy