className | Specifies the Java class name (e.g. java.lang.String ). |
Construct an AndroidJavaClass from the class name.
java.lang.Class
object of that particular type.// Try to collect som Java garbage.. function Start() { var jc = new AndroidJavaClass("java.lang.System"); jc.CallStatic("gc"); }
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Start() { AndroidJavaClass jc = new AndroidJavaClass("java.lang.System"); jc.CallStatic("gc"); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Start() as void: jc as AndroidJavaClass = AndroidJavaClass('java.lang.System') jc.CallStatic('gc')
// Retrieve the manufacturer of the product/hardware. function Start() { var jc = new AndroidJavaClass("android.os.Build"); var manufacturer = jc.Get.<string>("MANUFACTURER"); }
no example available in C#
no example available in Boo