C# 클래스 UnityEngine.AndroidJavaProxy

This class can be used to implement any java interface. Any java vm method invocation matching the interface on the proxy object will automatically be passed to the c# implementation.

파일 보기 프로젝트 열기: CarlosHBC/UnityDecompiled 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
javaInterface AndroidJavaClass

공개 메소드들

메소드 설명
AndroidJavaProxy ( AndroidJavaClass javaInterface ) : System

AndroidJavaProxy ( string javaInterface ) : System

Invoke ( string methodName, AndroidJavaObject javaArgs ) : AndroidJavaObject

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.

Invoke ( string methodName, object args ) : AndroidJavaObject

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.

메소드 상세

AndroidJavaProxy() 공개 메소드

public AndroidJavaProxy ( AndroidJavaClass javaInterface ) : System
javaInterface AndroidJavaClass Java interface to be implemented by the proxy.
리턴 System

AndroidJavaProxy() 공개 메소드

public AndroidJavaProxy ( string javaInterface ) : System
javaInterface string Java interface to be implemented by the proxy.
리턴 System

Invoke() 공개 메소드

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.

public Invoke ( string methodName, AndroidJavaObject javaArgs ) : AndroidJavaObject
methodName string Name of the invoked java method.
javaArgs AndroidJavaObject Arguments passed from the java vm - all objects are represented by AndroidJavaObject, int for instance is represented by a java.lang.Integer object.
리턴 AndroidJavaObject

Invoke() 공개 메소드

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.

public Invoke ( string methodName, object args ) : AndroidJavaObject
methodName string Name of the invoked java method.
args object Arguments passed from the java vm - converted into AndroidJavaObject, AndroidJavaClass or a primitive.
리턴 AndroidJavaObject

프로퍼티 상세

javaInterface 공개적으로 프로퍼티

Java interface implemented by the proxy.

public AndroidJavaClass,UnityEngine javaInterface
리턴 AndroidJavaClass