MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / copyToClipboard

Function copyToClipboard

packages/core/utils/index.ios.ts:122–128  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

120}
121
122export function copyToClipboard(value: string) {
123 try {
124 UIPasteboard.generalPasteboard.setValueForPasteboardType(value, kUTTypePlainText);
125 } catch (err) {
126 console.log(err);
127 }
128}

Callers

nothing calls this directly

Calls 1

logMethod · 0.45

Tested by

no test coverage detected