• Listen to clipboard update event and get the updated types in a callback. This listener tells you what types of data are updated. This relies on listenToClipboard() who emits events this function listens to. You can run listenToClipboard() or startListening() before calling this function. When HTML is copied, this will be passed to callback: {files: false, image: false, html: true, rtf: false, text: true}

    Parameters

    • cb: ((updatedTypes: UpdatedTypes) => void)
        • (updatedTypes): void
        • Parameters

          • updatedTypes: UpdatedTypes

          Returns void

    Returns Promise<UnlistenFn>