Search Docs
Loading...
Skip to content

Interface: ClipboardHandler

Methods#

canHandle()#

canHandle(snapshot): boolean;

Synchronous. May inspect content, such as an SVG sniff on text/plain.

Parameters#

Parameter Type
snapshot ClipboardSnapshot

Returns#

boolean


handle()#

handle(snapshot, context): Promise<boolean>;

Resolves false or rejects to pass the snapshot to the next handler.

Parameters#

Parameter Type
snapshot ClipboardSnapshot
context ClipboardHandlerContext

Returns#

Promise<boolean>

Properties#

Property Type Description
id string For example ly.img.clipboard.cesdkBlocks.
priority number Higher runs first. Equal priorities run in registration order.