AnalyticsVersionInfo
Namespace: XPlat.Device.Profile
Provides version information about the device family.
public class AnalyticsVersionInfo : IAnalyticsVersionInfoSupported platforms
Platform
Version
Xamarin.Android
9.0
Xamarin.iOS
1.0
UWP
10.0.16299
Constructors
AnalyticsVersionInfo(Windows.System.Profile.AnalyticsVersionInfo) - Windows
Parameters
versionInfo (Windows.System.Profile.AnalyticsVersionInfo)
The Windows AnalyticsVersionInfo reference to retrieve relevant information from.
Properties
DeviceFamily
Gets a string that represents the type of device the application is running on.
public string DeviceFamily { get; }Remarks
The DeviceFamily property returns the following values for the following platforms:
Android
Android.Auto- When the current UI mode is CarAndroid.Desktop- When the current UI mode is DeskAndroid.Mobile- When the device type is detected as phoneAndroid.Tablet- When the device type is detected as tabletAndroid.TV- When the current UI mode is TelevisionAndroid.VR- When the current UI mode is VR HeadsetAndroid.Wear- When the current UI mode is Watch
iOS
Apple.CarPlay- When the current UI mode is CarPlayApple.iPhone- When the current UI mode is PhoneApple.iPad- When the current UI mode is PadApple.TV- When the current UI mode is TV
Windows
Windows.Desktop- When the current UI mode is DesktopWindows.Mobile- When the current UI mode is MobileWindows.Team- When the current UI mode is Surface HubWindows.IoT- When the current UI mode is IoTWindows.Xbox- When the current UI mode is XboxWindows.Holographic- When the current UI mode is Holographic
DeviceFamilyVersion
Gets the version within the device family.
public string DeviceFamilyVersion { get; }Last updated