Control display callback method, device, terminal and storage medium

By detecting the callback instructions of the display control and obtaining the default state, it solves the problem of the terminal being unable to adjust the state when displaying the web page in full screen, achieving the efficiency and convenience of the control display callback and improving the user experience.

CN112541141BActive Publication Date: 2024-10-22SHENZHEN HEYTAP TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011403695.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-04
Publication Date
2024-10-22
Estimated Expiration
2040-12-04

AI Technical Summary

Technical Problem

When the terminal displays the web page in full screen, it cannot effectively adjust the status of the display control, resulting in poor user experience. In addition, the interception of the browser kernel causes the control display callback to fail, thus affecting the user experience.

Method used

By detecting the callback instructions in the display control, the state information of the control is obtained. When the state is the target display state, the default display state is obtained and recorded, and it is called back to the default state to avoid control display callback failure and improve the convenience of control display callback. sex.

Benefits of technology

Reduce the failure of control display callbacks, improve the probability and convenience of control display callbacks, and improve the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112541141B_ABST
    Figure CN112541141B_ABST
Patent Text Reader

Abstract

The present application belongs to the field of terminal technology, and specifically, it relates to a control display callback method, device, terminal and storage medium. Among them, a control display callback method includes: when a callback instruction for a web page in a display control is detected, the status information of the display control is obtained, the display control is a control for displaying the web page, and the callback instruction is an instruction generated when a return operation is detected on the display control based on a callback function interface; when the status information indicates that the display control is in the target display state, the recorded default display state of the display control is obtained; and the display control is controlled to be called back from the target display state to the default display state. The use of this application can improve the convenience of control display callback.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of terminal technology, and specifically relates to a control display callback method, device, terminal and storage medium. Background Art

[0002] With the development of science and technology, communication technology has also developed rapidly, making the popularity of terminals higher and higher. When a user uses a terminal to browse a web page, the terminal can display the web page on the display screen of the terminal so that the user can obtain the web page. When the terminal displays the web page, the terminal can receive a full-screen display instruction input by the user, and in response to the full-screen display instruction, display the web page in full screen on the display screen. Summary of the invention

[0003] The embodiment of the present application provides a control display callback method, device, terminal and storage medium, which can improve the convenience of display control callback. The technical solution of the embodiment of the present application is as follows:

[0004] In a first aspect, an embodiment of the present application provides a control display callback method, the method comprising:

[0005] When a callback instruction for a web page in a display control is detected, the state information of the display control is obtained, the display control is a control for displaying the web page in a terminal application, and the callback instruction is an instruction generated when a return operation is detected on the display control based on a callback function interface;

[0006] When the state information indicates that the display control is in the target display state, obtaining the recorded default display state of the display control;

[0007] The display control is controlled to be called back from the target display state to the default display state.

[0008] In a second aspect, an embodiment of the present application provides a control display callback device, the device comprising:

[0009] an information acquisition unit, configured to acquire state information of a display control when a callback instruction for a web page in a display control is detected, wherein the display control is a control for displaying the web page in a terminal application, and the callback instruction is an instruction generated when a return operation is detected on the display control based on a callback function interface;

[0010] a state acquisition unit, configured to acquire the recorded default display state of the display control when the state information indicates that the display control is in a target display state;

[0011] The state callback unit is used to control the display control to be called back from the target display state to the default display state.

[0012] In a third aspect, a terminal includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the methods described in the first aspect when executing the computer program.

[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which implements any of the methods described above when executed by a processor.

[0014] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiment of the present application. The computer program product may be a software installation package.

[0015] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least:

[0016] In one or more embodiments of the present application, when a callback instruction for a web page in a display control is detected, and when the acquired state information of the display control indicates that the display control is in the target display state, the recorded default display state of the display control can be obtained, and the display control can be controlled to be called back from the target display state to the default display state, so as to complete the control display callback. Therefore, when a return operation is detected on the display control, the display control can be controlled to be called back to the default display state based on the state information of the display control, which can reduce the failure of the control display callback, increase the probability of the control display callback, and improve the convenience of the display control callback, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 A background schematic diagram showing a control display callback method applied to an embodiment of the present application;

[0019] Figure 2 A system architecture diagram showing a control display callback method applied to an embodiment of the present application;

[0020] Figure 3 A schematic diagram showing a flow chart of a control display callback method according to an embodiment of the present application;

[0021] Figure 4 A schematic diagram showing a flow chart of a control display callback method according to an embodiment of the present application;

[0022] Figure 5 A schematic diagram showing a scenario of a control display callback method according to an embodiment of the present application;

[0023] Figure 6 An example schematic diagram showing a terminal interface according to an embodiment of the present application;

[0024] Figure 7 An example schematic diagram showing a terminal interface according to an embodiment of the present application;

[0025] Figure 8 A schematic diagram showing an application scenario of a control display callback method according to an embodiment of the present application;

[0026] Fig. 9 An example schematic diagram showing a terminal interface according to an embodiment of the present application;

[0027] Fig.10 An example schematic diagram showing a terminal interface according to an embodiment of the present application;

[0028] Fig.11 A schematic diagram showing a flow chart of a control display callback method according to an embodiment of the present application;

[0029] Fig.12 An example schematic diagram showing a terminal interface according to an embodiment of the present application;

[0030] Fig.13 A schematic diagram showing the structure of a control display callback device according to an embodiment of the present application is shown;

[0031] Fig.14 A schematic diagram showing the structure of a control display callback device according to an embodiment of the present application is shown;

[0032] Fig.15 A schematic diagram showing the structure of a control display callback device according to an embodiment of the present application is shown;

[0033] Fig.16 A schematic diagram showing the structure of a control display callback device according to an embodiment of the present application is shown;

[0034] Fig.17 A schematic diagram showing the structure of a terminal according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0035] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of them. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0036] In the description of the present application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of the present application, it should be noted that, unless otherwise clearly specified and limited, "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood in specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are an "or" relationship.

