Version: 2023.1
言語: 日本語
public AndroidJavaObject Invoke (string methodName, object[] args);
public AndroidJavaObject Invoke (string methodName, AndroidJavaObject[] javaArgs);

パラメーター

methodName Name of the invoked java method.
args Java VM から渡された引数 - AndroidJavaObject、AndroidJavaClass、またはプリミティブに変換されたもの
javaArgs Java VM から渡される引数 - すべてのオブジェクトは AndroidJavaObject として表現され、例えば int は java.lang.Integer として表現されます。

説明

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.