Search

EP-4130954-B1 - TERMINAL CONTROL METHOD AND APPARATUS, AND TERMINAL DEVICE

EP4130954B1EP 4130954 B1EP4130954 B1EP 4130954B1EP-4130954-B1

Inventors

  • DONG, MING
  • WANG, HAIJUN

Dates

Publication Date
20260506
Application Date
20210323

Claims (14)

  1. A terminal control method, applied to a terminal device in a multi-window mode, wherein the terminal device comprises a screen, and the method comprises: in response to a first operation performed on the terminal device, controlling the screen of the terminal device to display at least two split-screen windows, wherein the at least two split-screen windows comprise a first split-screen window and a second split-screen window, and the first split-screen window is used to display a first page of a first application (S701, S801); setting the first page to a preset state in response to a second operation performed on the first split-screen window (S702, S803), the preset state of the first page indicating that the first page is deliverable, wherein when the first page is deliverable, it indicates that the first page can be transformed from the first split-screen window to another split-screen window for display; and displaying the first page in the second split-screen window and displaying a second page of the first application in the first split-screen window in response to a third operation performed on the first page, wherein the second page is a previous page of the first page (S703, S807); thereby the displaying the first page in the first split-screen window is replaced with displaying the first page in the second split-screen window and displaying the second page in the first split-screen window at a same moment, where both the first page and the second page are pages of the same, first application, characterized in that the displaying the first page in the second split-screen window comprises: creating a new first activity stack when the third operation ends, wherein the first activity stack is used to indicate a page displayed in the second split-screen window (S1801); and displaying the first page in the second split-screen window based on the new first activity stack (S1804, S1806).
  2. The method according to claim 1, wherein the setting the first page to a preset state in response to a second operation performed on the first split-screen window comprises: in response to the second operation performed on the first split-screen window, determining whether the first page meets a preset condition (S802); and if yes, setting the first page to the preset state.
  3. The method according to claim 1 or 2, wherein before the setting the first page to a preset state in response to a second operation performed on the first split-screen window, the method further comprises: determining a preset page list, wherein the preset page list comprises a page that is deliverable in the first application, wherein the preset condition is that the preset page list comprises the first page.
  4. The method according to claim 2 or 3, wherein the setting the first page to the preset state comprises: obtaining a screenshot of the first page, and processing the screenshot of the first page to obtain a first floating window (S803).
  5. The method according to claim 4, wherein the displaying the first page in the second split-screen window in response to a third operation performed on the first page comprises: in response to the third operation performed on the first page, moving the first floating window to the second split-screen window (S805); and displaying the first page in the second split-screen window based on the first floating window (S806).
  6. The method according to claim 5, wherein the displaying the first page in the second split-screen window based on the first floating window comprises: determining whether an overlap ratio between the first floating window and the second split-screen window is greater than or equal to a preset threshold; and if yes, displaying the first page in the second split-screen window.
  7. The method according to claim 1 to 6, wherein the displaying the first page in the second split-screen window based on the first activity stack comprises: obtaining a first task record in which the first page is located, and determining whether the first task record comprises only the first page (S1802); if yes, binding the first task record to the first activity stack (S1803); and displaying the first page in the second split-screen window based on the first page comprised in the first task record bound to the first activity stack (S1804).
  8. The method according to claim 7, wherein if the first task record does not comprise only the first page, the method further comprises: creating a new second task record, moving the first page to the second task record, and binding the second task record to the first activity stack (S1805); and displaying the first page in the second split-screen window based on the first page comprised in the second task record bound to the first activity stack (S1806).
  9. The method according to claim 8, wherein in the first task record, the second page is a page adjacent to the first page.
  10. The method according to any one of claims 1 to 9, wherein the first operation is an operation for triggering a split-screen mode, the second operation is a preset gesture operation, and the third operation is a sliding operation.
  11. A terminal control apparatus (210), the apparatus comprising: a memory, configured to store a program; and a processing module (2101), configured to execute the program stored in the memory, wherein when the program is executed, the processor is configured to perform the method according to any one of claims 1 to 10.
  12. A terminal device, comprising: a terminal control apparatus according to claim 11; and a screen.
  13. A computer-readable storage medium, comprising instructions, wherein when the instructions are run on a computer, the computer is enabled to perform the method according to any one of claims 1 to 10.
  14. A program product, wherein the program product comprises a computer program, the computer program is stored in a readable storage medium, at least one processor of a communications apparatus can read the computer program from the readable storage medium, and the at least one processor executes the computer program, so that the communications apparatus implements the method according to any one of claims 1 to 10.

