Description

ลักษณะ

Code Sample

ตัวอย่างโค้ด

import org.joget.apps.app.service.MobileUtil;


if (MobileUtil.isMobileView()) {
    //return mobile html template
} else {
    //return normal html template
}

Fields

ฟิลด์

MOBILE_VIEW
public static final String MOBILE_VIEW = "_mobileView_";

A key used to set the HTTP request attribute when it is a mobile view.

คีย์ที่ใช้เพื่อตั้งค่าแอตทริบิวต์คำขอ HTTP เมื่อเป็นมุมมองอุปกรณ์พกพา

Methods

กระบวนการ

isMobileDisabled
public static boolean isMobileDisabled()

Flag to indicate the mobile support is disabled by system

ตั้งค่าสถานะเพื่อระบุว่าการรองรับมือถือถูกปิดใช้งานโดยระบบ

isMobileUserAgent
public static boolean isMobileUserAgent()

Checks whether the current thread is being called from a mobile browser

ตรวจสอบว่ามีการเรียกเธรดปัจจุบันจากเบราว์เซอร์มือถือหรือไม่

isMobileUserAgent
public static boolean isMobileUserAgent(javax.servlet.http.HttpServletRequest request)

Checks whether the current request is being called from a mobile browser

ตรวจสอบว่ามีการเรียกคำขอปัจจุบันจากเบราส์มือถือหรือไม่

isMobileView
public static boolean isMobileView()

Checks whether the current request is a mobile view

ตรวจสอบว่าคำขอปัจจุบันเป็นมุมมองมือถือหรือไม่

setDisableMobile
public void setDisableMobile(boolean disabled)

Sets to disable the mobile support

ตั้งค่าให้ปิดใช้งานการรองรับมือถือ

setMobileView
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.

ตั้งค่าสถานะเพื่อระบุว่าคำขอปัจจุบันเป็นมุมมองอุปกรณ์เคลื่อนที่หรือไม่