This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The requestPresenter() method of the Ink interface returns a Promise that fulfills with a DelegatedInkTrailPresenter object to handle rendering strokes.
requestPresenter(param)
param OptionalAn object that contains the following property:
presentationArea OptionalAn Element inside which rendering of ink strokes is confined (the element's border box, to be precise). If param is not included, or presentationArea is set to null, ink rendering is confined to the containing viewport by default.
A Promise that resolves to a DelegatedInkTrailPresenter object instance.
Error DOMException
An error is thrown and the operation is aborted if presentationArea is not a valid Element, or is not in the same document as the associated Ink object.
async function inkInit() {
const ink = navigator.ink;
let presenter = await ink.requestPresenter({ presentationArea: canvas });
// …
}
| Specification |
|---|
| Ink API> # dom-ink-requestpresenter> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
requestPresenter |
94 | 93 | No | 80 | No | 94 | No | 66 | No | 17.0 | 94 | No |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Ink/requestPresenter