Answers for "how to copy text in kotlin"

0

kotlin copy text android 10

fun copyText(text:String){
            val myClipboard = context.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
            val myClip: ClipData = ClipData.newPlainText("Label", text)
            myClipboard.setPrimaryClip(myClip)
        }
Posted by: Guest on September-01-2020

Code answers related to "how to copy text in kotlin"

Browse Popular Code Answers by Language