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.
The ArrayBuffer, MessagePort and ImageBitmap 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 Standard The definition of 'Transferable' in that specification. |
Living Standard | No change from HTML5, though the new CanvasProxy does implement Transferable. |
| HTML5 The definition of 'Transferable' in that specification. |
Recommendation | Initial definition. |
Browser compatibility
| Desktop | Mobile | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Basic support | Chrome Full support Yes | Edge Full support Yes | Firefox Full support 4 | IE
Full support
10
| Opera Full support Yes | Safari Full support Yes | WebView Android Full support Yes | Chrome Android Full support Yes | Edge Mobile Full support Yes | Firefox Android Full support 4 | Opera Android Full support Yes | Safari iOS Full support Yes | Samsung Internet Android ? |
Legend
- Full support
- Full support
- Compatibility unknown
- Compatibility unknown
- See implementation notes.
- See implementation notes.
See also
- Interfaces implementing it:
ArrayBuffer,MessagePort,ImageBitmap.