Class UserAgent
Inheritance
System.Object
UserAgent
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public static class UserAgent
Properties
HttpContext
Declaration
public static ContextHelper HttpContext { get; set; }
Property Value
Type | Description |
---|---|
ContextHelper |
Methods
GetAndroidVersion()
Gets the android version.
Declaration
public static float GetAndroidVersion()
Returns
Type | Description |
---|---|
System.Single |
IsAndroid()
Determines whether this instance is android.
Declaration
public static bool IsAndroid()
Returns
Type | Description |
---|---|
System.Boolean |
IsDevice()
Determines whether this instance is device.
Declaration
public static bool IsDevice()
Returns
Type | Description |
---|---|
System.Boolean |
IsIOS7()
Determines whether [is io s7].
Declaration
public static bool IsIOS7()
Returns
Type | Description |
---|---|
System.Boolean |
IsLowerAndroid()
Determines whether [is lower android].
Declaration
public static bool IsLowerAndroid()
Returns
Type | Description |
---|---|
System.Boolean |
IsMatchUserAgent(Regex)
Declaration
public static bool IsMatchUserAgent(Regex exp)
Parameters
Type | Name | Description |
---|---|---|
System.Text.RegularExpressions.Regex | exp |
Returns
Type | Description |
---|---|
System.Boolean |
IsMobile()
Determines whether this instance is mobile.
Declaration
public static bool IsMobile()
Returns
Type | Description |
---|---|
System.Boolean |
IsWindows()
Determines whether this instance is windows.
Declaration
public static bool IsWindows()
Returns
Type | Description |
---|---|
System.Boolean |