C# Class 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.

Mostra file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Properties

Property Type Description
javaInterface AndroidJavaClass

Public Methods

Method Description
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.

Method Details

AndroidJavaProxy() public method

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

AndroidJavaProxy() public method

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

Invoke() public method

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.
return AndroidJavaObject

Invoke() public method

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.
return AndroidJavaObject

Property Details

javaInterface public_oe property

Java interface implemented by the proxy.

public AndroidJavaClass,UnityEngine javaInterface
return AndroidJavaClass