mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Add instruction to wrap nested classes in JavaClassWrapper
(cherry picked from commit 956db92c65
)
This commit is contained in:
parent
6d45d6265b
commit
a6c6104ae7
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@
|
||||||
<param index="0" name="name" type="String" />
|
<param index="0" name="name" type="String" />
|
||||||
<description>
|
<description>
|
||||||
Wraps a class defined in Java, and returns it as a [JavaClass] [Object] type that Godot can interact with.
|
Wraps a class defined in Java, and returns it as a [JavaClass] [Object] type that Godot can interact with.
|
||||||
|
When wrapping inner (nested) classes, use [code]$[/code] instead of [code].[/code] to separate them. For example, [code]JavaClassWrapper.wrap("android.view.WindowManager$LayoutParams")[/code] wraps the [b]WindowManager.LayoutParams[/b] class.
|
||||||
[b]Note:[/b] This method only works on Android. On every other platform, this method does nothing and returns an empty [JavaClass].
|
[b]Note:[/b] This method only works on Android. On every other platform, this method does nothing and returns an empty [JavaClass].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue