Version: 2017.2
public AndroidJavaObject Invoke (string methodName, object[] args);
public AndroidJavaObject Invoke (string methodName, AndroidJavaObject[] javaArgs);

Parámetros

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.

Descripción

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.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961