mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-26 12:16:07 +01:00
user dialogs on UWP for loading
This commit is contained in:
parent
4dc388015c
commit
4ebd249356
@ -1,4 +1,5 @@
|
||||
using Bit.App.Abstractions;
|
||||
using Acr.UserDialogs;
|
||||
using Bit.App.Abstractions;
|
||||
using Bit.App.Models.Page;
|
||||
using Coding4Fun.Toolkit.Controls;
|
||||
using System;
|
||||
@ -18,6 +19,13 @@ namespace Bit.UWP.Services
|
||||
{
|
||||
public class DeviceActionService : IDeviceActionService
|
||||
{
|
||||
private readonly IUserDialogs _userDialogs;
|
||||
|
||||
public DeviceActionService(IUserDialogs userDialogs)
|
||||
{
|
||||
_userDialogs = userDialogs;
|
||||
}
|
||||
|
||||
public bool CanOpenFile(string fileName) => true;
|
||||
|
||||
public void ClearCache()
|
||||
@ -143,5 +151,20 @@ namespace Bit.UWP.Services
|
||||
IsHitTestVisible = false
|
||||
}.Show();
|
||||
}
|
||||
|
||||
public void ShowLoading(string text)
|
||||
{
|
||||
_userDialogs.ShowLoading(text, MaskType.Black);
|
||||
}
|
||||
|
||||
public void HideLoading()
|
||||
{
|
||||
_userDialogs.HideLoading();
|
||||
}
|
||||
|
||||
public Task LaunchAppAsync(string appName, Xamarin.Forms.Page page)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -188,6 +188,9 @@
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Acr.UserDialogs">
|
||||
<Version>6.5.1</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
|
||||
<Version>6.0.5</Version>
|
||||
</PackageReference>
|
||||
|
Loading…
Reference in New Issue
Block a user