Application display method and device, electronic equipment and storage medium
By responding to the operation of the operating system or application in the terminal device, determining the display method and displaying the application live data in real time, the problem of cumbersome switching of the display method during the background of the application is solved, convenient non-full-screen display is achieved, and users are enhanced Experience.
Patent Information
- Application Number
- CN202410951247.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-11-26
AI Technical Summary
In the prior art, it is difficult for applications to switch to different non-full-screen display methods easily when running in the background, and the operation is cumbersome and affects the user experience.
By responding to operations triggered by the operating system or application, determine the target display method, and display the application's live data in real time in the terminal device, and use different display controls to achieve non-full-screen display, including floating windows, components and notification bars.
It realizes that when the application continues to run in the background, conveniently displaying live data in different non-full-screen display methods, improving user experience and facilitating terminal devices to view application status.
Smart Images

Figure CN119024987A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for displaying an application. Background Art
[0002] When operating a terminal device, a user hopes that some applications can continue to run in the background and display the live video in a non-full-screen form, so as to facilitate other operations on the terminal device, such as operating other applications or locking the screen.
[0003] In the prior art, users can only specify the background display mode through the relevant settings of the application, and then switch the application to the background display through a single background switching operation. When the application needs to be displayed in a different background display mode, the relevant settings of the application can only be modified. This operation method has the technical problem of being too cumbersome. Summary of the invention
[0004] In view of this, an object of the present disclosure is to provide a method, device, electronic device and storage medium for displaying an application, so as to conveniently switch the application to different non-full-screen display modes.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for displaying an application, the method comprising: in response to an operation of switching a target application to run continuously in the background, determining a target display mode of the target application according to the operation; wherein the operation is used to indicate a first operation triggered by an operating system of a terminal device or a second operation triggered in the target application, and the target display mode is used to indicate a mode in which target live data of the target application is displayed in a non-full-screen manner on the terminal device; switching the target application to run continuously in the background, and acquiring the target live data of the target application; based on the target display mode, determining a display control for displaying the target live data on the terminal device; and displaying the acquired target live data in real time in the display control.
[0006] In a second aspect, an embodiment of the present disclosure provides a display device for an application, the device comprising: a response module, for responding to an operation of switching a target application to the background for continuous operation, and determining a target display mode of the target application according to the operation; wherein the operation is used to indicate a first operation triggered by an operating system of a terminal device or a second operation triggered by the target application, and the target display mode is used to indicate a mode in which target live data of the target application is displayed in a non-full-screen manner on the terminal device; an acquisition module, for switching the target application to the background for continuous operation, and acquiring the target live data of the target application; a determination module, for determining a display control for displaying the target live data on the terminal device based on the target display mode; and a display module, for displaying the acquired target live data in real time in the display control.
[0007] In a third aspect, an embodiment of the present disclosure provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the display method of the above-mentioned application.
[0008] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the display method of the above-mentioned application.
[0009] The embodiments of the present disclosure bring the following beneficial effects:
[0010] The display method, device, electronic device and storage medium of the above-mentioned application can conveniently display the real-time data of the application in different non-full-screen display modes through different operations, so that when the application continues to run in the background, the terminal device can conveniently view the real-time data of the application through different display controls, and the hang-up experience is better.
[0011] Other features and advantages of the present disclosure will be described in the following description, and partly become apparent from the description, or understood by practicing the present disclosure. The purpose and other advantages of the present disclosure are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0012] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0014] Figure 1 A flowchart of an embodiment of a method for displaying an application in an embodiment of the present disclosure;
[0015] Figure 2 A schematic diagram of a method for displaying an application in an embodiment of the present disclosure;
[0016] Figure 3 is another schematic diagram of a method for displaying an application program in an embodiment of the present disclosure;
[0017] Figure 4 is another schematic diagram of a method for displaying an application program in an embodiment of the present disclosure;
[0018] Figure 5 is another schematic diagram of a method for displaying an application program in an embodiment of the present disclosure;
[0019] Figure 6 is another schematic diagram of a method for displaying an application program in an embodiment of the present disclosure;
[0020] Figure 7 is another schematic diagram of a method for displaying an application program in an embodiment of the present disclosure;
[0021] Figure 8 is another schematic diagram of a method for displaying an application program in an embodiment of the present disclosure;
[0022] Fig. 9 is another schematic diagram of a method for displaying an application program in an embodiment of the present disclosure;
[0023] Fig.10 A schematic diagram of a display device for an application provided in an embodiment of the present disclosure;
[0024] Fig.11 A schematic diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0026] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof 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 necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] For ease of understanding, the specific process of the embodiment of the present disclosure is described below. Figure 1 , an embodiment of the display method of the application in the embodiment of the present disclosure includes:
[0028] Step S10, in response to the operation of switching the target application to the background for continuous operation, determining the target display mode of the target application according to the operation; wherein the operation is used to indicate a first operation triggered by the operating system of the terminal device or a second operation triggered by the target application, and the target display mode is used to indicate a mode in which the target live data of the target application is displayed in a non-full screen manner on the terminal device;
[0029] It can be understood that switching any application to the background for continuous operation means running the application on hang-up. During the hang-up period, the application keeps running in the background and does not go offline. Specifically, it means that the application maintains a connection with the application server and does not disconnect. The application server is a server used to interact with the application, which can process and store the data generated by the application. The specific details are not limited here.
[0030] In this embodiment, when the terminal device triggers an operation to switch the target application to the background for continuous operation, different target display modes correspond to different operations, so that the non-full-screen display mode of the target application on the terminal device can be easily realized through different operations, thereby conveniently switching the application to different non-full-screen display modes. For example, the first operation can switch the target application to the first display mode, and the second operation can switch the target application to the second display mode, wherein the first display mode and the second display mode are both modes in which the target live data of the target application is displayed in the non-full-screen mode of the terminal device.
[0031] It should be noted that the operation of switching the target application to the background for continuous operation can be a first operation triggered by the operating system of the terminal device, or a second operation triggered by the target application, that is, the first operation is at the operating system level, and the second operation is at the application level. For example, the first operation can be triggered by a preset system button or a preset system operation gesture of the terminal device, and the second operation can be triggered by a preset button or a preset operation gesture in the target application, which is not limited here.
[0032] In one embodiment, the target display mode is one of at least two preset display modes, and the preset display mode refers to the mode in which the target live data of the target application is displayed in a non-full screen on the terminal device, wherein the preset display mode may include a specific interface display mode and a non-specific interface display mode. Further, the specific interface display mode may also include at least one specific interface display mode, such as a first specific interface display mode, a second specific interface display mode, and a third specific interface display mode, etc., which are not specifically limited here. For example, the specific interface may be any interface of the terminal device such as the main interface (desktop) of the terminal device, the notification list interface, the main interface of the external screen, and the main interface of the back screen. The non-specific interface display mode is a display mode that is unrelated to the interface of the terminal device. The display control of the non-specific interface display mode is not bound / associated with any interface of the terminal device, and can be displayed / triggered on any interface. In this embodiment, the application can be switched to a specific interface / non-specific interface to hang up through different operations, and the flexibility and convenience of selecting the hang-up mode are improved.
[0033] In one embodiment, when the terminal device includes at least two display screens, the preset display mode may include at least one display mode of the first screen and at least one display mode of the second screen, wherein the first screen may be a front screen, the second screen may be a back screen, and at least one display mode of the front screen and the back screen may be the same or different, which is not specifically limited here. For example, when the first screen and the second screen of the terminal device are both on the same surface, the first screen and the second screen are used as a whole screen, and the target application is displayed in full screen on the whole screen, and when the first screen and the second screen are folded up, the first screen and the second screen are divided into a front screen and a back screen, and the target application can be displayed on the front screen and / or the back screen in different display modes. For example, according to the operation of switching the target application to the background for continuous operation, the target application can be switched to full screen display on the back screen (the operation can be locked), or the target application can be switched to floating window display on the front screen and / or the back screen, or it can be switched to component display on the front screen and / or the back screen, and the specific display mode is not limited here.
[0034] It can be understood that both the first operation and the second operation can determine one of at least two preset display modes as the target display mode. In one embodiment, different operations can correspond to different instructions, and different instructions correspond to different preset display modes. When determining the target display mode of the target application according to the operation, the preset display mode corresponding to the instruction can be determined as the target display mode of the target application according to the instruction triggered by the operation, thereby making the on-hook operation of the application more efficient and convenient.
[0035] It should be noted that the target live data is any data that the target application needs to display in a non-full screen. In one embodiment, the data range of the target live data can be preset by the system settings of the terminal device or the configuration of the target application. When obtaining the target live data of the target application, the target live data can be obtained according to the data range preset by the system settings of the terminal device or the configuration of the target application. As an example but not a limitation, the target live data corresponding to different types of applications can be different. For example, for a live broadcast type application, the target live data can be multimedia objects such as videos, images, text, and voices that the application is broadcasting live; for a video type application, the target live data can be a video that the application is broadcasting live; for a reading type application, the target live data can be a book being read; for a game type application, the target live data can be a real-time picture of the game, a task progress, an ongoing event, etc.; this embodiment can improve the flexibility and diversity of the non-full screen display of the application by specifying different data to be displayed in a non-full screen in the display control, and the user experience is better.
[0036] In one embodiment, the target real-time data may also include information related to the on-hook attributes, such as the on-hook duration (i.e., the duration of the target application being switched to the background for continuous operation), the on-hook time (i.e., the time when the target application is switched to the background for continuous operation), the on-hook number (i.e., the number of display controls), the on-hook account (i.e., the account for logging into the target application), the number of on-hook accounts (i.e., the number of accounts for logging into the target application on this terminal device), etc., which are not specifically limited here.
[0037] Step S20: Switch the target application to the background to continue running, and obtain the target live data of the target application;
[0038] It is understandable that after triggering the operation of switching the target application to the background for continuous operation, the target application is hung up, so that the target application remains in the background without being disconnected, and the data that the target application needs to display in a non-full screen is obtained, and the target live data is obtained. In one embodiment, before switching the target application to the background for continuous operation, it can be determined whether the target application is already in the background for continuous operation. If so, there is no need to switch again. If not, the target application is switched to the background for continuous operation. This embodiment allows the application to remain in the background for non-full screen display, so that the terminal device can perform other operations, and the convenience of operation is improved.
[0039] It should be noted that there are many ways to keep the target application running in the background. For example, the target application can be kept running in the background without being disconnected by executing scheduled tasks (such as updating data, pushing messages, etc.) through background tasks / services, connecting to the application server through a persistent connection (such as WebSocket), and regularly sending / receiving heartbeat signals through a heartbeat mechanism. The details will not be repeated here.
[0040] Step S30: determining a display control for displaying target live data on a terminal device based on the target display mode;
[0041] It can be understood that different preset display modes correspond to different types of display controls, the size of the display control is smaller than the size of the terminal device screen, and the display control is used to display the target live data of the target application. For example, assuming that the preset display mode includes a first display mode and a second display mode, then the first display mode can correspond to a first display control, and the second display mode can correspond to a second display control. The first display control can be a floating window, and the second display control can be a component. The specific details are not limited here.
[0042] In one embodiment, after determining that the terminal device displays the display control of the target live data, it is also possible to determine whether the terminal device has generated a display control corresponding to the target display mode. If so, there is no need to generate the display control again. If not, a display control corresponding to the target display mode is generated. For example, assuming that the display control corresponding to the target display mode is a floating window, it is first determined whether the terminal device has generated a floating window of the target application. If so, there is no need to generate a floating window of the target application. The target live data acquired in real time can be directly displayed in the floating window of the target application. If not, a floating window of the target application is generated to display the acquired target live data in real time.
[0043] Step S40: Display the acquired target live data in real time in the display control.
[0044] In this embodiment, the display control displays the target live data of the target application in real time. In one embodiment, the target live data of the target application is obtained according to a preset frequency, and the target live data displayed in the display control is refreshed to display the latest acquired target live data in the display control. For example, assuming that the preset frequency is 1 second, the target live data of the target application is obtained once every 1 second, and the acquired target live data is refreshed to the display control for display, which is not limited here. In one embodiment, the preset frequency can be set by the operating system of the terminal device, or by the configuration setting of the target application, which is not limited here.
[0045] In one embodiment, the display control displays the target live data acquired in real time according to the preset display attributes, wherein the preset display attributes can be set by the operating system of the terminal device, or by the configuration setting of the target application, which is not specifically limited here. For example, the preset display attributes can be the size, color, line spacing, etc. of the font displayed in the display control, or the size, alignment, etc. of the displayed image. In one embodiment, if the target live data is a game screen or video, the preset display attributes of the display control indicate that the target live data is displayed in the display control according to a preset zoom ratio, wherein the preset zoom ratio can be determined according to the ratio between the full screen display size of the terminal device and the size of the display control, which is not specifically limited here.
[0046] The application display method provided in the above implementation can conveniently display the real-time data of the application in different non-full-screen display modes through different operations, so that when the application continues to run in the background, the terminal device can conveniently view the real-time data of the application through different display controls, and the on-hook experience is better.
[0047] For easier understanding, the following are specific operations for switching an application to the background for continuous operation.
[0048] In one embodiment, in response to a first operation of switching a target application to continuously run in the background, a target display mode of the target application is determined according to the first operation; or, in response to a second operation of switching the target application to continuously run in the background, a target display mode of the target application is determined according to the second operation; wherein the first operation is triggered on a background application list interface of a terminal device, the background application list interface includes an indication card of at least one first application, the first application is an application that has not performed a shutdown operation after being started, and the second operation is triggered by a control within the target application, and the indication card is used to switch the corresponding first application to the foreground to run or close it.
[0049] It is understandable that after the application of the terminal device is started, the user can switch the application to the background through a preset operation. In order to avoid problems such as too many applications occupying computing resources or applications occupying computing resources for too long, the operating mechanism of the terminal device switches the application to run in the background. After a certain period of time, the computing resources occupied by the application will be released, and the application will be in a disconnected / offline state. At this time, if the application is switched back to the foreground, it is equivalent to restarting the application. It should be noted that the difference between switching the application to run in the background and switching the application to run continuously in the background is whether the application will be disconnected / offline within the preset time. The former will be disconnected / offline within the preset time, while the latter will not be disconnected / offline within the preset time.
[0050] In this embodiment, the first application that has been started and has not been closed is displayed with a corresponding indicator card in the background application list interface, that is, the background application list interface is used to display the indicator card corresponding to the first application, wherein the first application refers to an application that has not been closed after being started by the user, and the running state of the first application can be in the background running state, or in the non-running / disconnected / offline state, or in the foreground running state, which is not specifically limited here. It can be understood that the closing operation is used to delete the indicator card corresponding to the first application in the background application list interface, and at the same time release the computing resources occupied by the first application. The application is in the non-running / disconnected / offline state, and the closing operation can be dragging the indicator card corresponding to the first application in the background application list interface in a specified direction and releasing it, which is not specifically limited here.
[0051] In one embodiment, dragging any indicator card in the background application list interface to a specified direction corresponding to any preset display mode and then releasing it can be used as a first operation, wherein each preset display mode corresponds to a specified direction. For example, dragging the indicator card corresponding to the first application to the right and then releasing it can determine the first display mode as the target display mode, dragging the indicator card corresponding to the first application to the left and then releasing it can determine the second display mode as the target display mode, and dragging the indicator card corresponding to the first application downward and then releasing it can determine the third display mode as the target display mode. The specifics are not limited here. To avoid mutual exclusion with the closing operation of the first application, the specified direction corresponding to the preset display mode is different from the specified direction corresponding to the closing operation. For example, assuming that dragging upward and releasing is the closing operation of closing the first application, then the specified direction corresponding to the preset display mode can be left, right, downward, to the upper left corner, to the upper right corner, to the lower left corner, or to the lower right corner, etc., as long as it is different from the direction of dragging the indicator card for the closing operation.
[0052] In one embodiment, the background application list interface can also be used to display selection controls corresponding to at least two preset display modes, wherein the selection controls can be displayed directly on the background application list interface, or can be displayed on the background application list interface after a specified operation.
[0053] On the one hand, the selection controls can be displayed directly on the background application list interface. In one embodiment, the background application list interface of the terminal device displays a group of selection controls corresponding to each indication card; wherein each group of selection controls includes selection controls corresponding to at least two preset display modes; in response to a selection operation on any selection control corresponding to the target application, the preset display mode corresponding to the selection control indicated by the selection operation is determined as the target display mode of the target application; wherein the selection operation is the first operation to switch the target application to the background for continuous operation.
[0054] By way of example and not limitation, Figure 2 The figure shows a schematic diagram of a background application list interface, in which the indicator cards in the background application list interface are arranged in layers, the indicator card A corresponds to the first application A, and the indicator card B corresponds to the first application B. Assuming that there are three preset display modes, Figure 3 The figure shows a schematic diagram of directly displaying the selection control in the background application list interface. Figure 3 In the figure, selection control 1, selection control 2 and selection control 3 are a group of selection controls corresponding to the indicator card B, that is, a group of selection controls corresponding to the first application B. Each selection control corresponds to a preset display mode. When selection control 1 is selected in the selection operation, the preset display mode corresponding to selection control 1 is the target display mode.
[0055] Specifically, the selection operation can be for a selection control or for an indicator card. For example, the selection operation can be clicking or long pressing the corresponding selection control, or dragging the indicator card to a preset hit area corresponding to the selection control and releasing it, or sliding the indicator card in the direction of the selection control. It can also be any other selection operation method, which will not be described in detail here.
[0056] Furthermore, for the indicator cards displayed in a stacked arrangement, since different first applications correspond to different selection control groups (i.e., a group of selection controls), in order to avoid displaying all the selection control groups corresponding to all first applications at the same time in the background application list interface, only a group of selection controls corresponding to the first application in which the indicator card is in the target area is displayed in the background application list interface, wherein the target area may be any area of the background application list interface, such as the central area of the background application list interface, and the size of the target area may be greater than or equal to the size of the indicator card, which is not specifically limited here.
[0057] In one implementation, the indicator cards of the background application list interface may also be displayed in a tiled arrangement, such as Figure 4 As shown, for the instruction cards displayed in a tiled arrangement, a group of selection controls corresponding to each instruction card can be directly displayed in the corresponding instruction card, or displayed on the outside of any side of the corresponding instruction card, such as above, below, left, or right of the instruction card, without specific limitation here.
[0058] On the other hand, selection controls may also be displayed on the background application list interface after a specified operation. In one embodiment, in response to a trigger operation on an indication card corresponding to a target application on the background application list interface of a terminal device, a group of selection controls corresponding to the target application are displayed; wherein, the group of selection controls corresponding to the target application includes selection controls corresponding to at least two preset display modes, respectively; in response to a selection operation on any selection control corresponding to the target application, the preset display mode corresponding to the selection control indicated by the selection operation is determined as the target display mode of the target application; wherein, the selection operation is the first operation to switch the target application to the background for continuous operation.
[0059] In this implementation, the user can display a set of selection controls corresponding to the target application by triggering the indicator card corresponding to the target application in the background application list interface of the terminal device, wherein the trigger operation can be a click, long press, double click, slide, etc., which are not specifically limited here. Taking the indicator cards displayed in a stacked arrangement as an example, the trigger operation can be to drag the indicator card corresponding to the target application to display a set of selection controls corresponding to the target application, and then release the indicator card corresponding to the target application in the preset hit area corresponding to any selection control by dragging and dropping, thereby triggering the selection operation for any selection control corresponding to the target application. The selection operation can also be triggered by other methods, which will not be described in detail here. Figure 5 As shown, the user can drag the indication card B to the preset hit area corresponding to the selection control 1 or the selection control 2 and release it. The preset display mode indicated by the selection control corresponding to the released preset hit area is the target display mode, wherein the preset hit area corresponding to the selection control can be the interface area occupied by the selection control.
[0060] In one embodiment, the trigger operation may also be long pressing the indicator card corresponding to the target application, and the set of selection controls corresponding to the displayed target application may be an option list of preset display modes, the option list includes options indicating all preset display modes, and in response to a selection operation for any option, a selection operation for any selection control corresponding to the target application is triggered, and the preset display mode corresponding to the selected option is determined as the target display mode. Figure 6 As shown, taking the indicator cards displayed in a tiled arrangement as an example, in the background application list interface, long press the indicator card A to display the option list corresponding to the first application A. The option list contains options indicating all preset display modes. Select one of the options. Assuming that the selection operation is to click the option indicating "floating window hang up" in the option list, the floating window is the target display mode, and the first application A hangs up in the floating window display mode.
[0061] In one embodiment, after selecting any selection control, the selected selection control is switched from an unselected state to a selected state to avoid repeated selection. Specifically, after determining the target display mode of the target application, the display state of the selection control corresponding to the target display mode is switched to a selected state.
[0062] In one embodiment, any application of a terminal device can only be displayed in a non-full screen manner in the terminal device in a preset display mode. That is, when responding to an operation of switching a target application to the background for continuous operation, it is first determined whether the target application is already in the background for continuous operation, or whether a display control for the target application already exists on the terminal device. If one of the conditions is met, subsequent steps are no longer executed, and the operation of switching the target application to the background for continuous operation is an invalid operation. If both conditions are not met, subsequent steps are continued.
[0063] The second operation is described in detail below. The second operation is triggered by a control within the target application. In one embodiment, at least one on-hook switching control is provided in the target application; wherein the on-hook switching control is used to switch the target application to the background for continuous operation, and each on-hook switching control corresponds to a preset display mode, which is used to indicate a non-full-screen display mode of the target live data of the target application on the terminal device; in response to a trigger operation on any on-hook switching control, the preset display mode corresponding to the on-hook switching control indicated by the trigger operation is determined as the target display mode of the target application; wherein the trigger operation is the second operation of switching the target application to the background for continuous operation.
[0064] In this embodiment, the hang-up switching control can be displayed in any interface of the target application. At least one hang-up switching control can be displayed in the same interface or in different interfaces. For example, a "floating window hang-up" button can be displayed in a pop-up window of the target application. The button is the hang-up switching control of the floating window display mode. The user can click the button to trigger the floating window display mode to be determined as the target display mode, so that the target application hangs up in the floating window display mode.
[0065] The following provides a variety of display controls in different forms, including but not limited to: floating windows, components, and notification controls.
[0066] In one embodiment, the target display mode is any one of at least three preset display modes, and the at least three preset display modes include a floating window display mode, a component display mode and a notification bar display mode; based on the target display mode, the step of determining a display control for displaying the target live data on the terminal device includes: if the target display mode is a floating window display mode, a target display floating window is generated on the terminal device; wherein the target display floating window is a display control for the target live data; if the target display mode is a component display mode, a desktop component corresponding to the target application is determined as a display control for the target live data; if the target display mode is a component display mode, a notification control of the target application is generated on the notification list interface of the terminal device, and the notification control is determined as a display control for the target live data; wherein the notification list interface is used to display notifications received by the terminal device.
[0067] In this embodiment, the preset display mode includes a floating window display mode, a component display mode and a notification bar display mode, and the target display mode is any one of all the preset display modes. If the target display mode is a floating window display mode, a target display floating window is generated on the terminal device as a display control of the target live data; if the target display mode is a component display mode, a desktop component corresponding to the target application is used as a display control of the target live data; if the target display mode is a notification bar display mode, a notification control of the target application is generated on the notification list interface of the terminal device as a display control of the target live data, wherein the notification list interface is an interface for displaying notifications received by the terminal device. For any preset display mode, before generating a display control, it can be determined whether the display control corresponding to the preset display mode already exists. If it already exists, there is no need to generate it again. For example, the desktop component corresponding to the target application may already exist in the terminal device before triggering the operation of switching the target application to the background for continuous operation. Then, there is no need to generate the desktop component corresponding to the target application again, but the desktop component corresponding to the existing target application can be used as the display control of the target live data. Similarly, the target display floating window and notification control are also the same, and the specific description is not repeated here.
[0068] It is understandable that the target display floating window is a window that is kept at the top level of the terminal device. Except for the specific interface, the target display floating window is displayed at the top level of the terminal device interface and will not be blocked. The specific interface includes at least the lock screen interface and the notification list interface, which are not limited here. The desktop component is a lightweight display container of the terminal device, which is usually fixed to any screen of the terminal device's main interface. The desktop component can also display other data in addition to the target live data; the notification control is a display control in the notification bar, which is also called the notification list interface.
[0069] By way of example and not limitation, Figure 7 FIG. 1 is a schematic diagram of a target display floating window. Figure 8 The figure shows a schematic diagram of a desktop component, wherein the desktop component can be placed on any screen of the main interface. Figure 8 The time component, weather component, and game component in the target application can all be used as desktop components of the target application, and there is no specific limitation here; Fig. 9 The following is a schematic diagram of the notification list interface. Fig. 9 The notification control in can be used to display the target live data of the target application.
[0070] In one embodiment, the terminal device can cancel the display of the on-hook data (i.e., the target live data). Specifically, after the acquired target live data is displayed in real time in the display control, in response to the cancel display operation for the display control, the display of the corresponding display control is canceled, or the display of the target live data by the corresponding display control is canceled. In this embodiment, the cancel display operation can be performed on any display control of the terminal device. In response to the cancel display operation for any display control, the display of the corresponding display control can be canceled, or the display of the on-hook data by the corresponding display control can be canceled. The difference between the two is that the former deletes the display control, while the latter still retains the display control, but the content displayed on the display control is deleted. At this time, the display control can restore the display of the default content, or it can not display any content. The specifics are not limited here.
[0071] In one embodiment, if the display control is a desktop component, that is, a component display mode, the display of the on-hook data by the corresponding display control is canceled, that is, the display control is still retained, and only the content displayed on the display control is deleted, and if the display control is not a desktop component (such as a floating window and a notification control), the display of the display control is deleted. Specifically, in response to a cancel display operation for a display control of a desktop component, the display of the target live data by the corresponding display control is canceled; in response to a cancel display operation for a display control of a non-desktop component, the display of the corresponding display control is canceled.
[0072] In one embodiment, in order to facilitate the user to know whether the target application is offline, it is possible to detect whether the target application is in an offline state according to a preset detection frequency. When the target application is detected to be in an offline state, in response to the target application being offline, offline reminder information is displayed in all display controls of the target live data, for example, "the game is offline", "the application is offline", etc., to remind the user that the application is offline. Specifically, after the acquired target live data is displayed in real time in the display control, in response to the target application being offline, offline reminder information is displayed in the display control. It can be understood that the application is offline means that the computing resources occupied by the application are released, and the connection between the terminal device and the application server is disconnected. If the target application is offline, all display controls of the target application display offline reminder information. For example, assuming that the display control of the target application includes a target display floating window and a desktop component at the same time, then the content displayed by the two display controls is the same, which is the target live data acquired in real time, or the offline reminder information.
[0073] Specifically, in one embodiment, the target application is a game application, and the target live data is a real-time game screen of the game application. Further, the disclosed embodiment is particularly suitable for massively multiplayer online (MMO) type game applications, which can be kept running in the background for a long time, and the player experience of the MMO type game application is better without disconnection.
[0074] Corresponding to the above method embodiment, see Fig.10 A schematic diagram of a display device for an application is shown, the device comprising: a response module 1001, used to respond to an operation of switching a target application to a background for continuous operation, and determine a target display mode of the target application according to the operation; wherein the operation is used to indicate a first operation triggered by an operating system of a terminal device or a second operation triggered by the target application, and the target display mode is used to indicate a mode in which target live data of the target application is displayed in a non-full screen manner on the terminal device; an acquisition module 1002, used to switch the target application to a background for continuous operation, and acquire the target live data of the target application; a determination module 1003, used to determine a display control for displaying the target live data on the terminal device based on the target display mode; and a display module 1004, used to display the acquired target live data in real time in the display control.
[0075] The display device of the above application can conveniently display the real-time data of the application in different non-full-screen display modes through different operations, so that when the application continues to run in the background, the terminal device can conveniently view the real-time data of the application through different display controls, and the on-hook experience is better.
[0076] Optionally, the response module 1001 includes: a first response unit, used to respond to a first operation of switching the target application to the background for continuous operation, and determine the target display mode of the target application according to the first operation; or, a second response unit, used to respond to a second operation of switching the target application to the background for continuous operation, and determine the target display mode of the target application according to the second operation; wherein, the first operation is triggered on the background application list interface of the terminal device, and the background application list interface includes an indication card of at least one first application, and the first application is an application that has not performed a shutdown operation after being started, and the second operation is triggered by the control within the target application.
[0077] Optionally, the above-mentioned first response unit is also used for: displaying a group of selection controls corresponding to each indication card on the background application list interface of the terminal device; wherein each group of selection controls includes selection controls corresponding to at least two preset display modes respectively; in response to a selection operation on any selection control corresponding to the target application, determining the preset display mode corresponding to the selection control indicated by the selection operation as the target display mode of the target application; wherein the selection operation is the first operation to switch the target application to the background for continuous operation.
[0078] Optionally, the above-mentioned first response unit is also used to: in response to a trigger operation on an indication card corresponding to a target application on a background application list interface of a terminal device, display a group of selection controls corresponding to the target application; wherein the group of selection controls corresponding to the target application includes selection controls corresponding to at least two preset display modes respectively; in response to a selection operation on any selection control corresponding to the target application, determine the preset display mode corresponding to the selection control indicated by the selection operation as the target display mode of the target application; wherein the selection operation is a first operation to switch the target application to the background for continuous operation.
[0079] Optionally, the above-mentioned device also includes: a switching module, used to switch the display state of the selection control corresponding to the target display mode to a selected state.
[0080] Optionally, the above-mentioned second response unit is specifically used to: provide at least one hang-up switching control in the target application; wherein the hang-up switching control is used to switch the target application to the background for continuous operation, each hang-up switching control corresponds to a preset display mode, and the preset display mode is used to indicate the target live data of the target application in a non-full-screen display mode of the terminal device; in response to a trigger operation on any hang-up switching control, the preset display mode corresponding to the hang-up switching control indicated by the trigger operation is determined as the target display mode of the target application; wherein the trigger operation is a second operation to switch the target application to the background for continuous operation.
[0081] Optionally, the target display mode is any one of at least three preset display modes, and the at least three preset display modes include a floating window display mode, a component display mode and a notification bar display mode; the above-mentioned determination module is specifically used to: if the target display mode is a floating window display mode, then generate a target display floating window on the terminal device; wherein the target display floating window is a display control for target live data; if the target display mode is a component display mode, then determine the desktop component corresponding to the target application as the display control for the target live data; if the target display mode is a component display mode, then generate a notification control of the target application on the notification list interface of the terminal device, and determine the notification control as the display control for the target live data; wherein the notification list interface is used to display notifications received by the terminal device.
[0082] Optionally, the above-mentioned device also includes: a canceling module, which is used to cancel the display of the corresponding display control or cancel the display of the target live data by the corresponding display control in response to a cancel display operation on the display control.
[0083] Optionally, the above device further includes: a reminder module, configured to display offline reminder information on the display control in response to the target application being offline.
[0084] Optionally, the target application is a game application, and the target live data is a real-time game screen of the game application.
[0085] This embodiment also provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned application display method. The electronic device can be a server or a terminal device.
[0086] See also Fig.11As shown, the electronic device includes a processor 1100 and a memory 1101 , wherein the memory 1101 stores machine executable instructions that can be executed by the processor 1100 , and the processor 1100 executes the machine executable instructions to implement the above-mentioned application display method.
[0087] Further, Fig.11 The electronic device shown further includes a bus 1102 and a communication interface 1103 , and the processor 1100 , the communication interface 1103 and the memory 1101 are connected via the bus 1102 .
[0088] The memory 1101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 1103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 1102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0089] The processor 1100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 1100. The above processor 1100 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present disclosure can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, register, or other mature storage media in the art. The storage medium is located in the memory 1101, and the processor 1100 reads the information in the memory 1101 and completes the steps of the method of the aforementioned embodiment in combination with its hardware, for example:
[0090] In response to an operation of switching a target application to run continuously in the background, a target display mode of the target application is determined according to the operation; wherein the operation is used to indicate a first operation triggered by an operating system of a terminal device or a second operation triggered by the target application, and the target display mode is used to indicate a mode in which target live data of the target application is displayed in a non-full screen manner on the terminal device; the target application is switched to run continuously in the background, and the target live data of the target application is acquired; based on the target display mode, a display control for displaying the target live data on the terminal device is determined; and the acquired target live data is displayed in real time in the display control.
[0091] In this way, the live data of the application can be conveniently displayed in different non-full-screen display modes through different operations, so that when the application continues to run in the background, the terminal device can conveniently view the live data of the application through different display controls, and the on-hook experience is better.
[0092] Optionally, in response to an operation of switching a target application to run continuously in the background, determining a target display mode of the target application according to the operation, including: in response to a first operation of switching the target application to run continuously in the background, determining the target display mode of the target application according to the first operation; or, in response to a second operation of switching the target application to run continuously in the background, determining the target display mode of the target application according to the second operation; wherein the first operation is triggered on a background application list interface of a terminal device, the background application list interface includes an indication card of at least one first application, the first application is an application that has not performed a shutdown operation after being started, and the second operation is triggered by a control within the target application.
[0093] Optionally, in response to a first operation to switch a target application to the background for continuous operation, a target display mode of the target application is determined according to the first operation, including: a background application list interface of the terminal device displays a group of selection controls corresponding to each indication card; wherein each group of selection controls includes selection controls corresponding to at least two preset display modes; in response to a selection operation corresponding to any selection control corresponding to the target application, the preset display mode corresponding to the selection control indicated by the selection operation is determined as the target display mode of the target application; wherein the selection operation is the first operation to switch the target application to the background for continuous operation.
[0094] Optionally, in response to a first operation to switch a target application to the background for continuous operation, determining a target display mode of the target application according to the first operation, including: in response to a trigger operation on an indication card corresponding to the target application on a background application list interface of a terminal device, displaying a group of selection controls corresponding to the target application; wherein the group of selection controls corresponding to the target application includes selection controls corresponding to at least two preset display modes; in response to a selection operation on any selection control corresponding to the target application, determining the preset display mode corresponding to the selection control indicated by the selection operation as the target display mode of the target application; wherein the selection operation is the first operation to switch the target application to the background for continuous operation.
[0095] Optionally, after determining the target display mode of the target application, the method further includes: switching the display state of the selection control corresponding to the target display mode to a selected state.
[0096] Optionally, in response to a second operation of switching the target application to the background for continuous operation, determining the target display mode of the target application according to the second operation, including: providing at least one hang-up switching control in the target application; wherein the hang-up switching control is used to switch the target application to the background for continuous operation, each hang-up switching control corresponds to a preset display mode, and the preset display mode is used to indicate a non-full-screen display mode of the target live data of the target application on the terminal device; in response to a trigger operation on any hang-up switching control, determining the preset display mode corresponding to the hang-up switching control indicated by the trigger operation as the target display mode of the target application; wherein the trigger operation is the second operation of switching the target application to the background for continuous operation.
[0097] Optionally, the target display mode is any one of at least three preset display modes, and the at least three preset display modes include a floating window display mode, a component display mode and a notification bar display mode; based on the target display mode, determining a display control for displaying the target live data on the terminal device, including: if the target display mode is a floating window display mode, generating a target display floating window on the terminal device; wherein the target display floating window is a display control for the target live data; if the target display mode is a component display mode, determining the desktop component corresponding to the target application as the display control for the target live data; if the target display mode is a component display mode, generating a notification control of the target application on the notification list interface of the terminal device, and determining the notification control as the display control for the target live data; wherein the notification list interface is used to display notifications received by the terminal device.
[0098] Optionally, after the acquired target live data is displayed in real time in the display control, the method further includes: in response to a cancel display operation on the display control, canceling the display of the corresponding display control, or canceling the display of the target live data by the corresponding display control.
[0099] Optionally, after displaying the acquired target live data in real time in the display control, the method further includes: displaying offline reminder information in the display control in response to the target application being offline.
[0100] Optionally, the target application is a game application, and the target live data is a real-time game screen of the game application.
[0101] This embodiment further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the display method of the above application program, for example:
[0102] In response to an operation of switching a target application to run continuously in the background, a target display mode of the target application is determined according to the operation; wherein the operation is used to indicate a first operation triggered by an operating system of a terminal device or a second operation triggered by the target application, and the target display mode is used to indicate a mode in which target live data of the target application is displayed in a non-full screen manner on the terminal device; the target application is switched to run continuously in the background, and the target live data of the target application is acquired; based on the target display mode, a display control for displaying the target live data on the terminal device is determined; and the acquired target live data is displayed in real time in the display control.
[0103] In this way, the live data of the application can be conveniently displayed in different non-full-screen display modes through different operations, so that when the application continues to run in the background, the terminal device can conveniently view the live data of the application through different display controls, and the on-hook experience is better.
[0104] Optionally, in response to an operation of switching a target application to run continuously in the background, determining a target display mode of the target application according to the operation, including: in response to a first operation of switching the target application to run continuously in the background, determining the target display mode of the target application according to the first operation; or, in response to a second operation of switching the target application to run continuously in the background, determining the target display mode of the target application according to the second operation; wherein the first operation is triggered on a background application list interface of a terminal device, the background application list interface includes an indication card of at least one first application, the first application is an application that has not performed a shutdown operation after being started, and the second operation is triggered by a control within the target application.
[0105] Optionally, in response to a first operation to switch a target application to the background for continuous operation, a target display mode of the target application is determined according to the first operation, including: a background application list interface of the terminal device displays a group of selection controls corresponding to each indication card; wherein each group of selection controls includes selection controls corresponding to at least two preset display modes; in response to a selection operation corresponding to any selection control corresponding to the target application, the preset display mode corresponding to the selection control indicated by the selection operation is determined as the target display mode of the target application; wherein the selection operation is the first operation to switch the target application to the background for continuous operation.
[0106] Optionally, in response to a first operation to switch a target application to the background for continuous operation, determining a target display mode of the target application according to the first operation, including: in response to a trigger operation on an indication card corresponding to the target application on a background application list interface of a terminal device, displaying a group of selection controls corresponding to the target application; wherein the group of selection controls corresponding to the target application includes selection controls corresponding to at least two preset display modes; in response to a selection operation on any selection control corresponding to the target application, determining the preset display mode corresponding to the selection control indicated by the selection operation as the target display mode of the target application; wherein the selection operation is the first operation to switch the target application to the background for continuous operation.
[0107] Optionally, after determining the target display mode of the target application, the method further includes: switching the display state of the selection control corresponding to the target display mode to a selected state.
[0108] Optionally, in response to a second operation of switching the target application to the background for continuous operation, determining the target display mode of the target application according to the second operation, including: providing at least one hang-up switching control in the target application; wherein the hang-up switching control is used to switch the target application to the background for continuous operation, each hang-up switching control corresponds to a preset display mode, and the preset display mode is used to indicate a non-full-screen display mode of the target live data of the target application on the terminal device; in response to a trigger operation on any hang-up switching control, determining the preset display mode corresponding to the hang-up switching control indicated by the trigger operation as the target display mode of the target application; wherein the trigger operation is the second operation of switching the target application to the background for continuous operation.
[0109] Optionally, the target display mode is any one of at least three preset display modes, and the at least three preset display modes include a floating window display mode, a component display mode and a notification bar display mode; based on the target display mode, determining a display control for displaying the target live data on the terminal device, including: if the target display mode is a floating window display mode, generating a target display floating window on the terminal device; wherein the target display floating window is a display control for the target live data; if the target display mode is a component display mode, determining the desktop component corresponding to the target application as the display control for the target live data; if the target display mode is a component display mode, generating a notification control of the target application on the notification list interface of the terminal device, and determining the notification control as the display control for the target live data; wherein the notification list interface is used to display notifications received by the terminal device.
[0110] Optionally, after the acquired target live data is displayed in real time in the display control, the method further includes: in response to a cancel display operation on the display control, canceling the display of the corresponding display control, or canceling the display of the target live data by the corresponding display control.
[0111] Optionally, after displaying the acquired target live data in real time in the display control, the method further includes: displaying offline reminder information in the display control in response to the target application being offline.
[0112] Optionally, the target application is a game application, and the target live data is a real-time game screen of the game application.
[0113] The computer program product of the application display method, device, electronic device and storage medium provided in the embodiments of the present disclosure includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.
[0114] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0115] In addition, in the description of the embodiments of the present disclosure, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present disclosure can be understood according to specific circumstances.
[0116] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0117] In the description of the present disclosure, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present disclosure and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present disclosure. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0118] Finally, it should be noted that the above embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above embodiments, those skilled in the art should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A method for displaying an application, characterized in that: The method comprises: In response to an operation of switching a target application to a background for continuous operation, a target display mode of the target application is determined according to the operation; wherein the operation is used to indicate a first operation triggered by an operating system of a terminal device or a second operation triggered by the target application, and the target display mode is used to indicate a mode in which target live data of the target application is displayed in a non-full screen manner on the terminal device; Switching the target application to the background for continuous operation, and acquiring target real-time data of the target application; Based on the target display mode, determining a display control for displaying the target live data on the terminal device; The acquired target live data is displayed in real time in the display control.
2. The method according to claim 1, characterized in that: In response to an operation of switching a target application to continuously run in the background, determining a target display mode of the target application according to the operation, including: In response to a first operation of switching a target application to continuously run in the background, determining a target display mode of the target application according to the first operation; or In response to a second operation of switching the target application to continuously run in the background, determining a target display mode of the target application according to the second operation; Among them, the first operation is triggered in the background application list interface of the terminal device, and the background application list interface includes an indication card of at least one first application. The first application is an application that does not perform a shutdown operation after being started, and the second operation is triggered by a control in the target application.
3. The method according to claim 2, characterized in that In response to a first operation of switching a target application to continuously run in the background, determining a target display mode of the target application according to the first operation includes: The background application list interface of the terminal device displays a group of selection controls corresponding to each indication card; wherein each group of selection controls includes selection controls corresponding to at least two preset display modes respectively; In response to a selection operation on any selection control corresponding to a target application, a preset display mode corresponding to the selection control indicated by the selection operation is determined as a target display mode of the target application; wherein the selection operation is a first operation to switch the target application to background continuous operation.
4. The method according to claim 2, characterized in that: In response to a first operation of switching a target application to continuously run in the background, determining a target display mode of the target application according to the first operation includes: In response to a triggering operation on an indication card corresponding to a target application on a background application list interface of a terminal device, a group of selection controls corresponding to the target application are displayed; wherein the group of selection controls corresponding to the target application includes selection controls corresponding to at least two preset display modes respectively; In response to a selection operation on any selection control corresponding to a target application, a preset display mode corresponding to the selection control indicated by the selection operation is determined as a target display mode of the target application; wherein the selection operation is a first operation to switch the target application to background continuous operation.
5. The method according to claim 3 or 4, characterized in that: After determining the target display mode of the target application, the method further includes: The display state of the selection control corresponding to the target display mode is switched to a selected state.
6. The method according to claim 2, characterized in that In response to a second operation of switching the target application to continuously run in the background, determining a target display mode of the target application according to the second operation includes: At least one on-hook switching control is provided in the target application; wherein the on-hook switching control is used to switch the target application to the background for continuous operation, each on-hook switching control corresponds to a preset display mode, and the preset display mode is used to indicate the mode in which the target live data of the target application is displayed in a non-full-screen manner on the terminal device; In response to a trigger operation on any on-hook switching control, the preset display mode corresponding to the on-hook switching control indicated by the trigger operation is determined as the target display mode of the target application; wherein the trigger operation is a second operation that switches the target application to background continuous operation.
7. The method according to claim 1, characterized in that The target display mode is any one of at least three preset display modes, wherein the at least three preset display modes include a floating window display mode, a component display mode, and a notification bar display mode; Based on the target display mode, determining a display control for displaying the target live data on the terminal device includes: If the target display mode is a floating window display mode, a target display floating window is generated on the terminal device; wherein the target display floating window is a display control of the target live data; If the target display mode is a component display mode, determining the desktop component corresponding to the target application as a display control for the target live data; If the target display mode is a component display mode, a notification control of the target application is generated on the notification list interface of the terminal device, and the notification control is determined as a display control for target live data; wherein the notification list interface is used to display notifications received by the terminal device.
8. The method according to claim 1, characterized in that After the acquired target live data is displayed in real time in the display control, the method further includes: In response to a cancel display operation on the display control, the display of the corresponding display control is canceled, or the display of the target live data by the corresponding display control is canceled.
9. The method according to claim 1, characterized in that: After the acquired target live data is displayed in real time in the display control, the method further includes: In response to the target application being offline, displaying offline reminder information on the display control.
10. The method according to claim 1, characterized in that The target application is a game application, and the target live data is a real-time game screen of the game application.
11. A display device for an application, characterized in that: The device comprises: A response module, configured to respond to an operation of switching a target application to a background for continuous operation, and determine a target display mode of the target application according to the operation; wherein the operation is used to indicate a first operation triggered by an operating system of a terminal device or a second operation triggered by the target application, and the target display mode is used to indicate a mode in which target live data of the target application is displayed in a non-full screen manner on the terminal device; An acquisition module, used to switch the target application to the background to run continuously, and acquire target live data of the target application; A determination module, configured to determine a display control for displaying target live data on the terminal device based on the target display mode; The display module is used to display the acquired target live data in real time in the display control.
12. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the display method of the application program according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the method for displaying an application program according to any one of claims 1 to 10.
