用户工具

站点工具


侧边栏

script:unityengine:classes:androidjavaproxy:androidjavaproxy.invoke

AndroidJavaProxy.Invoke 调用

JavaScript ⇒ public function Invoke(methodName: string, args: object[]): AndroidJavaObject;
JavaScript ⇒public function Invoke(methodName: string, javaArgs: AndroidJavaObject[]): AndroidJavaObject;
C# ⇒ public AndroidJavaObject Invoke(string methodName, object[] args);
C# ⇒ public AndroidJavaObject Invoke(string methodName, AndroidJavaObject[] javaArgs);

Parameters 参数

methodNameName of the invoked java method.
调用的Java方法的名称。
argsArguments passed from the java vm - converted into AndroidJavaObject, AndroidJavaClass or a primitive.
从java VN中传递的参数-转换为 AndroidJavaObject, AndroidJavaClass 或者基元。
javaArgsArguments passed from the java vm - all objects are represented by AndroidJavaObject, int for instance is represented by a java.lang.Integer object.
从java VN中传递的参数-所有对象表示 AndroidJavaObject,整型实例表示java.lang.Integer对象。

Description 描述

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 invokation, 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.

每当一个方法在Java代理接口由Java虚拟机被调用时,你可以重写该方法来运行特定代码,或者你可以保留默认行为,这将查找C#方法中与Java签名相匹配的方法。

androidjavaproxy

script/unityengine/classes/androidjavaproxy/androidjavaproxy.invoke.txt · 最后更改: 2016/08/02 05:33 (外部编辑)