[0037] With the development of science and technology, there are more and more types of terminals, and the terminals can support more and more application functions. The terminal can display the received web page. When the terminal receives a display instruction input by the user, the terminal can respond to the display instruction and display the web page on the terminal display screen. When the terminal displays the web page, the terminal can, for example, adjust the display direction of the web page. When the terminal adjusts the display direction of the web page, the terminal can lock the screen display direction when in full screen by calling the kernel's screen.orientation.lock(orientation) interface.

[0038] It is easy to understand that Figure 1 A background diagram of a control display callback method applied to an embodiment of the present application is shown. Figure 1As shown, when the terminal displays a web page in full screen, the terminal can preset the screen display direction to display the web page. The screen display direction includes but is not limited to the main horizontal screen direction, the main vertical screen direction, the secondary horizontal screen direction and the secondary vertical screen direction, etc. In this process, the terminal cannot change the display direction of the web page, which makes it inconvenient for users to use and the user experience is poor. For example, when the terminal displays a web page in the main horizontal screen direction, the terminal cannot adjust the main horizontal screen direction to the main vertical screen direction.

[0039] It is easy to understand that when the terminal displays a web page in a display control, the terminal can change the display state of the display control. However, when the terminal completes the state change of the display control, when the terminal detects the return operation on the display control, the terminal cannot adjust the state information of the display control due to the interception operation of the browser kernel, causing the control display callback to fail, the display control callback is inconvenient, and the user experience is poor.

[0040] Figure 2 A system architecture diagram of a control display callback method applied to an embodiment of the present application is shown. Figure 2 As shown, the execution subject of the embodiment of the present application is a terminal, which is an electronic device with a display screen, and the terminal includes but is not limited to: wearable devices, handheld devices, personal computers, tablet computers, vehicle-mounted devices, smart phones, computing devices or other processing devices connected to wireless modems, etc. In different networks, terminal devices can be called different names, such as: user equipment, access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, cellular phone, cordless phone, personal digital assistant (PDA), fifth generation mobile communication technology (5th generation mobile networks, 5G) network or terminal equipment in future evolution network, etc. The terminal system refers to an operating system that can be run on the terminal, which is a program for managing and controlling terminal hardware and terminal applications, and is an indispensable system application for the terminal. The system can be, for example, an Android system.

[0041] According to some embodiments, the terminal may be connected to the server via a network. The network is used to provide a communication link between the terminal and the server. The network may include various connection types, such as wired, wireless communication links or optical fiber cables, etc. It should be understood that Figure 2 The number of terminals, networks and servers in the example is only illustrative. Any number of terminals, networks and servers may be provided according to actual needs. For example, a server may be a server cluster composed of multiple servers. A user may use a terminal to interact with a server through a network to obtain push messages, etc.

[0042] It is easy to understand that the server can be, for example, a background service device corresponding to a terminal application in the terminal. The server can generate a web page for the terminal application and send the web page to the terminal. When the terminal receives the web page, the terminal can display the web page on a display screen. When the terminal displays the web page on the display screen, the terminal can create a display control for displaying the web page in the terminal application, and display the web page in the display control. When the terminal detects a callback instruction for the web page in the display control, the terminal can obtain the status information of the display control, and when the status information indicates that the display control is in the target display state, obtain the recorded default display state of the display control, and control the display control to be called back from the target display state to the default display state. The embodiment of the present application provides a control display callback method, which can improve the convenience of control display callback.

[0043] The present application is described in detail below with reference to specific embodiments.

[0044] In one embodiment, Figure 3 As shown, a control display callback method is proposed, which can be implemented by a computer program and can be run on a terminal with a display screen. The computer program can be integrated into an application or run as an independent tool application.

[0045] Specifically, the control displays callback methods including:

[0046] Step 101, when a callback instruction for a web page in a display control is detected, the state information of the display control is obtained;

[0047] According to some embodiments, a display control refers to a control for displaying a web page. When the display control displays a web page, the terminal application may call the display control in the terminal system to display the web page. The display control is used to display web page information. The web page information includes but is not limited to page display direction information, volume information, page brightness information, page display ratio, web page display font information, etc.

