keepass2android/src/PluginHostTest/CopyToClipboardService.cs
Philipp Crocoll 53dd47044b Plugins:
* EntryOutput is passed to CopyToClipboardService
* Modifications of EntryOutput are passed to plugins to enable actions on added fields
* PluginDatabase checks if Plugin is still installed and always updates the list of plugins (had an issue where a plugin had a request token but was not in pluginList)
* first version of QR plugin implemented
2014-05-07 06:02:56 +02:00

35 lines
630 B
C#

using System;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Widget;
using KeePassLib.Security;
namespace keepass2android
{
[Service]
public class CopyToClipboardService: Service
{
public CopyToClipboardService()
{
}
public CopyToClipboardService(IntPtr javaReference, JniHandleOwnership transfer)
: base(javaReference, transfer)
{
}
public static void CopyValueToClipboardWithTimeout(Context ctx, string text)
{
Toast.MakeText(ctx, text, ToastLength.Short).Show();
}
public override IBinder OnBind(Intent intent)
{
return null;
}
}
}