mirror of
https://github.com/bitwarden/mobile
synced 2025-12-14 07:13:33 +00:00
* [PM-3393] Log user out on biometric exceed attempts * [PM-3393] Move duplicated code to AppHelpers * [PM-3393] Update copy on new pop up * [PM-3393] Moved VaultTimeoutService to LazyResolve. * [PM-3382] Change IVaultTimeoutService for messaging * [PM-3393] Use default values.
36 lines
1.7 KiB
C#
36 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Bit.Core.Enums;
|
|
|
|
namespace Bit.Core.Abstractions
|
|
{
|
|
public interface IPlatformUtilsService
|
|
{
|
|
string GetApplicationVersion();
|
|
/// <summary>
|
|
/// Gets the device type on the server enum
|
|
/// </summary>
|
|
DeviceType GetDevice();
|
|
string GetDeviceString();
|
|
ClientType GetClientType();
|
|
bool IsSelfHost();
|
|
bool IsViewOpen();
|
|
void LaunchUri(string uri, Dictionary<string, object> options = null);
|
|
Task<string> ReadFromClipboardAsync(Dictionary<string, object> options = null);
|
|
Task<bool> ShowDialogAsync(string text, string title = null, string confirmText = null,
|
|
string cancelText = null, string type = null);
|
|
Task<bool> ShowPasswordDialogAsync(string title, string body, Func<string, Task<bool>> validator);
|
|
Task<(string password, bool valid)> ShowPasswordDialogAndGetItAsync(string title, string body, Func<string, Task<bool>> validator);
|
|
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);
|
|
void ShowToastForCopiedValue(string valueNameCopied);
|
|
bool SupportsFido2();
|
|
bool SupportsDuo();
|
|
Task<bool> SupportsBiometricAsync();
|
|
Task<bool> IsBiometricIntegrityValidAsync(string bioIntegritySrcKey = null);
|
|
Task<bool> AuthenticateBiometricAsync(string text = null, string fallbackText = null, Action fallback = null, bool logOutOnTooManyAttempts = false);
|
|
long GetActiveTime();
|
|
}
|
|
}
|