Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
import org.joget.apps.app.service.MobileUtil; if (MobileUtil.isMobileView()) { //return mobile html template } else { //return normal html template }
public static final String MOBILE_VIEW = "_mobileView_";
public static boolean isMobileDisabled()
Flag to indicate the mobile support is disabled by system
public static boolean isMobileUserAgent()
Checks whether the current thread is being called from a mobile browser
public static boolean isMobileUserAgent(javax.servlet.http.HttpServletRequest request)
Checks whether the current request is being called from a mobile browser
public static boolean isMobileView()
Checks whether the current request is a mobile view
public void setDisableMobile(boolean disabled)
Sets to disable the mobile support
public static void setMobileView(javax.servlet.http.HttpServletRequest request, java.lang.Boolean mobileView)
Sets a flag to indicate whether or not the current request is a mobile view.