[0048] It is easy to understand that a web page refers to a web page displayed in a display control, which includes but is not limited to a web page for playing videos, a web page for playing audio, a web page for playing animations, and the like.

[0049] Optionally, the state information refers to the state information of the display control when displaying a web page, and the state information is the state information of the display control when a callback instruction for the web page in the display control is detected. The state information does not specifically refer to a fixed state information. The state information can be modified based on the user's state modification instruction. The state modification instruction includes but is not limited to a click state modification instruction, a voice state modification instruction, and a timed state modification instruction, etc.

[0050] According to some embodiments, a terminal application refers to an application installed in a terminal, which may be an application installed when the terminal leaves the factory, or an application installed by the terminal based on a user's installation instruction. Installation instructions include, but are not limited to, click installation instructions, voice installation instructions, and text installation instructions. A terminal application refers to an application that includes a display control. Display controls include, but are not limited to, floating display controls, display controls that are default for terminal applications, and the like.

[0051] According to some embodiments, a callback instruction refers to an instruction received on a display control, but the callback instruction is used to call back the status information of the display control in order to call back the display status of the web page. The callback instruction includes but is not limited to a voice callback instruction, a click callback instruction, a timed callback instruction, and the like. The callback instruction is an instruction generated when the terminal detects the presence of a return operation on the display control based on the callback function interface. The callback function interface may be an interface corresponding to the return operation configured by the terminal. The return operation is used to call back the web page. The return operation includes but is not limited to clicking the return control, inputting the return voice, and the like. The return control includes but is not limited to a virtual return control and an entity return control, and the like.

[0052] It is easy to understand that when the terminal determines that the display control displays a web page, the terminal can detect whether there is a return operation on the display control based on the callback function interface. When the terminal detects that there is a return operation on the display control based on the callback function interface, the terminal can generate a callback instruction corresponding to the return operation based on the return operation. When the terminal generates a callback instruction for the web page in the display control, the terminal can obtain the status information of the display control.

[0053] Step 102, when the state information indicates that the display control is in the target display state, obtaining the recorded default display state of the display control;

[0054] According to some embodiments, the default display state refers to the default display state of the display control set by the terminal before the terminal controls the display control to display the web page. That is, when the terminal controls the display control to display the web page for the first time, the terminal will control the display control to display the web page using the default display state. The default display state can be set by the terminal based on the user status setting instruction, or it can be set when the terminal leaves the factory. When the terminal completes the setting of the default display state, the terminal can record the default display state. However, the default display state does not specifically refer to a fixed display state, and the default display state can be changed based on the user's status modification instruction. The status modification instruction includes but is not limited to a voice status modification instruction, a click status modification instruction, and a timing status modification instruction, etc.

[0055] It is easy to understand that the target display state refers to the display state of the display control that is not the default display state. The target display state does not specifically refer to a fixed display state, and the target display state can be changed based on the user's state modification instruction. The state modification instruction includes but is not limited to a voice state modification instruction, a click state modification instruction, and a timed state modification instruction, etc.

[0056] According to some embodiments, when the terminal detects a callback instruction for a web page in a display control and obtains state information of the display control, the terminal can determine whether the state information indicates that the display control is in a target display state. When the terminal determines that the state information indicates that the display control is in a target display state, the terminal can obtain the recorded default display state of the display control.

[0057] Step 103: Control the display control to call back from the target display state to the default display state.

[0058] According to some embodiments, when the terminal obtains the state information of the display control and determines that the state information indicates that the display control is in the target display state, the terminal can obtain the recorded default display state of the display control. When the terminal obtains the default display state of the display control, the terminal can control the display control to be called back from the target display state to the default display state.

[0059] It is easy to understand that when the terminal obtains the a state information of the display control and determines that the a state information indicates that the display control is in the target display state, the terminal can obtain the recorded default display state of the display control. The target display state can be, for example, the A display state, and the default display state can be, for example, the B display state. When the terminal obtains the B display state of the display control, the terminal can control the display control to be called back from the A display state to the B display state.

[0060] In one or more embodiments of the present application, when a callback instruction for a web page in a display control is detected, and when the acquired state information of the display control indicates that the display control is in the target display state, the recorded default display state of the display control can be obtained, and the display control can be controlled to be called back from the target display state to the default display state, so as to complete the control display callback. Therefore, when a return operation is detected on the display control, the display control can be controlled to be called back to the default display state based on the state information of the display control, which can reduce the failure of the control display callback, increase the probability of the control display callback, and improve the convenience of the display control callback, thereby improving the user experience.

[0061] See also Figure 4 , which is a flowchart of a control display callback method provided in the present application embodiment. Figure 4 As shown, the method includes the following steps S201-S206.

[0062] Step 201, when a display instruction for a web page in a terminal application is obtained, the web page is displayed using a default display state of a display control;

