files/en-us/web/api/ink/requestpresenter/index.md
{{APIRef("Ink API")}}{{SeeCompatTable}}
The requestPresenter() method of the {{domxref("Ink")}} interface returns a {{jsxref("Promise")}} that fulfills with a {{domxref("DelegatedInkTrailPresenter")}} object to handle rendering strokes.
requestPresenter(param)
param {{optional_inline}}
presentationArea {{optional_inline}}
param is not included, or presentationArea is set to null, ink rendering is confined to the containing viewport by default.A {{jsxref("Promise")}} that resolves to a {{domxref("DelegatedInkTrailPresenter")}} object instance.
Error {{domxref("DOMException")}}
presentationArea is not a valid {{domxref("Element")}}, or is not in the same document as the associated {{domxref("Ink")}} object.async function inkInit() {
const ink = navigator.ink;
let presenter = await ink.requestPresenter({ presentationArea: canvas });
// …
}
{{Specifications}}
{{Compat}}