AndroidJavaObject 安卓Java对象

Inherits from IDisposable

AndroidJavaObject is the Unity representation of a generic instance of java.lang.Object.

AndroidJavaObject是Unity表示一个java.lang.Object的泛型实例。

It can be used as type-less interface to an instance of any Java class.

可以用作type-less接口来实例任意Java类。

Constructors构造器

  • AndroidJavaObject
    Construct an AndroidJavaObject based on the name of the class.
          基于类名,构造一个AndroidJavaClass。

Functions函数

  • Dispose
    IDisposable callback
          IDisposable回调函数。
  • Call
    Calls a Java method on an object (non-static).
          在对象上调用一个Java方法(非静态)。
  • CallStatic
    Call a static Java method on a class.
          调用一个静态Java方法。
  • Get.<FieldType>
    Get the value of a field in an object (non-static).
          获取一个对象上的字段值(非静态)。
  • Set.<FieldType>
    Set the value of a field in an object (non-static).
          在一个对象上设置字段的值(非静态)。
  • GetStatic.<FieldType>
    Get the value of a static field in an object type.
          获取一个对象类型上的静态字段值。
  • SetStatic.<FieldType>
    Set the value of a static field in an object type.
          设置一个对象类型上的静态字段值。
  • GetRawObject
    Retrieve the raw jobject pointer to the Java object.
          检索原始对象指向Java对象。
  • GetRawClass
    Retrieve the raw jclass pointer to the Java class;
          检索原始类指向Java对象。
  • Call.<ReturnType>
    Call a Java method on an object.
          在一个对象上,调用一个Java方法。
  • CallStatic.<ReturnType>
    Call a static Java method on a class.
          在一个类上,调用一个静态Java方法。
,