[0063] According to some embodiments, the display instruction refers to an instruction to display a web page in a display control of a terminal application. The display instruction includes, but is not limited to, a click display instruction, a voice display instruction, a text display instruction, and a timed display instruction, etc. The web page may be a page in a terminal application. For example, the web page may be a page in a terminal browser.

[0064] It is easy to understand that when the terminal can display a web page, the terminal can detect whether a display instruction for the web page in the terminal application is obtained. When the terminal obtains a display instruction for the web page in the terminal application, the terminal can create a display control. At this time, the scene diagram of the control display callback method can be as follows Figure 5 As shown. Among them, the display control is a control for displaying web pages in the terminal application. The terminal application corresponding to the display control can be the same as the terminal application corresponding to the web page, and the terminal application corresponding to the display control can also be different from the terminal application corresponding to the web page. The terminal application corresponding to the web page can be, for example, a Q browser application, and the terminal application corresponding to the display control can be, for example, a W player application.

[0065] According to some embodiments, when the terminal obtains a display instruction for a web page for a terminal application, when the terminal uses a display control to display the web page, the terminal can determine the display control based on the correspondence between the web page and the display control, and can also determine the display control based on the user's selection instruction. The selection instruction includes but is not limited to a voice selection instruction and a click selection instruction, etc. For example, the terminal application corresponding to the web page can be, for example, a Q browser application, and the terminal determines the terminal application corresponding to the display control from the W playback application, the E playback application, and the R playback application based on the user's selection instruction, for example, the W playback application. At this time, an example schematic diagram of the terminal interface can be as shown in the figure.

[0066] Optionally, when the terminal completes creating the display control, the terminal uses the default display state of the display control to display the web page. For example, the display control may include at least one of a direction display control, a volume adjustment control, and a screen brightness adjustment control. For example, the display control may be only a direction display control, or the display control may be both a direction display control and a volume adjustment control.

[0067] Optionally, for example, the terminal application corresponding to the display control is different from the terminal application corresponding to the web page. The terminal application corresponding to the web page may be, for example, a Q browser application, and the terminal application corresponding to the display control may be, for example, a W player application. The display control may be, for example, a direction display control. The default display state corresponding to the display control in the W player application is the horizontal display state. When a voice display instruction for the q web page in the Q browser application is obtained, the terminal may use the display control of the W player application to display the q web page in the horizontal display state. At this time, the example schematic diagram of the terminal interface may be as follows Figure 6 shown.

[0068] Step 202, when a state change instruction for a webpage is detected, based on the state change instruction, the display control is adjusted from a default display state to a target display state;

[0069] According to some embodiments, when the terminal obtains a display instruction for a web page in a terminal application and displays the web page using the default display state of the display control, the terminal can detect whether a state change instruction for the web page is received. The state change instruction is an instruction obtained when there is a state change operation on the web page. The state change instruction includes but is not limited to a voice state change instruction, a click state change instruction, and a timed state change instruction. When the terminal detects a state change instruction for the web page, the terminal can adjust the display control from the default display state to the target display state based on the state change instruction. That is, the terminal can change the display state of the web page.

[0070] It is easy to understand that when a voice display instruction for a q web page in a Q browser application is obtained, the terminal can use the display control of the W playback application to display the q web page in a horizontal display state. For example, the state change instruction of the present embodiment is a voice state change instruction. A microphone may be provided on the terminal, and the microphone may be used to collect a voice signal input by a user. When a web page has a voice signal collected based on the microphone, the terminal may obtain that a web page has a voice signal collected based on the microphone. The terminal may use a voice recognition algorithm to analyze the voice signal to obtain a voice state change instruction input by the user. The voice state change instruction received by the terminal may be, for example, "change the state of the display control to a vertical display state." When the terminal detects the voice state change instruction, the terminal may adjust the display control from a horizontal display state to a vertical display state based on the voice state change instruction. At this time, an example schematic diagram of the terminal interface may be as shown below. Figure 7 shown.

[0071] According to some embodiments, when the terminal adjusts the display control from the default display state to the target display state, the terminal can obtain a state change instruction for the web page based on the bridge communication channel JSBridge, and the state change instruction carries the target display information. When the terminal receives the state change instruction, the terminal can parse the state change instruction to obtain the target display information carried in the state change instruction. When the terminal obtains the target display information carried in the state change instruction, the terminal can control the display control to adjust from the default display state to the target display state corresponding to the target display information, and record the default display state.

[0072] It is easy to understand that the bridge communication channel refers to the bridge for communication between native applications and non-native applications, that is, when a web page receives a state change instruction for the web page, the state change instruction can be sent to the terminal based on the bridge communication channel.

[0073] Step 203, when a callback instruction for a web page in a display control is detected, the state information of the display control is obtained;

[0074] The specific process is as described above and will not be repeated here.

