Skip to content

Commit 525aa0a

Browse files
committed
Merge pull request #100939 from Faless/fix/js_singleton_cb_docs
[Web] Clarify JavaScriptBridge callback requirements
2 parents 33dc3bf + 198dd40 commit 525aa0a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/classes/JavaScriptBridge.xml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<param index="0" name="callable" type="Callable" />
1717
<description>
1818
Creates a reference to a [Callable] that can be used as a callback by JavaScript. The reference must be kept until the callback happens, or it won't be called at all. See [JavaScriptObject] for usage.
19+
[b]Note:[/b] The callback function must take exactly one [Array] argument, which is going to be the JavaScript [url=https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments]arguments object[/url] converted to an array.
1920
</description>
2021
</method>
2122
<method name="create_object" qualifiers="vararg">

0 commit comments

Comments
 (0)