Copyright© 2008-2022 Sitevision AB, all rights reserved.
@Requireable(value="DeviceUtil") public interface DeviceUtil
Contains methods for retrieving device-related information.
An instance of the Sitevision class implementing this interface can be obtained via Utils.getDeviceUtil().
See Utils for how to obtain an instance of the Utils interface.
| Modifier and Type | Method and Description |
|---|---|
boolean |
isMobileDevice(Node aPageNode)
Deprecated.
As of Sitevision 10 the parameter aPageNode is no longer used
|
boolean |
isRenderingMobileView()
Deprecated.
As of Sitevision 10 this method always returns
false |
@Deprecated boolean isRenderingMobileView()
falsetrue if current execution is rendering in a mobile view, false if not@Deprecated boolean isMobileDevice(Node aPageNode)
aPageNode - a page node, typically the currently executing page (see
PortletContextUtil.getCurrentPage()).
Null is allowed but device checking will be more extensive with a proper value since it will also match against
all configured devices for the site of the aPageNode.true if currently executing client is a mobile device, false if notSitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2022 Sitevision AB, all rights reserved.