WO2022237459A1 - Content display control method and apparatus, electronic device, and storage medium - Google Patents

Content display control method and apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2022237459A1
WO2022237459A1 PCT/CN2022/087413 CN2022087413W WO2022237459A1 WO 2022237459 A1 WO2022237459 A1 WO 2022237459A1 CN 2022087413 W CN2022087413 W CN 2022087413W WO 2022237459 A1 WO2022237459 A1 WO 2022237459A1
Authority
WO
WIPO (PCT)
Prior art keywords
content
display
displayed
display area
reduction
Prior art date
Application number
PCT/CN2022/087413
Other languages
French (fr)
Chinese (zh)
Inventor
莫博宇
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022237459A1 publication Critical patent/WO2022237459A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/25Output arrangements for video game devices
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • A63F13/424Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle involving acoustic input signals, e.g. by using the results of pitch or rhythm extraction or voice recognition
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72427User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting games or graphical animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72466User interfaces specially adapted for cordless or mobile telephones with selection means, e.g. keys, having functions defined by the mode or the status of the device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering

Definitions

  • the present application relates to the technical field of terminals, and more specifically, to a content display control method, device, electronic device, and storage medium.
  • an interface is displayed in the immersive mode in the foreground
  • other content can be displayed in the floating mode on the interface displayed in the immersive mode.
  • the interface of the game program is displayed in the immersive mode in the foreground
  • an incoming call banner can be displayed in a floating manner on the interface of the game program.
  • the embodiments of the present application propose a content display control method, device, electronic device, and storage medium to improve the above problems.
  • the embodiment of the present application provides a method for controlling content display, which is applied to electronic devices.
  • the method includes: if the first content is displayed in full-screen mode and is triggered by a target event, displaying it in a floating manner on the first content The second content, where the second content is the display content corresponding to the target event; if the zoom-out condition is met, the display area of the second content is reduced.
  • the embodiment of the present application provides a content display control device that runs on an electronic device, and the device includes: a content display unit, configured to display the first content in a full-screen mode and a target event is triggered, in the The second content is suspended and displayed on the first content, and the second content is the display content corresponding to the target event; the display control unit is configured to reduce the display area of the second content if the zoom-out condition is satisfied.
  • the embodiment of the present application provides an electronic device, including one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors Execute to implement the method described above.
  • the embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, wherein the above-mentioned method is executed when the program code is executed by a processor.
  • FIG. 1 shows a flowchart of a content display control method proposed by an embodiment of the present application
  • Fig. 2 shows a schematic diagram of displaying in a normal mode in the embodiment of the present application
  • Fig. 3 shows a schematic diagram of a second content displayed in the embodiment of the present application
  • Fig. 4 shows a schematic diagram of another second content displayed in the embodiment of the present application.
  • Fig. 5 shows a schematic diagram of reducing the display area of the second content in the embodiment of the present application
  • FIG. 6 shows another schematic diagram of reducing the display area of the second content in the embodiment of the present application.
  • FIG. 7 shows a flow chart of a content display control method proposed by another embodiment of the present application.
  • Fig. 8 shows a schematic diagram of second content in a second display mode displayed in the embodiment of the present application
  • FIG. 9 shows a schematic diagram of second content in another second display mode displayed in the embodiment of the present application.
  • Fig. 10 shows a schematic diagram of switching the second content of various second display modes displayed in the embodiment of the present application
  • Fig. 11 shows a flow chart of a content display control method proposed by another embodiment of the present application.
  • Fig. 12 shows a schematic diagram of controls included in a third content in the embodiment of the present application.
  • Fig. 13 shows a schematic diagram of reducing the display area of the third content in the embodiment of the present application.
  • FIG. 14 shows a flow chart of a content display control method proposed by another embodiment of the present application.
  • FIG. 15 shows a flow chart for determining the degree of reduction proposed by the embodiment of the present application.
  • Fig. 16 shows a flow chart of a content display control method proposed by another embodiment of the present application.
  • Fig. 17 shows a flow chart of a content display control method proposed by another embodiment of the present application.
  • FIG. 18 shows a flow chart of a content display control method proposed by another embodiment of the present application.
  • Fig. 19 shows a structural block diagram of a content display control device proposed by an embodiment of the present application.
  • Fig. 20 shows a structural block diagram of a content display control device proposed by another embodiment of the present application.
  • Fig. 21 shows a structural block diagram of an electronic device for executing a content display control method according to an embodiment of the present application in real time of the present application;
  • Fig. 22 shows a storage unit used for storing or carrying program codes for realizing the content display control method according to the embodiment of the application in real time of the application.
  • An immersion mode is usually configured in an electronic device, so that the interface can be displayed in full screen on the screen when the immersion mode is in the state.
  • the other content can be displayed in a floating manner on the interface displayed in the immersive mode.
  • an incoming call banner can be displayed in a floating manner on the interface of the game program.
  • the inventor proposes the content display control method, device, electronic device, and storage medium in the embodiments of the present application.
  • the first content is displayed in full-screen mode
  • the The second content corresponding to the target event is floatingly displayed on the first content
  • the display area of the second content is reduced if the shrinking condition is met after the second content is displayed. Therefore, through the above method, when the first content is displayed in full screen, the display area of the second content that is suspended and displayed in response to the trigger of the target event can be reduced after meeting the shrinking condition, so that the second content can play While prompting, the interference to the first content displayed in the full screen is reduced.
  • the method provided in this embodiment may further include the following process: displaying the second content in the first display mode in a floating manner on the first content.
  • the method provided in this embodiment may further include the following process: switching the second content to be displayed in the second display mode, where the display area of the second content in the second display mode The display area of the second content is smaller than that of the first display mode.
  • the second content includes controls corresponding to the target event, and the controls included in the second content in the first display mode are the same as the controls included in the second content in the second display mode.
  • the included controls function differently.
  • the method provided in this embodiment may further include the following process: reducing the size of the second content.
  • the method provided in this embodiment may further include the following process: if the first content is displayed in full-screen mode and a specified event is triggered, the third content is suspended on the first content, and the third content The content is the display content corresponding to the specified event; if a target event associated with the specified event is triggered, the third content displayed in the suspension is updated to the second content.
  • the method provided in this embodiment may further include the following process: if the reduction condition corresponding to the third content is met, reduce the display area of the third content.
  • the narrowing condition includes that the display duration of the second content satisfies a specified duration.
  • the method provided in this embodiment may further include the following process: if the expansion condition is met, expand the display area of the second content.
  • the method provided in this embodiment may further include the following process: if a touch operation acting on the second content is detected, determine that the expansion condition is met.
  • the target event includes an incoming call connection event; the method provided in this embodiment may further include the following procedure: if the first content is displayed in full-screen mode and is triggered by an incoming call connection event, the first The second content is displayed floating on the content, and the second content is the display content corresponding to the incoming call connection event.
  • the method provided in this embodiment may further include the following process: in response to a user operation, switching the second content in the second display mode to the second content in the first display mode.
  • the method provided in this embodiment may further include the following process: if it is detected that a switching operation is applied to the second content, perform a control on the controls included in the second content in the second display mode switch.
  • the method provided in this embodiment may further include the following process: changing the control type included in the second content.
  • the method provided in this embodiment may further include the following process: if it is detected that the change frequency of the first content is less than a specified frequency, determine that the expansion condition is met.
  • the method provided in this embodiment may further include the following process: detecting the current reduction method of the second content; if it is determined that the current reduction method of the second content is to reduce the size by reducing the size, Then it is determined whether to determine the degree of reduction of the second content by detecting the application program to which the first content belongs, or to determine whether the first content is an interface that requires timely operation by the user to determine the size of the second content.
  • the degree of reduction of the second content is determined by detecting the application program to which the first content belongs, then obtain the application program to which the first content belongs, and obtain the degree of reduction corresponding to the application program as Target reduction degree; if the determination is to determine whether the reduction degree of the second content is determined by detecting whether the first content is an interface that requires a user to perform a timely operation, then detecting whether the first content is an interface that requires a user to perform a timely operation Content; if it is determined that the first content is the interface content that requires the user to perform a timely operation, then use the reduction degree corresponding to the interface content that requires the user to perform a timely operation as the target reduction degree.
  • the ratio of the display area of the second content after reduction to the display area of the second content before reduction is the same as the value of the target reduction degree.
  • the method provided in this embodiment may further include the following process: if the first content is displayed in full-screen mode and there is a target time trigger, start timing; if the duration of the timing meets the preset duration, determine that the specified The reduction condition is used to reduce the display area of the second content.
  • FIG. 1 shows a flow chart of a content display control method proposed by an embodiment of the present application, which includes:
  • the first content can be understood as the content corresponding to the application running in the foreground, and the first content is displayed in a full-screen mode.
  • the electronic device may be configured with a normal mode, a non-sticky immersive mode, and a sticky immersive mode for displaying content.
  • the electronic device When in the normal mode, the electronic device will still display the status bar and system bottom navigation during the process of displaying the content corresponding to the application running in the foreground.
  • the non-sticky immersive mode or the sticky immersive mode when the electronic device displays the content corresponding to the application program running in the foreground, it will display the content corresponding to the application program running in the foreground in full screen.
  • the status bar and system bottom navigation can no longer be displayed.
  • the electronic device is currently running a game program in the foreground, wherein the game interface 20 is the content corresponding to the game program.
  • the electronic device is displaying the game interface 20 in a normal mode.
  • the electronic device will display the status bar 10 on the top of the game interface 20 in addition to displaying the game interface 20.
  • the status bar 10 may display the current time, the strength of the mobile communication signal, and the remaining power of the electronic device. If the electronic device displays the game program in a non-sticky immersion mode or a sticky immersion mode, it can switch to the style shown in the lower diagram in FIG.
  • the game interface 20 is displayed.
  • the target event includes an event that requires content display
  • the target event can be any event that requires content display, or an event that requires content display in the whitelist event.
  • the content to be displayed may include interface content, and for different target events, the corresponding content may be different.
  • the electronic device can obtain and play the sound of the incoming call party, and can transmit the sound collected by the microphone of the electronic device to the incoming call party .
  • the electronic device will display the display content corresponding to the incoming call connection event as the second content.
  • the display content corresponding to the incoming call connection event is in the content 21 in FIG. In the content playing mode, the second control 212 is used to hang up the call.
  • the display content corresponding to the incoming call connection event may also be other display styles.
  • the display content corresponding to the incoming call connection event may be the content 22 shown in FIG. 4
  • the content 22 includes the second control 212 and the fourth control 221 .
  • the difference from the content 21 is that the first control 211 in the content 21 is replaced by the fourth control 221 in the content 22 .
  • the fourth control 221 is a control for triggering the display of virtual number keys.
  • the virtual number keys are used for the user to input numbers. For example, in some call scenarios, the electronic device needs to further input some numbers during the call, then the fourth control 221 can be triggered to display virtual number keys before the number needs to be input, so as to input numbers.
  • the electronic device may first detect the currently determined display style, and then display the second content based on the currently determined display style. show.
  • the display area of the suspended second content is smaller than the display area occupied by the first content.
  • the display area of the second content is one-fifth of the display area occupied by the first content.
  • the zoom-out condition may be understood as a condition for zooming out the displayed content in response to an event trigger.
  • the shrinking condition can be understood as a condition for the electronic device to automatically shrink the display area of the second content.
  • automatically shrinking the display area of the second content may include that the user does not need to touch the second content, but the electronic device may automatically realize the control of shrinking the second content according to some trigger conditions (for example, shrinking conditions).
  • the display area of the second content is the area of the display area occupied by the second content, so reducing the display area of the second content can be understood as reducing the area of the display area occupied by the second content.
  • the narrowing conditions may include multiple types of conditions.
  • the narrowing condition may include that the display time of the second content satisfies a specified duration, then the electronic device may perform timing after the second content starts to be displayed, and determine that the zooming-out condition is met after the timing meets the specified duration, and start to process the second content The display area is reduced.
  • the zoom-out condition may be a touch condition.
  • the zoom-out condition may include detecting a touch operation on the first content after the second content is displayed. It should be noted that if a touch operation on the first content is detected after the second content is displayed, it means that the user is currently paying attention to the first content. If the interference is caused, the display area of the second content can be reduced.
  • the zoom-out condition may include time condition and touch condition at the same time.
  • the electronic device may start timing after detecting that the touch condition is satisfied, and if it detects that the timing duration satisfies the time condition, it may start to shrink the second content.
  • the electronic device may reduce the display area of the second content in various ways. As a manner, the electronic device may reduce the display area of the second content by reducing the size of the second content itself.
  • the size of the content 21 can be reduced from the size shown in the upper image in FIG. 5 to the lower one in FIG. The size shown in the side image, thereby reducing the display area of the second content.
  • the display area of the second content can also be reduced by changing the control type included in the content 21 .
  • FIG. 6 it is possible to switch to the control shown in the lower image in FIG. Display content 23 to reduce the display area of the second content.
  • target event in this embodiment of the present application may not be limited to the incoming call connection event, and other events that trigger interface display may also be used as the target event, for example, an alarm clock event.
  • the display area of the second content when the first content is displayed in full-screen mode, if a target event trigger is detected, the second content corresponding to the target event will be displayed in a floating manner on the first content. content, and if the shrinking condition is met after the second content is displayed, the display area of the second content will be reduced. Therefore, through the above method, when the first content is displayed in full screen, the display area of the second content that is suspended and displayed in response to the trigger of the target event can be reduced after meeting the shrinking condition, so that the second content can play While prompting, the interference to the first content displayed in the full screen is reduced.
  • the zoom-out condition can be characterized as an automatic zoom-out condition for the second content, so that the user can trigger the zoom-out of the display area of the second content without operating the second content itself. It is beneficial for the user to more cooperatively process tasks corresponding to the first content and the second content.
  • FIG. 7 is a flow chart of a content display control method proposed by an embodiment of the present application. The method includes:
  • S210 If the first content is displayed in full-screen mode and is triggered by a target event, display second content in the first display mode in a floating manner on the first content, where the second content is the display content corresponding to the target event.
  • multiple display modes of the display content corresponding to the target event may be pre-configured, or may be configured by the user according to his individual requirements.
  • the second content includes a control corresponding to the target event, and the control included in the second content in the first display mode is the same as the control included in the second content in the second display mode.
  • the included controls function differently.
  • the control included in the second content may be a control that controls the target event, for example, a control that can control the target event to stop running.
  • the content 21 in FIG. 3 may be used as the second content in the first display mode.
  • the content 24 shown in FIG. 8 is a second content in a second display mode.
  • An audio bar 241 is displayed in the content 24, and the audio bar 241 can reflect the call volume in real time through its own shape transformation.
  • the second content of the second mode can be switched to the content 25 shown in FIG. 9.
  • the content 25 shown in FIG. Used to display the duration of the incoming call.
  • the second content in the second display mode may also be switched to the second content in the first display mode in response to a user operation.
  • the second content of the second display mode can be switched from content 24 to the second content.
  • a second content of the display mode for example, content 21 in FIG. 3 .
  • the touch operation may include a click operation, or a double-click operation, or may be a long-time press operation.
  • the second content of the second display mode can be switched from content 25 to The second content of the first display mode (eg, content 21 in FIG. 3 ).
  • the touch operation may include a click operation, or a double-click operation, or may be a long-time press operation.
  • the controls included in the second content in different implementations can be different, then when the second content is displayed in the second display mode
  • the second content can be switched among multiple implementation manners.
  • the controls included in the second content in the second display mode may be switched.
  • the switching operation as a sliding operation along a specified direction as an example, as shown in FIG. 10, if there is a sliding operation along the direction indicated by the dotted arrow shown in the upper image in FIG.
  • the displayed content 24 is switched to display the content 25 shown in the lower image in FIG. 10 .
  • the displayed content 25 may be switched to the displayed content 24 .
  • the foregoing second content in the first display mode and the second content in the second display mode are exemplary, and the controls included in the first display mode and the second content in the second display mode can be determined by User configures.
  • the end target event may be realized through a touch operation acting on a control in the second content.
  • the touch operation used to switch the second content in the second display mode to the second content in the first display mode is different from the touch operation that triggers the end target event .
  • the touch operation of switching the second content displayed in the second display mode to the second content displayed in the first display mode, and the touch operation of triggering the end target event can both be configured by the user.
  • This embodiment provides a content display control method, so that in the case of full-screen display of the first content, the display area of the second content that is suspended and displayed in response to the trigger of the target event can be adjusted after meeting the zoom-out condition. Zoom out so that the second content can play a prompt role while reducing interference with the first content displayed in full screen.
  • the second content can be configured to display different controls corresponding to different display modes, which improves the diversity of content display switching.
  • FIG. 11 is a flow chart of a content display control method proposed by an embodiment of the present application. The method includes:
  • the triggered event may include a specified event and a target event associated with the specified event.
  • the target event associated with the specified event may include events adjacent to the instruction event in terms of processing progress, so it can be understood that the specified event is usually triggered first, and then the target event is triggered.
  • the specified event may be an incoming call event, and then the events corresponding to the incoming call event in the processing progress may include the incoming call connection event.
  • the electronic device may also hover over the first content to display the corresponding display content.
  • the third content 31 may be floatingly displayed on the game interface 20 as the first content.
  • the third content 31 includes the name of the caller, a control for answering a call, and a control for hanging up a call.
  • the third content 31 corresponding to the specified event can be displayed as shown in FIG.
  • the control is touched, it is determined that an incoming call connection event associated with the incoming call event is triggered, and then the displayed third content 31 is switched to the second content 21 shown in the foregoing content.
  • a target event associated with the specified event before updating the floating third content to the second content, it further includes: if the zoom-out condition corresponding to the third content is satisfied, zooming out the third content
  • the display area of the content Exemplarily, as shown in FIG. 13 , the display area of the third content 31 can be reduced by reducing the size, so that the third content 31 can be reduced from the display style shown in the upper image of FIG. 13 to that shown in FIG. 13 The display style shown in the lower image of .
  • the reduction condition corresponding to the third content may be understood as a condition for the electronic device to automatically reduce the display area of the third content.
  • automatically shrinking the display area of the third content may include that the user does not need to touch the third content, but the electronic device may automatically realize the control of shrinking the third content according to some trigger conditions (such as shrinking conditions).
  • the display area of the third content may be understood as a condition for the electronic device to automatically reduce the display area of the third content.
  • the user can edit a certain display mode of the third content according to his own preferences, so that the third content can be displayed personalized according to each user's preferences.
  • This embodiment provides a content display control method, so that in the case of full-screen display of the first content in the above-mentioned manner, if there is an association corresponding to the target event after the second content is suspended and displayed in response to the target event trigger After the event is triggered, the originally displayed second content will be switched to the third content corresponding to the associated event, and the third content can be zoomed out if the zoom-out condition is met, so that the third content can serve as a prompt While functioning, the interference to the first content displayed in full screen is reduced.
  • the third content can be configured to display different controls corresponding to different display modes, which improves the diversity of content display switching.
  • FIG. 14 is a flow chart of a content display control method proposed by an embodiment of the present application. The method includes:
  • the extent to which the display area of the second content is specifically reduced may be determined according to actual conditions.
  • the electronic device may determine the degree of zooming out of the second content according to the first content.
  • the displayed second content may be content used to control the running process of the target event. Then, if the display area of the second content is reduced, it may still have a certain impact on the user's viewing or operation of the second content. In order to reduce the impact with a greater probability, the electronic device can display the content according to the current display content of the first content. Determines how much to specifically shrink the second content.
  • the specific extent to which the second content is narrowed down may be determined according to the application program to which the first content belongs.
  • different reduction degrees may cause different display areas of the second content after reduction.
  • the corresponding relationship between the application program and the reduction degree can be stored in the electronic device, then before the second content needs to be reduced, the application program to which the first content belongs can be obtained, and further The reduction degree corresponding to the application program is obtained as the target degree, and then the second content is reduced to the target degree during the process of reducing the second content.
  • the electronic device pre-stores application A corresponding to the reduction degree d1, application B corresponding to the reduction degree d2, application C corresponding to the reduction degree d3, and application D corresponding to the reduction degree d4.
  • the degree of reduction d3 corresponding to application program C will be progressively obtained, and the degree of reduction d3 will be used as the target degree of reduction.
  • the second content is reduced based on the degree of reduction d3.
  • the second content is reduced based on the target reduction degree, it can be understood that the ratio of the display area of the reduced second content to the display area of the second content before reduction is the same as the value of the target reduction degree.
  • the aforementioned d1 may be 80%
  • d2 may be 60%
  • d3 may be 40%
  • d4 may be 20%.
  • the ratio of the display area of the reduced second content to the area of the second content before reduction is 0.4.
  • the ratio of the display area of the reduced second content to the area of the second content before reduction is 0.2.
  • the first content is the content displayed in full screen. Then, in the embodiment of the present application, the electronic device may detect the application program running in the foreground to determine the application program to which the first content belongs. Correspondingly, the electronic device may use the application running in the foreground as the application to which the first content belongs.
  • the reduction degree of the second content may be determined according to the content represented by the first content itself. It should be noted that even in the same application program, different interface contents may require different levels of user attention. For example, the game configuration interface, game character selection interface, etc. in the game program do not require the user to perform timely operations, but the real-time game battle interface requires the user to perform relatively timely operations. Then, before narrowing down the second content, it is possible to obtain whether the first content is an interface content requiring timely operation by the user. The degree of reduction corresponding to the interface content for timely operation, if it is determined that the first content is the interface content that does not require timely operation by the user, then the second content may be reduced to the degree of reduction corresponding to the interface content that does not require timely operation by the user.
  • the reduction degree represents the ratio of the display area after the second content is reduced to the display area before the second content is reduced
  • the reduction degree corresponding to the interface content that does not require the user to perform timely operation is greater than the reduction degree that requires the user to perform timely operation.
  • the degree of reduction corresponding to the interface content of the operation Exemplarily, if it is determined that the first content is the interface content that requires the user to perform timely operations, then determine that the corresponding zoom-out degree may be 0.4; if it is determined that the first content is the interface content that does not require the user to perform timely operations, then determine the corresponding zoom-out degree The degree may be 0.8.
  • the application program can be configured with an interface registration function, and correspondingly, the electronic device is also configured with an interface registration service.
  • the application can register the interface that requires the user to operate in time with the interface registration service of the electronic device, so that the electronic device can obtain the interface that requires the user to operate in time. Then the electronic device can obtain whether the first content is the interface content that has been registered in the interface registration service before the second content needs to be reduced. If it is detected that the first content is the interface content that has been registered in the interface registration service, Then it is determined that the first content is an interface that requires the user to perform timely operations, so that the degree of reduction corresponding to the interface that requires the user to perform timely operations can be used as the target reduction degree.
  • the first content is determined to be an interface that does not require timely operation by the user, so that the reduction degree corresponding to the interface that does not require timely operation by the user can be used as the target reduction degree.
  • the degree of reduction shown in the foregoing content represents the ratio of the display area of the second content after reduction to the display area before reduction
  • the reduction of the second content will be at least
  • One way is to reduce the size as shown in FIG. 4
  • the other way is to switch the display mode as shown in FIG. 5 to realize the reduction of the display area.
  • the switched mode may not match the currently determined target reduction degree, and there may also be no display mode matching the determined target reduction degree.
  • the second content corresponds to a first display mode and a second display mode, wherein the ratio of the display area corresponding to the second display mode to the display area corresponding to the second display mode is 0.5, and the currently determined target reduction degree is 0.4, then if the second content is to reduce the display area by switching the display mode, it may cause that the appropriate display mode cannot be adapted, so in order to improve this problem, as shown in Figure 15,
  • the electronic device may perform the following steps between after determining that the shrinking condition is met and between actually shrinking the display area of the second content:
  • S422 If it is determined that the current reduction method of the second content is to reduce the size, then further determine whether to determine the degree of reduction of the second content by detecting the application program to which the first content belongs, or by detecting whether the first content is An interface that requires immediate user action to determine the degree of reduction.
  • the electronic device is configured with a zoom-out mode selection interface, and multiple options are configured in the zoom-out mode selection interface, and the user can select a desired zoom-out mode through the various options.
  • the various options include option 1 and option 2, wherein option 1 corresponds to determining the degree of reduction of the second content by detecting the application program to which the first content belongs, and option 2 corresponds to determining whether the first content is required by the user.
  • the electronic device detects the selected option in option 1 and option 2, and uses the reduction method corresponding to the selected option as the determination reduction method.
  • the electronic device may determine the specific zoom-out manner according to the query situation of the application program to which the first content belongs, and the detection situation of whether the first content is an interface required for timely operation by the user.
  • the application itself may not have a corresponding configuration to reduce the degree of reduction, but the application may have interface content registered in the electronic device through the interface registration service of the electronic device.
  • some applications may not have passed the electronic device
  • the interface registration service of the electronic device registers interface content in the electronic device, but the application program itself may have a corresponding reduction degree.
  • the electronic device detects that the application program to which the first content belongs corresponds to a reduction degree, and the first content has not been registered in the electronic device through the interface registration service, then the electronic device can determine that by detecting the first content belongs to application to determine the degree of reduction of the secondary content.
  • the electronic device can determine whether the first content is required by the user Interface for timely operations to determine the degree of reduction. Furthermore, if the electronic device detects that the application program to which the first content belongs corresponds to a reduction degree, and the first content is also registered in the electronic device through the interface registration service, then the electronic device can detect that the user selects the reduction mode in the reduction mode. options to determine a specific zoom-out method, and furthermore, when it is detected that the user has not made a specific selection, the electronic device specifically zooms out the second content according to the default zoom-out method.
  • the electronic device detects that the application program to which the first content belongs does not correspond to a reduction degree, and the first content has not been registered in the electronic device through the interface registration service, the electronic device will specifically reduce the second content according to the default reduction method. The content is reduced.
  • the reduction degree corresponding to the interface content that requires timely operation by the user will be used as the target reduction degree; In the operation interface, the reduction degree corresponding to the interface content that does not require timely operation by the user will be taken as the target reduction degree.
  • the reduced display area of the second content may be enlarged so that the user can conveniently operate the second content.
  • the expansion condition may include various implementation manners.
  • the method provided in this embodiment further includes: if a touch operation acting on the second content is detected, determining that an expansion condition is satisfied.
  • a touch operation acting on the second content is detected, determining that an expansion condition is satisfied.
  • FIG. 5 please refer to FIG. 5 again. If the content 21 is reduced to the style shown in the lower image of FIG. The style shown in the upper image of Figure 5. Similarly, please refer to FIG. 6 again. If the content 21 is switched to the display content 23 shown in the lower image in FIG. 21 as shown in the upper middle image.
  • the electronic device may determine whether the expansion condition is satisfied according to the change frequency of the first content.
  • the change frequency of the first content is less than a specified frequency
  • the purpose of shrinking the second content is to further reduce the interference of the second content on the first content.
  • the user may pay more attention to the second content after the second content is displayed. Frequency to determine whether the user pays attention to the first content. If it is determined according to the conversion frequency of the first content that the user does not pay much attention to the first content, it can be determined that the expansion condition is met.
  • the conversion frequency may be the number of conversion times of the first content within a specified time period.
  • an electronic device displays a picture, it displays a frame in units of frames. If the electronic device detects that the content of the current frame is inconsistent with that of the previous frame, it determines that a content change has been detected, and then the ratio of the number of changes occurring within a specified time period to the specified time length can be used as the change frequency. For example, if the first content is the interface content corresponding to the game program, if it is detected that the change frequency of the first content is greater than the specified frequency, it indicates that the change frequency of the first content is relatively high, and it may be that the display requires timely operation feedback from the user.
  • the game battle interface will not expand the reduced second content.
  • the change frequency of the first content is less than the specified frequency, it indicates that the change frequency of the first content is low, and it may be that the displayed game configuration interface does not require timely operation feedback from the user. In this case, Then, the reduced second content will be enlarged.
  • the third content in the embodiment of the present application is the display content corresponding to the associated event corresponding to the target event, and how to determine the zoom-out method and zoom-out degree for the second content is still the same in the process of zooming out the third content available, then the reduction method and reduction degree of the third content may be determined based on how to determine the reduction method and reduction degree of the second content.
  • when to enlarge the display area of the third content whose display area has been reduced may also be determined based on determining the manner of enlarging the second content.
  • This embodiment provides a content display control method, so that in the case of full-screen display of the first content, the display area of the second content that is suspended and displayed in response to the trigger of the target event can be adjusted after meeting the zoom-out condition. Zoom out so that the second content can play a prompt role while reducing interference with the first content displayed in full screen. Moreover, in this embodiment, zoom-in conditions may also be configured, so that the user can flexibly operate the second content to reduce or enlarge the display area.
  • FIG. 16 is a flowchart of a content display control method proposed by an embodiment of the present application. The method includes:
  • the method further includes: determining the specified duration based on the type of the first content. It should be noted that, in some scenarios, it may be necessary to reduce the display area of the second content in a timely manner after it starts to be displayed, so as not to interfere with the display of the first content. For example, when the first content is the content of the game battle interface, the user's attention is more on the game battle process, and reducing the second content in a timely manner can help increase the attention to the game battle interface. Then in this way, the electronic device can also obtain whether the first content is the interface content that requires the user to operate in time as in the foregoing embodiment. The specified time period corresponding to the interface content that the user performs timely operation is used to determine the specified time period of timing.
  • the first content is the interface content that does not require the user to perform timely operation
  • it is determined by the specified time period corresponding to the interface content that does not require the user to perform timely operation
  • the specified duration of the timer is shorter than the specified duration corresponding to the interface content not requiring timely operation by the user.
  • This embodiment provides a content display control method, so that in the case of full-screen display of the first content in the above-mentioned manner, timing will be performed while the second content is suspended and displayed in response to the target event trigger, and at the timing After the duration satisfies the specified duration, the display area is reduced, so that the second content can serve as a reminder while reducing interference with the first content displayed in full screen.
  • FIG. 17 is a flowchart of a content display control method proposed by an embodiment of the present application. The method includes:
  • S610 If the first content is displayed in full-screen mode and a target event is triggered, display second content in the first display mode in a floating manner on the first content, where the second content is the display content corresponding to the target event, and start the timer.
  • S620 If the timed duration meets the specified duration, determine that the zoom-out condition is met, and switch the second content to be displayed in the second display mode, where the display area of the second content in the second display mode is The display area of the second content is smaller than that of the first display mode.
  • This embodiment provides a content display control method, so that in the case of full-screen display of the first content in the above-mentioned manner, timing will be performed for the second content of the first display mode that is suspended and displayed in response to the target event trigger , and after the timed duration meets the specified duration, switch the display mode of the second content to the second display mode, so that the second content can serve as a reminder while reducing the impact on the first content displayed in full screen interference.
  • FIG. 18 is a flow chart of a content display control method proposed by an embodiment of the present application. The method includes:
  • S710 If the first content is displayed in full-screen mode and a target event is triggered, display second content in the first display mode in a floating manner on the first content, where the second content is the display content corresponding to the target event, and start the timer.
  • S720 If the timed duration meets the specified duration, determine that the zoom-out condition is satisfied, and switch the second content to be displayed in the second display mode, wherein the display area of the second content in the second display mode The display area of the second content is smaller than that of the first display mode.
  • FIG. 19 shows a content display control device 500 proposed by an embodiment of the present application, which runs on electronic equipment.
  • the device 500 includes:
  • the content display unit 510 is configured to, if the first content is displayed in full-screen mode and is triggered by a target event, display second content in a floating manner on the first content, and the second content is the display content corresponding to the target event.
  • the display control unit 520 is configured to reduce the display area of the second content if the reduction condition is satisfied.
  • the content display unit 510 is specifically configured to hover and display the second content in the first display mode on the first content.
  • the display control unit 520 is specifically configured to switch the second content to be displayed in the second display mode, where the display area of the second content in the second display mode is smaller than the specified The display area of the second content in the first display mode.
  • the second content includes a control corresponding to the target event, and the control included in the second content in the first display mode is the same as the control included in the second content in the second display mode function is different.
  • the target event includes an incoming call event
  • the controls included in the second content of the first display mode include a first control and a second control
  • the first control is used to switch the playback mode of the call content
  • the The second control is used to hang up the call
  • the control included in the second content of the second display mode has a third control
  • the third control is used to display the change of the volume of the call.
  • the display control unit 520 is further configured to, after reducing the display area of the second content if the shrinking condition is satisfied, further include: expanding the display area of the second content if the expansion condition is satisfied. Wherein, the display control unit 520 is further specifically configured to determine that the expansion condition is met if a touch operation acting on the second content is detected.
  • the display control unit 520 is further configured to switch the second content in the second display mode to the second content in the first display mode in response to a user operation.
  • the display control unit 520 is further configured to switch the controls included in the second content in the second display mode if it is detected that there is a switching operation on the second content.
  • the display control unit 520 is further configured to change the control type included in the second content.
  • the display control unit 520 is further configured to determine that the expansion condition is met if it is detected that the change frequency of the first content is less than a specified frequency.
  • the display control unit 520 is further configured to detect the current reduction method of the second content;
  • the application program to which the first content belongs determines the degree of reduction of the second content, or determines the degree of reduction of the second content by detecting whether the first content is an interface that requires timely operation by the user; Detecting the application program to which the first content belongs to determine the reduction degree of the second content, then obtaining the application program to which the first content belongs, and obtaining the reduction degree corresponding to the application program as the target reduction degree; if it is determined to be Determine whether the reduction degree of the second content is determined by detecting whether the first content is an interface that requires a user to perform a timely operation, then detecting whether the first content is an interface content that requires a user to perform a timely operation; If the content is interface content requiring timely operation by the user, the reduction degree corresponding to the interface content requiring timely operation by the user is taken as the target reduction degree.
  • the ratio of the display area of the second content after reduction to the display area of the second content before reduction is the same as
  • the display control unit 520 is further configured to start timing if the first content is displayed in full-screen mode and there is a target time trigger; The display area of the second content.
  • the device 500 further includes:
  • the timing unit 530 is configured to start timing if the first content is displayed in full-screen mode and is triggered by a target event, after the second content is suspended and displayed on the first content, and if the first content is displayed in full-screen mode and a target event is triggered ; If the timing duration meets the specified duration, determine that the reduction condition is met.
  • the timing unit 530 is specifically configured to determine the specified duration based on the type of the first content.
  • the display area of the second content when the first content is displayed in full-screen mode, if a target event trigger is detected, the second content corresponding to the target event will be displayed in a floating manner on the first content. content, and if the shrinking condition is met after the second content is displayed, the display area of the second content will be reduced. Therefore, through the above method, when the first content is displayed in full screen, the display area of the second content that is suspended and displayed in response to the trigger of the target event can be reduced after meeting the shrinking condition, so that the second content can play While prompting, the interference to the first content displayed in the full screen is reduced.
  • the embodiment of the present application also provides another electronic device 200 that can execute the above content display control method.
  • the electronic device 200 includes one or more (only one is shown in the figure) processors 102 , memory 104 , network module 106 and sensor module 108 coupled to each other.
  • the memory 104 stores programs capable of executing the contents of the foregoing embodiments, and the processor 102 can execute the programs stored in the memory 104 .
  • the processor 102 may include one or more processing cores.
  • the processor 102 uses various interfaces and lines to connect various parts of the entire electronic device 200, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 104, and calls data stored in the memory 104 to execute Various functions of the electronic device 200 and processing data.
  • the processor 102 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 102 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, and the like.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • the CPU mainly handles the operating system, user interface and application programs, etc.
  • the GPU is used to render and draw the displayed content
  • the modem is used to handle wireless communication. It can be understood that the above modem may also not be integrated into the processor 102, but implemented by a communication chip alone.
  • the memory 104 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory, ROM). Memory 104 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 104 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like.
  • means for content display control may be stored in the memory 104 .
  • the device for content display control may be the aforementioned device 500 .
  • the storage data area can also store data created by the terminal 100 during use (such as phonebook, audio and video data, chat record data) and the like.
  • the network module 106 is used to receive and send electromagnetic waves, realize mutual conversion between electromagnetic waves and electrical signals, and communicate with communication networks or other devices, such as audio playback devices.
  • the network module 106 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memory, etc. .
  • SIM Subscriber Identity Module
  • the network module 106 can communicate with various networks such as the Internet, intranet, wireless network or communicate with other devices through the wireless network.
  • the wireless network mentioned above may include a cellular telephone network, a wireless local area network or a metropolitan area network.
  • the network module 106 can perform information exchange with the base station.
  • the sensor module 108 may include at least one sensor.
  • the sensor module 108 may include, but is not limited to: a light sensor, a motion sensor, a pressure sensor, an infrared heat sensor, a distance sensor, an acceleration sensor, and other sensors.
  • the pressure sensor may be a sensor that detects the pressure generated by pressing on the electronic device 200 . That is, the pressure sensor detects pressure generated by contact or press between the user and the electronic device, eg, contact or press between the user's ear and the mobile terminal. Therefore, the pressure sensor can be used to determine whether contact or pressure occurs between the user and the electronic device 200, and the magnitude of the pressure.
  • the acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the application of the posture of the electronic device 200 (such as horizontal and vertical screen switching, related games, Magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.
  • the electronic device 200 may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, and a thermometer, which will not be described in detail here.
  • FIG. 22 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • Program codes are stored in the computer-readable medium 800, and the program codes can be invoked by a processor to execute the methods described in the foregoing method embodiments.
  • the computer readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium).
  • the computer-readable storage medium 800 has a storage space for program code 810 for executing any method steps in the above-mentioned methods. These program codes can be read from or written into one or more computer program products.
  • Program code 810 may, for example, be compressed in a suitable form.
  • a content display control method, device, electronic device, and storage medium provided by the present application when displaying the first content in full-screen mode, if a target event trigger is detected, it will hover over the first content Displaying the second content corresponding to the target event, and reducing the display area of the second content if the shrinking condition is met after the second content is displayed. Therefore, through the above method, when the first content is displayed in full screen, the display area of the second content that is suspended and displayed in response to the trigger of the target event can be reduced after meeting the shrinking condition, so that the second content can play While prompting, the interference to the first content displayed in the full screen is reduced. In addition, it can also enable users to better coordinate the tasks corresponding to the first content and the tasks corresponding to the second content or the third content, thereby improving the efficiency of multi-task collaborative processing.
  • first and second are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features.
  • the features defined as “first” and “second” may explicitly or implicitly include at least one of these features.
  • “plurality” means at least two, such as two, three, etc., unless otherwise specifically defined.

