Version: 2022.3
언어: 한국어
public AndroidJavaObject Invoke (string methodName, object[] args);
public AndroidJavaObject Invoke (string methodName, AndroidJavaObject[] javaArgs);

파라미터

methodName Name of the invoked java method.
args Arguments passed from the java vm - converted into AndroidJavaObject, AndroidJavaClass or a primitive.
javaArgs Arguments passed from the java vm - all objects are represented by AndroidJavaObject, int for instance is represented by a java.lang.Integer object.

설명

Called by the java vm whenever a method is invoked on the java proxy interface. You can override this to run special code on method invocation, or you can leave the implementation as is, and leave the default behavior which is to look for c# methods matching the signature of the java method.


public IntPtr Invoke (string methodName, IntPtr javaArgs);

파라미터

methodName Name of the invoked java method.
javaArgs A reference to Java object array with arguments passed to this method.

반환

IntPtr A local reference to Java object, representing the return value.

설명

Called by the java vm whenever a method is invoked on the java proxy interface. You can override this to run special code on method invocation, or you can leave the implementation as is, which will convert argument array to AndroidJavaObject[] and call other Invoke.