2019-05-16 23:31:58 +03:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2019-04-10 17:49:24 +03:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Bit.Core.Enums;
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Abstractions
|
|
|
|
|
{
|
|
|
|
|
public interface IPlatformUtilsService
|
|
|
|
|
{
|
|
|
|
|
string IdentityClientId { get; }
|
|
|
|
|
|
|
|
|
|
Task CopyToClipboardAsync(string text, Dictionary<string, object> options = null);
|
|
|
|
|
string GetApplicationVersion();
|
|
|
|
|
DeviceType GetDevice();
|
|
|
|
|
string GetDeviceString();
|
|
|
|
|
bool IsDev();
|
|
|
|
|
bool IsSelfHost();
|
|
|
|
|
bool IsViewOpen();
|
|
|
|
|
void LaunchUri(string uri, Dictionary<string, object> options = null);
|
|
|
|
|
int? LockTimeout();
|
|
|
|
|
Task<string> ReadFromClipboardAsync(Dictionary<string, object> options = null);
|
|
|
|
|
void SaveFile();
|
|
|
|
|
Task<bool> ShowDialogAsync(string text, string title = null, string confirmText = null,
|
|
|
|
|
string cancelText = null, string type = null);
|
|
|
|
|
void ShowToast(string type, string title, string text, Dictionary<string, object> options = null);
|
|
|
|
|
void ShowToast(string type, string title, string[] text, Dictionary<string, object> options = null);
|
|
|
|
|
bool SupportsU2f();
|
2019-04-18 16:45:31 +03:00
|
|
|
|
bool SupportsDuo();
|
2019-05-16 23:31:58 +03:00
|
|
|
|
Task<bool> SupportsFingerprintAsync();
|
|
|
|
|
Task<bool> AuthenticateFingerprintAsync(string text = null, Action fallback = null);
|
2019-04-10 17:49:24 +03:00
|
|
|
|
}
|
|
|
|
|
}
|