Abstract

Disclosed in the embodiments of the present application are a content display control method and apparatus, an electronic device, and a storage medium. The method comprises: if first content is displayed in a full-screen mode and a target event is triggered, displaying second content over the first content in a floating manner, wherein the second content is displayed content corresponding to the target event; and if a reduction condition is met, reducing the display area of the second content. Therefore, by means of the method, when first content is displayed in a full-screen manner, the display area of second content, which is displayed in a floating manner in response to the triggering of a target event, can be reduced after a reduction condition is met, such that the second content can play a prompting role, and the interference thereof on the first content, which is displayed in the full-screen manner, can also be reduced.

Description

内容显示控制方法、装置、电子设备及存储介质Content display control method, device, electronic device and storage medium
相关申请的交叉引用Cross References to Related Applications
本申请要求于2021年5月14日提交的申请号为202110530340.5的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。This application claims priority to Chinese Application No. 202110530340.5 filed May 14, 2021, which is hereby incorporated by reference in its entirety for all purposes.
技术领域technical field
本申请涉及终端技术领域,更具体地,涉及一种内容显示控制方法、装置、电子设备以及存储介质。The present application relates to the technical field of terminals, and more specifically, to a content display control method, device, electronic device, and storage medium.
背景技术Background technique
当有界面在前台以沉浸模式展示时,如果需要展示该界面以外的其他内容时,可以在沉浸模式展示的界面上对其他内容进行悬浮显示。例如,当游戏程序的界面在前台以沉浸模式展示时,如果电子设备响应于来电呼叫需要展示通话程序的界面内容时,可以在游戏程序的界面上悬浮显示来电横幅。When an interface is displayed in the immersive mode in the foreground, if other content other than the interface needs to be displayed, other content can be displayed in the floating mode on the interface displayed in the immersive mode. For example, when the interface of the game program is displayed in the immersive mode in the foreground, if the electronic device needs to display the interface content of the calling program in response to an incoming call, an incoming call banner can be displayed in a floating manner on the interface of the game program.
发明内容Contents of the invention
鉴于上述问题,本申请实施例提出了一种内容显示控制方法、装置、电子设备以及存储介质,以改善上述问题。In view of the above problems, the embodiments of the present application propose a content display control method, device, electronic device, and storage medium to improve the above problems.
第一方面,本申请实施例提供了一种内容显示控制方法,应用于电子设备,所述方法包括:若以全屏模式显示第一内容且有目标事件触发,在所述第一内容上悬浮显示第二内容,所述第二内容为所述目标事件对应的显示内容;若满足缩小条件,缩小所述第二内容的显示面积。In the first aspect, the embodiment of the present application provides a method for controlling content display, which is applied to electronic devices. The method includes: if the first content is displayed in full-screen mode and is triggered by a target event, displaying it in a floating manner on the first content The second content, where the second content is the display content corresponding to the target event; if the zoom-out condition is met, the display area of the second content is reduced.
第二方面,本申请实施例提供了一种内容显示控制装置,运行于电子设备,所述装置包括:内容显示单元,用于若以全屏模式显示第一内容且有目标事件触发,在所述第一内容上悬浮显示第二内容,所述第二内容为所述目标事件对应的显示内容;显示控制单元,用于若满足缩小条件,缩小所述第二内容的显示面积。In the second aspect, the embodiment of the present application provides a content display control device that runs on an electronic device, and the device includes: a content display unit, configured to display the first content in a full-screen mode and a target event is triggered, in the The second content is suspended and displayed on the first content, and the second content is the display content corresponding to the target event; the display control unit is configured to reduce the display area of the second content if the zoom-out condition is satisfied.
第三方面,本申请实施例提供了一种电子设备,包括一个或多个处理器以及存储器;一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行以实现上述的方法。In a third aspect, the embodiment of the present application provides an electronic device, including one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors Execute to implement the method described above.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码被处理器运行时执行上述的方法。In a fourth aspect, the embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, wherein the above-mentioned method is executed when the program code is executed by a processor.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1示出了本申请一实施例提出的一种内容显示控制方法的流程图;FIG. 1 shows a flowchart of a content display control method proposed by an embodiment of the present application;
图2示出了本申请实施例中一种以正常模式进行显示的示意图;Fig. 2 shows a schematic diagram of displaying in a normal mode in the embodiment of the present application;
图3示出了本申请实施例中显示的一种第二内容的示意图;Fig. 3 shows a schematic diagram of a second content displayed in the embodiment of the present application;
图4示出了本申请实施例中显示的另一种第二内容的示意图;Fig. 4 shows a schematic diagram of another second content displayed in the embodiment of the present application;
图5示出了本申请实施例中一种缩小第二内容的显示面积的示意图;Fig. 5 shows a schematic diagram of reducing the display area of the second content in the embodiment of the present application;
图6示出了本申请实施例中另一种缩小第二内容的显示面积的示意图;FIG. 6 shows another schematic diagram of reducing the display area of the second content in the embodiment of the present application;
图7示出了本申请另一实施例提出的一种内容显示控制方法的流程图;FIG. 7 shows a flow chart of a content display control method proposed by another embodiment of the present application;
图8示出了本申请实施例中显示的一种第二显示模式的第二内容的示意图;Fig. 8 shows a schematic diagram of second content in a second display mode displayed in the embodiment of the present application;
图9示出了本申请实施例中显示的另一种第二显示模式的第二内容的示意图;FIG. 9 shows a schematic diagram of second content in another second display mode displayed in the embodiment of the present application;
图10示出了本申请实施例中显示的多种的第二显示模式的第二内容进行切换的示意图;Fig. 10 shows a schematic diagram of switching the second content of various second display modes displayed in the embodiment of the present application;
图11示出了本申请再一实施例提出的一种内容显示控制方法的流程图;Fig. 11 shows a flow chart of a content display control method proposed by another embodiment of the present application;
图12示出了本申请实施例中一种第三内容所包括控件的示意图;Fig. 12 shows a schematic diagram of controls included in a third content in the embodiment of the present application;
图13示出了本申请实施例中一种缩小第三内容的显示面积的示意图;Fig. 13 shows a schematic diagram of reducing the display area of the third content in the embodiment of the present application;
图14示出了本申请又一实施例提出的一种内容显示控制方法的流程图;FIG. 14 shows a flow chart of a content display control method proposed by another embodiment of the present application;
图15示出了本申请实施例提出的一种确定缩小程度的流程图;FIG. 15 shows a flow chart for determining the degree of reduction proposed by the embodiment of the present application;
图16示出了本申请又一实施例提出的一种内容显示控制方法的流程图;Fig. 16 shows a flow chart of a content display control method proposed by another embodiment of the present application;
图17示出了本申请又一实施例提出的一种内容显示控制方法的流程图;Fig. 17 shows a flow chart of a content display control method proposed by another embodiment of the present application;
图18示出了本申请又一实施例提出的一种内容显示控制方法的流程图;FIG. 18 shows a flow chart of a content display control method proposed by another embodiment of the present application;
图19示出了本申请一实施例提出的一种内容显示控制装置的结构框图;Fig. 19 shows a structural block diagram of a content display control device proposed by an embodiment of the present application;
图20示出了本申请另一实施例提出的一种内容显示控制装置的结构框图;Fig. 20 shows a structural block diagram of a content display control device proposed by another embodiment of the present application;
图21示出了本申请实时中的用于执行根据本申请实施例的内容显示控制方法的电子设备的结 构框图;Fig. 21 shows a structural block diagram of an electronic device for executing a content display control method according to an embodiment of the present application in real time of the present application;
图22示出了本申请实时中的用于保存或者携带实现根据本申请实施例的内容显示控制方法的程序代码的存储单元。Fig. 22 shows a storage unit used for storing or carrying program codes for realizing the content display control method according to the embodiment of the application in real time of the application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
电子设备中通常配置有沉浸模式,从而使得界面在处于沉浸模式的情况下可以全屏显示在屏幕中。并且,当有界面在前台以沉浸模式展示时,如果需要展示该界面以外的其他内容时,可以在沉浸模式展示的界面上对其他内容进行悬浮显示。例如,当游戏程序的界面在前台以沉浸模式展示时,如果电子设备响应于来电呼叫需要展示通话程序的界面内容时,可以在游戏程序的界面上悬浮显示来电横幅。An immersion mode is usually configured in an electronic device, so that the interface can be displayed in full screen on the screen when the immersion mode is in the state. Moreover, when an interface is displayed in the immersive mode in the foreground, if other content other than the interface needs to be displayed, the other content can be displayed in a floating manner on the interface displayed in the immersive mode. For example, when the interface of the game program is displayed in the immersive mode in the foreground, if the electronic device needs to display the interface content of the calling program in response to an incoming call, an incoming call banner can be displayed in a floating manner on the interface of the game program.
但是,发明人在对相关方式进行研究后发现,在已经有界面在全屏显示的情况下,悬浮显示的其他内容依然会占用较大的面积,影响用户对沉浸模式展示的内容的体验。However, after researching related methods, the inventor found that when the interface is already displayed in full screen, other content displayed in the floating mode will still occupy a relatively large area, affecting the user's experience of the content displayed in the immersive mode.
因此,发明人提出了本申请实施例中的内容显示控制方法、装置、电子设备及存储介质,当在以全屏模式显示第一内容的情况下,若检测到有目标事件触发,则会在所述第一内容上悬浮显示目标事件对应的第二内容,并且会在显示第二内容后若满足缩小条件的情况下,缩小所述第二内容的显示面积。从而通过上述方式使得第一内容在全屏显示的情况下,对于响应于目标事件触发而悬浮显示的第二内容可以在满足缩小条件以后,进行显示面积的缩小,以便使得第二内容能够在起到提示作用的同时,减小对于全屏显示的第一内容的干扰。Therefore, the inventor proposes the content display control method, device, electronic device, and storage medium in the embodiments of the present application. When the first content is displayed in full-screen mode, if a target event is detected, the The second content corresponding to the target event is floatingly displayed on the first content, and the display area of the second content is reduced if the shrinking condition is met after the second content is displayed. Therefore, through the above method, when the first content is displayed in full screen, the display area of the second content that is suspended and displayed in response to the trigger of the target event can be reduced after meeting the shrinking condition, so that the second content can play While prompting, the interference to the first content displayed in the full screen is reduced.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:在所述第一内容上悬浮显示第一显示模式的第二内容。In an implementation manner, the method provided in this embodiment may further include the following process: displaying the second content in the first display mode in a floating manner on the first content.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:将所述第二内容切换为以第二显示模式进行显示,其中,所述第二显示模式的第二内容的显示面积小于所述第一显示模式的第二内容的显示面积。In one implementation, the method provided in this embodiment may further include the following process: switching the second content to be displayed in the second display mode, where the display area of the second content in the second display mode The display area of the second content is smaller than that of the first display mode.
在一种实施方式中,所述第二内容包括有所述目标事件对应的控件,且所述第一显示模式的第二内容所包括的控件,与所述第二显示模式的第二内容所包括的控件的功能不同。In one embodiment, the second content includes controls corresponding to the target event, and the controls included in the second content in the first display mode are the same as the controls included in the second content in the second display mode. The included controls function differently.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:缩小所述第二内容的尺寸。In an implementation manner, the method provided in this embodiment may further include the following process: reducing the size of the second content.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:若以全屏模式显示第一内容且有指定事件触发,在所述第一内容上悬浮显示第三内容,所述第三内容为所述指定事件对应的显示内容;若有与所述指定事件关联的目标事件触发,将悬浮显示的第三内容更新为第二内容。In an implementation manner, the method provided in this embodiment may further include the following process: if the first content is displayed in full-screen mode and a specified event is triggered, the third content is suspended on the first content, and the third content The content is the display content corresponding to the specified event; if a target event associated with the specified event is triggered, the third content displayed in the suspension is updated to the second content.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:若满足第三内容对应的缩小条件,缩小所述第三内容的显示面积。In an implementation manner, the method provided in this embodiment may further include the following process: if the reduction condition corresponding to the third content is met, reduce the display area of the third content.
在一种实施方式中,所述缩小条件包括所述第二内容的显示时长满足指定时长。In an implementation manner, the narrowing condition includes that the display duration of the second content satisfies a specified duration.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:若满足扩大条件,扩大所述第二内容的显示面积。In an implementation manner, the method provided in this embodiment may further include the following process: if the expansion condition is met, expand the display area of the second content.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:若检测到作用于所述第二内容的触控操作,确定满足扩大条件。In an implementation manner, the method provided in this embodiment may further include the following process: if a touch operation acting on the second content is detected, determine that the expansion condition is met.
在一种实施方式中,所述目标事件包括来电接通事件;本实施例提供的方法还可以包括如下流程:若以全屏模式显示第一内容且有来电接通事件触发,在所述第一内容上悬浮显示第二内容,所述第二内容为所述来电接通事件对应的显示内容。In an implementation manner, the target event includes an incoming call connection event; the method provided in this embodiment may further include the following procedure: if the first content is displayed in full-screen mode and is triggered by an incoming call connection event, the first The second content is displayed floating on the content, and the second content is the display content corresponding to the incoming call connection event.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:响应于用户操作,将所述第二显示模式的第二内容切换为所述第一显示模式的第二内容。In an implementation manner, the method provided in this embodiment may further include the following process: in response to a user operation, switching the second content in the second display mode to the second content in the first display mode.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:若检测到有作用于所述第二内容的切换操作,对所述第二显示模式的第二内容所包括的控件进行切换。In an implementation manner, the method provided in this embodiment may further include the following process: if it is detected that a switching operation is applied to the second content, perform a control on the controls included in the second content in the second display mode switch.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:改变所述第二内容中所包括的控件类型。In an implementation manner, the method provided in this embodiment may further include the following process: changing the control type included in the second content.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:若检测到所述第一内容的变化频率小于指定频率,确定满足扩大条件。In an implementation manner, the method provided in this embodiment may further include the following process: if it is detected that the change frequency of the first content is less than a specified frequency, determine that the expansion condition is met.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:检测所述第二内容当前的缩小方式;若确定所述第二内容当前的缩小方式为通过缩小尺寸的方式进行缩小,则确定是通过检 测所述第一内容所属的应用程序来确定所述第二内容的缩小程度,还是通过检测所述第一内容是否为需要用户进行及时操作的界面来确定所述第二内容的缩小程度;若确定是通过检测所述第一内容所属的应用程序来确定所述第二内容的缩小程度,则获取所述第一内容所属的应用程序,并获取所属应用程序对应的缩小程度作为目标缩小程度;若确定是通过检测所述第一内容是否为需要用户进行及时操作的界面来确定所述第二内容的缩小程度,则检测所述第一内容是否为需要用户进行及时操作的界面内容;若确定所述第一内容为需要用户进行及时操作的界面内容,则将需要用户进行及时操作的界面内容对应的缩小程度作为目标缩小程度。In one embodiment, the method provided in this embodiment may further include the following process: detecting the current reduction method of the second content; if it is determined that the current reduction method of the second content is to reduce the size by reducing the size, Then it is determined whether to determine the degree of reduction of the second content by detecting the application program to which the first content belongs, or to determine whether the first content is an interface that requires timely operation by the user to determine the size of the second content. degree of reduction; if it is determined that the degree of reduction of the second content is determined by detecting the application program to which the first content belongs, then obtain the application program to which the first content belongs, and obtain the degree of reduction corresponding to the application program as Target reduction degree; if the determination is to determine whether the reduction degree of the second content is determined by detecting whether the first content is an interface that requires a user to perform a timely operation, then detecting whether the first content is an interface that requires a user to perform a timely operation Content; if it is determined that the first content is the interface content that requires the user to perform a timely operation, then use the reduction degree corresponding to the interface content that requires the user to perform a timely operation as the target reduction degree.
在一种实施方式中,缩小后的第二内容的显示面积与缩小之前的第二内容的显示面积的比与目标缩小程度的值相同。In one embodiment, the ratio of the display area of the second content after reduction to the display area of the second content before reduction is the same as the value of the target reduction degree.
在一种实施方式中,本实施例提供的方法还可以包括如下流程:若以全屏模式显示第一内容且有目标时间触发,开始计时;若所述计时的时长满足预设时长,确定满足所述缩小条件,缩小所述第二内容的显示面积。In one embodiment, the method provided in this embodiment may further include the following process: if the first content is displayed in full-screen mode and there is a target time trigger, start timing; if the duration of the timing meets the preset duration, determine that the specified The reduction condition is used to reduce the display area of the second content.
下面将结合附图来对本申请所包括的实施例进行介绍。The embodiments included in this application will be introduced below with reference to the accompanying drawings.
请参阅图1,图1所示为本申请一实施例提出的一种内容显示控制方法的流程图,该方法包括:Please refer to FIG. 1. FIG. 1 shows a flow chart of a content display control method proposed by an embodiment of the present application, which includes:
S110:若以全屏模式显示第一内容且有目标事件触发,在所述第一内容上悬浮显示第二内容,所述第二内容为所述目标事件对应的显示内容。S110: If the first content is displayed in a full-screen mode and a target event is triggered, display a second content floating on the first content, and the second content is the display content corresponding to the target event.
其中,第一内容可以理解为在前台运行的应用程序对应的内容,并且该第一内容是以全屏模式进行的显示。其中,电子设备对于内容的显示可以配置有正常模式、非粘性沉浸模式、粘性沉浸模式。当处于该正常模式时,电子设备在显示前台运行的应用程序对应的内容的过程中,依然会显示状态栏和系统底部导航。当处于非粘性沉浸模式或者粘性沉浸模式时,电子设备在显示前台运行的应用程序对应的内容的过程中,则会将前台运行的应用程序对应的内容进行全屏显示。其中,在全屏显示的过程中,则可以不用再显示状态栏和系统底部导航。Wherein, the first content can be understood as the content corresponding to the application running in the foreground, and the first content is displayed in a full-screen mode. Wherein, the electronic device may be configured with a normal mode, a non-sticky immersive mode, and a sticky immersive mode for displaying content. When in the normal mode, the electronic device will still display the status bar and system bottom navigation during the process of displaying the content corresponding to the application running in the foreground. When in the non-sticky immersive mode or the sticky immersive mode, when the electronic device displays the content corresponding to the application program running in the foreground, it will display the content corresponding to the application program running in the foreground in full screen. Among them, in the process of full-screen display, the status bar and system bottom navigation can no longer be displayed.
示例性的,如图2所示,电子设备当前正在前台运行游戏程序,其中,游戏界面20为游戏程序对应的内容。在图2中的上侧图像中,电子设备是以正常模式显示游戏界面20,在这种情况下,电子设备除了显示游戏界面20外,还会在游戏界面20的上方显示状态栏10,在状态栏10中可以显示有当前的时间,移动通信信号强度以及电子设备的剩余电量等。若当电子设备以非粘性沉浸模式或者粘性沉浸模式对游戏程序进行显示时,则可以切换到图2中下侧图示所示的样式,其中,电子设备会取消显示状态栏10,以便全屏对游戏界面20进行显示。Exemplarily, as shown in FIG. 2 , the electronic device is currently running a game program in the foreground, wherein the game interface 20 is the content corresponding to the game program. In the upper image in FIG. 2 , the electronic device is displaying the game interface 20 in a normal mode. In this case, the electronic device will display the status bar 10 on the top of the game interface 20 in addition to displaying the game interface 20. The status bar 10 may display the current time, the strength of the mobile communication signal, and the remaining power of the electronic device. If the electronic device displays the game program in a non-sticky immersion mode or a sticky immersion mode, it can switch to the style shown in the lower diagram in FIG. The game interface 20 is displayed.
在本申请实施例中,目标事件包括需要进行内容显示的事件,并且在本申请实施例中,目标事件可以是任一需要进行内容显示的事件,也可以是白名单中的需要进行内容显示的事件。需要进行显示的内容可以包括界面内容,并且对于不同的目标事件,那么所对应的内容可以有所不同。在有目标事件触发的情况下,响应于该目标事件则可以在第一内容上悬浮显示第二内容,第二内容为所述目标事件对应的显示内容。In this embodiment of the application, the target event includes an event that requires content display, and in this embodiment of the application, the target event can be any event that requires content display, or an event that requires content display in the whitelist event. The content to be displayed may include interface content, and for different target events, the corresponding content may be different. When a target event is triggered, in response to the target event, the second content may be hovered over the first content, and the second content is the display content corresponding to the target event.
示例性的,以目标事件为来电接通事件为例,在来电接通事件触发后电子设备可以获取到来电对方的声音并进行播放,并且可以将电子设备的麦克风所采集的声音传输给来电对方。如图3所示,在有来电接通事件触发的情况下,则电子设备会将来电接通事件对应的显示内容作为第二内容进行显示。示例性的,如图3所示,来电接通事件对应的显示内容为图3中的内容21中,内容21中包括有第一控件211以及第二控件212,第一控件211用于切换通话内容播放方式,第二控件212用于挂断通话。Exemplarily, taking the target event as an incoming call connection event as an example, after the incoming call connection event is triggered, the electronic device can obtain and play the sound of the incoming call party, and can transmit the sound collected by the microphone of the electronic device to the incoming call party . As shown in FIG. 3 , when an incoming call connection event is triggered, the electronic device will display the display content corresponding to the incoming call connection event as the second content. Exemplarily, as shown in FIG. 3, the display content corresponding to the incoming call connection event is in the content 21 in FIG. In the content playing mode, the second control 212 is used to hang up the call.
再者,来电接通事件对应的显示内容除了可以为图3中所示的显示样式外,还可以为其他的显示样式。例如,如图4所示,来电接通事件对应的显示内容可以为图4中所示的内容22,在内容22中包括有第二控件212以及第四控件221。其中,与内容21不同的是,内容22中将内容21中的第一控件211替换成了第四控件221。其中,第四控件221为用于触发显示虚拟数字按键的控件。该虚拟数字按键为用于用户进行号码的输入。例如,在一些通话场景中,电子设备在通话过程中需要进一步的输入一些数字,那么在需要输入数字之前则可以通过触发第四控件221来显示虚拟数字按键,以便进行数字的输入。Furthermore, besides the display style shown in FIG. 3 , the display content corresponding to the incoming call connection event may also be other display styles. For example, as shown in FIG. 4 , the display content corresponding to the incoming call connection event may be the content 22 shown in FIG. 4 , and the content 22 includes the second control 212 and the fourth control 221 . Wherein, the difference from the content 21 is that the first control 211 in the content 21 is replaced by the fourth control 221 in the content 22 . Wherein, the fourth control 221 is a control for triggering the display of virtual number keys. The virtual number keys are used for the user to input numbers. For example, in some call scenarios, the electronic device needs to further input some numbers during the call, then the fourth control 221 can be triggered to display virtual number keys before the number needs to be input, so as to input numbers.
需要说明的是,在第二内容的显示样式有多种的情况下,作为一种方式,电子设备可以先检测当前所确定的显示样式,然后基于当前所确定的显示样式来进行第二内容的显示。It should be noted that, when there are multiple display styles of the second content, as a way, the electronic device may first detect the currently determined display style, and then display the second content based on the currently determined display style. show.
需要说明的是,所悬浮显示的第二内容的显示面积小于第一内容所占据的显示面积。例如,第二内容的显示面积为第一内容所占据的显示面积的五分之一。It should be noted that the display area of the suspended second content is smaller than the display area occupied by the first content. For example, the display area of the second content is one-fifth of the display area occupied by the first content.
S120:若满足缩小条件,缩小所述第二内容的显示面积。S120: If the reduction condition is satisfied, reduce the display area of the second content.
在本申请实施例中,缩小条件可以理解为对响应于事件触发而显示内容进行缩小的条件。可 选的,在显示第二内容的情况下,缩小条件可以理解为电子设备自动对第二内容的显示面积进行缩小的条件。其中,自动对第二内容的显示面积进行缩小可以包括不需要用户对第二内容进行触控操作,而是可以由电子设备自动的根据一些触发条件(如,缩小条件)来实现控制缩小所述第二内容的显示面积。其中,显示面积为第二内容所占据的显示区域的面积,那么缩小第二内容的显示面积则可以理解为缩小第二内容所占据的显示区域的面积。In this embodiment of the present application, the zoom-out condition may be understood as a condition for zooming out the displayed content in response to an event trigger. Optionally, in the case of displaying the second content, the shrinking condition can be understood as a condition for the electronic device to automatically shrink the display area of the second content. Wherein, automatically shrinking the display area of the second content may include that the user does not need to touch the second content, but the electronic device may automatically realize the control of shrinking the second content according to some trigger conditions (for example, shrinking conditions). The display area of the second content. Wherein, the display area is the area of the display area occupied by the second content, so reducing the display area of the second content can be understood as reducing the area of the display area occupied by the second content.
其中,在本实施例中缩小条件可以包括有多种类型的条件。Wherein, in this embodiment, the narrowing conditions may include multiple types of conditions.
作为一种方式,可以为时间条件。例如,缩小条件可以包括第二内容的显示时间满足指定时长,那么电子设备可以在第二内容开始显示后就进行计时,在计时满足指定时长后,则确定满足缩小条件,并开始对第二内容的显示面积进行缩小。作为另外一种方式,缩小条件可以为触控条件,例如,缩小条件可以包括在第二内容显示后检测到作用于第一内容的触控操作。需要说明的是,若在第二内容显示后,检测到作用于第一内容的触控操作,那么则表征用户当前正在关注第一内容,而为了进一步的降低第二内容对用户关注第一内容造成的干扰,则可以开始对第二内容的显示面积进行缩小。作为另外一种方式,缩小条件可以同时包括时间条件和触控条件。可选的,电子设备可以在检测到满足触控条件后开始计时,若检测到计时时长满足该时间条件,则可以开始缩小第二内容。As a way, there can be time conditions. For example, the narrowing condition may include that the display time of the second content satisfies a specified duration, then the electronic device may perform timing after the second content starts to be displayed, and determine that the zooming-out condition is met after the timing meets the specified duration, and start to process the second content The display area is reduced. As another manner, the zoom-out condition may be a touch condition. For example, the zoom-out condition may include detecting a touch operation on the first content after the second content is displayed. It should be noted that if a touch operation on the first content is detected after the second content is displayed, it means that the user is currently paying attention to the first content. If the interference is caused, the display area of the second content can be reduced. As another way, the zoom-out condition may include time condition and touch condition at the same time. Optionally, the electronic device may start timing after detecting that the touch condition is satisfied, and if it detects that the timing duration satisfies the time condition, it may start to shrink the second content.
其中,电子设备可以通过多种方式来实现缩小所述第二内容的显示面积。作为一种方式,电子设备可以通过缩小第二内容本身的尺寸来实现缩小第二内容的显示面积。Wherein, the electronic device may reduce the display area of the second content in various ways. As a manner, the electronic device may reduce the display area of the second content by reducing the size of the second content itself.
示例性的,如图5所示,在第二内容为图5中的内容21的情况下,可以将内容21的尺寸由图5中上侧图像中所示的大小,缩小为图5中下侧图像中所示的大小,从而实现缩小所述第二内容的显示面积。作为另外一种方式,也可以通过改变内容21中所包括的控件类型来实现缩小所述第二内容的显示面积。示例性的,如图6所示,可以通过将作为第二内容的内容21中所包括来电对象名称以及通话时长这两个控件进行取消显示的方式,以切换为图6中下侧图像中所示内容23来实现缩小第二内容的显示面积。Exemplarily, as shown in FIG. 5, when the second content is the content 21 in FIG. 5, the size of the content 21 can be reduced from the size shown in the upper image in FIG. 5 to the lower one in FIG. The size shown in the side image, thereby reducing the display area of the second content. As another way, the display area of the second content can also be reduced by changing the control type included in the content 21 . Exemplarily, as shown in FIG. 6, it is possible to switch to the control shown in the lower image in FIG. Display content 23 to reduce the display area of the second content.
需要说明的是,本申请实施例中的目标事件可以不限于来电接通事件,其他会触发进行界面显示的事件也可以作为其中的目标事件,例如,闹钟事件。It should be noted that the target event in this embodiment of the present application may not be limited to the incoming call connection event, and other events that trigger interface display may also be used as the target event, for example, an alarm clock event.
本实施例提供的一种内容显示控制方法,当在以全屏模式显示第一内容的情况下,若检测到有目标事件触发,则会在所述第一内容上悬浮显示目标事件对应的第二内容,并且会在显示第二内容后若满足缩小条件的情况下,缩小所述第二内容的显示面积。从而通过上述方式使得第一内容在全屏显示的情况下,对于响应于目标事件触发而悬浮显示的第二内容可以在满足缩小条件以后,进行显示面积的缩小,以便使得第二内容能够在起到提示作用的同时,减小对于全屏显示的第一内容的干扰。并且,其中的缩小条件可以表征的为一种自动化的对第二内容进行缩小的条件,从而使得用户并不需要对第二内容本身进行操作,就可以触发第二内容的显示面积进行缩小,有利于用户更高的协同处理第一内容和第二内容各自所对应的任务。In the content display control method provided by this embodiment, when the first content is displayed in full-screen mode, if a target event trigger is detected, the second content corresponding to the target event will be displayed in a floating manner on the first content. content, and if the shrinking condition is met after the second content is displayed, the display area of the second content will be reduced. Therefore, through the above method, when the first content is displayed in full screen, the display area of the second content that is suspended and displayed in response to the trigger of the target event can be reduced after meeting the shrinking condition, so that the second content can play While prompting, the interference to the first content displayed in the full screen is reduced. Moreover, the zoom-out condition can be characterized as an automatic zoom-out condition for the second content, so that the user can trigger the zoom-out of the display area of the second content without operating the second content itself. It is beneficial for the user to more cooperatively process tasks corresponding to the first content and the second content.
请参阅图7,图7所示为本申请一实施例提出的一种内容显示控制方法的流程图,该方法包括:Please refer to FIG. 7. FIG. 7 is a flow chart of a content display control method proposed by an embodiment of the present application. The method includes:
S210:若以全屏模式显示第一内容且有目标事件触发,在所述第一内容上悬浮显示第一显示模式的第二内容,所述第二内容为所述目标事件对应的显示内容。S210: If the first content is displayed in full-screen mode and is triggered by a target event, display second content in the first display mode in a floating manner on the first content, where the second content is the display content corresponding to the target event.
S220:若满足缩小条件,将所述第二内容切换为以第二显示模式进行显示,其中,所述第二显示模式的第二内容的显示面积小于所述第一显示模式的第二内容的显示面积。S220: If the zoom-out condition is satisfied, switch the second content to be displayed in a second display mode, wherein the display area of the second content in the second display mode is smaller than that of the second content in the first display mode Display area.
其中,可选的,目标事件对应的显示内容的多种显示模式可以预先进行配置,也可以由用户根据自己的个性化需求进行配置。其中,作为一种方式,所述第二内容包括有所述目标事件对应的控件,且所述第一显示模式的第二内容所包括的控件,与所述第二显示模式的第二内容所包括的控件的功能不同。其中,第二内容中所包括的控件可以为对目标事件进行控制的控件,例如,可以控制目标事件停止运行的控件。Wherein, optionally, multiple display modes of the display content corresponding to the target event may be pre-configured, or may be configured by the user according to his individual requirements. Wherein, as a manner, the second content includes a control corresponding to the target event, and the control included in the second content in the first display mode is the same as the control included in the second content in the second display mode. The included controls function differently. Wherein, the control included in the second content may be a control that controls the target event, for example, a control that can control the target event to stop running.
示例性,请再参阅图3,图3中的内容21可以作为一种第一显示模式的第二内容。如图8所示,图8中所示内容24为一种第二显示模式的第二内容。在内容24中显示有音频条241,该音频条241可以通过自己的形状变换实时体现通话音量。在经过用户编辑后可以将第二模式的第二内容切换为图9中所示的内容25,在图9中所示的内容25中,音频条241切换为了时间控件251,该时间控件251可以用于显示接通来电的时长。For example, please refer to FIG. 3 again, the content 21 in FIG. 3 may be used as the second content in the first display mode. As shown in FIG. 8 , the content 24 shown in FIG. 8 is a second content in a second display mode. An audio bar 241 is displayed in the content 24, and the audio bar 241 can reflect the call volume in real time through its own shape transformation. After being edited by the user, the second content of the second mode can be switched to the content 25 shown in FIG. 9. In the content 25 shown in FIG. Used to display the duration of the incoming call.
作为一种方式,在第二内容切换为第二显示模式后,也可以响应于用户的操作而将第二显示模式的第二内容切换为第一显示模式的第二内容。As a manner, after the second content is switched to the second display mode, the second content in the second display mode may also be switched to the second content in the first display mode in response to a user operation.
可选的,以第二显示模式的第二内容为内容24为例,若检测到有作用于音频条241的触控操作,则可以将第二显示模式的第二内容由内容24切换为第一显示模式的第二内容(例如,图3中的 内容21)。其中,触控操作可以包括点击操作,或者双击操作,也可以为长时间按压操作。可选的,再以第二显示模式的第二内容为内容25为例,若检测到有作用于时间控件251的触控操作,则可以将第二显示模式的第二内容由内容25切换为第一显示模式的第二内容(例如,图3中的内容21)。其中,触控操作可以包括点击操作,或者双击操作,也可以为长时间按压操作。Optionally, taking the second content of the second display mode as content 24 as an example, if a touch operation on the audio bar 241 is detected, the second content of the second display mode can be switched from content 24 to the second content. A second content of the display mode (for example, content 21 in FIG. 3 ). Wherein, the touch operation may include a click operation, or a double-click operation, or may be a long-time press operation. Optionally, taking the second content of the second display mode as content 25 as an example, if a touch operation on the time control 251 is detected, the second content of the second display mode can be switched from content 25 to The second content of the first display mode (eg, content 21 in FIG. 3 ). Wherein, the touch operation may include a click operation, or a double-click operation, or may be a long-time press operation.
再者,在第二显示模式可以有前述的多种实施方式的情况下,不同的实施方式的第二内容所包括的控件可以是不同的,那么在第二内容以第二显示模式进行显示的情况下,可以将第二内容在多种实施方式之间进行切换。可选的,在以第二显示模式显示第二内容的情况下,若有作用于第二内容的切换操作,可以对第二显示模式的第二内容所包括的控件进行切换。示例性的,以切换操作为沿指定方向的滑动操作为例,如图10所示,若有沿图10中上侧图像中所示的沿虚线箭头所示方向的滑动操作,那么则可以将所显示的内容24切换为显示图10中的下侧图像中所示的内容25。可选的,在显示内容25以后,若继续检测到有该沿虚线箭头所示方向的滑动操作,则可以将显示内容25切换为显示内容24。Furthermore, in the case that the second display mode can have the aforementioned multiple implementations, the controls included in the second content in different implementations can be different, then when the second content is displayed in the second display mode In some cases, the second content can be switched among multiple implementation manners. Optionally, when the second content is displayed in the second display mode, if there is a switching operation on the second content, the controls included in the second content in the second display mode may be switched. Exemplarily, taking the switching operation as a sliding operation along a specified direction as an example, as shown in FIG. 10, if there is a sliding operation along the direction indicated by the dotted arrow shown in the upper image in FIG. The displayed content 24 is switched to display the content 25 shown in the lower image in FIG. 10 . Optionally, after the content 25 is displayed, if the sliding operation along the direction indicated by the dotted arrow continues to be detected, the displayed content 25 may be switched to the displayed content 24 .
需要说明的是,前述的第一显示模式的第二内容和第二显示模式的第二内容都是示例性的,第一显示模式和第二显示模式的第二内容中所包括的控件可以由用户进行配置。It should be noted that the foregoing second content in the first display mode and the second content in the second display mode are exemplary, and the controls included in the first display mode and the second content in the second display mode can be determined by User configures.
作为一种方式,在以第二显示模式显示第二内容的情况下,可以通过作用于第二内容中控件的触控操作来实现结束目标事件。例如,以第二显示模式的第二内容为内容24为例,若检测到有作用于内容24中的音频条241的触控操作,则可以结束来电接通事件。需要说明的是,在本实施例中作用为将以第二显示模式的第二内容切换为以第一显示模式的第二内容的触控操作,与触发结束目标事件的触控操作是不同的。并且,将以第二显示模式显示的第二内容切换为以第一显示模式显示的第二内容的触控操作,和触发结束目标事件的触控操作可以均由用户进行配置。As a manner, in the case of displaying the second content in the second display mode, the end target event may be realized through a touch operation acting on a control in the second content. For example, taking the second content in the second display mode as content 24 as an example, if a touch operation on the audio bar 241 in the content 24 is detected, the incoming call connection event may be ended. It should be noted that, in this embodiment, the touch operation used to switch the second content in the second display mode to the second content in the first display mode is different from the touch operation that triggers the end target event . Moreover, the touch operation of switching the second content displayed in the second display mode to the second content displayed in the first display mode, and the touch operation of triggering the end target event can both be configured by the user.
本实施例提供的一种内容显示控制方法,从而通过上述方式使得第一内容在全屏显示的情况下,对于响应于目标事件触发而悬浮显示的第二内容可以在满足缩小条件以后,进行显示面积的缩小,以便使得第二内容能够在起到提示作用的同时,减小对于全屏显示的第一内容的干扰。并且,在本实施例中,对于第二内容可以对应于不同的显示模式而配置对不同的控件进行显示,提升了内容显示切换的多样性。This embodiment provides a content display control method, so that in the case of full-screen display of the first content, the display area of the second content that is suspended and displayed in response to the trigger of the target event can be adjusted after meeting the zoom-out condition. Zoom out so that the second content can play a prompt role while reducing interference with the first content displayed in full screen. Moreover, in this embodiment, the second content can be configured to display different controls corresponding to different display modes, which improves the diversity of content display switching.
请参阅图11,图11所示为本申请一实施例提出的一种内容显示控制方法的流程图,该方法包括:Please refer to FIG. 11. FIG. 11 is a flow chart of a content display control method proposed by an embodiment of the present application. The method includes:
S310:若以全屏模式显示第一内容且有指定事件触发,在所述第一内容上悬浮显示第三内容,所述第三内容为所述指定事件对应的显示内容。S310: If the first content is displayed in full-screen mode and a specified event is triggered, display a third content in a floating manner on the first content, and the third content is the display content corresponding to the specified event.
需要说明的是,在本实施例中,所触发的事情可以包括有指定事件,以及与指定事件关联的目标事件。与指定事件关联的目标事件可以包括在处理进度上与指令事件相邻的事件,那么可以理解为通常是指定事件先触发,然后再触发目标事件。例如,指定事件可以为来电事件,那么在处理进度上与来电事件对应的事件可以包括来电接通事件。其中,当指定事件触发时,电子设备也可以在第一内容上悬浮显示对应的显示内容。It should be noted that, in this embodiment, the triggered event may include a specified event and a target event associated with the specified event. The target event associated with the specified event may include events adjacent to the instruction event in terms of processing progress, so it can be understood that the specified event is usually triggered first, and then the target event is triggered. For example, the specified event may be an incoming call event, and then the events corresponding to the incoming call event in the processing progress may include the incoming call connection event. Wherein, when a specified event is triggered, the electronic device may also hover over the first content to display the corresponding display content.
示例性的,如图12所示,当有来电事件触发时,可以在作为第一内容的游戏界面20上悬浮显示第三内容31。在第三内容31中包括有来电对象名称、用于接听通话的控件以及用于挂断通话的控件。Exemplarily, as shown in FIG. 12 , when an incoming call event is triggered, the third content 31 may be floatingly displayed on the game interface 20 as the first content. The third content 31 includes the name of the caller, a control for answering a call, and a control for hanging up a call.
S320:若有与所述指定事件关联的目标事件触发,将悬浮显示的第三内容更新为第二内容。S320: If a target event associated with the specified event is triggered, update the third content displayed in the suspension to the second content.
例如,以目标事件为来电接通事件为例,在指定事件触发时可以如图9所示的显示指定事件对应的第三内容31,若检测到有作用于第三内容31中的接听通话的控件的触控操作时,则确定有与来电事件关联的来电接通事件触发,进而会将所显示的第三内容31切换为前述内容中所示的第二内容21。For example, taking the target event as an incoming call connection event as an example, when the specified event is triggered, the third content 31 corresponding to the specified event can be displayed as shown in FIG. When the control is touched, it is determined that an incoming call connection event associated with the incoming call event is triggered, and then the displayed third content 31 is switched to the second content 21 shown in the foregoing content.
S330:若满足缩小条件,缩小所述第二内容的显示面积。S330: If the reduction condition is met, reduce the display area of the second content.
作为一种实施方式,若有与所述指定事件关联的目标事件触发,将悬浮显示的第三内容更新为第二内容之前还包括:若满足第三内容对应的缩小条件,缩小所述第三内容的显示面积。示例性的,如图13所示,可以将第三内容31通过缩小尺寸的方式进行显示面积的缩小,从而将第三内容31由图13的上侧图像中所示的显示样式缩小为图13的下侧图像中所示的显示样式。As an implementation manner, if a target event associated with the specified event is triggered, before updating the floating third content to the second content, it further includes: if the zoom-out condition corresponding to the third content is satisfied, zooming out the third content The display area of the content. Exemplarily, as shown in FIG. 13 , the display area of the third content 31 can be reduced by reducing the size, so that the third content 31 can be reduced from the display style shown in the upper image of FIG. 13 to that shown in FIG. 13 The display style shown in the lower image of .
在本申请实施例中,第三内容对应的缩小条件可以理解为电子设备自动对第三内容的显示面积进行缩小的条件。其中,自动对第三内容的显示面积进行缩小可以包括不需要用户对第三内容进行触控操作,而是可以由电子设备自动的根据一些触发条件(如,缩小条件)来实现控制缩小所述第三内容的显示面积。In the embodiment of the present application, the reduction condition corresponding to the third content may be understood as a condition for the electronic device to automatically reduce the display area of the third content. Wherein, automatically shrinking the display area of the third content may include that the user does not need to touch the third content, but the electronic device may automatically realize the control of shrinking the third content according to some trigger conditions (such as shrinking conditions). The display area of the third content.
需要说明的是,不同的用户对于同一个显示模式可能会有不同的喜好。那么用户可以根据自 己的喜好对于第三内容的某个显示模式进行编辑,从而使得第三内容可以针对每个用户的喜好而进行个性化的显示。It should be noted that different users may have different preferences for the same display mode. Then the user can edit a certain display mode of the third content according to his own preferences, so that the third content can be displayed personalized according to each user's preferences.
本实施例提供的一种内容显示控制方法,从而通过上述方式使得第一内容在全屏显示的情况下,对于响应于目标事件触发而悬浮显示的第二内容后,如果有与目标事件对应的关联事件触发后,会将原本显示的第二内容切换为与关联事件对应的第三内容,并可以在满足缩小条件的情况下,对第三内容进行缩小,以便使得第三内容能够在起到提示作用的同时,减小对于全屏显示的第一内容的干扰。并且,在本实施例中,对于第三内容可以对应于不同的显示模式而配置对不同的控件进行显示,提升了内容显示切换的多样性。This embodiment provides a content display control method, so that in the case of full-screen display of the first content in the above-mentioned manner, if there is an association corresponding to the target event after the second content is suspended and displayed in response to the target event trigger After the event is triggered, the originally displayed second content will be switched to the third content corresponding to the associated event, and the third content can be zoomed out if the zoom-out condition is met, so that the third content can serve as a prompt While functioning, the interference to the first content displayed in full screen is reduced. Moreover, in this embodiment, the third content can be configured to display different controls corresponding to different display modes, which improves the diversity of content display switching.
请参阅图14,图14所示为本申请一实施例提出的一种内容显示控制方法的流程图,该方法包括:Please refer to FIG. 14. FIG. 14 is a flow chart of a content display control method proposed by an embodiment of the present application. The method includes:
S410:若以全屏模式显示第一内容且有目标事件触发,在所述第一内容上悬浮显示第二内容,所述第二内容为所述目标事件对应的显示内容。S410: If the first content is displayed in full-screen mode and a target event is triggered, display second content in a floating manner on the first content, where the second content is the display content corresponding to the target event.
S420:若满足缩小条件,缩小所述第二内容的显示面积。S420: If the reduction condition is satisfied, reduce the display area of the second content.
其中,在本申请实施例中,第二内容的显示面积具体缩小到何种程度,可以根据实际情况进行确定。Wherein, in the embodiment of the present application, the extent to which the display area of the second content is specifically reduced may be determined according to actual conditions.
作为一种方式,在本申请实施例中,电子设备可以根据第一内容来确定第二内容的缩小程度。需要说明的是,所显示的第二内容可以为用于对目标事件的运行过程进行控制的内容。那么如果缩小了第二内容的显示面积,可能还是会对用户观看或者操作第二内容造成一定的影响,那么为了更大概率的降低该影响,则电子设备可以根据第一内容当前的显示内容来确定具体将第二内容缩小的程度。As a manner, in the embodiment of the present application, the electronic device may determine the degree of zooming out of the second content according to the first content. It should be noted that the displayed second content may be content used to control the running process of the target event. Then, if the display area of the second content is reduced, it may still have a certain impact on the user's viewing or operation of the second content. In order to reduce the impact with a greater probability, the electronic device can display the content according to the current display content of the first content. Determines how much to specifically shrink the second content.
可选的,可以根据第一内容所属的应用程序来确定具体将第二内容缩小到何种程度。其中,不同的缩小程度可以使得第二内容进行缩小以后的显示面积不同。在这种方式中,可以在电子设备中存储有应用程序与缩小程度之间的对应关系,那么在需要对第二内容进行缩小之前,则可以获取到第一内容所属的应用程序,再进一步的获取到所属应用程序对应的缩小程度作为目标程度,然后在缩小第二内容的过程中,将第二内容缩小到该目标程度。示例性的,电子设备中预先存储有应用程序A对应缩小程度d1,应用程序B对应缩小程度d2,应用程序C对应缩小程度d3以及应用程序D对应缩小程度d4。Optionally, the specific extent to which the second content is narrowed down may be determined according to the application program to which the first content belongs. Wherein, different reduction degrees may cause different display areas of the second content after reduction. In this way, the corresponding relationship between the application program and the reduction degree can be stored in the electronic device, then before the second content needs to be reduced, the application program to which the first content belongs can be obtained, and further The reduction degree corresponding to the application program is obtained as the target degree, and then the second content is reduced to the target degree during the process of reducing the second content. Exemplarily, the electronic device pre-stores application A corresponding to the reduction degree d1, application B corresponding to the reduction degree d2, application C corresponding to the reduction degree d3, and application D corresponding to the reduction degree d4.
那么在确定缩小程度的过程中,确定当前所显示的第一内容所属应用程序为应用程序C,则会进步的获取到应用程序C对应的缩小程度d3,并将缩小程度d3作为目标缩小程度,进而基于缩小程度d3对第二内容进行缩小。其中,基于目标缩小程度对第二内容进行缩小,可以理解为,缩小后的第二内容的显示面积与缩小之前的第二内容的显示面积的比与目标缩小程度的值相同。示例性的,前述的d1可以为80%,d2可以为60%,d3可以为40%,d4可以为20%。那么在确定目标缩小程度为d3的情况下,缩小后的第二内容的显示面积与第二内容缩小之前的面积之比则为0.4。再比如,在确定目标缩小程度为d4的情况下,缩小后的第二内容的显示面积与第二内容缩小之前的面积之比则为0.2。Then, in the process of determining the degree of reduction, if it is determined that the application program of the currently displayed first content belongs to application program C, the degree of reduction d3 corresponding to application program C will be progressively obtained, and the degree of reduction d3 will be used as the target degree of reduction. Further, the second content is reduced based on the degree of reduction d3. Wherein, the second content is reduced based on the target reduction degree, it can be understood that the ratio of the display area of the reduced second content to the display area of the second content before reduction is the same as the value of the target reduction degree. Exemplarily, the aforementioned d1 may be 80%, d2 may be 60%, d3 may be 40%, and d4 may be 20%. Then, in the case that the target reduction degree is determined to be d3, the ratio of the display area of the reduced second content to the area of the second content before reduction is 0.4. For another example, when the target reduction degree is determined to be d4, the ratio of the display area of the reduced second content to the area of the second content before reduction is 0.2.
其中,第一内容为全屏显示的内容。那么在本申请实施例中,电子设备可以检测在前台所运行的应用程序来确定第一内容所属的应用程序。对应的,电子设备可以将在前台所运行的应用程序作为第一内容所属的应用程序。Wherein, the first content is the content displayed in full screen. Then, in the embodiment of the present application, the electronic device may detect the application program running in the foreground to determine the application program to which the first content belongs. Correspondingly, the electronic device may use the application running in the foreground as the application to which the first content belongs.
可选的,可以根据第一内容本身所表征的内容来确定第二内容的缩小程度。需要说明的是,即使在同一个应用程序中,不同的界面内容所需的用户关注程度可能是不同的。例如,在游戏程序中的游戏配置界面、游戏人物选择界面等并不需要用户进行及时的操作,而对于实时的游戏对战界面则需要用户较为及时的进行操作。那么可以在缩小第二内容之前先获取第一内容是否为需要用户进行及时操作的界面内容,若确定第一内容为需要用户进行及时操作的界面内容,那么则可以将第二内容缩小到需要用户进行及时操作的界面内容对应的缩小程度,若确定第一内容为不需要用户进行及时操作的界面内容,那么则可以将第二内容缩小到不需要用户进行及时操作的界面内容对应的缩小程度。Optionally, the reduction degree of the second content may be determined according to the content represented by the first content itself. It should be noted that even in the same application program, different interface contents may require different levels of user attention. For example, the game configuration interface, game character selection interface, etc. in the game program do not require the user to perform timely operations, but the real-time game battle interface requires the user to perform relatively timely operations. Then, before narrowing down the second content, it is possible to obtain whether the first content is an interface content requiring timely operation by the user. The degree of reduction corresponding to the interface content for timely operation, if it is determined that the first content is the interface content that does not require timely operation by the user, then the second content may be reduced to the degree of reduction corresponding to the interface content that does not require timely operation by the user.
其中,在缩小程度表征的是第二内容缩小之后的显示面积与第二内容缩小之前的显示面积的比的情况下,不需要用户进行及时操作的界面内容对应的缩小程度,大于需要用户进行及时操作的界面内容对应的缩小程度。示例性的,若确定第一内容为需要用户进行及时操作的界面内容,那么确定对应的缩小程度可以为0.4,若确定第一内容为不需要用户进行及时操作的界面内容,那么确定对应的缩小程度可以为0.8。Wherein, when the reduction degree represents the ratio of the display area after the second content is reduced to the display area before the second content is reduced, the reduction degree corresponding to the interface content that does not require the user to perform timely operation is greater than the reduction degree that requires the user to perform timely operation. The degree of reduction corresponding to the interface content of the operation. Exemplarily, if it is determined that the first content is the interface content that requires the user to perform timely operations, then determine that the corresponding zoom-out degree may be 0.4; if it is determined that the first content is the interface content that does not require the user to perform timely operations, then determine the corresponding zoom-out degree The degree may be 0.8.
在这种方式中,应用程序可以配置有界面注册功能,对应的,电子设备中也配置有界面注册 服务。应用程序可以通过该界面注册功能将需要用户进行及时操作的界面注册到电子设备的界面注册服务中,从而使得电子设备可以获取到需要用户进行及时操作的界面。那么电子设备在需要对第二内容进行缩小之前可以获取第一内容是否为已经在界面注册服务中已经注册的界面内容,若检测到第一内容为已经在界面注册服务中已经注册的界面内容,则确定第一内容为需要用户进行及时操作的界面,从而使得可以将需要用户进行及时操作的界面对应的缩小程度作为目标缩小程度,若检测到第一内容不为已经在界面注册服务中已经注册的界面内容,则确定第一内容为不需要用户进行及时操作的界面,从而使得可以将不需要用户进行及时操作的界面对应的缩小程度作为目标缩小程度。In this manner, the application program can be configured with an interface registration function, and correspondingly, the electronic device is also configured with an interface registration service. Through the interface registration function, the application can register the interface that requires the user to operate in time with the interface registration service of the electronic device, so that the electronic device can obtain the interface that requires the user to operate in time. Then the electronic device can obtain whether the first content is the interface content that has been registered in the interface registration service before the second content needs to be reduced. If it is detected that the first content is the interface content that has been registered in the interface registration service, Then it is determined that the first content is an interface that requires the user to perform timely operations, so that the degree of reduction corresponding to the interface that requires the user to perform timely operations can be used as the target reduction degree. If it is detected that the first content is not already registered in the interface registration service interface content, the first content is determined to be an interface that does not require timely operation by the user, so that the reduction degree corresponding to the interface that does not require timely operation by the user can be used as the target reduction degree.
需要说明的是,前述内容中所示的缩小程度表征的是第二内容在缩小之后的显示面积与缩小之前的显示面积的比,而在本申请实施例中,对于第二内容的缩小会至少有两种方式。一种方式为如图4所示的进行尺寸的缩小,另一种方式是如图5所示的进行显示模式的切换而实现显示面积的缩小。而对于通过显示模式切换的这种方式中,所切换到的模式可能与当前确定的目标缩小程度可能并不匹配,且也可能会不存在与确定的目标缩小程度相匹配的显示模式。It should be noted that the degree of reduction shown in the foregoing content represents the ratio of the display area of the second content after reduction to the display area before reduction, and in the embodiment of the present application, the reduction of the second content will be at least There are two ways. One way is to reduce the size as shown in FIG. 4 , and the other way is to switch the display mode as shown in FIG. 5 to realize the reduction of the display area. However, in this manner of switching through display modes, the switched mode may not match the currently determined target reduction degree, and there may also be no display mode matching the determined target reduction degree.
例如,第二内容对应有第一显示模式和第二显示模式,其中,第二显示模式对应的显示面积与第二显示模式对应的显示面积的比为0.5,而当前所确定的目标缩小程度为0.4,那么若第二内容是以通过切换显示模式的方式来进行的显示面积的缩小的情况下,则可能会造成无法适配合适的显示模式,那么为了改善该问题,如图15所示,电子设备可以确定满足缩小条件之后和实际执行缩小第二内容的显示面积之间执行下列步骤:For example, the second content corresponds to a first display mode and a second display mode, wherein the ratio of the display area corresponding to the second display mode to the display area corresponding to the second display mode is 0.5, and the currently determined target reduction degree is 0.4, then if the second content is to reduce the display area by switching the display mode, it may cause that the appropriate display mode cannot be adapted, so in order to improve this problem, as shown in Figure 15, The electronic device may perform the following steps between after determining that the shrinking condition is met and between actually shrinking the display area of the second content:
S421:检测第二内容当前的缩小方式;S421: Detect the current zoom-out mode of the second content;
S422:若确定第二内容当前的缩小方式为通过缩小尺寸的方式进行缩小,则进一步确定是通过检测第一内容所属的应用程序来确定第二内容的缩小程度,还是通过检测第一内容是否为需要用户进行及时操作的界面来确定缩小程度。S422: If it is determined that the current reduction method of the second content is to reduce the size, then further determine whether to determine the degree of reduction of the second content by detecting the application program to which the first content belongs, or by detecting whether the first content is An interface that requires immediate user action to determine the degree of reduction.
其中,作为一种方式,在电子设备中配置有缩小方式选择界面,在该缩小方式选择界面中,配置有多种选项,那么用户通过该多种选项则可以选择所需的缩小方式。例如,该多种选项包括有选项1和选项2,其中选项1对应于通过检测第一内容所属的应用程序来确定第二内容的缩小程度,选项2对应于通过检测第一内容是否为需要用户进行及时操作的界面来确定缩小程度,那么电子设备通过检测选项1和选项2中被选中的选项,并将被选中的选项对应的缩小方式作为确定缩小方式。Wherein, as a way, the electronic device is configured with a zoom-out mode selection interface, and multiple options are configured in the zoom-out mode selection interface, and the user can select a desired zoom-out mode through the various options. For example, the various options include option 1 and option 2, wherein option 1 corresponds to determining the degree of reduction of the second content by detecting the application program to which the first content belongs, and option 2 corresponds to determining whether the first content is required by the user. To determine the degree of reduction through the interface of timely operation, the electronic device detects the selected option in option 1 and option 2, and uses the reduction method corresponding to the selected option as the determination reduction method.
作为另外一种方式,电子设备可以根据对于第一内容所属应用程序的查询情况,以及对于第一内容是否为所需用户进行及时操作的界面的检测情况来确定具体缩小方式。As another manner, the electronic device may determine the specific zoom-out manner according to the query situation of the application program to which the first content belongs, and the detection situation of whether the first content is an interface required for timely operation by the user.
需要说明的是,应用程序本身可能并未对应配置有缩小程度,但是该应用程序可能通过电子设备的界面注册服务在电子设备中注册有界面内容,对应的,有的应用程序可能未通过电子设备的界面注册服务在电子设备中注册有界面内容,但是应用程序本身可能对应有缩小程度。那么可选的,若电子设备检测到第一内容所属应用程序对应有缩小程度,且第一内容并未通过界面注册服务在电子设备中进行注册,那么则电子设备可以确定通过检测第一内容所属的应用程序来确定第二内容的缩小程度。It should be noted that the application itself may not have a corresponding configuration to reduce the degree of reduction, but the application may have interface content registered in the electronic device through the interface registration service of the electronic device. Correspondingly, some applications may not have passed the electronic device The interface registration service of the electronic device registers interface content in the electronic device, but the application program itself may have a corresponding reduction degree. Optionally, if the electronic device detects that the application program to which the first content belongs corresponds to a reduction degree, and the first content has not been registered in the electronic device through the interface registration service, then the electronic device can determine that by detecting the first content belongs to application to determine the degree of reduction of the secondary content.
对应的,若电子设备检测到第一内容所属应用程序未对应有缩小程度,且第一内容通过界面注册服务在电子设备中进行注册,那么则电子设备可以确定通过检测第一内容是否为需要用户进行及时操作的界面来确定缩小程度。再者,若电子设备检测到第一内容所属应用程序对应有缩小程度,且第一内容并也通过界面注册服务在电子设备中进行注册,那么电子设备可以通过检测用户在缩小方式选择界面确定的选项来确定具体的缩小方式,再者,在检测到用户未做出具体选择的情况下,电子设备则根据默认的缩小方式来具体对第二内容进行缩小。另外,若电子设备检测到第一内容所属应用程序未对应有缩小程度,且第一内容并也未通过界面注册服务在电子设备中进行注册,电子设备则根据默认的缩小方式来具体对第二内容进行缩小。Correspondingly, if the electronic device detects that the application program to which the first content belongs does not correspond to the reduction degree, and the first content is registered in the electronic device through the interface registration service, then the electronic device can determine whether the first content is required by the user Interface for timely operations to determine the degree of reduction. Furthermore, if the electronic device detects that the application program to which the first content belongs corresponds to a reduction degree, and the first content is also registered in the electronic device through the interface registration service, then the electronic device can detect that the user selects the reduction mode in the reduction mode. options to determine a specific zoom-out method, and furthermore, when it is detected that the user has not made a specific selection, the electronic device specifically zooms out the second content according to the default zoom-out method. In addition, if the electronic device detects that the application program to which the first content belongs does not correspond to a reduction degree, and the first content has not been registered in the electronic device through the interface registration service, the electronic device will specifically reduce the second content according to the default reduction method. The content is reduced.
S423:若确定是通过检测第一内容所属的应用程序来确定第二内容的缩小程度,则会获取第一内容所属的应用程序,并获取所属应用程序对应的缩小程度作为目标缩小程度。S423: If it is determined that the reduction degree of the second content is determined by detecting the application program to which the first content belongs, the application program to which the first content belongs is obtained, and the reduction degree corresponding to the application program is obtained as the target reduction degree.
S424:若确定是通过检测第一内容是否为需要用户进行及时操作的界面来确定缩小程度,则会检测第一内容是否为需要用户进行及时操作的界面内容。S424: If it is determined that the degree of reduction is determined by detecting whether the first content is an interface that requires a user's timely operation, then it is detected whether the first content is an interface content that requires a user's timely operation.
S425:若确定第一内容为需要用户进行及时操作的界面内容,则会将需要用户进行及时操作的界面内容对应的缩小程度作为目标缩小程度,反之,若确定第一内容为不需要用户进行及时操作的界面内,则会将不需要用户进行及时操作的界面内容对应的缩小程度作为目标缩小程度。S425: If it is determined that the first content is interface content that requires timely operation by the user, the reduction degree corresponding to the interface content that requires timely operation by the user will be used as the target reduction degree; In the operation interface, the reduction degree corresponding to the interface content that does not require timely operation by the user will be taken as the target reduction degree.
S430:若满足扩大条件,扩大所述第二内容的显示面积。S430: Expand the display area of the second content if the expansion condition is met.
需要说明的是,在一些情况下,可以对缩小后的第二内容的显示面积进行扩大,以便于用户可以方便的对第二内容进行操作。并且,在本申请实施例中,扩大条件可以包括多种实施方式。It should be noted that, in some cases, the reduced display area of the second content may be enlarged so that the user can conveniently operate the second content. Moreover, in the embodiment of the present application, the expansion condition may include various implementation manners.
作为一种方式,本实施例提供的方法还包括:若检测到作用于所述第二内容的触控操作,确定满足扩大条件。示例性的,请再参阅图5,若内容21缩小到图5的下侧图像所示的样式后,检测到作用于内容21的触控操作,那么则可以将内容21的显示面积又扩大到图5上侧图像中所示的样式。类似的,请再参阅图6,若内容21切换到图6中下侧图像中所示的显示内容23后,检测到作用于内容23的触控操作后则会将内容23由切换为图6中上侧图像中所示的内容21。As a manner, the method provided in this embodiment further includes: if a touch operation acting on the second content is detected, determining that an expansion condition is satisfied. Exemplarily, please refer to FIG. 5 again. If the content 21 is reduced to the style shown in the lower image of FIG. The style shown in the upper image of Figure 5. Similarly, please refer to FIG. 6 again. If the content 21 is switched to the display content 23 shown in the lower image in FIG. 21 as shown in the upper middle image.
作为另外一种方式,电子设备可以根据第一内容的变化频率来确定是否满足扩大条件。可选的,若检测到第一内容的变化频率小于指定频率则确定满足扩大条件。需要说明的是,在第二内容显示之后,且满足缩小条件的情况下,对第二内容进行缩小的目的是为了进一步的降低第二内容对于第一内容的干扰。但是,在一些情况下,在第二内容显示以后用户可能反而会更关注第二内容,在这种情况下,为了便于用户进行操作,则可以在缩小第二内容以后,根据第一内容的变换频率来确定用户对于第一内容是否关注,如果根据第一内容的变换频率确定用户对第一内容并不是太关注,则可以确定满足扩大条件。As another manner, the electronic device may determine whether the expansion condition is satisfied according to the change frequency of the first content. Optionally, if it is detected that the change frequency of the first content is less than a specified frequency, it is determined that the expansion condition is met. It should be noted that after the second content is displayed and the shrinking condition is satisfied, the purpose of shrinking the second content is to further reduce the interference of the second content on the first content. However, in some cases, the user may pay more attention to the second content after the second content is displayed. Frequency to determine whether the user pays attention to the first content. If it is determined according to the conversion frequency of the first content that the user does not pay much attention to the first content, it can be determined that the expansion condition is met.
其中,变换频率可以为在指定时间长度内第一内容的变换次数。其中,电子设备在显示画面时是以帧为单位进行显示的。若电子设备检测到当前帧与前一帧的内容不一致,则确定检测到一次内容变换,进而可以将指定时长内的发生的变换次数与指定时长的比作为变换频率。例如,若第一内容为游戏程序对应的界面内容,若检测到第一内容的变化频率大于指定频率,则表征第一内容的变化频率较高,可能是显示的是需要用户及时进行操作反馈的游戏对战界面,在这种情况下,则不会对缩小后的第二内容进行扩大。再例如,若检测到第一内容的变化频率小于指定频率,则表征第一内容的变化频率较低,可能是显示的是不需要用户及时进行操作反馈的游戏配置界面,在这种情况下,则会对缩小后的第二内容进行扩大。Wherein, the conversion frequency may be the number of conversion times of the first content within a specified time period. Wherein, when an electronic device displays a picture, it displays a frame in units of frames. If the electronic device detects that the content of the current frame is inconsistent with that of the previous frame, it determines that a content change has been detected, and then the ratio of the number of changes occurring within a specified time period to the specified time length can be used as the change frequency. For example, if the first content is the interface content corresponding to the game program, if it is detected that the change frequency of the first content is greater than the specified frequency, it indicates that the change frequency of the first content is relatively high, and it may be that the display requires timely operation feedback from the user. In this case, the game battle interface will not expand the reduced second content. For another example, if it is detected that the change frequency of the first content is less than the specified frequency, it indicates that the change frequency of the first content is low, and it may be that the displayed game configuration interface does not require timely operation feedback from the user. In this case, Then, the reduced second content will be enlarged.
需要说明的是,本申请实施例中的第三内容为与目标事件对应的关联事件所对应的显示内容,对于第二内容如何确定缩小方式以及缩小程度对于第三内容进行缩小的过程中依然是可用的,那么可以基于如何确定第二内容的缩小方式和缩小程度来确定第三内容的缩小方式和缩小程度。对应的,也可以基于确定对第二内容的放大方式来确定该在什么时候对缩小显示面积的第三内容进行显示面积的放大。It should be noted that the third content in the embodiment of the present application is the display content corresponding to the associated event corresponding to the target event, and how to determine the zoom-out method and zoom-out degree for the second content is still the same in the process of zooming out the third content available, then the reduction method and reduction degree of the third content may be determined based on how to determine the reduction method and reduction degree of the second content. Correspondingly, when to enlarge the display area of the third content whose display area has been reduced may also be determined based on determining the manner of enlarging the second content.
本实施例提供的一种内容显示控制方法,从而通过上述方式使得第一内容在全屏显示的情况下,对于响应于目标事件触发而悬浮显示的第二内容可以在满足缩小条件以后,进行显示面积的缩小,以便使得第二内容能够在起到提示作用的同时,减小对于全屏显示的第一内容的干扰。并且,在本实施例中,还可以配置有放大条件,从而使得用户可以灵活的操作第二内容进行显示面积的缩小和放大。This embodiment provides a content display control method, so that in the case of full-screen display of the first content, the display area of the second content that is suspended and displayed in response to the trigger of the target event can be adjusted after meeting the zoom-out condition. Zoom out so that the second content can play a prompt role while reducing interference with the first content displayed in full screen. Moreover, in this embodiment, zoom-in conditions may also be configured, so that the user can flexibly operate the second content to reduce or enlarge the display area.
请参阅图16,图16所示为本申请一实施例提出的一种内容显示控制方法的流程图,该方法包括:Please refer to FIG. 16. FIG. 16 is a flowchart of a content display control method proposed by an embodiment of the present application. The method includes:
S510:若以全屏模式显示第一内容且有目标事件触发,在所述第一内容上悬浮显示第二内容,所述第二内容为所述目标事件对应的显示内容;S510: If the first content is displayed in full-screen mode and a target event is triggered, display second content in a floating manner on the first content, where the second content is the display content corresponding to the target event;
S520:若以全屏模式显示第一内容且有目标事件触发,开始计时;S520: If the first content is displayed in full-screen mode and a target event is triggered, start timing;
S530:若所述计时的时长满足指定时长,确定满足所述缩小条件,缩小所述第二内容的显示面积。S530: If the timed duration meets the specified duration, determine that the shrinking condition is satisfied, and shrink the display area of the second content.
作为一种方式,所述方法还包括:基于所述第一内容的类型确定所述指定时长。需要说明的是,在一些场景中可能需要第二内容在开始显示以后能够更加及时的缩小显示面积,以免对第一内容的显示造成干扰。例如,在第一内容为游戏对战界面的内容时,用户的注意力更多的都在游戏对战过程中,更为及时的缩小第二内容可以有利于提升对游戏对战界面的关注度。那么在这种方式中,电子设备也可以如前述实施例方式中的获取第一内容是否为需要用户进行及时操作的界面内容,若第一内容为需要用户进行及时操作的界面内容,则以需要用户进行及时操作的界面内容对应的指定时长来确定计时的指定时长,若第一内容为不需要用户进行及时操作的界面内容,则以不需要用户进行及时操作的界面内容对应的指定时长来确定计时的指定时长。其中,需要用户进行及时操作的界面内容对应的指定时长短于不需要用户进行及时操作的界面内容对应的指定时长。As a manner, the method further includes: determining the specified duration based on the type of the first content. It should be noted that, in some scenarios, it may be necessary to reduce the display area of the second content in a timely manner after it starts to be displayed, so as not to interfere with the display of the first content. For example, when the first content is the content of the game battle interface, the user's attention is more on the game battle process, and reducing the second content in a timely manner can help increase the attention to the game battle interface. Then in this way, the electronic device can also obtain whether the first content is the interface content that requires the user to operate in time as in the foregoing embodiment. The specified time period corresponding to the interface content that the user performs timely operation is used to determine the specified time period of timing. If the first content is the interface content that does not require the user to perform timely operation, it is determined by the specified time period corresponding to the interface content that does not require the user to perform timely operation The specified duration of the timer. Wherein, the specified duration corresponding to the interface content requiring timely operation by the user is shorter than the specified duration corresponding to the interface content not requiring timely operation by the user.
本实施例提供的一种内容显示控制方法,从而通过上述方式使得第一内容在全屏显示的情况下,对于响应于目标事件触发而悬浮显示的第二内容的同时会进行计时,并且在计时的时长满足指定时长后,进行显示面积的缩小,以便使得第二内容能够在起到提示作用的同时,减小对于全 屏显示的第一内容的干扰。This embodiment provides a content display control method, so that in the case of full-screen display of the first content in the above-mentioned manner, timing will be performed while the second content is suspended and displayed in response to the target event trigger, and at the timing After the duration satisfies the specified duration, the display area is reduced, so that the second content can serve as a reminder while reducing interference with the first content displayed in full screen.
请参阅图17,图17所示为本申请一实施例提出的一种内容显示控制方法的流程图,该方法包括:Please refer to FIG. 17. FIG. 17 is a flowchart of a content display control method proposed by an embodiment of the present application. The method includes:
S610:若以全屏模式显示第一内容且有目标事件触发,在所述第一内容上悬浮显示第一显示模式的第二内容,所述第二内容为所述目标事件对应的显示内容,并开始计时。S610: If the first content is displayed in full-screen mode and a target event is triggered, display second content in the first display mode in a floating manner on the first content, where the second content is the display content corresponding to the target event, and start the timer.
S620:若所述计时的时长满足指定时长,确定满足所述缩小条件,将所述第二内容切换为以第二显示模式进行显示,其中,所述第二显示模式的第二内容的显示面积小于所述第一显示模式的第二内容的显示面积。S620: If the timed duration meets the specified duration, determine that the zoom-out condition is met, and switch the second content to be displayed in the second display mode, where the display area of the second content in the second display mode is The display area of the second content is smaller than that of the first display mode.
本实施例提供的一种内容显示控制方法,从而通过上述方式使得第一内容在全屏显示的情况下,对于响应于目标事件触发而悬浮显示的第一显示模式的第二内容的同时会进行计时,并且在计时的时长满足指定时长后,进将第二内容的显示模式切换为第二显示模式,以便使得第二内容能够在起到提示作用的同时,减小对于全屏显示的第一内容的干扰。This embodiment provides a content display control method, so that in the case of full-screen display of the first content in the above-mentioned manner, timing will be performed for the second content of the first display mode that is suspended and displayed in response to the target event trigger , and after the timed duration meets the specified duration, switch the display mode of the second content to the second display mode, so that the second content can serve as a reminder while reducing the impact on the first content displayed in full screen interference.
请参阅图18,图18所示为本申请一实施例提出的一种内容显示控制方法的流程图,该方法包括:Please refer to FIG. 18. FIG. 18 is a flow chart of a content display control method proposed by an embodiment of the present application. The method includes:
S710:若以全屏模式显示第一内容且有目标事件触发,在所述第一内容上悬浮显示第一显示模式的第二内容,所述第二内容为所述目标事件对应的显示内容,并开始计时。S710: If the first content is displayed in full-screen mode and a target event is triggered, display second content in the first display mode in a floating manner on the first content, where the second content is the display content corresponding to the target event, and start the timer.
S720:若所述计时的时长满足指定时长,确定满足所述缩小条件,将所述第二内容切换为以第二显示模式进行显示,其中,所述第二显示模式的第二内容的显示面积小于所述第一显示模式的第二内容的显示面积。S720: If the timed duration meets the specified duration, determine that the zoom-out condition is satisfied, and switch the second content to be displayed in the second display mode, wherein the display area of the second content in the second display mode The display area of the second content is smaller than that of the first display mode.
S730:若检测到作用于所述第二内容的触控操作,确定满足扩大条件。S730: If a touch operation acting on the second content is detected, determine that the expanding condition is met.
请参阅图19,图19所示为本申请一实施例提出的一种内容显示控制装置500,运行于电子设备,所述装置500包括:Please refer to FIG. 19. FIG. 19 shows a content display control device 500 proposed by an embodiment of the present application, which runs on electronic equipment. The device 500 includes:
内容显示单元510,用于若以全屏模式显示第一内容且有目标事件触发,在所述第一内容上悬浮显示第二内容,所述第二内容为所述目标事件对应的显示内容。The content display unit 510 is configured to, if the first content is displayed in full-screen mode and is triggered by a target event, display second content in a floating manner on the first content, and the second content is the display content corresponding to the target event.
显示控制单元520,用于若满足缩小条件,缩小所述第二内容的显示面积。The display control unit 520 is configured to reduce the display area of the second content if the reduction condition is satisfied.
作为一种方式,内容显示单元510,具体用于在所述第一内容上悬浮显示第一显示模式的第二内容。对应的,在这种方式中,显示控制单元520,具体用于将所述第二内容切换为以第二显示模式进行显示,其中,所述第二显示模式的第二内容的显示面积小于所述第一显示模式的第二内容的显示面积。可选的,所述第二内容包括有所述目标事件对应的控件,且所述第一显示模式的第二内容所包括的控件,与所述第二显示模式的第二内容所包括的控件的功能不同。As a manner, the content display unit 510 is specifically configured to hover and display the second content in the first display mode on the first content. Correspondingly, in this manner, the display control unit 520 is specifically configured to switch the second content to be displayed in the second display mode, where the display area of the second content in the second display mode is smaller than the specified The display area of the second content in the first display mode. Optionally, the second content includes a control corresponding to the target event, and the control included in the second content in the first display mode is the same as the control included in the second content in the second display mode function is different.
可选的,所述目标事件包括来电事件,所述第一显示模式的第二内容所包括的控件有第一控件以及第二控件,所述第一控件用于切换通话内容播放方式,所述第二控件用于挂断通话,所述第二显示模式的第二内容所包括的控件有第三控件,所述第三控件用于显示通话音量的高低变化。Optionally, the target event includes an incoming call event, and the controls included in the second content of the first display mode include a first control and a second control, the first control is used to switch the playback mode of the call content, and the The second control is used to hang up the call, and the control included in the second content of the second display mode has a third control, and the third control is used to display the change of the volume of the call.
显示控制单元520,还用于所述若满足缩小条件,缩小所述第二内容的显示面积之后还包括:若满足扩大条件,扩大所述第二内容的显示面积。其中,显示控制单元520,还具体用于若检测到作用于所述第二内容的触控操作,确定满足扩大条件。The display control unit 520 is further configured to, after reducing the display area of the second content if the shrinking condition is satisfied, further include: expanding the display area of the second content if the expansion condition is satisfied. Wherein, the display control unit 520 is further specifically configured to determine that the expansion condition is met if a touch operation acting on the second content is detected.
可选的,显示控制单元520,还用于响应于用户操作,将所述第二显示模式的第二内容切换为所述第一显示模式的第二内容。Optionally, the display control unit 520 is further configured to switch the second content in the second display mode to the second content in the first display mode in response to a user operation.
可选的,显示控制单元520,还用于若检测到有作用于所述第二内容的切换操作,对所述第二显示模式的第二内容所包括的控件进行切换。Optionally, the display control unit 520 is further configured to switch the controls included in the second content in the second display mode if it is detected that there is a switching operation on the second content.
可选的,显示控制单元520,还用于改变所述第二内容中所包括的控件类型。Optionally, the display control unit 520 is further configured to change the control type included in the second content.
可选的,显示控制单元520,还用于若检测到所述第一内容的变化频率小于指定频率,确定满足扩大条件。Optionally, the display control unit 520 is further configured to determine that the expansion condition is met if it is detected that the change frequency of the first content is less than a specified frequency.
可选的,显示控制单元520,还用于检测所述第二内容当前的缩小方式;若确定所述第二内容当前的缩小方式为通过缩小尺寸的方式进行缩小,则确定是通过检测所述第一内容所属的应用程序来确定所述第二内容的缩小程度,还是通过检测所述第一内容是否为需要用户进行及时操作的界面来确定所述第二内容的缩小程度;若确定是通过检测所述第一内容所属的应用程序来确定所述第二内容的缩小程度,则获取所述第一内容所属的应用程序,并获取所属应用程序对应的缩小程度作为目标缩小程度;若确定是通过检测所述第一内容是否为需要用户进行及时操作的界面来确定所述第二内容的缩小程度,则检测所述第一内容是否为需要用户进行及时操作的界面内容;若确定所述第一内容为需要用户进行及时操作的界面内容,则将需要用户进行及时操作的界面内容对应的缩小程度作为目标缩小程度。其中,缩小后的第二内容的显示面积与缩小之前的第二内 容的显示面积的比与目标缩小程度的值相同。Optionally, the display control unit 520 is further configured to detect the current reduction method of the second content; The application program to which the first content belongs determines the degree of reduction of the second content, or determines the degree of reduction of the second content by detecting whether the first content is an interface that requires timely operation by the user; Detecting the application program to which the first content belongs to determine the reduction degree of the second content, then obtaining the application program to which the first content belongs, and obtaining the reduction degree corresponding to the application program as the target reduction degree; if it is determined to be Determine whether the reduction degree of the second content is determined by detecting whether the first content is an interface that requires a user to perform a timely operation, then detecting whether the first content is an interface content that requires a user to perform a timely operation; If the content is interface content requiring timely operation by the user, the reduction degree corresponding to the interface content requiring timely operation by the user is taken as the target reduction degree. Wherein, the ratio of the display area of the second content after reduction to the display area of the second content before reduction is the same as the value of the target reduction degree.
可选的,显示控制单元520,还用于若以全屏模式显示第一内容且有目标时间触发,开始计时;若所述计时的时长满足预设时长,确定满足所述缩小条件,缩小所述第二内容的显示面积。Optionally, the display control unit 520 is further configured to start timing if the first content is displayed in full-screen mode and there is a target time trigger; The display area of the second content.
如图20所示,所述装置500,还包括:As shown in Figure 20, the device 500 further includes:
计时单元530,用于若以全屏模式显示第一内容且有目标事件触发,在所述第一内容上悬浮显示第二内容之后,若以全屏模式显示第一内容且有目标事件触发,开始计时;若所述计时的时长满足指定时长,确定满足所述缩小条件。其中,可选的,计时单元530,具体用于基于所述第一内容的类型确定所述指定时长。The timing unit 530 is configured to start timing if the first content is displayed in full-screen mode and is triggered by a target event, after the second content is suspended and displayed on the first content, and if the first content is displayed in full-screen mode and a target event is triggered ; If the timing duration meets the specified duration, determine that the reduction condition is met. Wherein, optionally, the timing unit 530 is specifically configured to determine the specified duration based on the type of the first content.
本实施例提供的一种内容显示控制装置,当在以全屏模式显示第一内容的情况下,若检测到有目标事件触发,则会在所述第一内容上悬浮显示目标事件对应的第二内容,并且会在显示第二内容后若满足缩小条件的情况下,缩小所述第二内容的显示面积。从而通过上述方式使得第一内容在全屏显示的情况下,对于响应于目标事件触发而悬浮显示的第二内容可以在满足缩小条件以后,进行显示面积的缩小,以便使得第二内容能够在起到提示作用的同时,减小对于全屏显示的第一内容的干扰。In the content display control device provided by this embodiment, when the first content is displayed in full-screen mode, if a target event trigger is detected, the second content corresponding to the target event will be displayed in a floating manner on the first content. content, and if the shrinking condition is met after the second content is displayed, the display area of the second content will be reduced. Therefore, through the above method, when the first content is displayed in full screen, the display area of the second content that is suspended and displayed in response to the trigger of the target event can be reduced after meeting the shrinking condition, so that the second content can play While prompting, the interference to the first content displayed in the full screen is reduced.
需要说明的是,本申请中装置实施例与前述方法实施例是相互对应的,装置实施例中具体的原理可以参见前述方法实施例中的内容,此处不再赘述。It should be noted that the device embodiments in this application correspond to the foregoing method embodiments, and the specific principles in the device embodiments can refer to the content in the foregoing method embodiments, which will not be repeated here.
下面将结合图21对本申请提供的一种电子设备进行说明。An electronic device provided by the present application will be described below with reference to FIG. 21 .
请参阅图21,基于上述的内容显示控制方法、装置,本申请实施例还提供的另一种可以执行前述内容显示控制方法的电子设备200。电子设备200包括相互耦合的一个或多个(图中仅示出一个)处理器102、存储器104、网络模块106以及传感器模块108。其中,该存储器104中存储有可以执行前述实施例中内容的程序,而处理器102可以执行该存储器104中存储的程序。Please refer to FIG. 21 , based on the above content display control method and apparatus, the embodiment of the present application also provides another electronic device 200 that can execute the above content display control method. The electronic device 200 includes one or more (only one is shown in the figure) processors 102 , memory 104 , network module 106 and sensor module 108 coupled to each other. Wherein, the memory 104 stores programs capable of executing the contents of the foregoing embodiments, and the processor 102 can execute the programs stored in the memory 104 .
其中,处理器102可以包括一个或者多个处理核。处理器102利用各种接口和线路连接整个电子设备200内的各个部分,通过运行或执行存储在存储器104内的指令、程序、代码集或指令集,以及调用存储在存储器104内的数据,执行电子设备200的各种功能和处理数据。可选地,处理器102可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器102可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器102中,单独通过一块通信芯片进行实现。Wherein, the processor 102 may include one or more processing cores. The processor 102 uses various interfaces and lines to connect various parts of the entire electronic device 200, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 104, and calls data stored in the memory 104 to execute Various functions of the electronic device 200 and processing data. Optionally, the processor 102 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware. The processor 102 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used to render and draw the displayed content; the modem is used to handle wireless communication. It can be understood that the above modem may also not be integrated into the processor 102, but implemented by a communication chip alone.
存储器104可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。存储器104可用于存储指令、程序、代码、代码集或指令集。存储器104可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。例如,存储器104中可以存储有内容显示控制的装置。该内容显示控制的装置可以为前述的装置500。存储数据区还可以存储终端100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 104 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory, ROM). Memory 104 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 104 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like. For example, means for content display control may be stored in the memory 104 . The device for content display control may be the aforementioned device 500 . The storage data area can also store data created by the terminal 100 during use (such as phonebook, audio and video data, chat record data) and the like.
所述网络模块106用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯,例如和音频播放设备进行通讯。所述网络模块106可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。所述网络模块106可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。例如,网络模块106可以与基站进行信息交互。The network module 106 is used to receive and send electromagnetic waves, realize mutual conversion between electromagnetic waves and electrical signals, and communicate with communication networks or other devices, such as audio playback devices. The network module 106 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memory, etc. . The network module 106 can communicate with various networks such as the Internet, intranet, wireless network or communicate with other devices through the wireless network. The wireless network mentioned above may include a cellular telephone network, a wireless local area network or a metropolitan area network. For example, the network module 106 can perform information exchange with the base station.
传感器模块108可以包括至少一种传感器。具体地,传感器模块108可包括但并不限于:光传感器、运动传感器、压力传感器、红外热传感器、距离传感器、加速度传感器、以及其他传感器。The sensor module 108 may include at least one sensor. Specifically, the sensor module 108 may include, but is not limited to: a light sensor, a motion sensor, a pressure sensor, an infrared heat sensor, a distance sensor, an acceleration sensor, and other sensors.
其中,压力传感器可以检测由按压在电子设备200产生的压力的传感器。即,压力传感器检测由用户和电子设备之间的接触或按压产生的压力,例如由用户的耳朵与移动终端之间的接触或按压产生的压力。因此,压力传感器可以用来确定在用户与电子设备200之间是否发生了接触或者按压,以及压力的大小。Wherein, the pressure sensor may be a sensor that detects the pressure generated by pressing on the electronic device 200 . That is, the pressure sensor detects pressure generated by contact or press between the user and the electronic device, eg, contact or press between the user's ear and the mobile terminal. Therefore, the pressure sensor can be used to determine whether contact or pressure occurs between the user and the electronic device 200, and the magnitude of the pressure.
其中,加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别所述电子设备200姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。另外,所述电子设备200还可配置陀螺仪、气压计、湿度 计、温度计等其他传感器,在此不再赘述,Among them, the acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the application of the posture of the electronic device 200 (such as horizontal and vertical screen switching, related games, Magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. In addition, the electronic device 200 may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, and a thermometer, which will not be described in detail here.
请参考图22,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 22 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program codes are stored in the computer-readable medium 800, and the program codes can be invoked by a processor to execute the methods described in the foregoing method embodiments.
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。The computer readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium). The computer-readable storage medium 800 has a storage space for program code 810 for executing any method steps in the above-mentioned methods. These program codes can be read from or written into one or more computer program products. Program code 810 may, for example, be compressed in a suitable form.
本申请提供的一种内容显示控制方法、装置、电子设备及存储介质,当在以全屏模式显示第一内容的情况下,若检测到有目标事件触发,则会在所述第一内容上悬浮显示目标事件对应的第二内容,并且会在显示第二内容后若满足缩小条件的情况下,缩小所述第二内容的显示面积。从而通过上述方式使得第一内容在全屏显示的情况下,对于响应于目标事件触发而悬浮显示的第二内容可以在满足缩小条件以后,进行显示面积的缩小,以便使得第二内容能够在起到提示作用的同时,减小对于全屏显示的第一内容的干扰。并且,还可以使得用户可以更好的协同处理第一内容对应的任务,和第二内容或者第三内容对应的任务,提升多任务协同处理效率。A content display control method, device, electronic device, and storage medium provided by the present application, when displaying the first content in full-screen mode, if a target event trigger is detected, it will hover over the first content Displaying the second content corresponding to the target event, and reducing the display area of the second content if the shrinking condition is met after the second content is displayed. Therefore, through the above method, when the first content is displayed in full screen, the display area of the second content that is suspended and displayed in response to the trigger of the target event can be reduced after meeting the shrinking condition, so that the second content can play While prompting, the interference to the first content displayed in the full screen is reduced. In addition, it can also enable users to better coordinate the tasks corresponding to the first content and the tasks corresponding to the second content or the third content, thereby improving the efficiency of multi-task collaborative processing.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the described specific features, structures, materials or characteristics may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples and features of different embodiments or examples described in this specification without conflicting with each other.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of the present application, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not drive the essence of the corresponding technical solutions away from the spirit and scope of the technical solutions of the various embodiments of the present application.

