com.yandex.div.evaluable.FunctionProvider.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of div-evaluable Show documentation
Show all versions of div-evaluable 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.
package com.yandex.div.evaluable
/**
* Interface for providing functions.
*/
interface FunctionProvider {
fun get(name: String, args: List): Function
fun getMethod(name: String, args: List): Function
companion object {
@JvmField
val STUB = object : FunctionProvider {
override fun get(name: String, args: List) = Function.STUB
override fun getMethod(name: String, args: List): Function = Function.STUB
}
}
}