Clipboard supports to put multiple types of data simultaneously, so that other apps can pick the one it can handle. For a usage of this, see #4825.
The new APIs will be compatbile with existings:
clip.set(clipboardDataList): clipboardDataList is a list of objects containing type, raw and data as existing API
clip.get(clipboardDataList): clipboardDataList is same as clip.set without data property. It returns a list of clipboardData as well.
Clipboard supports to put multiple types of data simultaneously, so that other apps can pick the one it can handle. For a usage of this, see #4825.
The new APIs will be compatbile with existings:
clip.set(clipboardDataList):clipboardDataListis a list of objects containingtype,rawanddataas existing APIclip.get(clipboardDataList):clipboardDataListis same asclip.setwithoutdataproperty. It returns a list ofclipboardDataas well.