[0075] It is easy to understand that Figure 8 A schematic diagram of an application scenario of a control display callback method according to an embodiment of the present application is shown. Figure 8As shown in the figure, when the terminal detects that there is a return operation on the display control, due to system mechanism limitations, the browser kernel will intercept the return operation, and the display control cannot return to the default display state for the return operation. The return operation includes but is not limited to triggering physical controls and virtual controls. The return operation of this embodiment can be, for example, clicking a virtual control. At this time, the example schematic diagram of the terminal interface can be as follows Fig. 9 When the terminal detects that there is a return operation on the display control, due to system mechanism restrictions, the browser kernel will intercept the return operation, and the display state of the display control can be, for example, as shown in Fig.10 As shown, rather than Figure 6 shown.

[0076] Step 204, the state information is a state flag of the display control, and when the state flag is a target flag, the display control is determined to be in a target display state;

[0077] According to some embodiments, the state information of this embodiment is a state identification bit of a display control. The state identification bit is used to identify the state of the display control. When the terminal detects a callback instruction for a web page of a display control and the terminal obtains the state information of the display control, the terminal can obtain the state identification bit of the display control. When the terminal obtains the state identification bit, the terminal can determine whether the state identification bit is a target identification bit. When the terminal determines that the state identification bit is a target identification bit, the terminal can determine that the display control is in the target display state.

[0078] It is easy to understand that when the terminal obtains the state identification bit, the terminal can detect whether the state identification bit is a default identification bit. When the terminal determines that the state identification bit is not a default identification bit, the terminal can determine that the display control is in the target display state. When the terminal obtains the state identification bit, the terminal can also detect whether the state identification bit has changed. When the terminal determines that the state identification bit has changed, the terminal can determine that the display control is in the target display state.

[0079] Optionally, the display control may be, for example, a direction display control, and the default display state may be, for example, a horizontal display state. When the terminal obtains a display instruction for a web page in a terminal application, and displays the web page using the default display state of the display control, the terminal may set the state flag of the display control to a default flag. The default flag may be, for example, a horizontal screen flag. When the terminal detects a state change instruction for a web page, and based on the state change instruction, the terminal adjusts the display control from a horizontal screen display state to a vertical screen display state, the terminal may adjust the horizontal screen flag of the display control to a vertical screen flag. When the terminal detects a callback instruction for a web page in a display control, the terminal may obtain flag information of the display control. When the flag information is a vertical screen flag, the terminal may determine that the display control is in a vertical screen display state.

[0080] Step 205: reset the state flag from the target flag to the initial flag, and obtain the default display state corresponding to the initial flag;

[0081] According to some embodiments, when the terminal detects a callback instruction for a web page in a display control and determines that the display control is in a target display state, the terminal can reset the state identification bit from the target identification bit to the initial identification bit and obtain the default display state corresponding to the initial identification bit. Among them, the terminal can first reset the target identification bit to the initial identification bit, and then obtain the default display state corresponding to the initial identification bit. The terminal can also first obtain the default display state corresponding to the initial identification bit, and then reset the target identification bit to the initial identification bit. The step of resetting the target identification bit to the initial identification bit by the terminal can also be performed after step 206, that is, the terminal can control the display control to be called back from the target display state to the default display state, and then the terminal resets the target identification bit to the initial identification bit.

[0082] It is easy to understand that when the terminal detects a callback instruction for the web page in the display control and determines that the display control is in the portrait display state, the terminal can reset the portrait screen flag to the landscape screen flag and obtain the landscape display state corresponding to the landscape screen flag.

[0083] Step 206: Control the display control to call back from the target display state to the default display state.

[0084] In one or more embodiments of the present application, when a display instruction for a web page in a terminal application is obtained, the web page is displayed using the default display state of the display control, and when a state change instruction for the web page is detected, the display control can be adjusted from the default display state to the target display state based on the state change instruction, the display state of the display control can be adjusted, and the state of the web page displayed by the display control can also be adjusted, thereby reducing the situation where the web page cannot change the display state when in full screen, and improving the user experience. In addition, when a callback instruction for a web page in a display control is detected, the state information of the display control can be obtained based on the state identifier, which can improve the accuracy of obtaining the state of the display control, improve the accuracy of the control display callback, and improve the user experience. Secondly, the terminal will reset the state identifier from the target identifier to the initial identifier, which can reduce the impact of the identifier information on the next control display callback and improve the accuracy of the control display callback. Finally, when a return operation is detected on the display control, the display control callback can be controlled to be the default display state based on the status information of the display control, which can reduce the failure of the control display callback, increase the probability of the control display callback, and improve the convenience of the display control callback, thereby improving the user experience.

[0085] See also Fig.11 , which is a flowchart of a control display callback method provided in an embodiment of the present application. As shown in 11, the method includes the following steps S301-S304.

[0086] Step S301, when a callback instruction for a web page in a display control is detected, callback operation information carried by the callback instruction is obtained, the display control is a control for displaying a web page, and the callback instruction is an instruction obtained based on JSBridge when a return operation exists on the web page;

[0087] According to some embodiments, the display control is a control for displaying web pages in a terminal application. The display control includes, but is not limited to, a direction display control, a volume adjustment control, a screen brightness adjustment control, a screen display ratio control, etc. The display control may include at least one of the above controls. For example, the display control may be a direction display control and a volume adjustment control at the same time.

