summaryrefslogtreecommitdiffstats
path: root/doc/classes/JavaScriptBridge.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/JavaScriptBridge.xml')
-rw-r--r--doc/classes/JavaScriptBridge.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/classes/JavaScriptBridge.xml b/doc/classes/JavaScriptBridge.xml
index faf5424c47..ea3ede8857 100644
--- a/doc/classes/JavaScriptBridge.xml
+++ b/doc/classes/JavaScriptBridge.xml
@@ -60,6 +60,20 @@
Returns an interface to a JavaScript object that can be used by scripts. The [param interface] must be a valid property of the JavaScript [code]window[/code]. The callback must accept a single [Array] argument, which will contain the JavaScript [code]arguments[/code]. See [JavaScriptObject] for usage.
</description>
</method>
+ <method name="is_js_buffer">
+ <return type="bool" />
+ <param index="0" name="javascript_object" type="JavaScriptObject" />
+ <description>
+ Returns [code]true[/code] if the given [param javascript_object] is of type [url=https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer][code]ArrayBuffer[/code][/url], [url=https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView][code]DataView[/code][/url], or one of the many [url=https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray]typed array objects[/url].
+ </description>
+ </method>
+ <method name="js_buffer_to_packed_byte_array">
+ <return type="PackedByteArray" />
+ <param index="0" name="javascript_buffer" type="JavaScriptObject" />
+ <description>
+ Returns a copy of [param javascript_buffer]'s contents as a [PackedByteArray]. See also [method is_js_buffer].
+ </description>
+ </method>
<method name="pwa_needs_update" qualifiers="const">
<return type="bool" />
<description>