create Callback Function In Java
fun createCallbackFunctionInJava(functionType: A_Type, callback: CallbackSystem.Callback): A_Function
Content copied to clipboard
Create an A_Function from the given Callback and function A_Type. Since Kotlin is actively hostile toward SAM (single abstract method) lambda conversions, this method is targeted toward use from Java callers that can simply use the lambda notation.
Return
The Avail A_Function.
Parameters
function Type
The signature of the A_Function to create.
callback
The Callback to invoke when the corresponding Avail function is invoked.