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
Post a Comment