Primo sviluppo sincronizzazione e migliorie ui
This commit is contained in:
15
Template.Maui/Core/Services/FormFactor.cs
Normal file
15
Template.Maui/Core/Services/FormFactor.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Template.Shared.Core.Interface;
|
||||
|
||||
namespace Template.Maui.Core.Services;
|
||||
|
||||
public class FormFactor : IFormFactor
|
||||
{
|
||||
public string GetFormFactor()
|
||||
{
|
||||
return DeviceInfo.Idiom.ToString();
|
||||
}
|
||||
public string GetPlatform()
|
||||
{
|
||||
return DeviceInfo.Platform.ToString() + " - " + DeviceInfo.VersionString;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user