public class BaseJavaModule.JavaMethod extends java.lang.Object implements NativeModule.NativeMethod
| Constructor and Description |
|---|
JavaMethod(java.lang.reflect.Method method,
boolean isSync) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.reflect.Method |
getMethod() |
java.lang.String |
getSignature() |
java.lang.String |
getType()
Determines how the method is exported in JavaScript:
METHOD_TYPE_ASYNC for regular methods
METHOD_TYPE_PROMISE for methods that return a promise object to the caller.
|
void |
invoke(CatalystInstance catalystInstance,
ExecutorToken executorToken,
ReadableNativeArray parameters) |
public java.lang.reflect.Method getMethod()
public java.lang.String getSignature()
public void invoke(CatalystInstance catalystInstance, ExecutorToken executorToken, ReadableNativeArray parameters)
invoke in interface NativeModule.NativeMethodpublic java.lang.String getType()
getType in interface NativeModule.NativeMethod