The Transferable
interface represents an object that can be transfered between different execution contexts, like the main thread and Web workers.
This is an abstract interface and there is no object of this type. This interface does not define any method or property; it is merely a tag indicating objects that can be used in specific conditions, such as being transfered to a Worker
using the Worker.postMessage()
method.
Note: The Transferable
interface technically no longer exists. The functionality of Transferable
objects still exists, however, but is implemented at a more fundamental level (technically speaking, using the [Transferable]
WebIDL extended attribute).
The ArrayBuffer
, MessagePort
, ImageBitmap
and OffscreenCanvas
types implement this interface.
Properties
The Transferable
interface does not implement or inherit specific properties.
Methods
The Transferable
interface does not implement or inherit specific properties.
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living StandardThe definition of 'Transferable' in that specification. | Living Standard | Replaced Transferable interface with [Transferable] Web IDL extended attribute.
|
HTML5The definition of 'Transferable' in that specification. | Recommendation | Initial definition. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Transferable
|
Chrome
Full support Yes |
Edge
Full support 12 |
Firefox
Full support 4 |
IE Full support 10 Full support 10 Notes' Internet Explorer 10 only accepts a single |
Opera
Full support Yes |
Safari
Full support Yes |
WebView Android
Full support Yes |
Chrome Android
Full support Yes |
Firefox Android
Full support 4 |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support Yes |
Legend
- Full support
- Full support
- See implementation notes.'
- See implementation notes.
See also
- Interfaces implementing it:
ArrayBuffer
,MessagePort
,ImageBitmap
.
Transferable by Mozilla Contributors is licensed under CC-BY-SA 2.5.