Class ClientCapability
Default Implementation of IClientCapability.
Inheritance
Implements
Namespace: DotNetNuke.Services.ClientCapability
Assembly: DotNetNuke.dll
Syntax
public class ClientCapability : object, IClientCapability
Constructors
| Improve this Doc View SourceClientCapability()
Initializes a new instance of the ClientCapability class.
Declaration
public ClientCapability()
Properties
| Improve this Doc View SourceBrowserName
Gets or sets represents the name of the browser in the request.
Declaration
public string BrowserName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Capabilities
Gets or sets a key-value collection containing all capabilities supported by requester.
Declaration
public IDictionary<string, string> Capabilities { get; set; }
Property Value
| Type | Description |
|---|---|
| IDictionary<System.String, System.String> |
FacebookRequest
Gets or sets facebookRequest property is filled when request is coming though Facebook iFrame (e.g. fan pages).
Declaration
public FacebookRequest FacebookRequest { get; set; }
Property Value
| Type | Description |
|---|---|
| FacebookRequest |
Remarks
FacebookRequest property is populated based on data in "signed_request" headers coming from Facebook. In order to ensure request is coming from Facebook, FacebookRequest.IsValidSignature method should be called with the secret key provided by Facebook. Most of the properties in IClientCapability do not apply to Facebook.
HtmlPreferedDTD
Gets or sets the request preferred HTML DTD.
Declaration
public string HtmlPreferedDTD { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ID
Gets or sets unique ID of the client making request.
Declaration
public string ID { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
IsMobile
Gets or sets a value indicating whether is request coming from a mobile device.
Declaration
public bool IsMobile { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsTablet
Gets or sets a value indicating whether is request coming from a tablet device.
Declaration
public bool IsTablet { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsTouchScreen
Gets or sets a value indicating whether does the requesting device supports touch screen.
Declaration
public bool IsTouchScreen { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Item[String]
Get client capability value by property name.
Declaration
public virtual string this[string name] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The property name. |
Property Value
| Type | Description |
|---|---|
| System.String | The property value. |
ScreenResolutionHeightInPixels
Gets or sets screenResolution Height of the requester in Pixels.
Declaration
public int ScreenResolutionHeightInPixels { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
ScreenResolutionWidthInPixels
Gets or sets screenResolution Width of the requester in Pixels.
Declaration
public int ScreenResolutionWidthInPixels { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
SSLOffload
Gets or sets http server variable used for SSL offloading - if this value is empty offloading is not enabled.
Declaration
public string SSLOffload { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
SupportsFlash
Gets or sets a value indicating whether does requester support Flash.
Declaration
public bool SupportsFlash { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
UserAgent
Gets or sets user Agent of the client making request.
Declaration
public string UserAgent { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |