• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

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 Source

BrowserName

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS