Skip to content

Commit db75f8f

Browse files
committed
Merge pull request godotengine#104364 from syntaxerror247/javaclasswrapper-docs
Add instruction to wrap nested classes in `JavaClassWrapper`
2 parents 60c706e + 956db92 commit db75f8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/classes/JavaClassWrapper.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
<param index="0" name="name" type="String" />
3333
<description>
3434
Wraps a class defined in Java, and returns it as a [JavaClass] [Object] type that Godot can interact with.
35+
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.
3536
[b]Note:[/b] This method only works on Android. On every other platform, this method does nothing and returns an empty [JavaClass].
3637
</description>
3738
</method>

0 commit comments

Comments
 (0)