Hi,
I have working with Email Signature. I have some HTML Design that use for Email Signature, i need to button click copy that HTML and paste in Email as a Design, In IOS its working fine using below code :
UIPasteboard pasteboard = UIPasteboard.General;
pasteboard.SetValue(new NSString(string.Empty),UIPasteboard.General.Name);
string htmlType = @"Apple Web Archive pasteboard type";
NSString htmlString = new NSString(HtmlSignature);
NSMutableDictionary resourceDictionary = new NSMutableDictionary ();
resourceDictionary.Add (new NSString ("WebResourceData"),
htmlString.Encode (NSStringEncoding.UTF8));
resourceDictionary.Add (new NSString ("WebResourceFrameName"), new
NSString (""));
resourceDictionary.Add (new NSString ("WebResourceMIMEType"), new
NSString ("text/html"));
resourceDictionary.Add (new NSString ("WebResourceTextEncodingName"),
new NSString ("UTF-8"));
resourceDictionary.Add (new NSString ("WebResourceURL"), new NSString
("about:blank"));
NSDictionary containerDictionary = NSDictionary.FromObjectsAndKeys (
new object [] {resourceDictionary},
new object [] {new NSString ("WebMainResource")});
NSDictionary htmlItem = NSDictionary.FromObjectsAndKeys (
new object [] {containerDictionary},
new object [] {htmlType});
pasteboard.AddItems (new NSDictionary [] {htmlItem});
i did not find any the solution for android. please help.
Thanks