web.d.ts 484 B

123456789101112131415
  1. import { WebPlugin } from '@capacitor/core';
  2. import type { ClipboardPlugin, ReadResult, WriteOptions } from './definitions';
  3. declare global {
  4. interface Clipboard {
  5. read(): Promise<any>;
  6. write(data: any[]): Promise<any>;
  7. }
  8. }
  9. export declare class ClipboardWeb extends WebPlugin implements ClipboardPlugin {
  10. write(options: WriteOptions): Promise<void>;
  11. read(): Promise<ReadResult>;
  12. private readText;
  13. private writeText;
  14. private _getBlobData;
  15. }