mirror of
https://github.com/bitwarden/mobile
synced 2025-12-10 13:23:39 +00:00
Clipboard service and view site page
This commit is contained in:
15
src/Android/Services/ClipboardService.cs
Normal file
15
src/Android/Services/ClipboardService.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user