[0088] It is easy to understand that the callback instruction is an instruction obtained based on JSBridge when there is a return operation on the web page, that is, when the web page in the terminal detects that there is a return operation on the web page in the display control, the web page can generate a callback instruction for the web page in the display control based on the return operation. The web page can send the callback instruction to the terminal based on JSBridge. When the terminal detects a callback instruction for the web page in the display control, the terminal can parse the callback instruction and obtain the callback operation information carried by the callback instruction.

[0089] Optionally, the callback operation information includes, but is not limited to, restore operation information, state change operation information, and the like. The state change operation information may, for example, indicate that the display control changes from a first target display state to a second target display state. For example, when the display control is a volume display control, the default display state may, for example, be displaying a web page at a volume of 30 decibels. The first target display state may, for example, be displaying a web page at a volume of 45 decibels. The second target display state may, for example, be displaying a web page at a volume of 50 decibels. The state change operation information may, for example, indicate that the display control changes from displaying a web page at a volume of 45 decibels to displaying a web page at a volume of 50 decibels.

[0090] It is easy to understand that the web page can be, for example, a video playback page. When the terminal uses a display control to display a web page, the web page of the terminal can detect whether there is a return operation on the web page. When the web page in the terminal detects that there is a return operation on the web page in the display control, the web page can generate a callback instruction for the web page in the display control based on the return operation. At this time, the example schematic diagram of the terminal interface can be as follows Fig.12As shown. When there is a return operation on the web page, the browser kernel will not intercept the return operation, so the web page can send the callback instruction to the terminal based on JSBridge. When the terminal detects a callback instruction for the web page in the display control, the terminal can parse the callback instruction and obtain the callback operation information carried by the callback instruction.

[0091] Step S302, when the callback operation information indicates that a restoration operation is to be performed on the display control, obtaining state information of the display control;

[0092] According to some embodiments, when the terminal obtains the callback operation information carried by the callback instruction, the terminal can parse the callback operation information and determine whether the callback operation information is a restore operation for the display control. When the terminal determines that the callback operation information indicates a restore operation for the display control, the terminal can obtain the status information of the display control. When the terminal obtains the status information of the display control, the terminal can obtain the status information of the display control based on the status flag.

[0093] Step 303: when the state information indicates that the display control is in the target display state, obtain the recorded default display state of the display control;

[0094] Step 304: Control the display control to call back from the target display state to the default display state.

[0095] In one or more embodiments of the present application, when a callback instruction for a web page in a display control is detected, the callback operation information carried by the callback instruction is obtained, and when the callback operation information indicates that the display control is to be restored, the state information of the display control can be obtained, and when the state information indicates that the display control is in the target display state, the default display state of the recorded display control can be obtained. Therefore, when there is a return operation on the web page, the terminal can control the display control to be called back to the default display state based on the callback instruction obtained by JSBridge, and can directly perform the control display callback, reduce the steps of the control display callback, improve the convenience of the display control callback, and thus improve the user experience.

[0096] The following will be combined with the attached Figure 13-16 , the control display callback device provided in the embodiment of the present application is introduced in detail. It should be noted that the attached Figure 13-16 The control shown shows the callback device, which is used to execute this application Figure 3-Figure 12 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 3-Figure 12 The embodiment shown.

[0097] See also Fig.13, which shows a schematic diagram of the structure of the control display callback device of the embodiment of the present application. The control display callback device 1300 can be implemented as all or part of the user terminal through software, hardware or a combination of both.

[0098] According to some embodiments, the control display callback device 1300 includes an information acquisition unit 1301, a state acquisition unit 1302 and a state callback unit 1303, which are specifically used to:

[0099] The information acquisition unit 1301 is used to acquire the state information of the display control when a callback instruction for a web page in the display control is detected, where the display control is a control for displaying a web page, and the callback instruction is an instruction generated when a return operation is detected on the display control based on the callback function interface;

[0100] The state acquisition unit 1302 is used to acquire the recorded default display state of the display control when the state information indicates that the display control is in the target display state;

[0101] The state callback unit 1303 is used to control the display control to call back from the target display state to the default display state.

[0102] According to some embodiments, Fig.14 A schematic diagram showing the structure of a control display callback device according to an embodiment of the present application is shown as follows: Fig.14 As shown, the control display callback device 1300 further includes a state adjustment unit 1304, which is specifically used to:

[0103] When a display instruction for a web page in a terminal application is obtained, the web page is displayed using the default display state of the display control;

[0104] When a state change instruction for a webpage is detected, the display control is adjusted from a default display state to a target display state based on the state change instruction.

[0105] According to some embodiments, Fig.15 A schematic diagram showing the structure of a control display callback device according to an embodiment of the present application is shown as follows: Fig.15 As shown, the state adjustment unit 1304 includes an instruction acquisition subunit 1314 and a state adjustment subunit 1324. The state adjustment unit 1304 is used to adjust the web page from the default display state to the target display state based on the state change instruction when a state change instruction for the web page is detected:

[0106] The instruction acquisition subunit 1314 is used to acquire a state change instruction for a web page based on the bridge communication channel JSBridge, where the state change instruction carries target display information;

[0107] The state adjustment subunit 1324 is used to control the display control to adjust from the default display state to the target display state corresponding to the target display information, and record the default display state.

[0108] According to some embodiments, the state information is a state flag of the display control;

[0109] Fig.16 A schematic diagram showing the structure of a control display callback device according to an embodiment of the present application is shown as follows: Fig.16 As shown, the state acquisition unit 1302 includes a state determination subunit 1312 and a state acquisition subunit 1322. The state acquisition unit 1302 is used to acquire the recorded default display state of the display control when the state information indicates that the display control is in the target display state:

[0110] The state determination subunit 1312 is used to determine that the display control is in a target display state when the state flag is a target flag;

[0111] The state acquisition subunit 1322 is used to reset the state flag from the target flag to the initial flag, and acquire the default display state corresponding to the initial flag.

[0112] According to some embodiments, the callback instruction is an instruction obtained based on JSBridge when there is a return operation on the web page;

[0113] The information acquisition unit 1301 is used to acquire the status information of the display control, specifically to:

[0114] Get the callback operation information carried by the callback instruction;

[0115] When the callback operation information indicates that a restore operation is to be performed on the display control, the state information of the display control is obtained.

[0116] According to some embodiments, the display controls of the control display callback device 1300 include at least one of a direction display control, a volume adjustment control, and a screen brightness adjustment control.

[0117] In one or more embodiments of the present application, when a callback instruction for a web page in a display control is detected, and when the acquired state information of the display control indicates that the display control is in the target display state, the recorded default display state of the display control can be obtained, and the display control can be controlled to be called back from the target display state to the default display state, so as to complete the control display callback. Therefore, when a return operation is detected on the display control, the control display callback device can control the display control to be called back to the default display state based on the state information of the display control, which can reduce the failure of the control display callback, increase the probability of the control display callback, and improve the convenience of the display control callback, thereby improving the user experience.

[0118] See also Fig.17 , is a schematic diagram of the structure of a terminal provided in an embodiment of the present application. Fig.17 As shown, the terminal 1700 may include: at least one processor 1701 , at least one network interface 1704 , a user interface 1703 , a memory 1705 , and at least one communication bus 1702 .

[0119] The communication bus 1702 is used to realize the connection and communication between these components.

[0120] The user interface 1703 may include a display screen (Display) and a GPS, and the optional user interface 1703 may also include a standard wired interface and a wireless interface.

[0121] The network interface 1704 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0122] Among them, the processor 1701 may include one or more processing cores. The processor 1701 uses various interfaces and lines to connect various parts in the entire terminal 1700, and executes various functions and processes data of the terminal 1700 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1705, and calling data stored in the memory 1705. Optionally, the processor 1701 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1701 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1701, and it can be implemented separately through a chip.

[0123] Among them, the memory 1705 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 1705 includes a non-transitory computer-readable storage medium. The memory 1705 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1705 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 1705 may also be optionally at least one storage device located away from the aforementioned processor 1701. As Fig.17 As shown, the memory 1705 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program for control display callback.

[0124] exist Fig.17In the terminal 1700 shown, the user interface 1703 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 1701 can be used to call the control display callback application stored in the memory 1705, and specifically perform the following operations:

[0125] When a callback instruction for a web page in a display control is detected, the state information of the display control is obtained, where the display control is a control for displaying a web page, and the callback instruction is an instruction generated when a return operation is detected on the display control based on the callback function interface;

[0126] When the state information indicates that the display control is in the target display state, obtaining the recorded default display state of the display control;

[0127] Controls the display control to call back from the target display state to the default display state.

[0128] According to some embodiments, the processor 1701 is used to execute the following operations before acquiring the status information of the display control when a callback instruction for the web page in the display control is detected:

[0129] When a display instruction for a web page in a terminal application is obtained, the web page is displayed using the default display state of the display control;

[0130] When a state change instruction for a webpage is detected, the display control is adjusted from a default display state to a target display state based on the state change instruction.

[0131] According to some embodiments, the processor 1701 is configured to, when a state change instruction for a web page is detected, adjust the web page from a default display state to a target display state based on the state change instruction, specifically perform the following operations:

[0132] Based on the bridge communication channel JSBridge, a state change instruction for a web page is obtained, and the state change instruction carries target display information;

[0133] The display control is controlled to be adjusted from a default display state to a target display state corresponding to the target display information, and the default display state is recorded.

[0134] According to some embodiments, the state information is a state flag of the display control;

[0135] The processor 1701 is used to execute the following operations specifically when the state information indicates that the display control is in the target display state and the default display state of the recorded display control is obtained:

[0136] When the state flag is the target flag, the display control is determined to be in the target display state;

[0137] Reset the state flag from the target flag to the initial flag, and obtain the default display state corresponding to the initial flag.

