bitwarden-android/src/Android/Services/ClipboardService.cs

16 lines
399 B
C#
Raw Normal View History

2016-05-07 05:29:03 +03:00
using Android.Content;
using Bit.App.Abstractions;
using Xamarin.Forms;
namespace Bit.Android.Services
{
public class ClipboardService : IClipboardService
{
public void CopyToClipboard(string text)
{
var clipboardManager = (ClipboardManager)Forms.Context.GetSystemService(Context.ClipboardService);
clipboardManager.Text = text;
}
}
}