Companion

object Companion

Functions

Link copied to clipboard
fun createCallbackFunction(functionType: A_Type, callbackFunction: (argumentsTuple: A_Tuple, completion: CallbackSystem.CallbackCompletion, failure: CallbackSystem.CallbackFailure) -> Unit): A_Function

Create an A_Function from the given Callback and function A_Type.

Link copied to clipboard
fun createCallbackFunctionInJava(functionType: A_Type, callback: CallbackSystem.Callback): A_Function

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.