Interface IClientCapability
ClientCapability provides capabilities supported by the http requester (e.g. Mobile Device, TV, Desktop).
Namespace: DotNetNuke.Services.ClientCapability
Assembly: DotNetNuke.dll
Syntax
public interface IClientCapability
Remarks
The capabilities are primarily derived based on UserAgent.
Properties
| Improve this Doc View SourceBrowserName
Gets or sets represents the name of the browser in the request.
Declaration
string BrowserName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Remarks
The capabilities are primarily derived based on UserAgent.
Capabilities
Gets or sets a key-value collection containing all capabilities supported by requester.
Declaration
IDictionary<string, string> Capabilities { get; set; }
Property Value
| Type | Description |
|---|---|
| IDictionary<System.String, System.String> |
Remarks
The capabilities are primarily derived based on UserAgent.
FacebookRequest
Gets or sets facebookRequest property is filled when request is coming though Facebook iFrame (e.g. fan pages).
Declaration
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
string HtmlPreferedDTD { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Remarks
The capabilities are primarily derived based on UserAgent.
ID
Gets or sets unique ID of the client making request.
Declaration
string ID { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Remarks
The capabilities are primarily derived based on UserAgent.
IsMobile
Gets or sets a value indicating whether is request coming from a mobile device.
Declaration
bool IsMobile { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Remarks
The capabilities are primarily derived based on UserAgent.
IsTablet
Gets or sets a value indicating whether is request coming from a tablet device.
Declaration
bool IsTablet { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Remarks
The capabilities are primarily derived based on UserAgent.
IsTouchScreen
Gets or sets a value indicating whether does the requesting device supports touch screen.
Declaration
bool IsTouchScreen { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Remarks
The capabilities are primarily derived based on UserAgent.
Item[String]
Get client capability value by property name.
Declaration
string this[string name] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The property name. |
Property Value
| Type | Description |
|---|---|
| System.String | The property value. |
Remarks
The capabilities are primarily derived based on UserAgent.
ScreenResolutionHeightInPixels
Gets or sets screenResolution Height of the requester in Pixels.
Declaration
int ScreenResolutionHeightInPixels { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Remarks
The capabilities are primarily derived based on UserAgent.
ScreenResolutionWidthInPixels
Gets or sets screenResolution Width of the requester in Pixels.
Declaration
int ScreenResolutionWidthInPixels { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Remarks
The capabilities are primarily derived based on UserAgent.
SSLOffload
Gets or sets http server variable used for SSL offloading - if this value is empty offloading is not enabled.
Declaration
string SSLOffload { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Remarks
The capabilities are primarily derived based on UserAgent.
SupportsFlash
Gets or sets a value indicating whether does requester support Flash.
Declaration
bool SupportsFlash { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Remarks
The capabilities are primarily derived based on UserAgent.
UserAgent
Gets or sets user Agent of the client making request.
Declaration
string UserAgent { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Remarks
The capabilities are primarily derived based on UserAgent.