mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +03:00
platform utils init
This commit is contained in:
parent
b9838ecc4e
commit
6a65b6d735
1 changed files with 5 additions and 2 deletions
|
@ -22,7 +22,12 @@ namespace Bit.App.Services
|
||||||
public MobilePlatformUtilsService(IDeviceActionService deviceActionService)
|
public MobilePlatformUtilsService(IDeviceActionService deviceActionService)
|
||||||
{
|
{
|
||||||
_deviceActionService = deviceActionService;
|
_deviceActionService = deviceActionService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string IdentityClientId => "mobile";
|
||||||
|
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
MessagingCenter.Subscribe<Xamarin.Forms.Application, Tuple<int, bool>>(
|
MessagingCenter.Subscribe<Xamarin.Forms.Application, Tuple<int, bool>>(
|
||||||
Xamarin.Forms.Application.Current, "ShowDialogResolve", (sender, details) =>
|
Xamarin.Forms.Application.Current, "ShowDialogResolve", (sender, details) =>
|
||||||
{
|
{
|
||||||
|
@ -51,8 +56,6 @@ namespace Bit.App.Services
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public string IdentityClientId => "mobile";
|
|
||||||
|
|
||||||
public Core.Enums.DeviceType GetDevice()
|
public Core.Enums.DeviceType GetDevice()
|
||||||
{
|
{
|
||||||
return Device.RuntimePlatform == Device.iOS ? Core.Enums.DeviceType.iOS : Core.Enums.DeviceType.Android;
|
return Device.RuntimePlatform == Device.iOS ? Core.Enums.DeviceType.iOS : Core.Enums.DeviceType.Android;
|
||||||
|
|
Loading…
Reference in a new issue