Claims (20)

  1. 一种内容显示控制方法,其中,应用于电子设备,所述方法包括:A content display control method, wherein, applied to electronic equipment, the method includes:
    若以全屏模式显示第一内容且有目标事件触发,在所述第一内容上悬浮显示第二内容,所述第二内容为所述目标事件对应的显示内容;If the first content is displayed in full-screen mode and a target event is triggered, a second content is displayed floating on the first content, and the second content is the display content corresponding to the target event;
    若满足缩小条件,缩小所述第二内容的显示面积。If the reduction condition is met, the display area of the second content is reduced.
  2. 根据权利要求1所述的方法,其中,所述在所述第一内容上悬浮显示第二内容,包括:在所述第一内容上悬浮显示第一显示模式的第二内容;The method according to claim 1, wherein the floating display of the second content on the first content comprises: floating display of the second content in the first display mode on the first content;
    所述缩小所述第二内容的显示面积,包括:The reducing the display area of the second content includes:
    将所述第二内容切换为以第二显示模式进行显示,其中,所述第二显示模式的第二内容的显示面积小于所述第一显示模式的第二内容的显示面积。Switching the second content to be displayed in a second display mode, wherein the display area of the second content in the second display mode is smaller than the display area of the second content in the first display mode.
  3. 根据权利要求2所述的方法,其中,所述第二内容包括有所述目标事件对应的控件,且所述第一显示模式的第二内容所包括的控件,与所述第二显示模式的第二内容所包括的控件的功能不同。The method according to claim 2, wherein the second content includes controls corresponding to the target event, and the controls included in the second content in the first display mode are the same as those in the second display mode The controls included in the second content have different functions.
  4. 根据权利要求2所述的方法,其中,所述将所述第二内容切换为以第二显示模式进行显示之后还包括:The method according to claim 2, wherein after switching the second content to be displayed in the second display mode, further comprising:
    响应于用户操作,将所述第二显示模式的第二内容切换为所述第一显示模式的第二内容。In response to a user operation, the second content in the second display mode is switched to the second content in the first display mode.
  5. 根据权利要求2所述的方法,其中,所述将所述第二内容切换为以第二显示模式进行显示之后还包括:The method according to claim 2, wherein after switching the second content to be displayed in the second display mode, further comprising:
    若检测到有作用于所述第二内容的切换操作,对所述第二显示模式的第二内容所包括的控件进行切换。If it is detected that there is a switching operation on the second content, the controls included in the second content in the second display mode are switched.
  6. 根据权利要求1或2所述的方法,其中,所述缩小所述第二内容的显示面积,包括:The method according to claim 1 or 2, wherein reducing the display area of the second content comprises:
    缩小所述第二内容的尺寸。Reduce the size of the second content.
  7. 根据权利要求1或2所述的方法,其中,所述缩小所述第二内容的显示面积,包括:The method according to claim 1 or 2, wherein reducing the display area of the second content comprises:
    改变所述第二内容中所包括的控件类型。A control type included in the second content is changed.
  8. 根据权利要求1所述的方法,其中,所述若以全屏模式显示第一内容且有目标事件触发,在所述第一内容上悬浮显示第二内容,包括:The method according to claim 1, wherein if the first content is displayed in full-screen mode and a target event is triggered, displaying the second content in suspension on the first content includes:
    若以全屏模式显示第一内容且有指定事件触发,在所述第一内容上悬浮显示第三内容,所述第三内容为所述指定事件对应的显示内容;If the first content is displayed in full-screen mode and a specified event is triggered, a third content is displayed floating on the first content, and the third content is the display content corresponding to the specified event;
    若有与所述指定事件关联的目标事件触发,将悬浮显示的第三内容更新为第二内容。If a target event associated with the specified event is triggered, the third content displayed in the suspension is updated to the second content.
  9. 根据权利要求8所述的方法,其中,所述若有与所述指定事件关联的目标事件触发,将悬浮显示的第三内容更新为第二内容之前还包括:The method according to claim 8, wherein if there is a target event associated with the specified event triggering, before updating the floating displayed third content to the second content, further comprising:
    若满足第三内容对应的缩小条件,缩小所述第三内容的显示面积。If the reduction condition corresponding to the third content is met, the display area of the third content is reduced.
  10. 根据权利要求1所述的方法,所述缩小条件包括所述第二内容的显示时长满足指定时长。The method according to claim 1, the narrowing condition includes that the display duration of the second content satisfies a specified duration.
  11. 根据权利要求1-10任一所述的方法,其中,所述若满足缩小条件,缩小所述第二内容的显示面积之后还包括:The method according to any one of claims 1-10, wherein, if the shrinking condition is satisfied, after shrinking the display area of the second content further includes:
    若满足扩大条件,扩大所述第二内容的显示面积。If the enlargement condition is satisfied, the display area of the second content is enlarged.
  12. 根据权利要求11所述的方法,其中,所述方法还包括:The method according to claim 11, wherein the method further comprises:
    若检测到作用于所述第二内容的触控操作,确定满足扩大条件。If a touch operation acting on the second content is detected, it is determined that the expansion condition is satisfied.
  13. 根据权利要求11所述的方法,其中,所述方法还包括:The method according to claim 11, wherein the method further comprises:
    若检测到所述第一内容的变化频率小于指定频率,确定满足扩大条件。If it is detected that the change frequency of the first content is less than a specified frequency, it is determined that the expansion condition is met.
  14. 根据权利要求1-10任一所述的方法,其中,所述目标事件包括来电接通事件;所述若以全屏模式显示第一内容且有目标事件触发,在所述第一内容上悬浮显示第二内容,所述第二内容为所述目标事件对应的显示内容,包括:The method according to any one of claims 1-10, wherein the target event includes an incoming call connection event; if the first content is displayed in full-screen mode and is triggered by a target event, a floating display on the first content The second content, the second content is the display content corresponding to the target event, including:
    若以全屏模式显示第一内容且有来电接通事件触发,在所述第一内容上悬浮显示第二内容,所述第二内容为所述来电接通事件对应的显示内容。If the first content is displayed in full-screen mode and an incoming call connection event is triggered, the second content is displayed in a floating manner on the first content, and the second content is the display content corresponding to the incoming call connection event.
  15. 根据权利要求1-14任一所述的方法,其中,所述若满足缩小条件,缩小所述第二内容的显示面积,包括:The method according to any one of claims 1-14, wherein said reducing the display area of the second content if the shrinking condition is met comprises:
    检测所述第二内容当前的缩小方式;Detecting the current zoom-out mode of the second content;
    若确定所述第二内容当前的缩小方式为通过缩小尺寸的方式进行缩小,则确定是通过检测所述第一内容所属的应用程序来确定所述第二内容的缩小程度,还是通过检测所述第一内容是否为需要用户进行及时操作的界面来确定所述第二内容的缩小程度;If it is determined that the current reduction method of the second content is to reduce the size, it is determined whether to determine the degree of reduction of the second content by detecting the application program to which the first content belongs, or by detecting the whether the first content is an interface that requires the user to perform timely operations to determine the degree of reduction of the second content;
    若确定是通过检测所述第一内容所属的应用程序来确定所述第二内容的缩小程度,则获取所述第一内容所属的应用程序,并获取所属应用程序对应的缩小程度作为目标缩小程度;If it is determined that the reduction degree of the second content is determined by detecting the application program to which the first content belongs, then obtain the application program to which the first content belongs, and obtain the reduction degree corresponding to the application program as the target reduction degree ;
    若确定是通过检测所述第一内容是否为需要用户进行及时操作的界面来确定所述第二内容的缩小程度,则检测所述第一内容是否为需要用户进行及时操作的界面内容;If it is determined that the reduction degree of the second content is determined by detecting whether the first content is an interface that requires a user to perform a timely operation, then detecting whether the first content is an interface content that requires a user to perform a timely operation;
    若确定所述第一内容为需要用户进行及时操作的界面内容,则将需要用户进行及时操作的界面内容对应的缩小程度作为目标缩小程度。If it is determined that the first content is the interface content requiring timely operation by the user, the reduction degree corresponding to the interface content requiring timely operation by the user is taken as the target reduction degree.
  16. 根据权利要求15所述的方法,其中,缩小后的第二内容的显示面积与缩小之前的第二内容的显示面积的比与目标缩小程度的值相同。The method of claim 15, wherein a ratio of a display area of the reduced second content to a display area of the second content before reduction is the same as a value of the target reduction degree.
  17. 根据权利要求1-14任一所述的方法,其中,所述若满足缩小条件,缩小所述第二内容的显示面积,包括:The method according to any one of claims 1-14, wherein said reducing the display area of the second content if the shrinking condition is met comprises:
    若以全屏模式显示第一内容且有目标时间触发,开始计时;If the first content is displayed in full-screen mode and there is a target time trigger, start timing;
    若所述计时的时长满足预设时长,确定满足所述缩小条件,缩小所述第二内容的显示面积。If the timed duration meets the preset duration, it is determined that the shrinking condition is met, and the display area of the second content is reduced.
  18. 一种内容显示控制装置,其中,运行于电子设备,所述装置包括:A content display control device, wherein, running on an electronic device, the device includes:
    内容显示单元,用于若以全屏模式显示第一内容且有目标事件触发,在所述第一内容上悬浮显示第二内容,所述第二内容为所述目标事件对应的显示内容;A content display unit, configured to display the first content in a full-screen mode and a target event is triggered, to display a second content floating on the first content, and the second content is the display content corresponding to the target event;
    显示控制单元,用于若满足缩小条件,缩小所述第二内容的显示面积。A display control unit, configured to reduce the display area of the second content if the reduction condition is satisfied.
  19. 一种电子设备,其中,包括一个或多个处理器以及存储器;一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行权利要求1-17任一所述的方法。An electronic device, including one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors according to any one of claims 1-17 the method described.
  20. 一种计算机可读存储介质,其中,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码被处理器运行时执行权利要求1-17任一所述的方法。A computer-readable storage medium, wherein a program code is stored in the computer-readable storage medium, wherein the method according to any one of claims 1-17 is executed when the program code is run by a processor.
PCT/CN2022/087413 2021-05-14 2022-04-18 Content display control method and apparatus, electronic device, and storage medium WO2022237459A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110530340.5 2021-05-14
CN202110530340.5A CN115348354A (en) 2021-05-14 2021-05-14 Content display control method, content display control device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2022237459A1 true WO2022237459A1 (en) 2022-11-17

Family

ID=83947114

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/087413 WO2022237459A1 (en) 2021-05-14 2022-04-18 Content display control method and apparatus, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN115348354A (en)
WO (1) WO2022237459A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1655664A2 (en) * 2004-10-06 2006-05-10 IBM Corporation System and method for managing a floating window
US20150326921A1 (en) * 2014-05-08 2015-11-12 Comigo Ltd. System and method for providing an event-driven video/audio content platform
CN107368361A (en) * 2017-06-26 2017-11-21 中广热点云科技有限公司 A kind of application program for mobile terminal switching method and system
CN108156468A (en) * 2017-09-30 2018-06-12 上海掌门科技有限公司 A kind of method and apparatus for watching main broadcaster's live streaming
CN108712673A (en) * 2018-05-17 2018-10-26 上海掌门科技有限公司 A kind of method and apparatus of video playing
CN111176506A (en) * 2019-12-25 2020-05-19 华为技术有限公司 Screen display method and electronic equipment
CN111596830A (en) * 2020-05-15 2020-08-28 腾讯科技(深圳)有限公司 Message reminding method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978201A (en) * 2015-07-14 2015-10-14 安一恒通(北京)科技有限公司 Method and device for controlling automatic pop-up window display
CN107656672A (en) * 2017-09-29 2018-02-02 珠海市魅族科技有限公司 A kind of information processing method and device, terminal and readable storage medium storing program for executing
CN108810275A (en) * 2018-06-08 2018-11-13 麒麟合盛网络技术股份有限公司 A kind of information displaying method and device
CN109005283B (en) * 2018-06-29 2021-05-14 Oppo(重庆)智能科技有限公司 Method, device, terminal and storage medium for displaying notification message
CN110362373A (en) * 2019-06-29 2019-10-22 华为技术有限公司 A kind of method and relevant device controlling screen wicket

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1655664A2 (en) * 2004-10-06 2006-05-10 IBM Corporation System and method for managing a floating window
US20150326921A1 (en) * 2014-05-08 2015-11-12 Comigo Ltd. System and method for providing an event-driven video/audio content platform
CN107368361A (en) * 2017-06-26 2017-11-21 中广热点云科技有限公司 A kind of application program for mobile terminal switching method and system
CN108156468A (en) * 2017-09-30 2018-06-12 上海掌门科技有限公司 A kind of method and apparatus for watching main broadcaster's live streaming
CN108712673A (en) * 2018-05-17 2018-10-26 上海掌门科技有限公司 A kind of method and apparatus of video playing
CN111176506A (en) * 2019-12-25 2020-05-19 华为技术有限公司 Screen display method and electronic equipment
CN111596830A (en) * 2020-05-15 2020-08-28 腾讯科技(深圳)有限公司 Message reminding method and device