[0138] According to some embodiments, the callback instruction is an instruction obtained based on JSBridge when there is a return operation on the web page;

[0139] When the processor 1701 is used to execute the acquisition of the status information of the display control, the following specific operations are performed:

[0140] Get the callback operation information carried by the callback instruction;

[0141] When the callback operation information indicates that a restore operation is to be performed on the display control, the state information of the display control is obtained.

[0142] According to some embodiments, the display control includes at least one of a direction display control, a volume adjustment control, and a screen brightness adjustment control.

[0143] In one or more embodiments of the present application, when a callback instruction for a web page in a display control is detected, and when the acquired state information of the display control indicates that the display control is in the target display state, the recorded default display state of the display control can be obtained, and the display control can be controlled to be called back from the target display state to the default display state, so as to complete the control display callback. Therefore, when a return operation is detected on the display control, the display control can be controlled to be called back to the default display state based on the state information of the display control, which can reduce the failure of the control display callback, increase the probability of the control display callback, and improve the convenience of the display control callback, thereby improving the user experience.

[0144] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.

[0145] An embodiment of the present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all of the steps of any control display callback method recorded in the above method embodiment.

[0146] Those skilled in the art can clearly understand that the technical solution of the present application can be implemented with the help of software and / or hardware. The "unit" and "module" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array (FPGA), an integrated circuit (IC), etc.

[0147] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0148] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0149] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0150] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0151] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0152] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program code.

[0153] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by entering a program to instruct related hardware. The program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0154] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure here, those skilled in the art will easily think of other embodiments of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field not recorded in the present disclosure. The description and examples are only regarded as exemplary, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A control display callback method, characterized in that: The method comprises: When a display instruction of a web page in a terminal application is detected, a display control is created to display the web page; wherein the terminal application includes a browser application, the display control is a control in the terminal application for displaying the web page, and the browser application does not intercept a return operation of the web page; When a callback instruction for the web page in the display control is detected, the callback operation information carried by the callback instruction is obtained; wherein the callback instruction is an instruction obtained based on the bridge communication channel JSBridge when the web page in the display control has the return operation; When the callback operation information indicates that the display control is to be restored, the state information of the display control is obtained; wherein the state information of the display control includes at least one of the state information of the direction display control, the state information of the volume adjustment control and the state information of the screen brightness adjustment control; When the state information indicates that the display control is in a target display state, obtaining the recorded default display state of the display control; wherein the target display state and the default display state are different display states; The display control is controlled to be called back from the target display state to the default display state.

2. The method according to claim 1, characterized in that Before obtaining the status information of the display control, the method further includes: When a display instruction for the web page in the terminal application is obtained, the web page is displayed using the default display state of the display control; When a state change instruction for the webpage is detected, the display control is adjusted from the default display state to a target display state based on the state change instruction.

3. The method according to claim 2, characterized in that When a state change instruction for the webpage is detected, adjusting the webpage from the default display state to the target display state based on the state change instruction includes: Acquire a state change instruction for the web page based on the bridge communication channel JSBridge, wherein the state change instruction carries target display information; The display control is controlled to be adjusted from the default display state to a target display state corresponding to the target display information, and the default display state is recorded.

4. The method according to claim 1, characterized in that The state information is a state flag of the display control; When the state information indicates that the display control is in the target display state, obtaining the recorded default display state of the display control includes: When the state identification bit is a target identification bit, determining that the display control is in a target display state; The state identification bit is reset from the target identification bit to the initial identification bit, and a default display state corresponding to the initial identification bit is obtained.

5. The method according to claim 1, characterized in that: The display control includes at least one of a direction display control, a volume adjustment control, and a screen brightness adjustment control.

6. A control display callback device, characterized in that: The device comprises: A control creation unit, configured to create a display control to display the web page when a display instruction of a web page in a terminal application is detected; wherein the terminal application includes a browser application, the display control is a control in the terminal application for displaying the web page, and the browser application does not intercept a return operation of the web page; An information acquisition unit, configured to acquire callback operation information carried by the callback instruction when a callback instruction for the web page in the display control is detected; wherein the callback instruction is an instruction acquired based on the bridge communication channel JSBridge when the web page in the display control has the return operation; a state acquisition unit, configured to acquire state information of the display control when the callback operation information indicates that a restore operation is performed on the display control; wherein the state information of the display control includes at least one of state information of a direction display control, state information of a volume adjustment control, and state information of a screen brightness adjustment control; when the state information indicates that the display control is in a target display state, acquire the recorded default display state of the display control; wherein the target display state and the default display state are different display states; The state callback unit is used to control the display control to be called back from the target display state to the default display state.

7. The device according to claim 6, characterized in that The control display callback device further includes a state adjustment unit, which is specifically used to: When a display instruction for the web page in the terminal application is obtained, the web page is displayed using the default display state of the display control; When a state change instruction for the webpage is detected, the display control is adjusted from the default display state to a target display state based on the state change instruction.

8. A terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When a processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.