getclipboard Synchronous
Read the text currently on the Android clipboard. Use it to import a code or settings string the user copied from another app.
Luau
getclipboard() -> stringParameters
This function takes no arguments.
Returns
stringThe clipboard text, or an empty string when the clipboard is empty, holds no text, or cannot be read.
Usage notes
setclipboard applies its value about 50 milliseconds later, so read the clipboard after a short wait when you have just set it yourself.
Example
Luau
local pasted = getclipboard()
if pasted ~= "" then
print("Clipboard holds", #pasted, "characters")
end