Bitwarden-app-android-iphon.../src/App/Abstractions/IDeviceActionService.cs

29 lines
1.0 KiB
C#
Raw Normal View History

2019-04-19 15:11:17 +02:00
using Bit.Core.Enums;
using System.Threading.Tasks;
2019-04-10 05:33:12 +02:00
namespace Bit.App.Abstractions
2019-04-10 05:24:03 +02:00
{
public interface IDeviceActionService
{
2019-04-19 15:11:17 +02:00
DeviceType DeviceType { get; }
2019-04-10 05:24:03 +02:00
void Toast(string text, bool longDuration = false);
bool LaunchApp(string appName);
2019-04-10 05:33:12 +02:00
Task ShowLoadingAsync(string text);
Task HideLoadingAsync();
bool OpenFile(byte[] fileData, string id, string fileName);
bool CanOpenFile(string fileName);
Task ClearCacheAsync();
2019-05-11 05:43:35 +02:00
Task SelectFileAsync();
2019-05-09 17:44:27 +02:00
Task<string> DisplayPromptAync(string title = null, string description = null, string text = null,
2019-05-16 21:54:21 +02:00
string okButtonText = null, string cancelButtonText = null, bool numericKeyboard = false);
2019-05-15 19:09:49 +02:00
void RateApp();
2019-05-17 15:45:07 +02:00
bool SupportsFaceId();
2019-05-17 18:03:35 +02:00
bool SupportsNfc();
bool SupportsCamera();
bool SupportsAutofillService();
2019-05-17 19:46:32 +02:00
int SystemMajorVersion();
string SystemModel();
2019-05-17 20:04:16 +02:00
Task<string> DisplayAlertAsync(string title, string message, string cancel, params string[] buttons);
2019-04-10 05:24:03 +02:00
}
2019-05-17 18:03:35 +02:00
}