Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
55 lines
2.1 KiB
C#
55 lines
2.1 KiB
C#
|
using System.Threading.Tasks;
|
|||
using Bit.App.Models;
|
||||
using Bit.App.Utilities.Prompts;
|
||||
|
using Bit.Core.Enums;
|
|||
using Bit.Core.Models;
|
||||
|
|
|||
namespace Bit.App.Abstractions
|
||||
|
{
|
|||
public interface IDeviceActionService
|
||||
{
|
||||
|
string DeviceUserAgent { get; }
|
|||
Core.Enums.DeviceType DeviceType { get; }
|
||||
int SystemMajorVersion();
|
||||
string SystemModel();
|
||||
string GetBuildNumber();
|
||||
|
||||
|
void Toast(string text, bool longDuration = false);
|
|||
|
Task ShowLoadingAsync(string text);
|
|||
Task HideLoadingAsync();
|
||||
|
Task<string> DisplayPromptAync(string title = null, string description = null, string text = null,
|
|||
|
string okButtonText = null, string cancelButtonText = null, bool numericKeyboard = false,
|
|||
bool autofocus = true, bool password = false);
|
||||
Task<ValidatablePromptResponse?> DisplayValidatablePromptAsync(ValidatablePromptConfig config);
|
||||
Task<string> DisplayAlertAsync(string title, string message, string cancel, params string[] buttons);
|
||||
Task<string> DisplayActionSheetAsync(string title, string cancel, string destruction, params string[] buttons);
|
||||
|
||||
|
bool SupportsFaceBiometric();
|
|||
Task<bool> SupportsFaceBiometricAsync();
|
||||
|
bool SupportsNfc();
|
|||
bool SupportsCamera();
|
||||
bool SupportsFido2();
|
||||
bool SupportsCredentialProviderService();
|
||||
bool SupportsAutofillServices();
|
||||
bool SupportsInlineAutofill();
|
||||
bool SupportsDrawOver();
|
||||
|
||||
bool LaunchApp(string appName);
|
||||
void RateApp();
|
||||
|
void OpenAccessibilitySettings();
|
|||
void OpenAccessibilityOverlayPermissionSettings();
|
||||
void OpenCredentialProviderSettings();
|
||||
|
void OpenAutofillSettings();
|
|||
long GetActiveTime();
|
||||
Task ExecuteFido2CredentialActionAsync(AppOptions appOptions);
|
||||
|
void CloseMainApp();
|
|||
Fixed some Large Font Accessibility issues on Vault and Send screens for Icons Display #1774 (#1785)
|
float GetSystemFontSizeScale();
|
|||
Task OnAccountSwitchCompleteAsync();
|
||||
Task SetScreenCaptureAllowedAsync();
|
||||
void OpenAppSettings();
|
||||
void CloseExtensionPopUp();
|
||||
string GetAutofillAccessibilityDescription();
|
||||
string GetAutofillDrawOverDescription();
|
||||
|
}
|
|||
|
}
|