Description

TECHNICAL FIELD This application relates to the field of terminal device technologies, and in particular, to a terminal control method and apparatus, and a terminal device. BACKGROUND With continuous development of terminal devices, for a same APP (application, Application), a screen of the terminal device provides a plurality of operable pages at a same moment. This can effectively improve operation experience of a user. US20190187893A1 discloses a method that includes: if it is detected that at least one first menu on a first application interface receives a touch event entered by a user, starting a second application interface corresponding to any one of the at least one first menu. Transparency processing can be performed on a partial region of the upper-layer second application interface. In addition, the first application interface and the second application interface simultaneously displayed on a terminal device are simultaneously in an active state, and the first application interface and the second application interface can implement operation interaction. Currently, the application in the terminal device usually provides the plurality of operable pages at the same moment in a picture-in-picture mode. The picture-in-picture mode is a special type of multi-window mode, and is mainly used in video playing. Usually, the terminal device triggers the picture-in-picture mode by using service logic of the application. For example, in response to a return operation, the terminal device displays a currently playing video in a picture-in-picture window. However, in the foregoing triggering manner, the multi-window display cannot be performed on a specific page. As a result, the user cannot display the plurality of operable pages of the application at the same moment based on a requirement of the user, and this reduces operation flexibility of the terminal device. SUMMARY Embodiments of this application provide a terminal control method and apparatus, and a terminal device, to improve operation flexibility of the terminal device. According to a first aspect, an embodiment of this application provides a terminal control method according to claim 1, applied to a terminal device including a screen, and the method includes: in response to a first operation performed on the terminal device, controlling the screen of the terminal device to display at least two split-screen windows, where the at least two split-screen windows include a first split-screen window and a second split-screen window, and the first split-screen window is used to display a first page of a first application; setting the first page to a preset state in response to a second operation performed on the first split-screen window; and displaying the first page in the second split-screen window and displaying a second page of the first application in the first split-screen window in response to a third operation performed on the first page, where the second page is a previous page of the first page. By using the first operation in the foregoing process, the second operation, and the third operation, multi-window display for a specific page of the first application is actively implemented. This can effectively improve operation flexibility of the terminal device. In a possible implementation, the setting the first page to a preset state in response to a second operation performed on the first split-screen window may include: in response to the second operation performed on the first split-screen window, determining whether the first page meets a preset condition; and if the first page meets the preset condition, setting the first page to the preset state. Some pages are deliverable, but some pages are not deliverable. Therefore, when it is determined that the first page meets the preset condition, the first page may be set to the preset state. This can ensure implementability of setting the first page to the preset state. In a possible implementation, before the setting the first page to a preset state in response to a second operation performed on the first split-screen window, the method further includes: determining a preset page list, where the preset page list includes a page that is deliverable in the first application. The preset condition is that the preset page list includes the first page. In the foregoing process, the preset page list is predetermined, so that the page that is in the first application and that is deliverable can be determined simply and efficiently. In a possible implementation, the setting the first page to a preset state includes: obtaining a screenshot of the first page, and processing the screenshot of the first page to obtain a first floating window. The screenshot of the first page is processed to obtain the first floating window, to provide a good visual effect for the user in a process of delivering the first page, so as to effectively improve user experience. In a possible implementation, the displaying the first