{{ DomRef() }}
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 isn't any object of this type. It also doesn't define any method or property: it is merely a tag indicating objects that can be used in specific conditions, like to be transfered to a {{domxref("Worker")}} using the {{domxref("Worker.postMessage()")}} method.
The {{domxref("ArrayBuffer")}} and {{domxref("MessagePort")}} implement it.
Properties
The Transferable
interface doesn't implement nor inherit specific properties.
Methods
The Transferable
interface doesn't implement nor inherit specific properties.
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('HTML WHATWG', "infrastructure.html#transferable-objects", "Transferable")}} | {{Spec2('HTML WHATWG')}} | No change from {{SpecName("HTML5 W3C")}}, though the new {{domxref("CanvasProxy")}} does implement Transferable . |
{{SpecName('HTML5 W3C', "infrastructure.html#transferable-objects", "Transferable")}} | {{Spec2('HTML5 W3C')}} | Initial definition. |
Browser compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatGeckoDesktop("2.0")}} | 10.0 [1] | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |
MessagePort |
{{CompatUnknown}} | {{CompatNo}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatGeckoMobile("2.0")}} | 10.0 [1] | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |
MessagePort |
{{CompatUnknown}} | {{CompatNo}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
[1] Internet Explorer 10 only accepts a single {{domxref("Transferable")}} object as parameter, but not an array.
See also
- Interfaces implementing it: {{domxref("ArrayBuffer")}}, {{domxref("MessagePort")}}.