mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 15:45:42 +03:00
20 lines
No EOL
715 B
C#
20 lines
No EOL
715 B
C#
using Bit.Core.Enums;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Bit.App.Abstractions
|
|
{
|
|
public interface IDeviceActionService
|
|
{
|
|
DeviceType DeviceType { get; }
|
|
void Toast(string text, bool longDuration = false);
|
|
bool LaunchApp(string appName);
|
|
Task ShowLoadingAsync(string text);
|
|
Task HideLoadingAsync();
|
|
bool OpenFile(byte[] fileData, string id, string fileName);
|
|
bool CanOpenFile(string fileName);
|
|
Task ClearCacheAsync();
|
|
Task SelectFileAsync();
|
|
Task<string> DisplayPromptAync(string title = null, string description = null, string text = null,
|
|
string okButtonText = null, string cancelButtonText = null);
|
|
}
|
|
} |