mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 15:45:42 +03:00
15 lines
399 B
C#
15 lines
399 B
C#
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;
|
|
}
|
|
}
|
|
}
|