mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-12-22 15:06:26 +01:00
23 lines
No EOL
747 B
C#
23 lines
No EOL
747 B
C#
using ShareeBike.Model.Device;
|
|
using Xamarin.Essentials;
|
|
using Xamarin.Forms;
|
|
|
|
[assembly: Dependency(typeof(ShareeBike.Droid.Model.Device.Device))]
|
|
namespace ShareeBike.Droid.Model.Device
|
|
{
|
|
public class Device : ISmartDevice
|
|
{
|
|
public string Manufacturer => DeviceInfo.Manufacturer;
|
|
|
|
public string Model => DeviceInfo.Model;
|
|
|
|
public DevicePlatform Platform => DeviceInfo.Platform;
|
|
|
|
public string VersionText => DeviceInfo.VersionString;
|
|
|
|
/// <summary> Gets unitque device identifier. </summary>
|
|
/// <returns>Gets the identifies specifying device.</returns>
|
|
public string Identifier
|
|
=> Android.Provider.Settings.Secure.GetString(Android.App.Application.Context.ContentResolver, Android.Provider.Settings.Secure.AndroidId);
|
|
}
|
|
} |