BrowserInfo Class |
Namespace: NetQuarry
The BrowserInfo type exposes the following members.
Name | Description | |
---|---|---|
BrowserInfo(HttpRequest) | Obsolete.
Simple constructor. Should almost never be used.
| |
BrowserInfo(IAppContext, HttpRequest) |
Standard constructor.
|
Name | Description | |
---|---|---|
DeviceClassAbbrev |
Gets the abbreviation for the DeviceClass obtained from GetDeviceClass. The primary
purpose for the abbreviation is for unique caching by device class.
| |
DisplayName |
Returns the name of the browser including the version and OS.
| |
Engine |
Returns the BrowserEngine.
| |
IsMobile |
Returns true if the browser is a mobile browser (including iPhone).
| |
IsMobileApp |
Returns true if the brower is a browser within a Mobile Application. This can be set by sending a custom header "x-nq-mobileapp" with the initial request.
| |
IsTablet |
Returns true if the browser is a table browser (e.g. iPad).
Also recognizes Android as a tablet browser when browser not reporting itself in Mobile mode.
| |
PlatformType |
Returns the BrowserPlatformType.
| |
SupportLevel |
Returns the BrowserSupport level of the current browser.
| |
SupportsJavaScript |
Returns true if the browser supports JavaScript.
| |
Type |
Returns the BrowserType.
| |
UserAgent |
Returns the UserAgent string as reported by the browser.
| |
UsesAltForTooltip |
Older browsers (specifically IE pre-version 8) use an HTML element's ALT attribute for a tooltip if that element does not have a TITLE attribute.
| |
VerMajor |
Returns the major version number of the browser.
| |
VerMinor |
Returns the minor version number of the browser.
| |
Version |
Returns the version number of the browser as a double.
|
Name | Description | |
---|---|---|
DetermineSupportLevel |
Determines the BrowserSupport level of the current browser.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
ForceDeviceClass |
Override the class's standard device determination DeviceClass logic and force the application
to render for the specified DeviceClass. A call to this method will override the internal
logic used in IsMobile, IsTablet, and GetDeviceClass to use the
specified setting. You can clear the override and restore standard device determination by passing zero as
the deviceClass.
It is strongly recommended that this method be called only at application startup (presumably in a startup application extension) and that the DeviceClass not be changed later in the session life-cycle. Changing the DeviceClass later in the session life-cycle could have various side effects such as links becoming invalid (e.g. link is rendered for Computer on one request, but when the link is clicked the link is invalid because the DeviceClass has been changed to Mobile which is typically more restrictive). If changing the DeviceClass later in the session is required, it is strongly recommended that a full page refresh be performed. | |
GetDeviceClass |
Gets the DeviceClass of the browser's physical device.
Note that the device class is automatically detected, but can be force to a different
value via ForceDeviceClass(DeviceClass).
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Supports |
Determines if the browser is supports the specified capability. The determination is based on the
browser type and version.
| |
ToString | (Inherited from Object.) |
Name | Description | |
---|---|---|
EqualValue |
Determines if the object value is equal to another object. If the two objects are null, then this returns true.
There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways).
If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.) |