Table of Contents

Class JavaClassWrapper

Namespace
Godot
Assembly
GodotSharp.dll

The JavaClassWrapper singleton provides a way for the Godot application to send and receive data through the Java Native Interface (JNI).

Note: This singleton is only available in Android builds.

public static class JavaClassWrapper
Inheritance
JavaClassWrapper
Inherited Members

Properties

Singleton

public static JavaClassWrapperInstance Singleton { get; }

Property Value

JavaClassWrapperInstance

Methods

Wrap(string)

Wraps a class defined in Java, and returns it as a JavaClassGodotObject type that Godot can interact with.

Note: This method only works on Android. On every other platform, this method does nothing and returns an empty JavaClass.

public static JavaClass Wrap(string name)

Parameters

name string

Returns

JavaClass