1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-10 13:23:39 +00:00
Files
mobile/src/Core/Abstractions/IClipboardService.cs
Federico Maccaroni 705b8ac12b Fix Clipboard clear after time on iOS (#1679)
* Fixed Clipboard clear after x seconds depending on what the user set. Also refactored a bit to make the Clipboard a custom service to provide a better way to handle this situation #1464

* Clear some usings #1464
2021-12-10 17:41:36 -03:00

17 lines
679 B
C#

using System.Threading.Tasks;
namespace Bit.Core.Abstractions
{
public interface IClipboardService
{
/// <summary>
/// Copies the <paramref name="text"/> to the Clipboard.
/// If <paramref name="expiresInMs"/> is set > 0 then the Clipboard will be cleared after this time in milliseconds.
/// if less than 0 then it takes the configuration that the user set in Options.
/// </summary>
/// <param name="text">Text to be copied to the Clipboard</param>
/// <param name="expiresInMs">Expiration time in milliseconds of the copied text</param>
Task CopyTextAsync(string text, int expiresInMs = -1);
}
}