Class DeviceDetector
- Namespace
- Dynamicweb.Frontend.Devices
- Assembly
- Dynamicweb.dll
Class DeviceDetector.
public class DeviceDetector
- Inheritance
-
DeviceDetector
- Inherited Members
Methods
DetectFromRequest(IRequest)
Detects the device from request.
public static DeviceInfo DetectFromRequest(IRequest request)
Parameters
request
IRequest- The request.
Returns
- DeviceInfo
- Information about the device.
IsDeviceDetectionEnabled(IContext)
Determines whether device detection is enabled for the context.
public static bool IsDeviceDetectionEnabled(IContext context)
Parameters
context
IContext- The context.
Returns
- bool
true
if device detection is enabled for the context; otherwise,false
.