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>