Also Published As

Publication number Publication date
CN115348354A (en) 2022-11-15

Similar Documents

Publication Publication Date Title
WO2019233306A1 (en) Icon display method, device and terminal
US20210173549A1 (en) Method for icon display, terminal, and storage medium
EP3680764B1 (en) Icon moving method and device
CN106708538B (en) Interface display method and device
CN112363785A (en) Terminal display method, terminal and computer readable storage medium
CN108920226B (en) Screen recording method and device
CN111443863A (en) Page control method and device, storage medium and terminal
WO2019233307A1 (en) User interface display method and apparatus, and terminal and storage medium
CN112667181A (en) Screen projection method, screen projection equipment, screen projection control system and storage medium
WO2020181956A1 (en) Method for displaying application identifier, and terminal apparatus
CN111127595A (en) Image processing method and electronic device
JP5231361B2 (en) Electronic equipment and information processing program
WO2021128929A1 (en) Image rendering method for panorama application, and terminal device
CN110941378B (en) Video content display method and electronic equipment
CN109725967B (en) Method and device for adjusting horizontal and vertical screen display errors, mobile terminal and storage medium
CN108491219A (en) A kind of update method and mobile terminal of application
CN108804628B (en) Picture display method and terminal
WO2023197679A1 (en) Video playing method and apparatus, electronic device and storage medium
WO2024001119A1 (en) Message reply method and apparatus, and electronic device and storage medium
CN109922256B (en) Shooting method and terminal equipment
WO2022237459A1 (en) Content display control method and apparatus, electronic device, and storage medium
WO2019047184A1 (en) Information display method, apparatus, and terminal
CN109753483B (en) File management application page display method and device, mobile terminal and storage medium
CN109800095B (en) Notification message processing method and mobile terminal
CN110750200A (en) Screenshot picture processing method and terminal equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22806429

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE