Class DeviceUserAgentInfo
- Namespace
- VpnHood.Core.Client.Devices.Abstractions
- Assembly
- VpnHood.Core.Client.Devices.Abstractions.dll
Represents what a browser on the device sends as its user agent, in the parts the app builds its own from.
public class DeviceUserAgentInfo
- Inheritance
-
DeviceUserAgentInfo
- Inherited Members
Remarks
Google Analytics reads the OS and the device from it.
Properties
Browser
Gets the browser's words after the parentheses, which say Mobile on a phone.
public required string Browser { get; init; }
Property Value
Model
Gets the device's model, which a browser adds in the parentheses where one does, or null.
public string? Model { get; init; }
Property Value
Platform
Gets the platform, which goes in the parentheses, as Linux; Android 14.
public required string Platform { get; init; }
Property Value
Methods
GetChromeBrowser(bool)
Gets Chrome's words after the platform, of one fixed version, Chrome 150, for every device.
public static string GetChromeBrowser(bool isMobile)
Parameters
Returns
- string
The words, as
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36.