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.

Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Свойство Type Description
javaInterface AndroidJavaClass

Méthodes publiques

Méthode 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 méthode

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

AndroidJavaProxy() public méthode

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

Invoke() public méthode

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.
Résultat AndroidJavaObject

Invoke() public méthode

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.
Résultat AndroidJavaObject

Property Details

javaInterface public_oe property

Java interface implemented by the proxy.

public AndroidJavaClass,UnityEngine javaInterface
Résultat AndroidJavaClass