18 lines
368 B
C#
18 lines
368 B
C#
using MauiApp2.Shared.Services;
|
|
|
|
namespace MauiApp2.Services
|
|
{
|
|
public class FormFactor : IFormFactor
|
|
{
|
|
public string GetFormFactor()
|
|
{
|
|
return DeviceInfo.Idiom.ToString();
|
|
}
|
|
|
|
public string GetPlatform()
|
|
{
|
|
return DeviceInfo.Platform.ToString() + " - " + DeviceInfo.VersionString;
|
|
}
|
|
}
|
|
}
|