mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
* PM-2320 Added new view for block autofill URIs on Android * PM-2320 Fix formatting * PM-2320 Improved validations on block autofill uris * PM-2320 Improved autofill block uris placeholder colors on different themes
46 lines
1.7 KiB
C#
46 lines
1.7 KiB
C#
using System.Threading.Tasks;
|
|
using Bit.App.Utilities.Prompts;
|
|
using Bit.Core.Enums;
|
|
using Bit.Core.Models;
|
|
|
|
namespace Bit.App.Abstractions
|
|
{
|
|
public interface IDeviceActionService
|
|
{
|
|
string DeviceUserAgent { get; }
|
|
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 LaunchApp(string appName);
|
|
void RateApp();
|
|
void OpenAccessibilitySettings();
|
|
void OpenAccessibilityOverlayPermissionSettings();
|
|
void OpenAutofillSettings();
|
|
long GetActiveTime();
|
|
void CloseMainApp();
|
|
float GetSystemFontSizeScale();
|
|
Task OnAccountSwitchCompleteAsync();
|
|
Task SetScreenCaptureAllowedAsync();
|
|
void OpenAppSettings();
|
|
void CloseExtensionPopUp();
|
|
}
|
|
}
|