FunctionCallHandler

class FunctionCallHandler(val processor: (JSONObject, Type) -> Any?) : InvocationHandler

A handler for function calls that processes the request and returns the result. Used in Java/Kotlin proxies.

Parameters

processor

A lambda function that takes a JSONObject request and a Type and returns the result of the function call.

Constructors

Link copied to clipboard
constructor(processor: (JSONObject, Type) -> Any?)

Properties

Link copied to clipboard
val processor: (JSONObject, Type) -> Any?

Functions

Link copied to clipboard
open operator override fun invoke(proxy: Any, method: Method, args: Array<out Any>?): Any?