Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Clipboard

Clipboard class gives access to a systems clipboard

Hierarchy

  • Clipboard

Index

Constructors

Methods

Constructors

constructor

Methods

copy

  • copy(text: string): Promise<void>
  • copy copies a given text to the system clipboard

    Parameters

    • text: string

      The text to copy

    Returns Promise<void>

paste

  • paste(): Promise<string>
  • paste returns the current content of the system clipboard (limited to text)

    Returns Promise<string>