xamarin.ios - How to add copy paste functionality in xamarin (for both android and ios) -


in project, have 1 entry containing link , 1 "copy" button. on "copy" button want copy link can paste anywhere in browser or in message.

use clipboard manager class.

https://developer.xamarin.com/api/type/android.content.clipboardmanager/

add text clipboard user can paste anywhere.

code :

clipboardmanager clipboard= (clipboardmanager)getsystemservice(context.clipboardservice); clipboard.text = "your text"; 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -