UC official Developer Center: http://www.uc.cn/business/developer.shtml
U3 kernel customization <meta> label description 1. screen-orientation)
Parameters:
- Landscape: Forced landscape Screen
- Portrait: Force portrait Screen
Usage:
Supported versions: 8.6 +
2. full-screen control)
Parameters:
Usage:
Supported versions: 8.6 +
3. browsermode)
Description: The application mode is a comprehensive switch set for web applications and game developers. The meta tag is used to enable the switch. When you enter the application mode, the browser automatically adjusts the following parameters:
- (Parameter: Status)
- Full Screen: effective. you can exit full screen by calling meta or js APIs.
- Long-pressed menu: Invalid, which can be re-effective through js api call
- Default browser gesture: Invalid. It can be re-activated through js api call
- Typographical mode: standard mode. Other typographical modes can be set by calling meta or js APIs.
- Force image display: Effective
- Night mode: Invalid. You can use meta or js api call to enable night mode.
4. Adapt to the screen layout (viewport) of UC)
Description: after it is enabled, only page elements such as images and text are zoomed in when scaling is performed, but the screen width is not enlarged, which avoids the creation of the left and right scroll bars.
Parameters:
- Uc-fitscreen = no: Disabled [Default]
- Uc-fitscreen = yes: Enabled
Usage:
Supported versions: 8.5 patch +
5. layoutmode)
Parameters:
- Fitscreen: screen adaptation
- Standard: standard Mode
Usage:
Equivalent
: Layoutmode is recommended to avoid unknown conflicts with native-supported viewports.
6. Disable night mode)
Parameters:
- Disable: disable the webpage from using the custom night mode in the uc browser.
- Enable: allows the page to use the night mode customized by uc browser, used to cancel the effect of disable
Usage:
Supported versions: 8.5 patch +
7. Force Image Display (imagemode)
Description: You can use this method to forcibly display images when using the no-graph mode.
Parameters:
- Force: force Image Display
Usage:
Supported versions: 8.5 patch +
8. Send to desktop
Description: After the user triggers the "send to desktop" menu operation, the maximum size of the image is obtained through the Internet. Before obtaining an image, you can first display the default image. After obtaining the image, you can update it to the desktop. If you cannot obtain or do not have this special tag, the default desktop bookmarks icon is still used.
Usage:
U3 kernel JavaScript API
1. Disable the default gesture
Usage:
navigator.control.gesture();
Personal Recommendation statement:
navigator.control.gesture( } }
2. Close the long press pop-up menu
Usage:
navigator.control.longpressMenu();
Personal Recommendation statement:
navigator.control.longpressMenu( } }
Server-related API1. XUCBrowserUserAgent
Description: The X-UCBrowser-UA object model in the HTTP Header. It is used to encapsulate related data segments and provides easy-to-use methods to read field content.
You can use this API to obtain more detailed device information, such as network conditions, system environment, and UC browser version...
The meaning of parameters, see the pdf: http://www.uc.cn/download/UCBrowser_User_Agent.pdf
Php usage:
<? ['HTTP_X_UCBROWSER_UA'];
Address: http://www.cnblogs.com/maplejan/p/3538206.html