ClientBrowser

Wisej.Core.ClientBrowser

Namespace: Wisej.Core

Assembly: Wisej.Framework (2.5.0.0)

Properties of the client browser currently interacting with the application.

public class ClientBrowser

Fields

Name
Type
Description

CookieStorage

Returns an instance of the CookieStorage class that represents the "cookies" storage in the browser.

LocalStorage

Returns an instance of the LocalStorage class that represents the "localStorage" object in the browser.

SessionStorage

Returns an instance of the SessionStorage class that represents the "sessionStorage" object in the browser.

Properties

ClientFingerprint

Deprecated: Deprecated, please use Application.ClientId instead. UInt32arrow-up-right: Returns the unique client "fingerprint" ID. It can be used to distinguish client devices.

The client fingerprint is generated by hashing all the available information returned by the browser (OS, user agent, version, etc.) and it's not guaranteed to be unique.

CultureInfo

CultureInfoarrow-up-right: Returns the locale declared in the application configuration file or detected from the client browser.

Device

Stringarrow-up-right: Device type. Can be one of "Mobile", "Tablet" or "Desktop".

Features

Objectarrow-up-right: Returns the set of features supported/not-supported by the browser. Currently we detect: geolocation, webSocket, fullScreen, speechSynthesis, speechRecognition, notification, fullScreen, browserStorage.

IPAddress

Stringarrow-up-right: IP Address of the client computer.

IsFullScreen

Booleanarrow-up-right: Returns true if the browser is in full screen mode.

IsSecure

Booleanarrow-up-right: Returns true if the connection is secure.

Language

Stringarrow-up-right: Client language.

OS

Stringarrow-up-right: Client OS. Can be one of "iOS", "Android", "WebOS", "BlackBerry", "MacOS", "Linux", "Windows", "Unix", "Other".

PixelRatio

Doublearrow-up-right: Returns the ratio of the resolution in physical pixels to the resolution in CSS pixels for the current display device.

Profiles

ClientProfile[]:

ScreenSize

Sizearrow-up-right: Screen size.

SessionId

Stringarrow-up-right: Returns the session ID associated with this ClientBrowser.

Size

Sizearrow-up-right: Browser size. This is the window size, which can be different from the device (or screen) size.

TabId

Stringarrow-up-right: Identifies the browser tab associated with with this ClientBrowser instance.

TimezoneOffset

Int32arrow-up-right: Returns the time difference between UTC time and local time, in minutes.

Type

Stringarrow-up-right: Browser type. Can be one of "IE", "Edge", "Chrome", "Opera", "Firefox", "Safari", "Other".

UserAgent

Stringarrow-up-right: Returns the raw user agent string of the client browser.

UserData

Objectarrow-up-right: Returns a value or map set by the client when loading the application's first HTML page.

An application can use this property to retrieve a custom value on startup. For example, in Default.html add:

On the server side, you can retrieve the user data use at any time like this:

When used in conjunction with an aspx startup page (Default.aspx) it allows the application to retrieve data passed as a POST request and pass it to the Wisej application.

Version

Int32arrow-up-right: Browser version.

Last updated

Was this helpful?