mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
platform utils init
This commit is contained in:
@@ -22,7 +22,12 @@ namespace Bit.App.Services
|
||||
public MobilePlatformUtilsService(IDeviceActionService deviceActionService)
|
||||
{
|
||||
_deviceActionService = deviceActionService;
|
||||
}
|
||||
|
||||
public string IdentityClientId => "mobile";
|
||||
|
||||
public void Init()
|
||||
{
|
||||
MessagingCenter.Subscribe<Xamarin.Forms.Application, Tuple<int, bool>>(
|
||||
Xamarin.Forms.Application.Current, "ShowDialogResolve", (sender, details) =>
|
||||
{
|
||||
@@ -51,8 +56,6 @@ namespace Bit.App.Services
|
||||
});
|
||||
}
|
||||
|
||||
public string IdentityClientId => "mobile";
|
||||
|
||||
public Core.Enums.DeviceType GetDevice()
|
||||
{
|
||||
return Device.RuntimePlatform == Device.iOS ? Core.Enums.DeviceType.iOS : Core.Enums.DeviceType.Android;
|
||||
|
||||
Reference in New Issue
Block a user