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.
The Transferable
interface does not implement or inherit specific properties.
The Transferable
interface does not implement or inherit specific properties.
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. |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | Yes | Yes | 4 | 10
|
Yes | Yes |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | Yes | Yes | Yes | 4 | Yes | Yes | ? |
ArrayBuffer
, MessagePort
, ImageBitmap
.
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Transferable