mirror of
https://github.com/bitwarden/mobile
synced 2025-12-13 06:43:17 +00:00
19 lines
658 B
C#
19 lines
658 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Bit.Core.Abstractions
|
|
{
|
|
public interface IVaultTimeoutService
|
|
{
|
|
Task CheckVaultTimeoutAsync();
|
|
Task ClearAsync(string userId = null);
|
|
Task<bool> IsLockedAsync(string userId = null);
|
|
Task<Tuple<bool, bool>> IsPinLockSetAsync();
|
|
Task<bool> IsBiometricLockSetAsync();
|
|
Task LockAsync(bool allowSoftLock = false, bool userInitiated = false, string userId = null);
|
|
Task LogOutAsync(string userId = null);
|
|
Task SetVaultTimeoutOptionsAsync(int? timeout, string action);
|
|
Task<int?> GetVaultTimeout(string userId = null);
|
|
}
|
|
}
|