mirror of
https://github.com/bitwarden/mobile.git
synced 2024-09-27 03:52:57 +02:00
6f3999016f
* Supress lock and logout when showing fileswitcher on Android * convert suppress bool to delay long - move HandleVaultTimeoutAsync to vaultTimeoutService
24 lines
727 B
C#
24 lines
727 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using Bit.Core.Models.Domain;
|
|
|
|
namespace Bit.Core.Abstractions
|
|
{
|
|
public interface IVaultTimeoutService
|
|
{
|
|
EncString PinProtectedKey { get; set; }
|
|
bool BiometricLocked { get; set; }
|
|
long? DelayLockAndLogoutMs { get; set; }
|
|
|
|
Task CheckVaultTimeoutAsync();
|
|
Task ClearAsync();
|
|
Task<bool> IsLockedAsync();
|
|
Task<Tuple<bool, bool>> IsPinLockSetAsync();
|
|
Task<bool> IsBiometricLockSetAsync();
|
|
Task LockAsync(bool allowSoftLock = false, bool userInitiated = false);
|
|
Task LogOutAsync();
|
|
Task SetVaultTimeoutOptionsAsync(int? timeout, string action);
|
|
Task<int?> GetVaultTimeout();
|
|
}
|
|
}
|