WO2024001119A1 - Message reply method and apparatus, and electronic device and storage medium - Google Patents
Message reply method and apparatus, and electronic device and storage medium Download PDFInfo
- Publication number
- WO2024001119A1 WO2024001119A1 PCT/CN2022/141923 CN2022141923W WO2024001119A1 WO 2024001119 A1 WO2024001119 A1 WO 2024001119A1 CN 2022141923 W CN2022141923 W CN 2022141923W WO 2024001119 A1 WO2024001119 A1 WO 2024001119A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- message
- content
- displayed
- display
- reply
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 109
- 238000007667 floating Methods 0.000 claims abstract description 39
- 230000004044 response Effects 0.000 claims abstract description 19
- 230000036544 posture Effects 0.000 claims description 21
- 230000015654 memory Effects 0.000 claims description 19
- 239000000725 suspension Substances 0.000 claims description 7
- 239000013643 reference control Substances 0.000 claims description 6
- 230000001960 triggered effect Effects 0.000 claims description 3
- 230000008569 process Effects 0.000 abstract description 9
- 238000010586 diagram Methods 0.000 description 21
- 230000006870 function Effects 0.000 description 8
- 238000012545 processing Methods 0.000 description 7
- 230000001133 acceleration Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 238000003062 neural network model Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 238000010187 selection method Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
Definitions
- the present application relates to the field of terminal technology, and more specifically, to a message reply method, device, electronic device and storage medium.
- the electronic device When the electronic device displays the application interface in the foreground, if the electronic device receives a message, it can remind the user through a pop-up window.
- the electronic device receives a message, it can remind the user through a pop-up window.
- embodiments of the present application propose a message reply method, device, electronic device and storage medium to improve the above problems.
- embodiments of the present application provide a message reply method, applied to an electronic device.
- the method includes: when an application interface is displayed in the foreground, if a message is received, on the screen of the electronic device
- the comfortable operation area displays prompt content.
- the comfortable operation area is an area that the user can touch while maintaining the current grip.
- the prompt content includes relevant information indicating the sender of the message and the platform from which the message originated; in response to the A touch operation prompts the content, and the message content is displayed in a floating manner, and the message content includes at least part of the content of the message;
- the message reply control When a touch operation on the message content is detected, the message reply control is displayed in a floating manner; the reply message input from the message reply control is obtained, and the reply message is sent to the message source platform through the message source platform. the sender.
- embodiments of the present application provide a message reply device, which runs on an electronic device.
- the device includes: a message prompting unit, configured to, when the application interface is displayed in the foreground, if a message is received, in the Prompt content is displayed in a comfortable operation area on the screen of the electronic device.
- the comfortable operation area is an area that the user can touch while maintaining the current holding posture.
- the prompt content includes relevant information indicating the sender of the message and the platform from which the message originated.
- the message content display unit is used to respond to the touch operation acting on the prompt content and display the message content in a floating manner, and the message content includes at least part of the content of the message;
- the control display unit is used to detect the touch operation acting on the prompt content; In the case of touch operation of the message content, a message reply control is displayed in a floating manner; a message reply unit is used to obtain the reply message input from the message reply control, and send the reply message to all parties through the message source platform. the sender.
- embodiments of the present application provide 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 the above method.
- embodiments of the present application provide a computer-readable storage medium in which program code is stored, wherein the above method is executed when the program code is run by a processor.
- Figure 1 shows a flow chart of a message reply method proposed by an embodiment of the present application
- Figure 2 shows a schematic diagram of the entire area of a screen that can be used to display content in an embodiment of the present application
- Figure 3 shows a schematic diagram of a full-screen display application interface in an embodiment of the present application
- Figure 4 shows a schematic diagram of the entire area of another screen that can be used to display content in an embodiment of the present application
- Figure 5 shows a schematic diagram of another full-screen display application interface in the embodiment of the present application.
- Figure 6 shows a schematic diagram of determining a comfortable operating area in an embodiment of the present application
- Figure 7 shows a schematic diagram of prompt content in an embodiment of the present application
- Figure 8 shows a schematic diagram of another prompt content in the embodiment of the present application.
- Figure 9 shows a schematic diagram of message content in an embodiment of the present application.
- Figure 10 shows a schematic diagram of another message content in the embodiment of the present application.
- Figure 11 shows a schematic diagram of yet another message content in the embodiment of the present application.
- Figure 12 shows a flow chart of a message reply method proposed by another embodiment of the present application.
- Figure 13 shows a schematic diagram of a message reply control in an embodiment of the present application
- Figure 14 shows a schematic diagram of an input mode selection control in an embodiment of the present application
- Figure 15 shows a schematic diagram of operating the audio input control in the embodiment of the present application.
- Figure 16 shows a flow chart of a message reply method proposed by yet another embodiment of the present application.
- Figure 17 shows a schematic diagram of multiple pictures continuously displayed by the application interface in this application.
- Figure 18 shows a schematic diagram of determining the display position of prompt content in this application
- Figure 19 shows yet another schematic diagram of determining the display position of prompt content in this application.
- Figure 20 shows a flow chart of a message reply method proposed by yet another embodiment of the present application.
- Figure 21 shows a schematic diagram of reducing prompt content in this application
- Figure 22 shows a structural block diagram of a message reply device proposed by an embodiment of the present application.
- Figure 23 shows a structural block diagram of an electronic device used to perform a message reply method according to an embodiment of the present application in real time
- Figure 24 shows a storage unit used to save or carry the program code for implementing the message reply method according to the embodiment of the present application in real time.
- the application interface can be displayed in full-screen mode in order to provide the user with a higher visual experience.
- the game interface is displayed in full-screen mode, so that the user can experience the game process more immersively.
- the electronic device plays a video
- the electronic device displays the video interface in full-screen mode so that the user can have a better picture experience.
- some applications can still receive messages sent by other devices even if they exit or run in the background, and send out prompt messages when receiving messages sent by other devices. For example, if the electronic device is currently displaying the application interface in full-screen mode, the electronic device may issue a prompt message through a pop-up window. However, if the user expects to reply to the message, he or she needs to exit the currently displayed application interface and manually trigger the startup of the application that receives the message, which will cause inconvenience to the user.
- the inventor proposes a message reply method, device, electronic device and storage medium in the embodiment of the present application.
- this method when the application interface is displayed based on the full-screen mode, if a message is received, prompt content is displayed in a comfortable operation area on the screen of the electronic device. If there is a touch operation that acts on the prompt content, respond to the touch operation to display message content including at least part of the message in a floating manner on the application interface.
- the message reply control is displayed in a floating manner; the reply message input from the message reply control is obtained, and the reply message is sent to the message source platform through the message source platform. the sender.
- the prompt content can be directly operated by touching the prompt content.
- the message reply control is triggered to be displayed in a floating manner on the application interface, so that the received message can be directly replied to through the message reply control, thereby enabling the message to be viewed and replied to without exiting the application interface that is currently displayed in full-screen mode. , which improves the convenience of replying to messages while displaying the application interface in full screen.
- Figure 1 shows a flow chart of a message reply method proposed by an embodiment of the present application.
- the method includes:
- prompt content is displayed in the comfortable operation area on the screen of the electronic device.
- the comfortable operation area is the area that the user can touch while maintaining the current holding posture.
- the prompt content includes relevant information indicating the sender of the message and the platform from which the message originated.
- the application interface displayed in the foreground may completely fill the area of the screen currently used for content display, or may occupy part of the area of the screen currently used for content display.
- the application interface displayed in the foreground can completely fill all areas of the screen.
- the application interface displayed based on full-screen mode can completely fill the part of the screen area used for displaying content.
- the application interface 10 displayed in the foreground can be as shown in Figure 3.
- the application interface 20 displayed in the foreground can be as shown in Figure 5.
- content will not be displayed in areas other than the shaded portion of the screen.
- areas of the screen other than the shaded portions can remain off.
- the comfortable operation area is an area that the user can touch while maintaining the current holding posture.
- the holding posture is the posture of the user's hand holding the electronic device.
- the user's hand does not need to leave the original holding position, thereby reducing interference caused by touching the prompt content.
- electronic equipment can determine the comfortable operating area in various ways.
- the electronic device may be provided with a comfort zone configuration interface.
- the user can operate the electronic device to display the comfort zone configuration interface, so that the user can select the comfort operation zone in the comfort zone configuration interface.
- the electronic device can display a reference control in the comfort zone configuration interface when displaying the comfort zone configuration interface, so that the user can hold the electronic device and maintain the current holding posture.
- the display position of the reference control is changed so that the electronic device can use the area composed of the positions passed by the reference control as a comfortable operation area.
- the size of the comfort zone configuration interface can be the same as the screen size.
- the user can divide a zone in the comfort zone configuration interface through touch operations. area as a comfortable operating area.
- the user can divide the comfort zone configuration interface into a first part 22 and a second part 23 through touch operations, wherein the electronic device can use the area corresponding to the second part 23 as a comfort operation area.
- the postures of multiple users when holding the electronic device can be obtained, and then the comfortable operation area is determined based on the area on the screen that can be touched by the postures of multiple users when holding the electronic device.
- the average of the areas on the screen that can be touched by the postures of multiple users when holding the electronic device can be used as the comfortable operation area.
- the prompt content can be displayed in a floating position on the application interface corresponding to the comfortable operation area.
- the received messages may be of various types.
- the messages that the user can reply to are all within the scope of protection claimed by this application.
- it can be a text message or a chat message received by an instant messaging program.
- the application program that receives the message and the application program to which the application interface displayed based on the full-screen mode belongs can be the same application program, or they can be different applications.
- the electronic device displays the interface of the game program in full-screen mode, it receives a message corresponding to the instant messaging program.
- the electronic device may receive a message corresponding to the instant messaging program when the video interface is displayed in full-screen mode and the video interface is displayed in a playback window provided by the instant messaging program.
- the prompt content is used to prompt the user that a program currently receives the message.
- the prompt content may include the sender of the message and the message source platform.
- the prompt content can have multiple styles.
- the prompt content can identify the source platform of the message in the form of icons and the sender of the message in the form of text.
- the prompt content 30 may include content 31 and content 32, where the content 31 may be an icon, and the icon may represent the source channel of the message.
- Content 32 can be used to display the sender of the message, for example, "little Y" in Figure 7 .
- the prompt content may all be displayed in the form of text, as shown in FIG. 8 .
- the prompt content 33 shown in FIG. 8 includes content 34 and content 35 .
- the "XX message" displayed in content 34 identifies the source channel of the message.
- the "little Y" displayed in content 35 identifies the sender of the message.
- the prompt content can be displayed in a default location configured by the electronic device.
- the user can also edit the display position of the prompt content according to his own needs, so as to adapt to the user's operating habits.
- the electronic device displays the application interface in full-screen mode
- the user may not be paying attention to the screen of the electronic device currently.
- the user may be temporarily away due to some affairs.
- the electronic device directly displays the prompt content
- the user will not be able to pay attention to it in time, and the user will not be able to pay attention to it in time because the application interface is displayed in full screen.
- the electronic device can detect whether the user is currently paying attention to the screen. If it is detected that the user is paying attention to the screen, it will trigger the display of prompt content on the application interface. If it is detected that the user is not paying attention to the screen, In the case of paying attention to the screen, wait for a period of time and then perform another detection until it is detected that the user is currently paying attention to the screen and triggers the display of prompt content.
- the touch operation acting on the prompt content is an operation that can trigger the display of at least part of the content in the message.
- any character in the prompt content is detected to be touched, it is determined that a touch operation acting on the prompt content is detected.
- the touch operation that triggers the display of message content may be a click operation, a double-click operation, or a long press operation.
- the specific implementation of the touch operation can be pre-configured by the developer, or can be configured by the user of the electronic device according to his or her own operating habits.
- the purpose of displaying message content in a floating manner on the application interface is to allow users to understand the content of the received message.
- the message content displayed in response to the touch operation on the prompt content may be all the content of the received message, or part of the content of the received message, or may be a response to the received message. The content obtained after summarizing the message.
- the content of the received message is "Big Y, are you free? If you are free, let's play a game together later.” If all the content in the received message is displayed, for example, as shown in Figure 9, the application interface 10 will directly display "Big Y, are you free? If you are free, we will discuss it together later.” Game.” If part of the content of the received message is displayed, the electronic device may intercept the received message and then display only the first part of the received message. For example, as shown in Figure 10, the displayed message content may be "Big Y, available or not, if available”. If the received message is summarized and then displayed, the displayed content can be as shown in Figure 11.
- the electronic device can determine the specific method to use to determine the displayed message content based on the current actual situation.
- the electronic device can determine the specific method to use to determine the content of the displayed message based on the number of words in the received message.
- the first word count threshold and the second word count threshold may be stored in the electronic device. Wherein, the first word count threshold is lower than the second word count threshold.
- the number of words in the content included in the received message is greater than the first word count threshold, then the number of words in the content included in the received message is compared with the second word count threshold. If the number of words in the content included in the received message is less than the second word count threshold, 2 word count threshold, it is determined to directly intercept the previous part of the received message and display it as the message content.
- the previous part of the content can be the characters with the specified number of digits sorted first.
- the first part of the content can be the first 10 characters of the sort.
- the content of the received message may be summarized, and then the summarized content may be displayed as the message content.
- the number of words of the summarized content is less than the number of words of the content of the received message.
- summarizing the content of the received message can be understood as extracting the key content of the received message, so that the core content of the received message can be directly displayed to the user.
- the electronic device can summarize the content of the message through a pre-trained neural network model.
- the first word count threshold and the second word count threshold can be pre-configured by the developer, or can be configured by the user of the electronic device according to his or her own habits.
- the electronic device determines the specific message content based on the word count of the received message content, thereby achieving a more flexible and intelligent display of the message content.
- the user of the electronic device may pre-configure the manner in which message content is displayed.
- the electronic device responds to the touch operation on the prompt content, it can first read the display mode stored in the electronic device, and then determine the displayed message based on the read display mode. What the content includes.
- the electronic device can determine the content specifically included in the message content according to the user's real-time selection. In this manner, the electronic device can display multiple options in response to a touch operation on the prompt content. Then, the option selected by the user among the multiple options is obtained as the target option, and the message content display mode corresponding to the target option is used as the target mode, and then the message content is determined according to the target mode.
- the electronic device can determine the user's message reply intention through multiple methods.
- the electronic device can determine the user's intention of replying based on the touch operation acting on the prompt content.
- the electronic device can establish that the first touch operation corresponds to performing a message reply without performing an interface jump, and establishes that the second touch operation corresponds to performing an interface jump and perform a message reply.
- the prompt content is displayed, if a touch operation acting on the prompt content is detected, and the touch operation is the first touch operation, the message content is displayed in a floating manner on the application interface. If a touch operation acting on the prompt content is detected, and the touch operation is a second touch operation, the interface of the application program that received the message will be jumped to display.
- the electronic device can also determine the user's intention of replying based on the display state corresponding to the full-screen application interface.
- the display status may include a status requiring user attention and a status not requiring user attention. For example, in the game interface, if the game character in the game interface is in a dead state, or the game interface is in a scene switching state, it is a state that does not require user attention. If the game character is in an active state (that is, the user can control the game character), etc., it is a state that requires the user's attention.
- the video interface if the video being played is in a paused state, it is a state that does not require the user's attention; if the video being played is in a playing state, it is a state that requires the user's attention.
- the electronic device after receiving the message, if the electronic device detects that the display status of the application interface is in a state that requires the user's attention, the electronic device will display the message content as a floating display on the application interface. If it is detected that the display state of the application interface is a state that does not require user attention, the interface of the application program that has received the message can be jumped to display.
- the electronic device can obtain the time interval from the current time to a state that requires user attention, the interface of the application that receives the message will be displayed in a jump Finally, the electronic device can also display a countdown in real time on the interface of the application that received the message when the application interface that was previously displayed in full screen is switched to a state that requires the user's attention, so that the user can switch to the application interface that was previously displayed in full screen in a more timely manner. .
- the message content can be displayed in a floating position on the application interface corresponding to the comfortable operation area.
- the message reply control can be displayed in a floating manner on the application interface so that the user can You can reply to received messages without exiting the application interface displayed in full-screen mode.
- the message reply control can be displayed in a floating position on the application interface corresponding to the comfortable operation area.
- S140 Obtain the reply message input from the message reply control, and send the reply message to the sender through the message source platform.
- the displayed message content may be as shown in Figure 9, Figure 10 and Figure 11 The one shown in replaces the originally displayed prompt content, thereby reducing interference to the application interface displayed in full-screen mode.
- the message content can also be displayed side by side with the original prompt content.
- This embodiment provides a message reply method.
- an application interface is displayed in full-screen mode, if a message is received, prompt content is displayed in a comfortable operation area on the screen of the electronic device. If there is a touch operation that acts on the prompt content, respond to the touch operation to display message content including at least part of the message in a floating manner on the application interface.
- the message reply control is displayed in a floating manner; the reply message input from the message reply control is obtained, and the reply message is sent to the message source platform through the message source platform. the sender.
- the prompt content when the application interface is displayed in the foreground, the prompt content can be displayed in the comfortable operating area of the screen when a message is received, so that the user can touch the prompt content without changing the holding posture, which reduces the cost. Interference to users. Furthermore, you can directly touch the prompt content to trigger the floating display of the message reply control on the application interface, so that you can directly reply to the received message through the message reply control, thereby eliminating the need to exit the current full-screen application. With the application interface displayed in mode, you can view and reply to messages, which improves the convenience of replying to messages while displaying the application interface in full screen.
- Figure 12 shows a flow chart of a message reply method proposed by an embodiment of the present application. The method includes:
- prompt content is displayed in the comfortable operation area on the screen of the electronic device.
- the comfortable operation area is the area that the user can touch while maintaining the current holding posture.
- the prompt content includes relevant information indicating the sender of the message and the platform from which the message originated.
- S220 In response to the touch operation on the prompt content, the message content is suspended and displayed, and the message content includes at least part of the content of the message.
- the message reply control includes a message display control and an input method selection control.
- the message display control is used to display the message input by the user, and the input method selection control is used for the user to select the required input method.
- the displayed message display control 40 can be displayed below the message content, and the input mode selection control 41 can be displayed below the message display control 40 .
- S240 Determine a target input mode based on the input selection operation on the input mode selection control, and display the input control corresponding to the target input mode.
- the electronic device may display multiple input mode icons in response to a touch operation of the touch object on the input mode selection control.
- the input mode icon corresponding to the position to which the touch object slides after the touch operation is used as the target input mode icon.
- the input mode corresponding to the target input mode icon is used as the target input mode, and the input control corresponding to the target input mode is displayed.
- the input mode icon 42 and the input mode icon 43 may be displayed.
- the input method corresponding to the input method icon 42 is input through the keyboard, and the input method corresponding to the input method icon 43 is input through voice.
- the input mode corresponding to the input mode icon 42 through the keyboard can be used as the target input mode, and Displays the keyboard for input.
- the voice input corresponding to the input mode icon 43 can be used as the target input. method and displays the audio input controls for input.
- S250 Obtain the message input through the input control as a reply message, and display the reply message in the message display control to send the reply message to the sender.
- the electronic device will display the content entered by the user through the keyboard in real time in the message display control. If it is detected that the sending control in the keyboard is touched, the content in the message display control will be displayed. The displayed content is sent as a reply message.
- the electronic device if a touch operation on the audio input control is detected, the electronic device will continue to collect the audio, and when a touch operation on the audio input control is detected, After the control operation is canceled, the collected audio will be sent to the sender as a reply message.
- the collected audio can be transcribed into corresponding text, and the converted text is displayed in the message display control, and then Send directly and automatically.
- the electronic device can display the cancel control 45 , the confirmation control 46 and the text conversion trigger control 47 .
- the cancel control 45 can cancel the recording operation and delete the recorded audio after being touched.
- the confirmation control 46 is touched, the recorded audio can be sent as a reply message.
- the text conversion trigger control 47 is touched, it will trigger a transcoding operation on the collected audio, and display the transcribed text in the message display control.
- the electronic device starts audio collection. If during the audio collection process, the touch object maintains contact with the screen and moves to the cancel control 45, the electronic device will cancel the audio collection and resume displaying the input mode selection control. If during the audio collection process, the touch object maintains contact with the screen and moves to the cancel control 46, the electronic device will send the recorded audio to the sender as a reply message in voice form. If during the audio collection process, the touch object maintains contact with the screen and moves to the cancel control 47, the electronic device will transcribe the recorded audio into corresponding text, and then display it in the message display control 40 middle.
- This embodiment provides a message reply method, so that in the above manner, when the electronic device displays the application interface in full-screen mode, prompt content including the sender of the message and the message source platform are displayed suspended on the application interface.
- you can directly touch the prompt content to trigger the floating display of the message display control and the input method selection control on the application interface, so that the input control corresponding to the target input method can be directly triggered to display through the input method selection control, and then The user can directly obtain the message to be replied to through the input control, and the message to be replied to is displayed in the input control for sending.
- Figure 16 shows a flow chart of a message reply method proposed by an embodiment of the present application. The method includes:
- S320 Determine a display position based on the display content, and display prompt content in a floating manner at the display position.
- the full-screen mode there may be multiple application interfaces displayed based on the full-screen mode.
- it can be the game interface, video interface, graphic interface, etc. shown above.
- the content or areas that users are currently paying attention to may be different.
- the user may be most concerned about the game characters and the content surrounding the game characters.
- the video interface the user may be paying most attention to the video character and the area around the video character.
- the prompt content is directly displayed at the content that the user is currently paying attention to, it may cause certain interference to the user, so that the user cannot understand the real-time situation displayed on the application interface in a timely manner. Therefore, determining the display position based on the display content of the application interface is beneficial to prevent the prompt content from being displayed at the content that the user is concerned about.
- determining a display position based on the display content, and displaying prompt content in suspension at the display position includes: obtaining the position of the specified object content in the display content, and the specified object content is the content that the user is concerned about; The display position is determined in an area other than the position of the designated object content, and the prompt content is displayed in suspension at the display position.
- the electronic device can obtain objects included in the application interface to detect whether the objects included in the application interface have specified object content.
- the electronic device can detect whether the application interface includes specified object content in various ways.
- obtaining the location of the specified object content in the displayed content includes: performing image recognition on the displayed content; if the specified object content is recognized, obtaining the location of the specified object content; if no specified object content is recognized, Specify the object content and display the prompt content at the default location.
- the electronic device can intercept the picture displayed by the application interface, and perform image recognition on the intercepted picture to detect whether the application interface includes specified object content.
- the electronic device can input the captured picture into a pre-trained neural network model, and then use the pre-trained neural network model to detect whether the specified object content is included in the picture and the location of the specified object content.
- the electronic device can also detect whether the content displayed on the application interface includes specified object content based on the data interface provided by the application program to which the displayed application interface belongs.
- the application program to which the application interface belongs displays each frame, it can also transmit the picture data of the currently displayed picture to the operating system of the electronic device through the provided data interface, so that the electronic device can obtain the application information in real time.
- the picture data may include whether the specified object content is included in the picture, and if the specified object content is included, the number and location of the specified object content.
- the electronic device can detect the content of the specified object by combining the two methods of data interface and image recognition.
- it before performing image recognition on the displayed content, it also includes: detecting whether the application program to which the application interface displayed based on the full-screen mode provides a data interface; if there is the data interface, obtaining the display content through the data interface Whether there is specified object content; if it is recognized that there is specified object content, obtain the location of the specified object content; if there is no said data interface, perform the image recognition of the displayed content.
- the content in the application interface will be displayed by the electronic device frame by frame.
- the application interface may first display the picture frame 60, and then display the picture frame 62, the picture frame 63 and the picture frame 64 in sequence. Then there will be a situation, that is, when the electronic device displays the picture frame 60, the electronic device responds to receiving the message and prepares to display the prompt content.
- the picture in the application interface is already picture frame 63. Therefore, the display position of the prompt content is actually determined based on picture frame 60, not based on picture frame 63. Therefore, The displayed prompt content may block the specified object content displayed in the picture frame 63 .
- the electronic device can detect each picture displayed in the application interface, and adjust the prompt content based on the detection results of the specified object content in each picture.
- the display position is updated in real time.
- the electronic device can first obtain the position of the specified object content in multiple consecutive pictures displayed on the application interface, and then predict that the specified object content will not appear. The area where the content of the specified object does not appear is used as the display location of the prompt content.
- the position change trend of the subsequent specified object content can be predicted, and then the area where the specified object content has a higher probability of not appearing can be obtained, so as to It can reduce the probability that the displayed prompt content blocks the content of the specified object in the application interface with a greater probability.
- the area of the screen currently available for displaying content can be divided into multiple sub-areas in advance. After obtaining the position of the specified object content in multiple consecutive pictures displayed on the application interface, the sub-region with the most specified object content among the multiple sub-regions is detected as the target sub-region, and the sub-region other than the target sub-region is used as the target sub-region. An area where prompt content can be displayed.
- the location of the specified object content can be compared with the coverage of multiple sub-regions respectively. If the location of the specified object content falls within the range of a certain sub-region, it is determined that the specified object content appears in the sub-region.
- the electronic device can also determine which sub-regions can be used to display prompt content based on multiple methods.
- the avoidance level of the specified object content can also be combined to determine in which sub-area the prompt content can be displayed. Among them, the corresponding designated object content with a higher avoidance level needs to be avoided more than the designated object content with a lower avoidance level.
- the specified object content in the game interface may include a game information bar, game characters, operation buttons, etc.
- the game information bar is used to display real-time game information, such as battle information and character attribute information.
- the user may not be able to understand some of the latest information, which does not affect the user to continue to pay attention to the position or movement of the game characters.
- the avoidance level of game characters and operation buttons can be higher than the avoidance level of the game information bar.
- the specified object content included in the video interface may include video characters, buildings, etc. It is understandable that in videos, users pay more attention to the status and movements of video characters. Therefore, when the application interface is a video interface, the avoidance level corresponding to the video character can be higher than the avoidance level corresponding to the building.
- the sum of the avoidance levels corresponding to each sub-area can be obtained, and then the sub-area with the highest sum of avoidance levels is used as the target sub-area, and then the sub-areas outside the target sub-area are The area is used as the area where prompt content can be displayed.
- the sum of avoidance levels corresponding to the sub-region may be the sum of the avoidance levels corresponding to the contents of specified objects appearing in the sub-region.
- the electronic device may divide the screen into sub-areas 71 and sub-areas 72 based on the dotted lines in FIG. 18 .
- the number of designated object contents in sub-region 71 is 3, and the number of designated object contents in sub-region 72 is 0, then the electronic device can use sub-region 71 as the target region, and then The area outside the target area (ie, the sub-area 72) is regarded as an area where prompt content can be displayed.
- determining the display position based on the display content, and displaying the prompt content in a floating manner at the display position includes: determining the display position based on the image type of the displayed content, and displaying the prompt content in a floating manner at the display position, so
- the image categories include game categories, video categories or graphic and text categories.
- This embodiment provides a message reply method.
- an application interface is displayed in full-screen mode, if a message is received, prompt content is displayed in a comfortable operation area on the screen of the electronic device. If there is a touch operation that acts on the prompt content, respond to the touch operation to display message content including at least part of the message in a floating manner on the application interface.
- the message reply control is displayed in a floating manner; the reply message input from the message reply control is obtained, and the reply message is sent to the message source platform through the message source platform. Describe the sender.
- the display position within the prompt can also be determined in combination with the display content of the full-screen application interface itself, thereby making the display of the prompt content more flexible and better adaptable.
- Figure 20 shows a flow chart of a message reply method proposed by an embodiment of the present application.
- the method includes:
- S410 When the application interface is displayed in the foreground, if a message is received, prompt content is displayed in the comfortable operation area on the screen of the electronic device.
- the comfortable operation area is the area that the user can touch while maintaining the current holding posture.
- the prompt content includes relevant information indicating the sender of the message and the platform from which the message originated.
- the occupied display area can prevent the prompt content from causing visual interference to the application interface when the user is not in a hurry to reply to the received message or is inconvenient to reply to the received message.
- the length of the designated time period configured by the electronic device may be the same for different display contents, or may have special adaptability for different display contents.
- the method provided by the embodiment of the present application also includes: determining the length of the specified time period based on the content displayed in the application interface. It should be noted that the content displayed by different application interfaces will be different, and accordingly, the user's attention to different displayed content may also be different. For example, when a user is playing a game, there will be many emergencies during the game, so the user will pay very high attention to the game interface.
- the electronic device can obtain the attention level corresponding to the displayed content. If the attention level is higher, the corresponding designated time length will be shorter, so that When the application interface displays content that requires the user's high attention, the interference of the prompt content to the user can be reduced.
- the correspondence between the display content and the degree of attention may be stored in the electronic device. Therefore, when it is necessary to obtain the degree of attention corresponding to the displayed content, the degree of attention corresponding to the displayed content of the current application interface can be obtained by querying the corresponding relationship.
- the established correspondence may include displaying content A corresponding to the degree of attention d1, displaying content B corresponding to the degree of attention d2, and displaying content C corresponding to the degree of attention d3. In this case, if the obtained display content is display content B, then the corresponding attention level can be obtained as d2.
- the electronic device can directly determine the display content of the application interface based on the application program to which the application interface displayed in full-screen mode belongs. For example, if the application program to which the application interface belongs is a game program, then it can be determined that the displayed content of the application interface is the game interface content. If the application program to which the application interface belongs is a video program, it can be determined that the displayed content of the application interface is the video interface content. If the application program to which the application interface belongs is a conference program, it can be determined that the display content of the application interface is graphic interface content. In addition, for the same application, multiple types of application interfaces can be displayed.
- a video interface for example, a game live broadcast interface
- the display content can also be determined according to the type of controls loaded in the application interface. For example, if only the video display control is loaded in the application interface, it can be determined that the display content of the application interface is the video screen content. If the application interface is loaded with video display controls and controls for users to touch, it is determined that the display content of the application interface is game screen content. If the application interface is loaded with controls for controlling audio collection and controlling video collection, determine the display content of the application interface and the content of the graphic and text interface.
- the electronic device can also directly establish a correspondence between the displayed content and the length of the specified time period. This allows the electronic device to directly determine the length of the corresponding designated time period based on the displayed content.
- the user can also trigger the prompt content to return to the display state before reduction through a touch operation on the reduced prompt content.
- the touch operation that triggers the prompt content to restore the display state before reduction can be a click operation, a drag operation, etc.
- This embodiment provides a message reply method, so that in the above manner, when the electronic device displays the application interface in full-screen mode, prompt content including the sender of the message and the message source platform are displayed suspended on the application interface.
- you can view and reply to messages which improves the convenience of replying to messages when the application interface is displayed in full-screen mode.
- the display area occupied by the prompt content can be reduced to avoid disturbing the user.
- Figure 22 shows a structural block diagram of a message reply device 600 proposed by an embodiment of the present application.
- the device 600 includes:
- the message prompt unit 610 is configured to display prompt content in a comfortable operation area on the screen of the electronic device when the application interface is displayed in the foreground.
- the comfortable operation area allows the user to maintain the current holding posture.
- the prompt content includes relevant information indicating the sender of the message and the platform from which the message originated.
- the message content display unit 620 is configured to suspend and display message content in response to a touch operation acting on the prompt content, where the message content includes at least part of the content of the message.
- the control display unit 630 is configured to display a message reply control in a floating manner when a touch operation acting on the message content is detected.
- the message reply unit 640 is used to obtain the reply message input from the message reply control, and send the reply message to the sender through the message source platform.
- the message reply control includes a message display control and an input mode selection control.
- the message reply unit 640 is specifically configured to determine the target input mode based on the input selection operation of the input mode selection control, and display the input control corresponding to the target input mode;
- the message reply unit 640 is specifically configured to display multiple input mode icons in response to the touch operation of the touch object acting on the input mode selection control; after the touch object acts on the touch operation
- the input mode icon corresponding to the slid position is used as the target input mode icon; the input mode corresponding to the target input mode icon is used as the target input mode, and the input control corresponding to the target input mode is displayed.
- the message prompt unit 610 is specifically used to obtain the display content corresponding to the application interface when a message is received when the application interface is displayed in full-screen mode;
- a display position is determined based on the display content, and prompt content is displayed in suspension at the display position.
- the message prompt unit 610 is specifically used to obtain the position of the specified object content in the displayed content, and the specified object content is the content that the user is concerned about; and determine the display position in an area other than the position of the specified object content. , and the prompt content is displayed in a floating manner at the display position.
- the message prompt unit 610 is specifically used to perform image recognition on the displayed content; if the specified object content is recognized, the location of the specified object content is obtained; if the specified object content is not recognized, by default The location shows the prompt content.
- the message prompt unit 610 is specifically used to detect whether the application program to which the application interface displayed based on full-screen mode provides a data interface; if there is the data interface, obtain whether the display content has a specified object through the data interface. content; if the specified object content is recognized, the location of the specified object content is obtained; if there is no said data interface, the image recognition of the displayed content is performed.
- the message reply unit 640 is specifically configured to determine the display position based on the image type of the displayed content, and suspend and display the prompt content at the display position.
- the image category includes a game category, a video category, or a graphic category. .
- the message prompt unit 610 is specifically used to display prompt content in a comfortable operation area on the screen of the electronic device when a message is received when the application interface is displayed in the foreground.
- the comfortable operation area is After the user maintains the touchable area of the current grip posture, if there is no touch operation on the prompt content within a specified period of time, the display area occupied by the prompt content is reduced.
- the message prompt unit 610 is specifically configured to determine the length of the specified time period based on the content displayed in the application interface.
- This embodiment provides a message reply device, so that through the above method, when the application interface is displayed in the foreground, prompt content can be displayed in the comfortable operation area of the screen when a message is received, so that the user does not need to change the grip posture.
- the prompt content can be touched by touch, reducing interference to the user.
- you can view and reply to messages, which improves the convenience of replying to messages while displaying the application interface in full screen.
- Electronic device 200 includes one or more (only one is shown) processors 102, memory 104, network modules 106, and sensor modules 108 coupled to each other.
- the memory 104 stores programs that can execute the content in the aforementioned 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 by running or executing instructions, programs, code sets or instruction sets stored in the memory 104, and calling data stored in the memory 104.
- the processor 102 may use 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 hardware form.
- the processor 102 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a modem, etc.
- CPU Central Processing Unit
- GPU Graphics Processing Unit
- modem etc.
- the CPU mainly handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the display content; and the modem is used to handle wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 102 and may be implemented solely through a communication chip.
- the memory 104 may include random access memory (RAM) or read-only memory (Read-Only Memory). Memory 104 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. For example, the memory 104 may store a content display device. The content display device may be the aforementioned device 600.
- the memory 104 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing each of the following method embodiments, etc.
- the storage data area can also store data created during use of the terminal 100 (such as phone book, audio and video data, chat record data), etc.
- the network module 106 is used to receive and send electromagnetic waves, realize mutual conversion of electromagnetic waves and electrical signals, and thereby communicate with a communication network or other devices, such as communicating with an audio playback device.
- 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, memories, etc. .
- SIM Subscriber Identity Module
- the network module 106 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices through a wireless network.
- the above-mentioned wireless network may include a cellular telephone network, a wireless local area network or a metropolitan area network.
- the network module 106 can interact with base stations for information.
- Sensor module 108 may include at least one sensor.
- the sensor module 108 may include, but is not limited to: light sensors, motion sensors, pressure sensors, infrared heat sensors, distance sensors, acceleration sensors, and other sensors.
- the pressure sensor may be a sensor that detects pressure generated by pressing on the electronic device 200 . That is, the pressure sensor detects pressure generated by contact or pressing between the user and the electronic device, for example, pressure generated by contact or pressing between the user's ear and the mobile terminal. Therefore, the pressure sensor can be used to determine whether contact or pressure has occurred between the user and the electronic device 200, as well as the amount of pressure.
- the acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), can detect the magnitude and direction of gravity when stationary, and can be used to identify applications of the posture of the electronic device 200 (such as horizontal and vertical screen switching, related games, Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.
- the electronic device 200 can also be configured with other sensors such as a gyroscope, barometer, hygrometer, and thermometer, which will not be described again here.
- Figure 24 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
- Program code is stored in the computer-readable medium 800, and the program code can be called by the processor to execute the method described in the above method embodiment.
- Computer-readable storage medium 800 may be 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 non-transitory computer-readable storage medium.
- the computer-readable storage medium 800 has storage space for program code 810 that performs any method steps in the above-described 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.
- This application provides a message reply method, device, electronic device and storage medium.
- an application interface is displayed in full-screen mode, if a message is received, prompt content is displayed in a comfortable operation area on the screen of the electronic device. If there is a touch operation that acts on the prompt content, respond to the touch operation to display message content including at least part of the message in a floating manner on the application interface.
- the message reply control is displayed in a floating manner; the reply message input from the message reply control is obtained, and the reply message is sent to the message source platform through the message source platform. Describe the sender.
- the prompt content when the application interface is displayed in the foreground, the prompt content can be displayed in the comfortable operating area of the screen when a message is received, so that the user can touch the prompt content without changing the holding posture, which reduces the cost. Interference to users. Furthermore, you can directly touch the prompt content to trigger the floating display of the message reply control on the application interface, so that you can directly reply to the received message through the message reply control, thereby eliminating the need to exit the current full-screen application. With the application interface displayed in mode, you can view and reply to messages, which improves the convenience of replying to messages while displaying the application interface in full screen.
- references to the terms “one embodiment,” “some embodiments,” “an example,” “specific examples,” or “some examples” or the like means that specific features are described in connection with the embodiment or example. , structures, materials or features are included in at least one embodiment or example of the present application. In this specification, the schematic expressions of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and combine different embodiments or examples and features of different embodiments or examples described in this specification unless they are inconsistent with each other.
- first and second are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Therefore, 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 expressly and specifically limited.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
A message reply method and apparatus, and an electronic device. The method comprises: when an application interface is displayed in the foreground, if a message is received, displaying prompt content in a comfortable operation area in a screen of an electronic device (S110), wherein the prompt content comprises related information for representing a sender of the message and a message source platform; in response to a touch-control operation acting on the prompt content, displaying message content on the application interface in a floating manner, wherein the message content comprises at least part of the content of the message (S120); if there is a touch-control operation acting on the message content, displaying a message reply control on the application interface in a floating manner (S130); and acquiring a reply message which is input from the message reply control, and sending the reply message to the sender by means of the message source platform (S140). By means of the method, a message can be viewed and replied to without exiting an application interface which is being displayed on the basis of a full-screen mode, thereby improving the convenience of replying to messages during the process of displaying an application interface in a full screen mode.
Description
相关申请的交叉引用Cross-references to related applications
本申请要求于2022年6月27日提交的申请号为202210745425.X的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。This application claims priority from Chinese application No. 202210745425.X filed on June 27, 2022, the entire content of which is hereby incorporated by reference for all purposes.
本申请涉及终端技术领域,更具体地,涉及一种消息回复方法、装置、电子设备以及存储介质。The present application relates to the field of terminal technology, and more specifically, to a message reply method, device, electronic device and storage medium.
在电子设备基在前台显示应用界面时,若电子设备接收到消息,可以通过弹窗的方式提醒用户。但是,在相关的方式中,还存在用户对所接收到的消息进行回复较为不便的问题。When the electronic device displays the application interface in the foreground, if the electronic device receives a message, it can remind the user through a pop-up window. However, in related methods, there is also a problem that it is inconvenient for users to reply to received messages.
发明内容Contents of the invention
鉴于上述问题,本申请实施例提出了一种消息回复方法、装置、电子设备以及存储介质,以改善上述问题。In view of the above problems, embodiments of the present application propose a message reply method, device, electronic device and storage medium to improve the above problems.
第一方面,本申请实施例提供了一种消息回复方法,应用于电子设备,所述方法包括:在应用界面处于前台显示的情况下,若接收到消息,在所述电子设备的屏幕中的舒适操作区域显示提示内容,所述舒适操作区域为用户保持当前握姿可触控到的区域,所述提示内容包括表示所述消息的发送方以及消息来源平台的相关信息;响应作用于所述提示内容的触控操作,悬浮显示消息内容,所述消息内容包括所述消息的至少部分内容;In a first aspect, embodiments of the present application provide a message reply method, applied to an electronic device. The method includes: when an application interface is displayed in the foreground, if a message is received, on the screen of the electronic device The comfortable operation area displays prompt content. The comfortable operation area is an area that the user can touch while maintaining the current grip. The prompt content includes relevant information indicating the sender of the message and the platform from which the message originated; in response to the A touch operation prompts the content, and the message content is displayed in a floating manner, and the message content includes at least part of the content of the message;
在检测到作用于所述消息内容的触控操作的情况下,悬浮显示消息回复控件;获取从所述消息回复控件输入的回复消息,并将所述回复消息通过所述消息来源平台发送给所述发送方。When a touch operation on the message content is detected, the message reply control is displayed in a floating manner; the reply message input from the message reply control is obtained, and the reply message is sent to the message source platform through the message source platform. the sender.
第二方面,本申请实施例提供了一种消息回复装置,运行于电子设备,所述装置包括:消息提示单元,用于在应用界面处于前台显示的情况下,若接收到消息,在所述电子设备的屏幕中的舒适操作区域显示提示内容,所述舒适操作区域为用户保持当前握姿可触控到的区域,所述提示内容包括表示所述消息的发送方以及消息来源平台的相关信息;消息内容显示单元,用于响应作用于所述提示内容的触控操作,悬浮显示消息内容,所述消息内容包括所述消息的至少部分内容;控件显示单元,用于在检测到作用于所述消息内容的触控操作的情况下,悬浮显示消息回复控件;消息回复单元,用于获取从所述消息回复控件输入的回复消息,并将所述回复消息通过所述消息来源平台发送给所述发送方。In the second aspect, embodiments of the present application provide a message reply device, which runs on an electronic device. The device includes: a message prompting unit, configured to, when the application interface is displayed in the foreground, if a message is received, in the Prompt content is displayed in a comfortable operation area on the screen of the electronic device. The comfortable operation area is an area that the user can touch while maintaining the current holding posture. The prompt content includes relevant information indicating the sender of the message and the platform from which the message originated. ; The message content display unit is used to respond to the touch operation acting on the prompt content and display the message content in a floating manner, and the message content includes at least part of the content of the message; The control display unit is used to detect the touch operation acting on the prompt content; In the case of touch operation of the message content, a message reply control is displayed in a floating manner; a message reply unit is used to obtain the reply message input from the message reply control, and send the reply message to all parties through the message source platform. the sender.
第三方面,本申请实施例提供了一种电子设备,包括一个或多个处理器以及存储器;一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行以实现上述的方法。In a third aspect, embodiments of the present application provide 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 the above method.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码被处理器运行时执行上述的方法。In a fourth aspect, embodiments of the present application provide a computer-readable storage medium in which program code is stored, wherein the above method is executed when the program code is run by a processor.
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed 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 exerting creative efforts.
图1示出了本申请一实施例提出的一种消息回复方法的流程图;Figure 1 shows a flow chart of a message reply method proposed by an embodiment of the present application;
图2示出了本申请实施例中一种屏幕全部可以用于显示内容的区域的示意图;Figure 2 shows a schematic diagram of the entire area of a screen that can be used to display content in an embodiment of the present application;
图3示出了本申请实施例中一种全屏显示应用界面的示意图;Figure 3 shows a schematic diagram of a full-screen display application interface in an embodiment of the present application;
图4示出了本申请实施例中另一种屏幕全部可以用于显示内容的区域的示意图;Figure 4 shows a schematic diagram of the entire area of another screen that can be used to display content in an embodiment of the present application;
图5示出了本申请实施例中另一种全屏显示应用界面的示意图;Figure 5 shows a schematic diagram of another full-screen display application interface in the embodiment of the present application;
图6示出了本申请实施例中一种确定舒适操作区域的示意图;Figure 6 shows a schematic diagram of determining a comfortable operating area in an embodiment of the present application;
图7示出了本申请实施例中一种提示内容的示意图;Figure 7 shows a schematic diagram of prompt content in an embodiment of the present application;
图8示出了本申请实施例中另一种提示内容的示意图;Figure 8 shows a schematic diagram of another prompt content in the embodiment of the present application;
图9示出了本申请实施例中一种消息内容的示意图;Figure 9 shows a schematic diagram of message content in an embodiment of the present application;
图10示出了本申请实施例中另一种消息内容的示意图;Figure 10 shows a schematic diagram of another message content in the embodiment of the present application;
图11示出了本申请实施例中再一种消息内容的示意图;Figure 11 shows a schematic diagram of yet another message content in the embodiment of the present application;
图12示出了本申请另一实施例提出的一种消息回复方法的流程图;Figure 12 shows a flow chart of a message reply method proposed by another embodiment of the present application;
图13示出了本申请实施例中一种消息回复控件的示意图;Figure 13 shows a schematic diagram of a message reply control in an embodiment of the present application;
图14示出了本申请实施例中一种输入方式选择控件的示意图;Figure 14 shows a schematic diagram of an input mode selection control in an embodiment of the present application;
图15示出了本申请实施例中操作音频录入控件的示意图;Figure 15 shows a schematic diagram of operating the audio input control in the embodiment of the present application;
图16示出了本申请再一实施例提出的一种消息回复方法的流程图;Figure 16 shows a flow chart of a message reply method proposed by yet another embodiment of the present application;
图17示出了本申请中应用界面所连续显示的多张画面的示意图;Figure 17 shows a schematic diagram of multiple pictures continuously displayed by the application interface in this application;
图18示出了本申请中一种确定提示内容的显示位置的示意图;Figure 18 shows a schematic diagram of determining the display position of prompt content in this application;
图19示出了本申请中再一种确定提示内容的显示位置的示意图;Figure 19 shows yet another schematic diagram of determining the display position of prompt content in this application;
图20示出了本申请又一实施例提出的一种消息回复方法的流程图;Figure 20 shows a flow chart of a message reply method proposed by yet another embodiment of the present application;
图21示出了本申请中一种缩小提示内容的示意图;Figure 21 shows a schematic diagram of reducing prompt content in this application;
图22示出了本申请一实施例提出的一种消息回复装置的结构框图;Figure 22 shows a structural block diagram of a message reply device proposed by an embodiment of the present application;
图23示出了本申请实时中的用于执行根据本申请实施例的消息回复方法的电子设备的结构框图;Figure 23 shows a structural block diagram of an electronic device used to perform a message reply method according to an embodiment of the present application in real time;
图24示出了本申请实时中的用于保存或者携带实现根据本申请实施例的消息回复方法的程序代码的存储单元。Figure 24 shows a storage unit used to save or carry the program code for implementing the message reply method according to the embodiment of the present application in real time.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
在用户使用电子设备的过程中,为了使得用户有较高的视觉体验可以通过全屏模式对应用界面进行显示。例如,在电子设备运行游戏界面的过程中,通过全屏模式对游戏界面进行显示,使得用户可以更加沉浸的体验游戏过程。再例如,在电子设备播放视频的过程中,电子设备通过全屏模式显示视频界面可以使得用户具有更好的画面体验感。When the user uses the electronic device, the application interface can be displayed in full-screen mode in order to provide the user with a higher visual experience. For example, when the electronic device is running the game interface, the game interface is displayed in full-screen mode, so that the user can experience the game process more immersively. For another example, when the electronic device plays a video, the electronic device displays the video interface in full-screen mode so that the user can have a better picture experience.
在电子设备中,一些应用程序即使在退出运行或者是在后台运行的情况下,依然可以接收其他设备所发送的消息,并在接收到其他设备所发送的消息时,发出提示消息。例如,若是在电子设备当前正在基于全屏模式显示应用界面的情况下,电子设备可以通过弹窗的方式发出提示消息。但是,若用户期望对该消息进行回复,则需要退出当前所显示的应用界面,并再手动触发接收消息的应用程序启动,这就会给用户造成不便。In electronic devices, some applications can still receive messages sent by other devices even if they exit or run in the background, and send out prompt messages when receiving messages sent by other devices. For example, if the electronic device is currently displaying the application interface in full-screen mode, the electronic device may issue a prompt message through a pop-up window. However, if the user expects to reply to the message, he or she needs to exit the currently displayed application interface and manually trigger the startup of the application that receives the message, which will cause inconvenience to the user.
因此,发明人提出了本申请实施例中的一种消息回复方法、装置、电子设备及存储介质。在该方法中,在基于全屏模式显示应用界面的情况下,若接收到消息,在所述电子设备的屏幕中的舒适操作区域显示提示内容。若有作用于所述提示内容的触控操作,则对该触控操作进行响应以在应用界面上悬浮显示包括该消息的至少部分内容的消息内容。在检测到作用于所述消息内容的触控操作的情况下,悬浮显示消息回复控件;获取从所述消息回复控件输入的回复消息,并将所述回复消息通过所述消息来源平台发送给所述发送方。以使得在电子设备通过全屏模式显示应用界面的情况下,并在该应用界面上悬浮显示包括消息的发送方以及消息来源平台的提示内容的情况下,可以通过直接对该提示内容作出触控操作而触发在应用界面悬浮显示消息回复控件,以便直接通过该消息回复控件对所接收到的消息进行回复,进而使得可以不用退出当前正在基于全屏模式显示的应用界面,就可以对消息进行查看以及回复,提升了在在全屏显示应用界面的过程中,对消息回复的便利性。Therefore, the inventor proposes a message reply method, device, electronic device and storage medium in the embodiment of the present application. In this method, when the application interface is displayed based on the full-screen mode, if a message is received, prompt content is displayed in a comfortable operation area on the screen of the electronic device. If there is a touch operation that acts on the prompt content, respond to the touch operation to display message content including at least part of the message in a floating manner on the application interface. When a touch operation on the message content is detected, the message reply control is displayed in a floating manner; the reply message input from the message reply control is obtained, and the reply message is sent to the message source platform through the message source platform. the sender. So that when the electronic device displays the application interface in full-screen mode, and when the prompt content including the sender of the message and the message source platform is suspended on the application interface, the prompt content can be directly operated by touching the prompt content. The message reply control is triggered to be displayed in a floating manner on the application interface, so that the received message can be directly replied to through the message reply control, thereby enabling the message to be viewed and replied to without exiting the application interface that is currently displayed in full-screen mode. , which improves the convenience of replying to messages while displaying the application interface in full screen.
下面将结合附图来对本申请所包括的实施例进行介绍。The embodiments included in this application will be introduced below with reference to the accompanying drawings.
请参阅图1,图1所示为本申请一实施例提出的一种消息回复方法的流程图,该方法包括:Please refer to Figure 1. Figure 1 shows a flow chart of a message reply method proposed by an embodiment of the present application. The method includes:
S110:在应用界面处于前台显示的情况下,若接收到消息,在所述电子设备的屏幕中的舒适操作区域显示提示内容,所述舒适操作区域为用户保持当前握姿可触控到的区域,所述提示内容包括表示所述消息的发送方以及消息来源平台的相关信息。S110: When the application interface is displayed in the foreground, if a message is received, prompt content is displayed in the comfortable operation area on the screen of the electronic device. The comfortable operation area is the area that the user can touch while maintaining the current holding posture. , the prompt content includes relevant information indicating the sender of the message and the platform from which the message originated.
其中,在本申请实施例中,前台显示的应用界面可以完全填充屏幕当前用于进行内容显示的区域,也可以是占用屏幕当前用于进行内容显示的区域中的部分区域。例如,若屏幕所有的区域均可以用于进行内容显示,在这种情况下,前台显示的应用界面可完全填充屏幕的所有的区域。再例如,若屏幕当前只有部分区域可以用于进行内容显示,在这种情况下,基于全屏模式显示的应用界面可完全填充屏幕的该用于显示内容的部分区域。示例性的,如图2所示,屏幕的所有区域(图2中阴影部分)均可以用于显示内容的情况下,前台显示的应用界面10可以如图3所示。示例性的,屏幕的所有区域中只有图4中所示的部分区域(图4中阴影部分)可以用于显示内容的情况下,前台显示的应用界面20可以如图5所示。在图5所示的情况,屏幕中的阴影部分以外的区域则不会显示内容。例如,屏幕中的阴影部分以外的区域可以一直保持熄屏状态。In this embodiment of the present application, the application interface displayed in the foreground may completely fill the area of the screen currently used for content display, or may occupy part of the area of the screen currently used for content display. For example, if all areas of the screen can be used for content display, in this case, the application interface displayed in the foreground can completely fill all areas of the screen. For another example, if only part of the screen area is currently available for displaying content, in this case, the application interface displayed based on full-screen mode can completely fill the part of the screen area used for displaying content. For example, as shown in Figure 2, when all areas of the screen (shaded areas in Figure 2) can be used to display content, the application interface 10 displayed in the foreground can be as shown in Figure 3. For example, when only the partial area shown in Figure 4 (the shaded area in Figure 4) among all areas of the screen can be used to display content, the application interface 20 displayed in the foreground can be as shown in Figure 5. In the situation shown in Figure 5, content will not be displayed in areas other than the shaded portion of the screen. For example, areas of the screen other than the shaded portions can remain off.
在本申请实施例中,舒适操作区域为用户可以保持当前握姿就可触控到的区域。其中,握姿为用户的手部握持电子设备的姿态。在用户保持当前握姿就可以触控提示内容的情况下,用户的手部可以不用离开原本的握持位置,进而使得可以降低因为对提示内容进行触控而造成的干扰。In the embodiment of the present application, the comfortable operation area is an area that the user can touch while maintaining the current holding posture. The holding posture is the posture of the user's hand holding the electronic device. When the user can touch the prompt content while maintaining the current holding posture, the user's hand does not need to leave the original holding position, thereby reducing interference caused by touching the prompt content.
其中,电子设备可以通过多种方式来确定舒适操作区域。Among them, electronic equipment can determine the comfortable operating area in various ways.
作为一种确定方式,电子设备中可以设置有舒适区域配置界面。在这种方式下,用户可以操作电子设备显示舒适区域配置界面,从而使得用户可以在该舒适区域配置界面中选择舒适操作区域。可选的,作为一种选择方式,电子设备可以在显示舒适区域配置界面时,在该舒适区域配置界面中显示一参考控件,从而使得用户可以在握持电子设备并保持当前握姿的情况下,对所述参考控件的显示位置进行改变,以便电子设备可以将参考控件所途径的位置组成的区域作为舒适操作区域。可选的,作为一种选择方式,舒适区域配置界面的尺寸可以与屏幕尺寸相同,那么电子设备可以在显示舒适区域配置界面时,用户可以通过触控操作在该舒适区域配置界面中划分出一区域作为舒适操作区域。示例性的,如图7所示,用户可以通过触控操作将舒适区域配置界面划分为第一部分22和第二部分23,其中,电子设备可以将第二部分23所对应区域作为舒适操作区域。As a determination method, the electronic device may be provided with a comfort zone configuration interface. In this manner, the user can operate the electronic device to display the comfort zone configuration interface, so that the user can select the comfort operation zone in the comfort zone configuration interface. Optionally, as a selection method, the electronic device can display a reference control in the comfort zone configuration interface when displaying the comfort zone configuration interface, so that the user can hold the electronic device and maintain the current holding posture. The display position of the reference control is changed so that the electronic device can use the area composed of the positions passed by the reference control as a comfortable operation area. Optionally, as a selection method, the size of the comfort zone configuration interface can be the same as the screen size. Then when the electronic device displays the comfort zone configuration interface, the user can divide a zone in the comfort zone configuration interface through touch operations. area as a comfortable operating area. For example, as shown in Figure 7, the user can divide the comfort zone configuration interface into a first part 22 and a second part 23 through touch operations, wherein the electronic device can use the area corresponding to the second part 23 as a comfort operation area.
作为另一种确定方式,可以获取多个用户握持电子设备时的姿态,进而根据多个用户握持电子设备时的姿态所能在屏幕中所触控到的区域来确定舒适操作区域。可选的,可以将多个用户握持电子设备时的姿态所能在屏幕中所触控到的区域的平均值作为舒适操作区域。As another determination method, the postures of multiple users when holding the electronic device can be obtained, and then the comfortable operation area is determined based on the area on the screen that can be touched by the postures of multiple users when holding the electronic device. Optionally, the average of the areas on the screen that can be touched by the postures of multiple users when holding the electronic device can be used as the comfortable operation area.
其中,前台显示的应用界面为基于全屏模型进行显示的情况下,则可以在应用界面对应于舒适操作区域的位置悬浮显示提示内容。Wherein, when the application interface displayed in the foreground is displayed based on the full-screen model, the prompt content can be displayed in a floating position on the application interface corresponding to the comfortable operation area.
在本申请实施例中,接收到的消息可以为多种类型的消息,可选的,用户可以进行回复的消息均在本申请要求保护的范围内。例如,可以为短信,也可以为即时通信程序所接收的聊天消息。再者,需要说明的是,在本申请实施例中,接收到消息的应用程序,与基于全屏模式所显示的应用界面所属的应用程序可以为同一个应用程序,也可以为不同的应用程序。例如,电子设备在基于全屏模式显示游戏程序的界面的情况下,接收到即时通信程序对应的消息。再例如,电子设备可以在基于全屏模式显示视频界面,且该视频界面是由即时通信程序提供的播放窗口进行显示的情况下,接收到该即时通信程序对应的消息。In this embodiment of the present application, the received messages may be of various types. Optionally, the messages that the user can reply to are all within the scope of protection claimed by this application. For example, it can be a text message or a chat message received by an instant messaging program. Furthermore, it should be noted that in this embodiment of the present application, the application program that receives the message and the application program to which the application interface displayed based on the full-screen mode belongs can be the same application program, or they can be different applications. For example, when the electronic device displays the interface of the game program in full-screen mode, it receives a message corresponding to the instant messaging program. For another example, the electronic device may receive a message corresponding to the instant messaging program when the video interface is displayed in full-screen mode and the video interface is displayed in a playback window provided by the instant messaging program.
在本申请实施例中,提示内容用于提示用户当前有程序接收到消息。为了便于用户查看所接收到的消息的发送方是谁,以及是通过何种渠道发送的消息,在该提示内容中可以包括有消息的发送方以及消息来源平台。其中,提示内容的样式可以有多种。可选的,提示内容可以通过图标的方式标识消息来源平台,用文字的方式标识消息的发送方。例如,如图7所示,提示内容30可以包括内容31和内容32,其中内容31可以为图标,该图标可以表征消息的来源渠道。内容32则可以用于显示消息的发送方,例如,图7中的“小Y”。再例如,提示内容可以均通过文字的方式进行显示,如图8所示,在图8中所示的提示内容33中包括有内容34和内容35。其中,内容34中所显示的“XX消息”则标识了消息的来源渠道。内容35中所显示的“小Y”则标识了消息的发送方。In this embodiment of the present application, the prompt content is used to prompt the user that a program currently receives the message. In order to facilitate the user to check who is the sender of the received message and through which channel the message is sent, the prompt content may include the sender of the message and the message source platform. Among them, the prompt content can have multiple styles. Optionally, the prompt content can identify the source platform of the message in the form of icons and the sender of the message in the form of text. For example, as shown in Figure 7, the prompt content 30 may include content 31 and content 32, where the content 31 may be an icon, and the icon may represent the source channel of the message. Content 32 can be used to display the sender of the message, for example, "little Y" in Figure 7 . For another example, the prompt content may all be displayed in the form of text, as shown in FIG. 8 . The prompt content 33 shown in FIG. 8 includes content 34 and content 35 . Among them, the "XX message" displayed in content 34 identifies the source channel of the message. The "little Y" displayed in content 35 identifies the sender of the message.
在本申请实施例中,提示内容的显示位置也可以有多种。作为一种方式,提示内容可以在电子设备所配置的默认位置进行显示。作为另外一种方式,用户也可以根据自己的需要对提示内容的显示位置进行编辑,以便可以适应用户的操作习惯。In the embodiment of the present application, there may be multiple display locations of the prompt content. As one approach, the prompt content can be displayed in a default location configured by the electronic device. As another method, the user can also edit the display position of the prompt content according to his own needs, so as to adapt to the user's operating habits.
需要说明的是,在一些情况下,电子设备虽然在以全屏模式显示应用界面,但是用户可能当前并未在关注电子设备的屏幕。例如,用户可能当前因为一些事务而暂时离开,在这种情况下, 如果电子设备直接就进行提示内容的显示,则并不能被用户及时关注到,还会因为在全屏显示应用界面的情况下再增加显示提示内容而消耗的更多资源。作为一种方式,电子设备可以在接收到消息后,检测用户当前是否正在关注屏幕,在检测到用户正在关注屏幕的情况下,则触发在应用界面上悬浮显示提示内容,在检测到用户并未关注屏幕的情况下,则等待一段时间后再进行一次检测,直到检测到用户当前正在关注屏幕,并触发显示提示内容。It should be noted that in some cases, although the electronic device displays the application interface in full-screen mode, the user may not be paying attention to the screen of the electronic device currently. For example, the user may be temporarily away due to some affairs. In this case, if the electronic device directly displays the prompt content, the user will not be able to pay attention to it in time, and the user will not be able to pay attention to it in time because the application interface is displayed in full screen. Increase the resources consumed by displaying prompt content. As a way, after receiving the message, the electronic device can detect whether the user is currently paying attention to the screen. If it is detected that the user is paying attention to the screen, it will trigger the display of prompt content on the application interface. If it is detected that the user is not paying attention to the screen, In the case of paying attention to the screen, wait for a period of time and then perform another detection until it is detected that the user is currently paying attention to the screen and triggers the display of prompt content.
S120:响应作用于所述提示内容的触控操作,悬浮显示消息内容,所述消息内容包括所述消息的至少部分内容。S120: In response to the touch operation on the prompt content, the message content is suspended and displayed, and the message content includes at least part of the content of the message.
其中,作用于提示内容的触控操作为可以触发显示消息中的至少部分内容的操作。可选的,若检测到提示内容中有任一字符被触控,则确定检测到作用于提示内容的触控操作。在本申请实施例中,触控操作的实施方式可以有多种,例如,触发显示消息内容的触控操作可以为点击操作,也可以为双击操作,还可以为长按操作。该触控操作的具体实施方式可以由开发人员预先配置,也可以由电子设备的用户根据自己的操作习惯进行配置。Wherein, the touch operation acting on the prompt content is an operation that can trigger the display of at least part of the content in the message. Optionally, if any character in the prompt content is detected to be touched, it is determined that a touch operation acting on the prompt content is detected. In the embodiment of the present application, there may be multiple implementation methods of touch operations. For example, the touch operation that triggers the display of message content may be a click operation, a double-click operation, or a long press operation. The specific implementation of the touch operation can be pre-configured by the developer, or can be configured by the user of the electronic device according to his or her own operating habits.
其中,在应用界面上悬浮显示消息内容的作用是让用户可以了解到所接收到的消息的内容是什么。可选的,响应作用于提示内容的触控操作所显示的消息内容可以是所接收到的消息中的全部内容,也可以是所接收到的消息中的部分内容,还可以是对所接收到的消息进行总结之后所得到的内容。Among them, the purpose of displaying message content in a floating manner on the application interface is to allow users to understand the content of the received message. Optionally, the message content displayed in response to the touch operation on the prompt content may be all the content of the received message, or part of the content of the received message, or may be a response to the received message. The content obtained after summarizing the message.
例如,所接收到的消息的内容为“大Y,有空不,有空的话我们一会儿一起来一局吧”。若是在显示所接收到的消息中的所有内容的情况下,例如,如图9所示,则会在应用界面10上直接悬浮显示“大Y,有空不,有空的话我们一会儿一起来一局吧”。若是在显示所接收到的消息中的部分内容的情况下,电子设备可以对所接收到的消息进行截取,进而只显示所接收到的消息中前部分的内容。例如,如图10所示,所显示的消息内容可以为“大Y,有空不,有空的话”。若是会对接收到的消息进行总结后再进行显示的情况,所显示的内容可以如图11所示。For example, the content of the received message is "Big Y, are you free? If you are free, let's play a game together later." If all the content in the received message is displayed, for example, as shown in Figure 9, the application interface 10 will directly display "Big Y, are you free? If you are free, we will discuss it together later." Game." If part of the content of the received message is displayed, the electronic device may intercept the received message and then display only the first part of the received message. For example, as shown in Figure 10, the displayed message content may be "Big Y, available or not, if available". If the received message is summarized and then displayed, the displayed content can be as shown in Figure 11.
在本申请实施例中的消息内容可以有多种实施方式的情况下,电子设备可以根据当前的实际情况下,确定具体采用何种方式来确定所显示的消息内容。In the case where the message content in the embodiment of the present application can be implemented in multiple ways, the electronic device can determine the specific method to use to determine the displayed message content based on the current actual situation.
作为一种方式,电子设备可以根据所接收到的消息的字数来确定具体采用何种方式确定所显示的消息内容。可选的,在电子设备中可以存储有第一字数阈值以及第二字数阈值。其中,第一字数阈值低于第二字数阈值。As a method, the electronic device can determine the specific method to use to determine the content of the displayed message based on the number of words in the received message. Optionally, the first word count threshold and the second word count threshold may be stored in the electronic device. Wherein, the first word count threshold is lower than the second word count threshold.
在这种方式下,在接收到消息后可以先获取消息所包括内容的字数,将该字数与第一字数阈值进行比对,若该字数小于该第一阈值,则确定将所接收到的消息所包括的所有内容均作为消息内容进行显示。In this way, after receiving the message, you can first obtain the number of words contained in the message, and compare the number of words with the first word number threshold. If the number of words is less than the first threshold, it is determined that the received message All content included is displayed as message content.
若接收到的消息所包括内容的字数大于第一字数阈值,则再将接收到的消息所包括内容的字数与第二字数阈值进行比对,若接收到的消息所包括的内容的字数小于第二字数阈值,则确定直接截取所接收到的消息中的前面部分内容作为消息内容进行显示。其中,该前面部分内容可以为排序靠前指定位数的字符。例如,前面部分内容可以为排序靠前10位的字符。If the number of words in the content included in the received message is greater than the first word count threshold, then the number of words in the content included in the received message is compared with the second word count threshold. If the number of words in the content included in the received message is less than the second word count threshold, 2 word count threshold, it is determined to directly intercept the previous part of the received message and display it as the message content. Among them, the previous part of the content can be the characters with the specified number of digits sorted first. For example, the first part of the content can be the first 10 characters of the sort.
再者,若接收到的消息所包括的内容的字数大于第二字数阈值,则可以对所接收到的消息的内容进行总结,然后将总结后的内容作为消息内容进行显示。其中,总结后的内容的字数少于所接收到的消息的内容的字数。其中,对所接收到消息的内容进行总结,可以理解为提取出所接收到的消息中的关键内容,从而使得可以直接给用户展示所接收到的消息中的核心内容。可选的,电子设备可以通过预先训练得到的神经网络模型来实现对消息的内容进行总结。Furthermore, if the word count of the content included in the received message is greater than the second word count threshold, the content of the received message may be summarized, and then the summarized content may be displayed as the message content. Among them, the number of words of the summarized content is less than the number of words of the content of the received message. Among them, summarizing the content of the received message can be understood as extracting the key content of the received message, so that the core content of the received message can be directly displayed to the user. Optionally, the electronic device can summarize the content of the message through a pre-trained neural network model.
需要说明的是,第一字数阈值和第二字数阈值可以由开发人员预先配置,也可以由电子设备的用户根据自己的习惯进行配置。在该方式中,电子设备通过所接收到的消息的内容的字数来确定具体的消息内容,从而实现了更为灵活以及智能化的进行消息内容的显示。It should be noted that the first word count threshold and the second word count threshold can be pre-configured by the developer, or can be configured by the user of the electronic device according to his or her own habits. In this method, the electronic device determines the specific message content based on the word count of the received message content, thereby achieving a more flexible and intelligent display of the message content.
作为另外一种方式,电子设备的用户可以预先配置消息内容的显示方式。在这种方式下,电子设备在响应作用于提示内容的触控操作后,可以先去读取电子设备中所存储的显示方式,然后再根据所读取到的显示方式来确定所显示的消息内容所包括的内容。Alternatively, the user of the electronic device may pre-configure the manner in which message content is displayed. In this way, after the electronic device responds to the touch operation on the prompt content, it can first read the display mode stored in the electronic device, and then determine the displayed message based on the read display mode. What the content includes.
作为再一种方式,电子设备可以根据用户的实时选择来确定消息内容所具体包括的内容。在这种方式下,电子设备在响应作用于提示内容的触控操作后,可以显示多个选项。然后,再获取该多个选项中被用户所选择的选项作为目标选项,并将目标选项所对应的消息内容显示方式作为目标方式,进而根据目标方式来确定消息内容。As another way, the electronic device can determine the content specifically included in the message content according to the user's real-time selection. In this manner, the electronic device can display multiple options in response to a touch operation on the prompt content. Then, the option selected by the user among the multiple options is obtained as the target option, and the message content display mode corresponding to the target option is used as the target mode, and then the message content is determined according to the target mode.
需要说明的是,在一些情况下,用户可能还是期望通过接收到消息的程序本身的界面来进行消息的查看与回复。对应的,在本申请实施例中,电子设备可以通过多种方式来确定用户的消息回复方式意图。It should be noted that in some cases, users may still expect to view and reply to messages through the interface of the program itself that receives the message. Correspondingly, in this embodiment of the present application, the electronic device can determine the user's message reply intention through multiple methods.
作为一种方式,电子设备可以根据作用于提示内容的触控操作来确定用户的回复方式意图。可选的,电子设备可以建立第一触控操作对应于不进行界面跳转而进行消息回复,并建立第二触控操作对应于进行界面跳转而进行消息回复。在这种情况下,在显示提示内容之后,若检测到作用于提示内容的触控操作,且该触控操作为第一触控操作,则在应用界面上悬浮显示消息内容。若检测到作用于提示内容的触控操作,且该触控操作为第二触控操作,则跳转显示接收到消息的应用程序的界面。As a method, the electronic device can determine the user's intention of replying based on the touch operation acting on the prompt content. Optionally, the electronic device can establish that the first touch operation corresponds to performing a message reply without performing an interface jump, and establishes that the second touch operation corresponds to performing an interface jump and perform a message reply. In this case, after the prompt content is displayed, if a touch operation acting on the prompt content is detected, and the touch operation is the first touch operation, the message content is displayed in a floating manner on the application interface. If a touch operation acting on the prompt content is detected, and the touch operation is a second touch operation, the interface of the application program that received the message will be jumped to display.
作为另外一种方式,电子设备还可以根据全屏显示的应用界面对应的显示状态来确定用户的回复方式意图。其中,该显示状态可以包括需要用户关注状态和不需要用户关注状态。例如,在游戏界面中,若游戏界面中的游戏人物处于死亡状态,或者游戏界面处于场景切换状态,则属于不需要用户关注状态。若游戏人物处于活动状态(即用户可以对游戏人物进行控制)等,则属于需要用户关注状态。再例如,在视频界面中,若所播放的视频处于暂停状态,则属于不需要用户关注状态,若所播放的视频处于播放状态,则属于需要用户关注状态。在这种方式中,电子设备在接收到消息后,若检测到应用界面的显示状态为需要用户关注状态,则显示在应用界面上悬浮显示消息内容。若检测到应用界面的显示状态为不需要用户关注状态,则可以跳转显示接收到消息的应用程序的界面。As another method, the electronic device can also determine the user's intention of replying based on the display state corresponding to the full-screen application interface. The display status may include a status requiring user attention and a status not requiring user attention. For example, in the game interface, if the game character in the game interface is in a dead state, or the game interface is in a scene switching state, it is a state that does not require user attention. If the game character is in an active state (that is, the user can control the game character), etc., it is a state that requires the user's attention. For another example, in the video interface, if the video being played is in a paused state, it is a state that does not require the user's attention; if the video being played is in a playing state, it is a state that requires the user's attention. In this method, after receiving the message, if the electronic device detects that the display status of the application interface is in a state that requires the user's attention, the electronic device will display the message content as a floating display on the application interface. If it is detected that the display state of the application interface is a state that does not require user attention, the interface of the application program that has received the message can be jumped to display.
再者,若应用界面的显示状态为不需要用户关注状态,且电子设备可以获取到从当前时间切换到需要用户关注状态的时间间隔的情况下,在跳转显示接收到消息的应用程序的界面后,电子设备还可以在接收到消息的应用程序的界面上实时显示之前全屏显示的应用界面切换为需要用户关注状态的倒计时,从而以便于用户可以更为及时的切换会之前全屏显示的应用界面。Furthermore, if the display state of the application interface is a state that does not require user attention, and the electronic device can obtain the time interval from the current time to a state that requires user attention, the interface of the application that receives the message will be displayed in a jump Finally, the electronic device can also display a countdown in real time on the interface of the application that received the message when the application interface that was previously displayed in full screen is switched to a state that requires the user's attention, so that the user can switch to the application interface that was previously displayed in full screen in a more timely manner. .
其中,前台显示的应用界面为基于全屏模型进行显示的情况下,则可以在应用界面对应于舒适操作区域的位置悬浮显示消息内容。Wherein, when the application interface displayed in the foreground is displayed based on the full-screen model, the message content can be displayed in a floating position on the application interface corresponding to the comfortable operation area.
S130:在检测到作用于所述消息内容的触控操作的情况下,悬浮显示消息回复控件。S130: When a touch operation on the message content is detected, display the message reply control in a floating manner.
在本申请实施例中,若有作用于消息内容的触控操作,则表征电子设备的用户准备对所接收到的消息进行回复,进而可以在应用界面上悬浮显示消息回复控件,以便用户可以在不退出全屏模式显示的应用界面的情况下,就可以对接收到的消息进行回复。In the embodiment of the present application, if there is a touch operation on the message content, it means that the user of the electronic device is ready to reply to the received message, and the message reply control can be displayed in a floating manner on the application interface so that the user can You can reply to received messages without exiting the application interface displayed in full-screen mode.
其中,前台显示的应用界面为基于全屏模型进行显示的情况下,则可以在应用界面对应于舒适操作区域的位置悬浮显示消息回复控件。Wherein, when the application interface displayed in the foreground is displayed based on the full-screen model, the message reply control can be displayed in a floating position on the application interface corresponding to the comfortable operation area.
S140:获取从所述消息回复控件输入的回复消息,并将所述回复消息通过所述消息来源平台发送给所述发送方。S140: Obtain the reply message input from the message reply control, and send the reply message to the sender through the message source platform.
需要说明的是,在本申请实施例中,在显示提示内容之后,若响应于作用于提示内容的触控操作而显示消息内容时,所显示的消息内容可以如图9、图10以及图11中所示的替换掉原本所显示的提示内容,从而减小对全屏模式显示的应用界面造成的干扰。再者,在显示消息内容时,消息内容也可以与原本的提示内容并排显示。It should be noted that in the embodiment of the present application, after the prompt content is displayed, if the message content is displayed in response to the touch operation acting on the prompt content, the displayed message content may be as shown in Figure 9, Figure 10 and Figure 11 The one shown in replaces the originally displayed prompt content, thereby reducing interference to the application interface displayed in full-screen mode. Furthermore, when displaying the message content, the message content can also be displayed side by side with the original prompt content.
本实施例提供的一种消息回复方法,在基于全屏模式显示应用界面的情况下,若接收到消息,在所述电子设备的屏幕中的舒适操作区域显示提示内容。若有作用于所述提示内容的触控操作,则对该触控操作进行响应以在应用界面上悬浮显示包括该消息的至少部分内容的消息内容。在检测到作用于所述消息内容的触控操作的情况下,悬浮显示消息回复控件;获取从所述消息回复控件输入的回复消息,并将所述回复消息通过所述消息来源平台发送给所述发送方。This embodiment provides a message reply method. When an application interface is displayed in full-screen mode, if a message is received, prompt content is displayed in a comfortable operation area on the screen of the electronic device. If there is a touch operation that acts on the prompt content, respond to the touch operation to display message content including at least part of the message in a floating manner on the application interface. When a touch operation on the message content is detected, the message reply control is displayed in a floating manner; the reply message input from the message reply control is obtained, and the reply message is sent to the message source platform through the message source platform. the sender.
从而通过上述方式使得,在应用界面处于前台显示的情况下可以在接收到消息的时候在屏幕的舒适操作区域显示提示内容,从而使得用户不用改变握姿就可以触控到该提示内容,降低了对用户的干扰。再者,可以通过直接对该提示内容作出触控操作而触发在应用界面悬浮显示消息回复控件,以便直接通过该消息回复控件对所接收到的消息进行回复,进而使得可以不用退出当前正在基于全屏模式显示的应用界面,就可以对消息进行查看以及回复,提升了在全屏显示应用界面的过程中,对消息回复的便利性。Therefore, through the above method, when the application interface is displayed in the foreground, the prompt content can be displayed in the comfortable operating area of the screen when a message is received, so that the user can touch the prompt content without changing the holding posture, which reduces the cost. Interference to users. Furthermore, you can directly touch the prompt content to trigger the floating display of the message reply control on the application interface, so that you can directly reply to the received message through the message reply control, thereby eliminating the need to exit the current full-screen application. With the application interface displayed in mode, you can view and reply to messages, which improves the convenience of replying to messages while displaying the application interface in full screen.
请参阅图12,图12所示为本申请一实施例提出的一种消息回复方法的流程图,该方法包括:Please refer to Figure 12. Figure 12 shows a flow chart of a message reply method proposed by an embodiment of the present application. The method includes:
S210:在应用界面处于前台显示的情况下,若接收到消息,在所述电子设备的屏幕中的舒适操作区域显示提示内容,所述舒适操作区域为用户保持当前握姿可触控到的区域,所述提示内容包括表示所述消息的发送方以及消息来源平台的相关信息。S210: When the application interface is displayed in the foreground, if a message is received, prompt content is displayed in the comfortable operation area on the screen of the electronic device. The comfortable operation area is the area that the user can touch while maintaining the current holding posture. , the prompt content includes relevant information indicating the sender of the message and the platform from which the message originated.
S220:响应作用于所述提示内容的触控操作,悬浮显示消息内容,所述消息内容包括所述消息的至少部分内容。S220: In response to the touch operation on the prompt content, the message content is suspended and displayed, and the message content includes at least part of the content of the message.
S230:在检测到作用于所述消息内容的触控操作的情况下,悬浮显示消息回复控件,所述消息回复控件包括消息显示控件以及输入方式选择控件。S230: When a touch operation on the message content is detected, a message reply control is displayed in a floating manner. The message reply control includes a message display control and an input method selection control.
其中,消息显示控件用于显示用户所输入的消息,输入方式选择控件则用于用户对所需的输入方式进行选择。如图13所示,所显示的消息显示控件40可以显示在消息内容的下方,输入方式选择控件41则又可以显示在消息显示控件40的下方。Among them, the message display control is used to display the message input by the user, and the input method selection control is used for the user to select the required input method. As shown in FIG. 13 , the displayed message display control 40 can be displayed below the message content, and the input mode selection control 41 can be displayed below the message display control 40 .
S240:基于对所述输入方式选择控件的输入选择操作确定目标输入方式,并显示所述目标输入方式对应的输入控件。S240: Determine a target input mode based on the input selection operation on the input mode selection control, and display the input control corresponding to the target input mode.
可选的,电子设备可以响应于触控物作用于所述输入方式选择控件的触控操作,显示多个输入方式图标。将所述触控物作用所述触控操作后所滑动到的位置对应的输入方式图标,作为目标输入方式图标。将所述目标输入方式图标对应的输入方式作为目标输入方式,显示所述目标输入方式对应的输入控件。示例性的,如图14所示,在检测到作用于输入方式选择控件41的触控操作后,则可以显示输入方式图标42以及输入方式图标43。并且,输入方式图标42对应的输入方式为通过键盘进行输入,输入方式图标43对应的输入方式为通过语音进行输入。若触控物在触控输入方式选择控件41后与屏幕一直保持接触,并滑动操作输入方式图标42处,则可以将输入方式图标42对应的通过键盘进行输入这种方式作为目标输入方式,并显示用于进行输入的键盘。对应的,若触控物在触控输入方式选择控件41后与屏幕一直保持接触,并滑动操作输入方式图标43处,则可以将输入方式图标43对应的通过语音进行输入这种方式作为目标输入方式,并显示用于进行输入的音频录入控件。Optionally, the electronic device may display multiple input mode icons in response to a touch operation of the touch object on the input mode selection control. The input mode icon corresponding to the position to which the touch object slides after the touch operation is used as the target input mode icon. The input mode corresponding to the target input mode icon is used as the target input mode, and the input control corresponding to the target input mode is displayed. For example, as shown in FIG. 14 , after a touch operation on the input mode selection control 41 is detected, the input mode icon 42 and the input mode icon 43 may be displayed. Furthermore, the input method corresponding to the input method icon 42 is input through the keyboard, and the input method corresponding to the input method icon 43 is input through voice. If the touch object remains in contact with the screen after touching the input mode selection control 41 and slides the input mode icon 42, the input mode corresponding to the input mode icon 42 through the keyboard can be used as the target input mode, and Displays the keyboard for input. Correspondingly, if the touch object remains in contact with the screen after touching the input mode selection control 41 and slides the input mode icon 43, the voice input corresponding to the input mode icon 43 can be used as the target input. method and displays the audio input controls for input.
S250:获取通过所述输入控件输入的消息作为回复消息,并在所述消息显示控件中显示所述回复消息,以将所述回复消息发送给所述发送方。S250: Obtain the message input through the input control as a reply message, and display the reply message in the message display control to send the reply message to the sender.
在通过键盘进行输入的这种方式中,电子设备会将用户通过键盘所输入的内容实时显示在消息显示控件中,若检测到键盘中的发送控件被触控,则会将消息显示控件中所显示的内容作为回复消息进行发送。在通过音频录入控件这种方式进行消息回复的过程中,若检测到有作用于音频录入控件的触控操作,则电子设备会持续保持进行音频采集,并在检测到作用于音频录入控件的触控操作取消后,则会将已经采集的音频作为回复消息发送给发送方。In this method of inputting through the keyboard, the electronic device will display the content entered by the user through the keyboard in real time in the message display control. If it is detected that the sending control in the keyboard is touched, the content in the message display control will be displayed. The displayed content is sent as a reply message. During the process of replying to a message through the audio input control, if a touch operation on the audio input control is detected, the electronic device will continue to collect the audio, and when a touch operation on the audio input control is detected, After the control operation is canceled, the collected audio will be sent to the sender as a reply message.
另外,在通过音频录入控件这种方式进行消息回复的过程中,对于所采集的音频可以进行转写操作以转写为对应的文本,并将所转换得到的文本显示在消息显示控件中,然后直接自动进行发送。可选的,如图15所示,电子设备在检测到有作用于音频录入控件44的触控操作后,可以显示取消控件45、确认控件46以及文本转换触发控件47。其中,取消控件45在被触控后可以取消录音操作并对已经录制的音频进行删除。确认控件46在被触控后则可以将已经录制的音频作为回复消息进行发送。文本转换触发控件47在被触控后,则会触发对已经采集的音频进行转写操作,并将转写得到的文本显示在消息显示控件中。例如,若检测到有触控物触控音频录入控件44,则电子设备开始进行音频采集。若在音频采集的过程中,触控物在保持与屏幕的接触并移动到取消控件45的情况下,则电子设备会取消进行音频采集,并恢复显示输入方式选择控件。若在音频采集的过程中,触控物在保持与屏幕的接触并移动到取消控件46的情况下,则电子设备会将已经录制的音频作为语音形式的回复消息发送给发送方。若在音频采集的过程中,触控物在保持与屏幕的接触并移动到取消控件47的情况下,则电子设备会将已经录制的音频转写为对应的文本,然后显示在消息显示控件40中。In addition, during the process of replying to messages through the audio input control, the collected audio can be transcribed into corresponding text, and the converted text is displayed in the message display control, and then Send directly and automatically. Optionally, as shown in FIG. 15 , after detecting a touch operation on the audio input control 44 , the electronic device can display the cancel control 45 , the confirmation control 46 and the text conversion trigger control 47 . Among them, the cancel control 45 can cancel the recording operation and delete the recorded audio after being touched. After the confirmation control 46 is touched, the recorded audio can be sent as a reply message. After the text conversion trigger control 47 is touched, it will trigger a transcoding operation on the collected audio, and display the transcribed text in the message display control. For example, if it is detected that a touch object touches the audio recording control 44, the electronic device starts audio collection. If during the audio collection process, the touch object maintains contact with the screen and moves to the cancel control 45, the electronic device will cancel the audio collection and resume displaying the input mode selection control. If during the audio collection process, the touch object maintains contact with the screen and moves to the cancel control 46, the electronic device will send the recorded audio to the sender as a reply message in voice form. If during the audio collection process, the touch object maintains contact with the screen and moves to the cancel control 47, the electronic device will transcribe the recorded audio into corresponding text, and then display it in the message display control 40 middle.
本实施例提供的一种消息回复方法,从而通过上述方式使得,在电子设备通过全屏模式显示应用界面的情况下,并在该应用界面上悬浮显示包括消息的发送方以及消息来源平台的提示内容的情况下,可以通过直接对该提示内容作出触控操作而触发在应用界面悬浮显示消息显示控件以及输入方式选择控件,以便直接通过该输入方式选择控件触发显示目标输入方式对应的输入控件,进而使得用户可以直接通过该输入控件来获取用户所要回复的消息,并将该所要回复的消息显示在该输入控件中,以进行发送。This embodiment provides a message reply method, so that in the above manner, when the electronic device displays the application interface in full-screen mode, prompt content including the sender of the message and the message source platform are displayed suspended on the application interface. In this case, you can directly touch the prompt content to trigger the floating display of the message display control and the input method selection control on the application interface, so that the input control corresponding to the target input method can be directly triggered to display through the input method selection control, and then The user can directly obtain the message to be replied to through the input control, and the message to be replied to is displayed in the input control for sending.
进而使得可以不用退出当前正在基于全屏模式显示的应用界面,就可以对消息进行查看以及回复,提升了在在全屏显示应用界面的过程中,对消息回复的便利性。This makes it possible to view and reply to messages without exiting the application interface currently displayed in full-screen mode, which improves the convenience of replying to messages during the process of displaying the application interface in full-screen mode.
请参阅图16,图16所示为本申请一实施例提出的一种消息回复方法的流程图,该方法包括:Please refer to Figure 16. Figure 16 shows a flow chart of a message reply method proposed by an embodiment of the present application. The method includes:
S310:在基于全屏模式显示应用界面的情况下,若接收到消息,获取所述应用界面所对应的显示内容。S310: When the application interface is displayed based on the full-screen mode, if a message is received, obtain the display content corresponding to the application interface.
S320:基于所述显示内容确定显示位置,在所述显示位置悬浮显示提示内容。S320: Determine a display position based on the display content, and display prompt content in a floating manner at the display position.
需要说明的是,在本申请实施例中基于全屏模式所显示的应用界面可以有多种。例如,可以为前述所示的游戏界面、视频界面或者图文界面等。而对于不同种类的应用界面,用户当前比较关注的内容或者区域可以是有所不同的。例如,在游戏界面中,用户当前最为关注的可能是游戏人物,以及游戏人物周边的内容。再例如,在视频界面中,用户当前最为关注的可能是视频人物 以及视频人物周围的区域。在这种情况下,若直接将提示内容直接显示在用户当前比较关注的内容处,可能会对用户造成一定的干扰,从而使得用户无法及时了解到应用界面所展示的实时情况。因此,基于应用界面的显示内容来确定显示位置,有利于使得提示内容不会显示在用户所关注的内容处。It should be noted that in this embodiment of the present application, there may be multiple application interfaces displayed based on the full-screen mode. For example, it can be the game interface, video interface, graphic interface, etc. shown above. For different types of application interfaces, the content or areas that users are currently paying attention to may be different. For example, in the game interface, the user may be most concerned about the game characters and the content surrounding the game characters. For another example, in the video interface, the user may be paying most attention to the video character and the area around the video character. In this case, if the prompt content is directly displayed at the content that the user is currently paying attention to, it may cause certain interference to the user, so that the user cannot understand the real-time situation displayed on the application interface in a timely manner. Therefore, determining the display position based on the display content of the application interface is beneficial to prevent the prompt content from being displayed at the content that the user is concerned about.
作为一种方式,基于所述显示内容确定显示位置,在所述显示位置悬浮显示提示内容,包括:获取所述显示内容中指定物体内容的位置,所述指定物体内容为用户所关注内容;在所述指定物体内容的位置以外的区域中确定显示位置,在所述显示位置悬浮显示提示内容。在这种方式中,电子设备可以对应用界面中所包括的物体进行获取,以检测应用界面中所包括的物体中是否有指定物体内容。在本申请实施例中,电子设备可以有多种方式检测应用界面中是否包括有指定物体内容。As a method, determining a display position based on the display content, and displaying prompt content in suspension at the display position includes: obtaining the position of the specified object content in the display content, and the specified object content is the content that the user is concerned about; The display position is determined in an area other than the position of the designated object content, and the prompt content is displayed in suspension at the display position. In this way, the electronic device can obtain objects included in the application interface to detect whether the objects included in the application interface have specified object content. In the embodiment of the present application, the electronic device can detect whether the application interface includes specified object content in various ways.
可选的,获取所述显示内容中指定物体内容的位置,包括:对所显示的内容进行图像识别;若识别到有指定物体内容,则获取所述指定物体内容的位置;若未识别到有指定物体内容,在默认位置显示提示内容。在这种方式中,电子设备可以截取应用界面所显示的画面,从而对所截取的画面进行图像识别以检测应用界面中是否包括有指定物体内容。可选的,电子设备可以将所截取的画面输入到预先训练的神经网络模型中,进而通过该预先训练的神经网络模型来检测画面中是否包括有指定物体内容,以及指定物体内容的位置。Optionally, obtaining the location of the specified object content in the displayed content includes: performing image recognition on the displayed content; if the specified object content is recognized, obtaining the location of the specified object content; if no specified object content is recognized, Specify the object content and display the prompt content at the default location. In this way, the electronic device can intercept the picture displayed by the application interface, and perform image recognition on the intercepted picture to detect whether the application interface includes specified object content. Optionally, the electronic device can input the captured picture into a pre-trained neural network model, and then use the pre-trained neural network model to detect whether the specified object content is included in the picture and the location of the specified object content.
再者,在本申请实施例中,电子设备也可以根据显示的应用界面所属应用程序提供的数据接口来检测应用界面所显示的内容是否包括有指定物体内容。其中,应用界面所属的应用程序在显示每一帧画面时,还可以通过提供的数据接口将当前所显示的画面的画面数据传输给电子设备的操作系统,从而使得电子设备可以实时的获取到应用界面当前所显示画面的画面数据。该画面数据可以包括画面中是否包括指定物体内容,以及在包括指定物体内容的情况下,指定物体内容的数量以及位置。Furthermore, in this embodiment of the present application, the electronic device can also detect whether the content displayed on the application interface includes specified object content based on the data interface provided by the application program to which the displayed application interface belongs. Among them, when the application program to which the application interface belongs displays each frame, it can also transmit the picture data of the currently displayed picture to the operating system of the electronic device through the provided data interface, so that the electronic device can obtain the application information in real time. Screen data of the screen currently displayed on the interface. The picture data may include whether the specified object content is included in the picture, and if the specified object content is included, the number and location of the specified object content.
再者,电子设备可以结合数据接口和图像识别这两种方式来检测指定物体内容。可选的,对所显示的内容进行图像识别之前还包括:检测基于全屏模式显示的应用界面所属应用程序是否提供有数据接口;若有所述数据接口,通过所述数据接口获取所述显示内容是否有指定物体内容;若识别到有指定物体内容,则获取所述指定物体内容的位置;若没有所述数据接口,执行所述对所显示的内容进行图像识别。Furthermore, the electronic device can detect the content of the specified object by combining the two methods of data interface and image recognition. Optionally, before performing image recognition on the displayed content, it also includes: detecting whether the application program to which the application interface displayed based on the full-screen mode provides a data interface; if there is the data interface, obtaining the display content through the data interface Whether there is specified object content; if it is recognized that there is specified object content, obtain the location of the specified object content; if there is no said data interface, perform the image recognition of the displayed content.
需要说明的是,不同的应用程序的功能会有所不同,因此,可能并不是每个应用程序都会提供数据接口以输出画面数据。所以,先检测基于全屏模式显示的应用界面所属应用程序是否提供有数据接口,进而根据是否有数据接口可以对应有不同的获取应用界面中是否有指定物体内容的方式,提升了指定物体内容检测的灵活性和智能化程度。It should be noted that the functions of different applications will be different, so not every application may provide a data interface to output screen data. Therefore, first detect whether the application to which the application interface displayed based on full-screen mode provides a data interface, and then depending on whether there is a data interface, there are different ways to obtain whether there is specified object content in the application interface, which improves the detection of specified object content. Flexibility and intelligence.
需要说明的是,应用界面中的内容是会逐帧被电子设备进行显示的。例如,如图17所示,应用界面可以先显示画面帧60,然后依次显示画面帧62、画面帧63以及画面帧64。那么则会出现一种情况,即电子设备在显示画面帧60的时候,电子设备响应于接收到消息,而准备显示提示内容。但是,在电子设备实际显示提示内容时,应用界面中的画面已经是画面帧63,因此,则提示内容的显示位置实际是根据画面帧60确定的,而并不是根据画面帧63确定的,所以所显示的提示内容则可能会遮挡画面帧63中所显示的指定物体内容。It should be noted that the content in the application interface will be displayed by the electronic device frame by frame. For example, as shown in Figure 17, the application interface may first display the picture frame 60, and then display the picture frame 62, the picture frame 63 and the picture frame 64 in sequence. Then there will be a situation, that is, when the electronic device displays the picture frame 60, the electronic device responds to receiving the message and prepares to display the prompt content. However, when the electronic device actually displays the prompt content, the picture in the application interface is already picture frame 63. Therefore, the display position of the prompt content is actually determined based on picture frame 60, not based on picture frame 63. Therefore, The displayed prompt content may block the specified object content displayed in the picture frame 63 .
为了改善上述问题,作为一种方式,电子设备可以在接收到消息后,对于应用界面中所显示的每个画面均进行检测,并根据针对每个画面中的指定物体内容的检测结果对提示内容的显示位置进行实时的更新。作为另外一种方式,电子设备可以在响应于接收到消息而准备显示提示内容时,先获取应用界面所显示的连续多张画面中指定物体内容的位置,进而预判出指定物体内容不会出现的区域,以将指定物体内容不会出现的区域作为提示内容的显示位置。在这种方式中,结合连续的多张画面中指定物体内容的位置变化情况,可以预判后续指定物体内容的位置改变趋势,进而能够得出指定物体内容更大概率不会出现的区域,以便可以更大概率的降低所显示的提示内容遮挡应用界面中指定物体内容可能性。In order to improve the above problem, as a way, after receiving the message, the electronic device can detect each picture displayed in the application interface, and adjust the prompt content based on the detection results of the specified object content in each picture. The display position is updated in real time. As another method, when preparing to display prompt content in response to receiving a message, the electronic device can first obtain the position of the specified object content in multiple consecutive pictures displayed on the application interface, and then predict that the specified object content will not appear. The area where the content of the specified object does not appear is used as the display location of the prompt content. In this way, combined with the position changes of the specified object content in multiple consecutive pictures, the position change trend of the subsequent specified object content can be predicted, and then the area where the specified object content has a higher probability of not appearing can be obtained, so as to It can reduce the probability that the displayed prompt content blocks the content of the specified object in the application interface with a greater probability.
作为一种预估方式,可以预先将屏幕当前可用于显示内容的区域划分为多个子区域。在得到应用界面所显示的连续多张画面中指定物体内容的位置后,再分别检测多个子区域中出现指定物体内容最多的子区域,作为目标子区域,以将目标子区域以外的子区域作为可以显示提示内容的区域。可选的,可以将指定物体内容的位置分别与多个子区域的覆盖范围进行比对,若指定物体内容的位置落在某个子区域的范围内,确定该子区域出现有指定物体内容。As a method of estimation, the area of the screen currently available for displaying content can be divided into multiple sub-areas in advance. After obtaining the position of the specified object content in multiple consecutive pictures displayed on the application interface, the sub-region with the most specified object content among the multiple sub-regions is detected as the target sub-region, and the sub-region other than the target sub-region is used as the target sub-region. An area where prompt content can be displayed. Optionally, the location of the specified object content can be compared with the coverage of multiple sub-regions respectively. If the location of the specified object content falls within the range of a certain sub-region, it is determined that the specified object content appears in the sub-region.
可选的,若每个子区域中对应出现的指定物体内容的数量相同,电子设备也可以基于多种方式来确定哪些子区域可以用于显示提示内容。可选的,还可以结合指定物体内容的规避等级来确 定具体可以在哪个子区域显示提示内容。其中,对应的规避等级越高的指定物体内容相比规避等级更低的指定物体内容更需要进行规避。Optionally, if the number of corresponding designated object contents appearing in each sub-region is the same, the electronic device can also determine which sub-regions can be used to display prompt content based on multiple methods. Optionally, the avoidance level of the specified object content can also be combined to determine in which sub-area the prompt content can be displayed. Among them, the corresponding designated object content with a higher avoidance level needs to be avoided more than the designated object content with a lower avoidance level.
例如,以应用界面为游戏界面为例,在游戏界面中指定物体内容可以包括游戏信息栏、游戏人物以及操作按钮等。其中,游戏信息栏用于显示实时的游戏信息,例如,对战信息以及人物属性信息等。其中,若游戏信息栏被遮挡,那么用户可能只是无法了解当前最新的一些信息,并不影响用户继续关注游戏人物的位置或者动向,但是,若游戏人物和操作按钮被遮挡,则可能会造成用户无法正常的进行游戏。可选的,在游戏界面中,游戏人物以及操作按钮的规避等级可以高于游戏信息栏的规避等级。再例如,以应用界面为视频界面为例,在视频界面中所包括的指定物体内容可以包括视频人物以及建筑物等。可以理解的是,在视频中,用户更加关注的是视频人物的状态以及动向,所以,在应用界面为视频界面的情况下,视频人物对应的规避等级可以高于建筑物对应的规避等级。For example, assuming that the application interface is a game interface, the specified object content in the game interface may include a game information bar, game characters, operation buttons, etc. Among them, the game information bar is used to display real-time game information, such as battle information and character attribute information. Among them, if the game information bar is blocked, then the user may not be able to understand some of the latest information, which does not affect the user to continue to pay attention to the position or movement of the game characters. However, if the game characters and operation buttons are blocked, it may cause the user to Unable to play the game normally. Optionally, in the game interface, the avoidance level of game characters and operation buttons can be higher than the avoidance level of the game information bar. As another example, taking the application interface as a video interface, the specified object content included in the video interface may include video characters, buildings, etc. It is understandable that in videos, users pay more attention to the status and movements of video characters. Therefore, when the application interface is a video interface, the avoidance level corresponding to the video character can be higher than the avoidance level corresponding to the building.
在每个子区域中对应出现的指定物体内容的数量相同的情况下,可以再获取每个子区域对应的规避等级总和,然后将规避等级总和最高的子区域作为目标子区域,进而将目标子区域以外的区域作为可以显示提示内容的区域。其中,子区域对应的规避等级总和可以为子区域中所出现的指定物体内容各自对应的规避等级之和。When the number of corresponding specified object contents appearing in each sub-area is the same, the sum of the avoidance levels corresponding to each sub-area can be obtained, and then the sub-area with the highest sum of avoidance levels is used as the target sub-area, and then the sub-areas outside the target sub-area are The area is used as the area where prompt content can be displayed. Wherein, the sum of avoidance levels corresponding to the sub-region may be the sum of the avoidance levels corresponding to the contents of specified objects appearing in the sub-region.
示例性的,若电子设备在接收到消息后,连续获取应用界面所显示多张画面中的指定物体内容的位置包括图18中指定物体内容1、指定物体内容2以及指定物体内容3,其中,电子设备可以基于图18中的虚线将屏幕划分为子区域71和子区域72。并且,如图18中所示,子区域71中的指定物体内容的数量为3个,子区域72中的指定物体内容的数量为0个,则电子设备可以将子区域71作为目标区域,进而将目标区域以外的区域(即子区域72)作为可以显示提示内容的区域。再例如,如图19所示,在图19所示的情况下,子区域71和子区域72中均有两个指定物体内容,但是子区域71对应的规避等级总和(避等级总和为4)高于子区域72对应的规避等级总和(避等级总和为2),进而会将子区域71作为目标区域,将目标区域以外的区域(即子区域72)作为可以显示提示内容的区域。For example, after receiving the message, if the electronic device continuously obtains the positions of the specified object content in multiple pictures displayed on the application interface, including the specified object content 1, the specified object content 2 and the specified object content 3 in Figure 18, where, The electronic device may divide the screen into sub-areas 71 and sub-areas 72 based on the dotted lines in FIG. 18 . Moreover, as shown in FIG. 18 , the number of designated object contents in sub-region 71 is 3, and the number of designated object contents in sub-region 72 is 0, then the electronic device can use sub-region 71 as the target region, and then The area outside the target area (ie, the sub-area 72) is regarded as an area where prompt content can be displayed. For another example, as shown in Figure 19, in the situation shown in Figure 19, there are two designated object contents in both sub-region 71 and sub-region 72, but the sum of avoidance levels corresponding to sub-region 71 (the sum of avoidance levels is 4) is high. The sum of the avoidance levels corresponding to the sub-area 72 (the sum of the avoidance levels is 2), furthermore, the sub-area 71 is used as the target area, and the area outside the target area (ie, the sub-area 72) is used as an area where prompt content can be displayed.
作为另外一种方式,基于所述显示内容确定显示位置,在所述显示位置悬浮显示提示内容,包括:基于所显示内容的图像类型确定显示位置,并在所述显示位置悬浮显示提示内容,所述图像类别包括游戏类别、视频类别或者图文类别。As another way, determining the display position based on the display content, and displaying the prompt content in a floating manner at the display position includes: determining the display position based on the image type of the displayed content, and displaying the prompt content in a floating manner at the display position, so The image categories include game categories, video categories or graphic and text categories.
S330:响应作用于所述提示内容的触控操作,悬浮显示消息内容,所述消息内容包括所述消息的至少部分内容。S330: In response to the touch operation on the prompt content, the message content is suspended and displayed, and the message content includes at least part of the content of the message.
S340:在检测到作用于所述消息内容的触控操作的情况下,悬浮显示消息回复控件。S340: When a touch operation on the message content is detected, display the message reply control in a floating manner.
S350:获取从所述消息回复控件输入的回复消息,并将所述回复消息通过所述消息来源平台发送给所述发送方。S350: Obtain the reply message input from the message reply control, and send the reply message to the sender through the message source platform.
本实施例提供的一种消息回复方法,在基于全屏模式显示应用界面的情况下,若接收到消息,在所述电子设备的屏幕中的舒适操作区域显示提示内容。若有作用于所述提示内容的触控操作,则对该触控操作进行响应以在应用界面上悬浮显示包括该消息的至少部分内容的消息内容。在检测到作用于所述消息内容的触控操作的情况下,悬浮显示消息回复控件;获取从所述消息回复控件输入的回复消息,并将所述回复消息通过所述消息来源平台发送给所述发送方。并且,在本实施例中,还可以结合全屏显示的应用界面本身的显示内容来确定提示内的显示位置,从而使得提示内容的显示更加灵活性,也具有更好适应性。This embodiment provides a message reply method. When an application interface is displayed in full-screen mode, if a message is received, prompt content is displayed in a comfortable operation area on the screen of the electronic device. If there is a touch operation that acts on the prompt content, respond to the touch operation to display message content including at least part of the message in a floating manner on the application interface. When a touch operation on the message content is detected, the message reply control is displayed in a floating manner; the reply message input from the message reply control is obtained, and the reply message is sent to the message source platform through the message source platform. Describe the sender. Moreover, in this embodiment, the display position within the prompt can also be determined in combination with the display content of the full-screen application interface itself, thereby making the display of the prompt content more flexible and better adaptable.
请参阅图20,图20所示为本申请一实施例提出的一种消息回复方法的流程图,该方法包括:Please refer to Figure 20. Figure 20 shows a flow chart of a message reply method proposed by an embodiment of the present application. The method includes:
S410:在应用界面处于前台显示的情况下,若接收到消息,在所述电子设备的屏幕中的舒适操作区域显示提示内容,所述舒适操作区域为用户保持当前握姿可触控到的区域,所述提示内容包括表示所述消息的发送方以及消息来源平台的相关信息。S410: When the application interface is displayed in the foreground, if a message is received, prompt content is displayed in the comfortable operation area on the screen of the electronic device. The comfortable operation area is the area that the user can touch while maintaining the current holding posture. , the prompt content includes relevant information indicating the sender of the message and the platform from which the message originated.
S420:响应作用于所述提示内容的触控操作,悬浮显示消息内容,所述消息内容包括所述消息的至少部分内容。S420: In response to the touch operation on the prompt content, the message content is suspended and displayed, and the message content includes at least part of the content of the message.
S430:在检测到作用于所述消息内容的触控操作的情况下,悬浮显示消息回复控件。S430: When a touch operation on the message content is detected, display the message reply control in a floating manner.
S440:获取从所述消息回复控件输入的回复消息,并将所述回复消息通过所述消息来源平台发送给所述发送方。S440: Obtain the reply message input from the message reply control, and send the reply message to the sender through the message source platform.
S450:若在指定时间段内没有作用于所述提示内容触控操作,缩小所述提示内容所占用的显示区域。S450: If there is no touch operation on the prompt content within the specified time period, reduce the display area occupied by the prompt content.
示例性的,如图21所示,在提示内容被悬浮显示后的指定时间段内没有作用于提示内容的触控操作,则会对提示内容中的部分内容进行隐藏以缩小所述提示内容所占用的显示区域,从而使 得在用户不急于对所接收到的消息,或者不方便对所接收到的消息进行回复的情况,可以避免提示内容对应用界面造成视觉干扰。For example, as shown in Figure 21, if there is no touch operation on the prompt content within a specified period of time after the prompt content is suspended and displayed, part of the content in the prompt content will be hidden to reduce the size of the prompt content. The occupied display area can prevent the prompt content from causing visual interference to the application interface when the user is not in a hurry to reply to the received message or is inconvenient to reply to the received message.
如前述内容可知,应用界面的类别可以是多种的,对应的,应用界面中的显示内容对应是可以有多种的。在本申请实施例中,对于不同的显示内容,电子设备所配置的指定时间段的长度可以是相同的,也可以是针对不同的显示内容而具有专门的适应性。可选的,本申请实施例提供的方法还包括:基于应用界面中所显示内容确定指定时间段的长度。需要说明的是,不同的应用界面所显示的内容是会有所不同的,对应的,用户对不同的显示内容的关注度也可能是会不同的。例如,在用户玩游戏的情况下,因为游戏过程中的突发情况会比较多,所以用户对游戏界面的关注程度是会非常高的。再例如,在用户观看视频的情况下,因为视频所显示的内容并不需要用户进行干预,而是仅仅是观看即可,所以用户可能会在观看视频的过程中,还会做一些其他的事务,所以用户对视频界面的关注程度并没有游戏界面那么高。可选的,在基于应用界面的显示内容来确定指定时间长度的这种方式中,电子设备可以获取显示内容对应的关注程度,若关注程度越高那么所对应的指定时间长度会越短,以便可以在应用界面显示需要用户高度关注的内容的情况下,减小提示内容对用户的干扰。As can be seen from the foregoing content, there can be many types of application interfaces, and correspondingly, there can be many types of corresponding display contents in the application interface. In the embodiment of the present application, the length of the designated time period configured by the electronic device may be the same for different display contents, or may have special adaptability for different display contents. Optionally, the method provided by the embodiment of the present application also includes: determining the length of the specified time period based on the content displayed in the application interface. It should be noted that the content displayed by different application interfaces will be different, and accordingly, the user's attention to different displayed content may also be different. For example, when a user is playing a game, there will be many emergencies during the game, so the user will pay very high attention to the game interface. For another example, when a user watches a video, because the content displayed in the video does not require the user's intervention, but can only be watched, the user may also do some other things while watching the video. , so users do not pay as much attention to the video interface as to the game interface. Optionally, in this method of determining the designated time length based on the displayed content of the application interface, the electronic device can obtain the attention level corresponding to the displayed content. If the attention level is higher, the corresponding designated time length will be shorter, so that When the application interface displays content that requires the user's high attention, the interference of the prompt content to the user can be reduced.
作为一种方式,在电子设备中可以存储有显示内容与关注程度之间的对应关系。从而使得在需要获取显示内容对应的关注程度时,通过查询该对应关系来得到当前的应用界面的显示内容所对应的关注程度。示例性的,所建立的对应关系可以包括显示内容A对应关注程度d1,显示内容B对应关注程度d2,显示内容C对应关注程度d3。在这种情况下,若获取到显示内容为显示内容B,则可以获取到对应的关注程度为d2。As a method, the correspondence between the display content and the degree of attention may be stored in the electronic device. Therefore, when it is necessary to obtain the degree of attention corresponding to the displayed content, the degree of attention corresponding to the displayed content of the current application interface can be obtained by querying the corresponding relationship. For example, the established correspondence may include displaying content A corresponding to the degree of attention d1, displaying content B corresponding to the degree of attention d2, and displaying content C corresponding to the degree of attention d3. In this case, if the obtained display content is display content B, then the corresponding attention level can be obtained as d2.
可选的,在本申请实施例中,电子设备可以直接基于全屏模式显示的应用界面所属应用程序来确定应用界面的显示内容。例如,若应用界面所属应用程序为游戏程序,那么则可以确定应用界面的显示内容为游戏界面内容。若应用界面所属应用程序为视频程序,则可以确定应用界面的显示内容为视频界面内容。若应用界面所属应用程序为会议程序,则可以确定应用界面的显示内容为图文界面内容。另外,对于同一个应用程序而言,也是可以显示多种类型的应用界面。例如,对于游戏程序而言,除了可以显示游戏界面外,也可以显示视频界面(例如,游戏直播界面)等。因此,为了更为准确的确定应用界面的显示内容,还可以根据应用界面中所加载的控件类型来确定显示内容。例如,若应用界面中只加载有视频显示控件,那么可以确定应用界面的显示内容为视频画面内容。若应用界面中加载有视频显示控件以及供用户进行触控的控件,则确定应用界面的显示内容为游戏画面内容。若应用界面中加载有控制音频采集以及控制视频采集的控件,则确定应用界面的显示内容问图文界面内容。Optionally, in this embodiment of the present application, the electronic device can directly determine the display content of the application interface based on the application program to which the application interface displayed in full-screen mode belongs. For example, if the application program to which the application interface belongs is a game program, then it can be determined that the displayed content of the application interface is the game interface content. If the application program to which the application interface belongs is a video program, it can be determined that the displayed content of the application interface is the video interface content. If the application program to which the application interface belongs is a conference program, it can be determined that the display content of the application interface is graphic interface content. In addition, for the same application, multiple types of application interfaces can be displayed. For example, for a game program, in addition to displaying a game interface, a video interface (for example, a game live broadcast interface) can also be displayed. Therefore, in order to more accurately determine the display content of the application interface, the display content can also be determined according to the type of controls loaded in the application interface. For example, if only the video display control is loaded in the application interface, it can be determined that the display content of the application interface is the video screen content. If the application interface is loaded with video display controls and controls for users to touch, it is determined that the display content of the application interface is game screen content. If the application interface is loaded with controls for controlling audio collection and controlling video collection, determine the display content of the application interface and the content of the graphic and text interface.
作为另外一种方式,电子设备也可以直接建立显示内容与指定时间段的长度之间的对应关系。从而使得电子设备直接根据显示内容来确定对应的指定时间段的长度。As another method, the electronic device can also directly establish a correspondence between the displayed content and the length of the specified time period. This allows the electronic device to directly determine the length of the corresponding designated time period based on the displayed content.
在缩小提示内容所占用的显示区域后,用户还可以通过作用于缩小后的提示内容的触控操作,触发提示内容恢复到缩小之前的显示状态。该触发提示内容恢复缩小之前的显示状态的触控操作可以为点击操作,也可以为拖拽操作等。After reducing the display area occupied by the prompt content, the user can also trigger the prompt content to return to the display state before reduction through a touch operation on the reduced prompt content. The touch operation that triggers the prompt content to restore the display state before reduction can be a click operation, a drag operation, etc.
本实施例提供的一种消息回复方法,从而通过上述方式使得,在电子设备通过全屏模式显示应用界面的情况下,并在该应用界面上悬浮显示包括消息的发送方以及消息来源平台的提示内容的情况下,可以通过直接对该提示内容作出触控操作而触发在应用界面悬浮显示消息回复控件,以便直接通过该消息回复控件对所接收到的消息进行回复,进而使得可以不用退出当前正在基于全屏模式显示的应用界面,就可以对消息进行查看以及回复,提升了在全屏显示应用界面的过程中,对消息回复的便利性。再者,在本实施例中,可以在提示内容被显示之后的指定时间段内没有被触控的情况下,对提示内容所占用的显示区域进行缩小以免对用户造成干扰。This embodiment provides a message reply method, so that in the above manner, when the electronic device displays the application interface in full-screen mode, prompt content including the sender of the message and the message source platform are displayed suspended on the application interface. In this case, you can directly touch the prompt content to trigger the floating display of the message reply control on the application interface, so that you can directly reply to the received message through the message reply control, thereby eliminating the need to exit the current process based on When the application interface is displayed in full-screen mode, you can view and reply to messages, which improves the convenience of replying to messages when the application interface is displayed in full-screen mode. Furthermore, in this embodiment, when the prompt content is not touched within a specified period of time after the prompt content is displayed, the display area occupied by the prompt content can be reduced to avoid disturbing the user.
请参阅图22,图22所示为本申请一实施例提出的一种消息回复装置600的结构框图,该装置600包括:Please refer to Figure 22. Figure 22 shows a structural block diagram of a message reply device 600 proposed by an embodiment of the present application. The device 600 includes:
消息提示单元610,用于在应用界面处于前台显示的情况下,若接收到消息,在所述电子设备的屏幕中的舒适操作区域显示提示内容,所述舒适操作区域为用户保持当前握姿可触控到的区域,所述提示内容包括表示所述消息的发送方以及消息来源平台的相关信息。The message prompt unit 610 is configured to display prompt content in a comfortable operation area on the screen of the electronic device when the application interface is displayed in the foreground. The comfortable operation area allows the user to maintain the current holding posture. In the touched area, the prompt content includes relevant information indicating the sender of the message and the platform from which the message originated.
消息内容显示单元620,用于响应作用于所述提示内容的触控操作,悬浮显示消息内容,所述消息内容包括所述消息的至少部分内容。The message content display unit 620 is configured to suspend and display message content in response to a touch operation acting on the prompt content, where the message content includes at least part of the content of the message.
控件显示单元630,用于在检测到作用于所述消息内容的触控操作的情况下,悬浮显示消息回复控件。The control display unit 630 is configured to display a message reply control in a floating manner when a touch operation acting on the message content is detected.
消息回复单元640,用于获取从所述消息回复控件输入的回复消息,并将所述回复消息通过所 述消息来源平台发送给所述发送方。The message reply unit 640 is used to obtain the reply message input from the message reply control, and send the reply message to the sender through the message source platform.
作为一种方式,所述消息回复控件包括消息显示控件以及输入方式选择控件。在这种方式中,消息回复单元640,具体用于基于对所述输入方式选择控件的输入选择操作确定目标输入方式,并显示所述目标输入方式对应的输入控件;As a way, the message reply control includes a message display control and an input mode selection control. In this way, the message reply unit 640 is specifically configured to determine the target input mode based on the input selection operation of the input mode selection control, and display the input control corresponding to the target input mode;
获取通过所述输入控件输入的消息作为回复消息,并在所述消息显示控件中显示所述回复消息,以将所述回复消息发送给所述发送方。Obtain the message input through the input control as a reply message, and display the reply message in the message display control to send the reply message to the sender.
可选的,消息回复单元640,具体用于响应于触控物作用于所述输入方式选择控件的触控操作,显示多个输入方式图标;将所述触控物作用所述触控操作后所滑动到的位置对应的输入方式图标,作为目标输入方式图标;将所述目标输入方式图标对应的输入方式作为目标输入方式,显示所述目标输入方式对应的输入控件。Optionally, the message reply unit 640 is specifically configured to display multiple input mode icons in response to the touch operation of the touch object acting on the input mode selection control; after the touch object acts on the touch operation The input mode icon corresponding to the slid position is used as the target input mode icon; the input mode corresponding to the target input mode icon is used as the target input mode, and the input control corresponding to the target input mode is displayed.
作为一种方式,消息提示单元610,具体用于在基于全屏模式显示应用界面的情况下,若接收到消息,获取所述应用界面所对应的显示内容;As a method, the message prompt unit 610 is specifically used to obtain the display content corresponding to the application interface when a message is received when the application interface is displayed in full-screen mode;
基于所述显示内容确定显示位置,在所述显示位置悬浮显示提示内容。可选的,消息提示单元610,具体用于获取所述显示内容中指定物体内容的位置,所述指定物体内容为用户所关注内容;在所述指定物体内容的位置以外的区域中确定显示位置,在所述显示位置悬浮显示提示内容。可选的,消息提示单元610,具体用于对所显示的内容进行图像识别;若识别到有指定物体内容,则获取所述指定物体内容的位置;若未识别到有指定物体内容,在默认位置显示提示内容。A display position is determined based on the display content, and prompt content is displayed in suspension at the display position. Optionally, the message prompt unit 610 is specifically used to obtain the position of the specified object content in the displayed content, and the specified object content is the content that the user is concerned about; and determine the display position in an area other than the position of the specified object content. , and the prompt content is displayed in a floating manner at the display position. Optionally, the message prompt unit 610 is specifically used to perform image recognition on the displayed content; if the specified object content is recognized, the location of the specified object content is obtained; if the specified object content is not recognized, by default The location shows the prompt content.
可选的,消息提示单元610,具体用于检测基于全屏模式显示的应用界面所属应用程序是否提供有数据接口;若有所述数据接口,通过所述数据接口获取所述显示内容是否有指定物体内容;若识别到有指定物体内容,则获取所述指定物体内容的位置;若没有所述数据接口,执行所述对所显示的内容进行图像识别。Optionally, the message prompt unit 610 is specifically used to detect whether the application program to which the application interface displayed based on full-screen mode provides a data interface; if there is the data interface, obtain whether the display content has a specified object through the data interface. content; if the specified object content is recognized, the location of the specified object content is obtained; if there is no said data interface, the image recognition of the displayed content is performed.
作为另外一种方式,消息回复单元640,具体用于基于所显示内容的图像类型确定显示位置,并在所述显示位置悬浮显示提示内容,所述图像类别包括游戏类别、视频类别或者图文类别。As another way, the message reply unit 640 is specifically configured to determine the display position based on the image type of the displayed content, and suspend and display the prompt content at the display position. The image category includes a game category, a video category, or a graphic category. .
作为一种方式,消息提示单元610,具体用于在应用界面处于前台显示的情况下,若接收到消息,在所述电子设备的屏幕中的舒适操作区域显示提示内容,所述舒适操作区域为用户保持当前握姿可触控到的区域之后,若在指定时间段内没有作用于所述提示内容触控操作,缩小所述提示内容所占用的显示区域。可选的,消息提示单元610,具体用于基于所述应用界面中所显示内容确定所述指定时间段的长度。As a way, the message prompt unit 610 is specifically used to display prompt content in a comfortable operation area on the screen of the electronic device when a message is received when the application interface is displayed in the foreground. The comfortable operation area is After the user maintains the touchable area of the current grip posture, if there is no touch operation on the prompt content within a specified period of time, the display area occupied by the prompt content is reduced. Optionally, the message prompt unit 610 is specifically configured to determine the length of the specified time period based on the content displayed in the application interface.
本实施例提供的一种消息回复装置,从而通过上述方式使得,在应用界面处于前台显示的情况下可以在接收到消息的时候在屏幕的舒适操作区域显示提示内容,从而使得用户不用改变握姿就可以触控到该提示内容,降低了对用户的干扰。再者,可以通过直接对该提示内容作出触控操作而触发在应用界面悬浮显示消息回复控件,以便直接通过该消息回复控件对所接收到的消息进行回复,进而使得可以不用退出当前正在基于全屏模式显示的应用界面,就可以对消息进行查看以及回复,提升了在全屏显示应用界面的过程中,对消息回复的便利性。This embodiment provides a message reply device, so that through the above method, when the application interface is displayed in the foreground, prompt content can be displayed in the comfortable operation area of the screen when a message is received, so that the user does not need to change the grip posture. The prompt content can be touched by touch, reducing interference to the user. Furthermore, you can directly touch the prompt content to trigger the floating display of the message reply control on the application interface, so that you can directly reply to the received message through the message reply control, thereby eliminating the need to exit the current full-screen application. With the application interface displayed in mode, you can view and reply to messages, which improves the convenience of replying to messages while displaying the application interface in full screen.
需要说明的是,本申请中装置实施例与前述方法实施例是相互对应的,装置实施例中具体的原理可以参见前述方法实施例中的内容,此处不再赘述。It should be noted that the device embodiments in this application correspond to the foregoing method embodiments. For specific principles in the device embodiments, please refer to the content in the foregoing method embodiments, which will not be described again here.
下面将结合图23对本申请提供的一种电子设备进行说明。An electronic device provided by this application will be described below with reference to FIG. 23 .
请参阅图23,基于上述的消息回复方法、装置,本申请实施例还提供的另一种可以执行前述消息回复方法的电子设备200。电子设备200包括相互耦合的一个或多个(图中仅示出一个)处理器102、存储器104、网络模块106以及传感器模块108。其中,该存储器104中存储有可以执行前述实施例中内容的程序,而处理器102可以执行该存储器104中存储的程序。Please refer to Figure 23. Based on the above message reply method and device, another electronic device 200 that can perform the foregoing message reply method is provided in an embodiment of the present application. Electronic device 200 includes one or more (only one is shown) processors 102, memory 104, network modules 106, and sensor modules 108 coupled to each other. The memory 104 stores programs that can execute the content in the aforementioned 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中,单独通过一块通信芯片进行实现。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 by running or executing instructions, programs, code sets or instruction sets stored in the memory 104, and calling data stored in the memory 104. Various functions and processing data of the electronic device 200. Optionally, the processor 102 may use 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 hardware form. The processor 102 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a modem, etc. Among them, the CPU mainly handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the display content; and the modem is used to handle wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 102 and may be implemented solely through a communication chip.
存储器104可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器104可用于存储指令、程序、代码、代码集或指令集。例如,存储器 104中可以存储有内容显示装置。该内容显示装置可以为前述的装置600。存储器104可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 104 may include random access memory (RAM) or read-only memory (Read-Only Memory). Memory 104 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. For example, the memory 104 may store a content display device. The content display device may be the aforementioned device 600. The memory 104 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing each of the following method embodiments, etc. The storage data area can also store data created during use of the terminal 100 (such as phone book, audio and video data, chat record data), etc.
所述网络模块106用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯,例如和音频播放设备进行通讯。所述网络模块106可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。所述网络模块106可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。例如,网络模块106可以与基站进行信息交互。The network module 106 is used to receive and send electromagnetic waves, realize mutual conversion of electromagnetic waves and electrical signals, and thereby communicate with a communication network or other devices, such as communicating with an audio playback device. 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, memories, etc. . The network module 106 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices through a wireless network. The above-mentioned wireless network may include a cellular telephone network, a wireless local area network or a metropolitan area network. For example, the network module 106 can interact with base stations for information.
传感器模块108可以包括至少一种传感器。具体地,传感器模块108可包括但并不限于:光传感器、运动传感器、压力传感器、红外热传感器、距离传感器、加速度传感器、以及其他传感器。 Sensor module 108 may include at least one sensor. Specifically, the sensor module 108 may include, but is not limited to: light sensors, motion sensors, pressure sensors, infrared heat sensors, distance sensors, acceleration sensors, and other sensors.
其中,压力传感器可以检测由按压在电子设备200产生的压力的传感器。即,压力传感器检测由用户和电子设备之间的接触或按压产生的压力,例如由用户的耳朵与移动终端之间的接触或按压产生的压力。因此,压力传感器可以用来确定在用户与电子设备200之间是否发生了接触或者按压,以及压力的大小。Among them, the pressure sensor may be a sensor that detects pressure generated by pressing on the electronic device 200 . That is, the pressure sensor detects pressure generated by contact or pressing between the user and the electronic device, for example, pressure generated by contact or pressing between the user's ear and the mobile terminal. Therefore, the pressure sensor can be used to determine whether contact or pressure has occurred between the user and the electronic device 200, as well as the amount of pressure.
其中,加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别所述电子设备200姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。另外,所述电子设备200还可配置陀螺仪、气压计、湿度计、温度计等其他传感器,在此不再赘述,Among them, the acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), can detect the magnitude and direction of gravity when stationary, and can be used to identify applications of the posture of the electronic device 200 (such as horizontal and vertical screen switching, related games, Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc. In addition, the electronic device 200 can also be configured with other sensors such as a gyroscope, barometer, hygrometer, and thermometer, which will not be described again here.
请参考图24,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to Figure 24, which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program code is stored in the computer-readable medium 800, and the program code can be called by the processor to execute the method described in the above method embodiment.
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。Computer-readable storage medium 800 may be 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 non-transitory computer-readable storage medium. The computer-readable storage medium 800 has storage space for program code 810 that performs any method steps in the above-described 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.
本申请提供的一种消息回复方法、装置、电子设备及存储介质,在基于全屏模式显示应用界面的情况下,若接收到消息,在所述电子设备的屏幕中的舒适操作区域显示提示内容。若有作用于所述提示内容的触控操作,则对该触控操作进行响应以在应用界面上悬浮显示包括该消息的至少部分内容的消息内容。在检测到作用于所述消息内容的触控操作的情况下,悬浮显示消息回复控件;获取从所述消息回复控件输入的回复消息,并将所述回复消息通过所述消息来源平台发送给所述发送方。This application provides a message reply method, device, electronic device and storage medium. When an application interface is displayed in full-screen mode, if a message is received, prompt content is displayed in a comfortable operation area on the screen of the electronic device. If there is a touch operation that acts on the prompt content, respond to the touch operation to display message content including at least part of the message in a floating manner on the application interface. When a touch operation on the message content is detected, the message reply control is displayed in a floating manner; the reply message input from the message reply control is obtained, and the reply message is sent to the message source platform through the message source platform. Describe the sender.
从而通过上述方式使得,在应用界面处于前台显示的情况下可以在接收到消息的时候在屏幕的舒适操作区域显示提示内容,从而使得用户不用改变握姿就可以触控到该提示内容,降低了对用户的干扰。再者,可以通过直接对该提示内容作出触控操作而触发在应用界面悬浮显示消息回复控件,以便直接通过该消息回复控件对所接收到的消息进行回复,进而使得可以不用退出当前正在基于全屏模式显示的应用界面,就可以对消息进行查看以及回复,提升了在全屏显示应用界面的过程中,对消息回复的便利性。Therefore, through the above method, when the application interface is displayed in the foreground, the prompt content can be displayed in the comfortable operating area of the screen when a message is received, so that the user can touch the prompt content without changing the holding posture, which reduces the cost. Interference to users. Furthermore, you can directly touch the prompt content to trigger the floating display of the message reply control on the application interface, so that you can directly reply to the received message through the message reply control, thereby eliminating the need to exit the current full-screen application. With the application interface displayed in mode, you can view and reply to messages, which improves the convenience of replying to messages while displaying the application interface in full screen.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, reference to the terms "one embodiment," "some embodiments," "an example," "specific examples," or "some examples" or the like means that specific features are described in connection with the embodiment or example. , structures, materials or features are included in at least one embodiment or example of the present application. In this specification, the schematic expressions of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and combine different embodiments or examples and features of different embodiments or examples described in this specification unless they are inconsistent with each other.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms “first” and “second” are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Therefore, features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of this application, "plurality" means at least two, such as two, three, etc., unless otherwise expressly and specifically limited.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application, but not to limit it; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent substitutions are made to some of the technical features; however, these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions in the embodiments of the present application.
Claims (20)
- 一种消息回复方法,其特征在于,应用于电子设备,所述方法包括:A message reply method, characterized in that it is applied to electronic devices, and the method includes:在应用界面处于前台显示的情况下,若接收到消息,在所述电子设备的屏幕中的舒适操作区域显示提示内容,所述舒适操作区域为用户保持当前握姿可触控到的区域,所述提示内容包括表示所述消息的发送方以及消息来源平台的相关信息;When the application interface is displayed in the foreground, if a message is received, the prompt content is displayed in the comfortable operation area on the screen of the electronic device. The comfortable operation area is the area that the user can touch while maintaining the current holding posture, so The content of the prompt includes relevant information indicating the sender of the message and the platform from which the message originated;响应作用于所述提示内容的触控操作,悬浮显示消息内容,所述消息内容包括所述消息的至少部分内容;In response to a touch operation acting on the prompt content, message content is displayed in suspension, and the message content includes at least part of the content of the message;在检测到作用于所述消息内容的触控操作的情况下,悬浮显示消息回复控件;When a touch operation acting on the message content is detected, display the message reply control in a floating manner;获取从所述消息回复控件输入的回复消息,并将所述回复消息通过所述消息来源平台发送给所述发送方。Obtain the reply message input from the message reply control, and send the reply message to the sender through the message source platform.
- 根据权利要求1所述的方法,其特征在于,所述消息回复控件包括消息显示控件以及输入方式选择控件,所述获取从所述消息回复控件输入的回复消息,并将所述回复消息通过所述消息来源平台发送给所述发送方,包括:The method according to claim 1, characterized in that the message reply control includes a message display control and an input mode selection control, and the reply message input from the message reply control is obtained and the reply message is passed through the The above message source platform sends it to the sender, including:基于对所述输入方式选择控件的输入选择操作确定目标输入方式,并显示所述目标输入方式对应的输入控件;Determine a target input mode based on the input selection operation on the input mode selection control, and display the input control corresponding to the target input mode;获取通过所述输入控件输入的消息作为回复消息,并在所述消息显示控件中显示所述回复消息,以将所述回复消息发送给所述发送方。Obtain the message input through the input control as a reply message, and display the reply message in the message display control to send the reply message to the sender.
- 根据权利要求2所述的方法,其特征在于,所述基于对所述输入方式选择控件的输入选择操作确定目标输入方式,并显示所述目标输入方式对应的输入控件,包括;The method of claim 2, wherein determining a target input mode based on an input selection operation on the input mode selection control and displaying an input control corresponding to the target input mode includes;响应于触控物作用于所述输入方式选择控件的触控操作,显示多个输入方式图标;In response to the touch operation of the touch object acting on the input mode selection control, multiple input mode icons are displayed;将所述触控物作用所述触控操作后所滑动到的位置对应的输入方式图标,作为目标输入方式图标;Use the input mode icon corresponding to the position to which the touch object slides after the touch operation is performed as the target input mode icon;将所述目标输入方式图标对应的输入方式作为目标输入方式,显示所述目标输入方式对应的输入控件。The input mode corresponding to the target input mode icon is used as the target input mode, and the input control corresponding to the target input mode is displayed.
- 根据权利要求1所述的方法,其特征在于,所述在应用界面处于前台显示的情况下,若接收到消息,在所述电子设备的屏幕中的舒适操作区域显示提示内容,所述舒适操作区域为用户保持当前握姿可触控到的区域,包括:The method according to claim 1, characterized in that, when the application interface is displayed in the foreground, if a message is received, prompt content is displayed in a comfortable operation area on the screen of the electronic device, and the comfortable operation The area is the area that the user can touch while maintaining the current grip, including:在基于全屏模式显示应用界面的情况下,若接收到消息,获取所述应用界面所对应的显示内容;When the application interface is displayed based on the full-screen mode, if a message is received, the display content corresponding to the application interface is obtained;基于所述显示内容确定显示位置,在所述显示位置悬浮显示提示内容。A display position is determined based on the display content, and prompt content is displayed in suspension at the display position.
- 根据权利要求4所述的方法,其特征在于,所述基于所述显示内容确定显示位置,在所述显示位置悬浮显示提示内容,包括:The method of claim 4, wherein determining a display position based on the display content and suspending and displaying prompt content at the display position includes:获取所述显示内容中指定物体内容的位置,所述指定物体内容为用户所关注内容;Obtain the position of the specified object content in the displayed content, and the specified object content is the content that the user is concerned about;在所述指定物体内容的位置以外的区域中确定显示位置,在所述显示位置悬浮显示提示内容。A display position is determined in an area other than the position of the specified object content, and the prompt content is displayed in a floating manner at the display position.
- 根据权利要求5所述的方法,其特征在于,所述获取所述显示内容中指定物体内容的位置,包括:The method according to claim 5, characterized in that said obtaining the position of the specified object content in the displayed content includes:对所显示的内容进行图像识别;Perform image recognition of displayed content;若识别到有指定物体内容,则获取所述指定物体内容的位置;If the specified object content is identified, the location of the specified object content is obtained;若未识别到有指定物体内容,在默认位置显示提示内容。If the specified object content is not recognized, the prompt content will be displayed at the default location.
- 根据权利要求6所述的方法,其特征在于,所述对所显示的内容进行图像识别之前还包括:The method according to claim 6, characterized in that, before performing image recognition on the displayed content, it further includes:检测基于全屏模式显示的应用界面所属应用程序是否提供有数据接口;Detect whether the application to which the application interface displayed based on full-screen mode provides a data interface;若有所述数据接口,通过所述数据接口获取所述显示内容是否有指定物体内容;If there is a data interface, obtain whether the displayed content contains specified object content through the data interface;若识别到有指定物体内容,则获取所述指定物体内容的位置;If the specified object content is identified, the location of the specified object content is obtained;若没有所述数据接口,执行所述对所显示的内容进行图像识别。If there is no said data interface, the image recognition of the displayed content is performed.
- 根据权利要求4所述的方法,其特征在于,所述基于所述显示内容确定显示位置,在所述显示位置悬浮显示提示内容,包括:The method of claim 4, wherein determining a display position based on the display content and suspending and displaying prompt content at the display position includes:基于所显示内容的图像类型确定显示位置,并在所述显示位置悬浮显示提示内容,所述图像类别包括游戏类别、视频类别或者图文类别。The display position is determined based on the image type of the displayed content, and the prompt content is displayed in suspension at the display position. The image category includes a game category, a video category, or a graphics and text category.
- 根据权利要求1所述的方法,其特征在于,所述在应用界面处于前台显示的情况下,若接 收到消息,在所述电子设备的屏幕中的舒适操作区域显示提示内容,所述舒适操作区域为用户保持当前握姿可触控到的区域之后还包括:The method according to claim 1, characterized in that, when the application interface is displayed in the foreground, if a message is received, prompt content is displayed in a comfortable operation area on the screen of the electronic device, and the comfortable operation The area is the area that the user can touch while maintaining the current grip, and includes:若在指定时间段内没有作用于所述提示内容触控操作,缩小所述提示内容所占用的显示区域。If there is no touch operation on the prompt content within a specified period of time, the display area occupied by the prompt content is reduced.
- 根据权利要求9所述的方法,其特征在于,所述方法还包括:The method of claim 9, further comprising:基于所述应用界面中所显示内容确定所述指定时间段的长度。The length of the designated time period is determined based on content displayed in the application interface.
- 根据权利要求1-10任一所述的方法,其特征在于,所述在应用界面处于前台显示的情况下,若接收到消息,在所述电子设备的屏幕中的舒适操作区域显示提示内容之前还包括:The method according to any one of claims 1 to 10, characterized in that, when the application interface is displayed in the foreground, if a message is received, the prompt content is displayed in the comfortable operation area on the screen of the electronic device before Also includes:响应触发操作显示舒适区域配置界面;Display the comfort zone configuration interface in response to the trigger operation;获取用户从所述舒适区域配置界面中所选择的区域作为舒适操作区域。Obtain the area selected by the user from the comfort area configuration interface as the comfort operation area.
- 根据权利要求11所述的方法,其特征在于,所述舒适区域配置界面包括有参考控件,所述获取用户从所述舒适区域配置界面中所选择的区域作为舒适操作区域,包括:The method according to claim 11, wherein the comfort zone configuration interface includes a reference control, and obtaining the area selected by the user from the comfort zone configuration interface as the comfort operation area includes:响应于用户对所述参考控件的显示位置进行改变,将所述参考控件所途径的位置组成的区域作为舒适操作区域。In response to the user changing the display position of the reference control, an area consisting of the positions passed by the reference control is used as a comfortable operation area.
- 根据权利要求11所述的方法,其特征在于,所述舒适区域配置界面的尺寸与所述屏幕尺寸相同,所述获取用户从所述舒适区域配置界面中所选择的区域作为舒适操作区域,包括:The method according to claim 11, characterized in that the size of the comfort zone configuration interface is the same as the screen size, and obtaining the area selected by the user from the comfort zone configuration interface as the comfort operation area includes: :在显示所述舒适区域配置界面时,通过触控操作在所述舒适区域配置界面中划分出一区域作为舒适操作区域。When the comfort zone configuration interface is displayed, an area is divided into the comfort zone configuration interface as a comfort operation area through touch operation.
- 根据权利要求1-10任一所述的方法,其特征在于,所述在应用界面处于前台显示的情况下,若接收到消息,在所述电子设备的屏幕中的舒适操作区域显示提示内容之前还包括:The method according to any one of claims 1 to 10, characterized in that, when the application interface is displayed in the foreground, if a message is received, the prompt content is displayed in the comfortable operation area on the screen of the electronic device before Also includes:获取多个用户握持电子设备时的姿态;Obtain the postures of multiple users when holding electronic devices;根据多个用户握持电子设备时,所能在屏幕中所触控到的区域确定舒适操作区域。The comfortable operation area is determined based on the area that multiple users can touch on the screen when holding the electronic device.
- 根据权利要求1-14任一所述的方法,其特征在于,所述在应用界面处于前台显示的情况下,若接收到消息,在所述电子设备的屏幕中的舒适操作区域显示提示内容,包括:The method according to any one of claims 1 to 14, characterized in that, when the application interface is displayed in the foreground, if a message is received, prompt content is displayed in a comfortable operation area on the screen of the electronic device, include:在应用界面处于前台显示的情况下,若接收到消息,检测用户当前是否正在关注屏幕;When the application interface is displayed in the foreground, if a message is received, detect whether the user is currently paying attention to the screen;在检测到用户正在关注屏幕的情况下,触发在所述应用界面上悬浮显示提示内容。When it is detected that the user is paying attention to the screen, prompt content is triggered to be displayed in suspension on the application interface.
- 根据权利要求1-15任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-15, characterized in that the method further includes:在接收到所述消息后,获取所述消息所包括内容的字数;After receiving the message, obtain the word count of the content included in the message;将所述字数与第一字数阈值进行比对;Compare the word count with a first word count threshold;若所述字数小于所述第一阈值,则将所接收到的消息所包括的所有内容均作为消息内容进行显示。If the number of words is less than the first threshold, all content included in the received message is displayed as message content.
- 根据权利要求16所述的方法,其特征在于,所述方法还包括:The method of claim 16, further comprising:若接收到的消息所包括内容的字数大于所述第一字数阈值,则再将接收到的消息所包括内容的字数与第二字数阈值进行比对;If the word count of the content included in the received message is greater than the first word count threshold, then compare the word count of the content included in the received message with the second word count threshold;若接收到的消息所包括的内容的字数小于所述第二字数阈值,则直接截取所接收到的消息中的前面部分内容作为消息内容进行显示,所述前面部分内容可以为排序靠前指定位数的字符。If the word count of the content included in the received message is less than the second word count threshold, the previous part of the content in the received message is directly intercepted and displayed as the message content, and the previous part of the content can be a designated position for the top of the sort. number of characters.
- 一种消息回复装置,其特征在于,运行于电子设备,所述装置包括:A message reply device, characterized in that it runs on electronic equipment, and the device includes:消息提示单元,用于在应用界面处于前台显示的情况下,若接收到消息,在所述电子设备的屏幕中的舒适操作区域显示提示内容,所述舒适操作区域为用户保持当前握姿可触控到的区域,所述提示内容包括表示所述消息的发送方以及消息来源平台的相关信息;A message prompt unit, configured to display prompt content in a comfortable operation area on the screen of the electronic device when a message is received when the application interface is displayed in the foreground. The comfortable operation area is touchable for the user while maintaining the current holding posture. Controlled area, the prompt content includes relevant information indicating the sender of the message and the platform from which the message originated;消息内容显示单元,用于响应作用于所述提示内容的触控操作,悬浮显示消息内容,所述消息内容包括所述消息的至少部分内容;A message content display unit, configured to suspend and display message content in response to a touch operation acting on the prompt content, where the message content includes at least part of the content of the message;控件显示单元,用于在检测到作用于所述消息内容的触控操作的情况下,悬浮显示消息回复控件;A control display unit configured to display a message reply control in a floating manner when a touch operation acting on the message content is detected;消息回复单元,用于获取从所述消息回复控件输入的回复消息,并将所述回复消息通过所述消息来源平台发送给所述发送方。A message reply unit is used to obtain the reply message input from the message reply control, and send the reply message to the sender through the message source platform.
- 一种电子设备,其特征在于,包括一个或多个处理器以及存储器;一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行权利要求1-17任一所述的方法。An electronic device, characterized in that it includes one or more processors and a memory; one or more programs are stored in the memory and configured to execute claims 1-17 by the one or more processors any of the methods described.
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码被处理器运行时执行权利要求1-17任一所述的方法。A computer-readable storage medium, characterized in that program code is stored in the computer-readable storage medium, wherein the method of any one of claims 1-17 is executed when the program code is run by a processor.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210745425.X | 2022-06-27 | ||
CN202210745425.XA CN115061767A (en) | 2022-06-27 | 2022-06-27 | Message reply method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024001119A1 true WO2024001119A1 (en) | 2024-01-04 |
Family
ID=83205083
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/141923 WO2024001119A1 (en) | 2022-06-27 | 2022-12-26 | Message reply method and apparatus, and electronic device and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115061767A (en) |
WO (1) | WO2024001119A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115061767A (en) * | 2022-06-27 | 2022-09-16 | Oppo广东移动通信有限公司 | Message reply method and device and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107395876A (en) * | 2017-07-01 | 2017-11-24 | 珠海格力电器股份有限公司 | Self-adaptive adjusting method and device for screen display content and electronic equipment |
CN111158542A (en) * | 2019-12-18 | 2020-05-15 | 维沃移动通信有限公司 | Message viewing method and electronic equipment |
CN113157155A (en) * | 2018-06-08 | 2021-07-23 | Oppo广东移动通信有限公司 | Buoy display method, device, terminal and storage medium |
WO2021228234A1 (en) * | 2020-05-15 | 2021-11-18 | 北京字节跳动网络技术有限公司 | Method and apparatus for displaying interaction message of application, and readable storage medium |
CN115061767A (en) * | 2022-06-27 | 2022-09-16 | Oppo广东移动通信有限公司 | Message reply method and device and electronic equipment |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105677167A (en) * | 2016-01-05 | 2016-06-15 | 青岛海信移动通信技术股份有限公司 | Notification message display method and device used for intelligent terminal |
CN108540646A (en) * | 2018-03-12 | 2018-09-14 | 广东欧珀移动通信有限公司 | Message prompt method, device, equipment and storage medium |
CN111701239B (en) * | 2020-06-17 | 2024-03-22 | 网易(杭州)网络有限公司 | Message display control method and device in game |
-
2022
- 2022-06-27 CN CN202210745425.XA patent/CN115061767A/en active Pending
- 2022-12-26 WO PCT/CN2022/141923 patent/WO2024001119A1/en unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107395876A (en) * | 2017-07-01 | 2017-11-24 | 珠海格力电器股份有限公司 | Self-adaptive adjusting method and device for screen display content and electronic equipment |
CN113157155A (en) * | 2018-06-08 | 2021-07-23 | Oppo广东移动通信有限公司 | Buoy display method, device, terminal and storage medium |
CN111158542A (en) * | 2019-12-18 | 2020-05-15 | 维沃移动通信有限公司 | Message viewing method and electronic equipment |
WO2021228234A1 (en) * | 2020-05-15 | 2021-11-18 | 北京字节跳动网络技术有限公司 | Method and apparatus for displaying interaction message of application, and readable storage medium |
CN115061767A (en) * | 2022-06-27 | 2022-09-16 | Oppo广东移动通信有限公司 | Message reply method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN115061767A (en) | 2022-09-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111061574B (en) | Object sharing method and electronic device | |
CN108363593B (en) | Application program preloading method and device, storage medium and terminal | |
US11467855B2 (en) | Application preloading method and device, storage medium and terminal | |
CN108062190B (en) | Application running state control method and mobile terminal | |
CN112068762B (en) | Interface display method, device, equipment and medium of application program | |
WO2019029406A1 (en) | Emoji displaying method and apparatus, computer readable storage medium, and terminal | |
US10712936B2 (en) | First electronic device and information processing method applicable to first or second electronic device comprising a first application | |
CN108776599B (en) | Management method and device for preloaded application, storage medium and intelligent terminal | |
CN110609723B (en) | Display control method and terminal equipment | |
CN109491738B (en) | Terminal device control method and terminal device | |
EP3916529A1 (en) | Message sending method, and terminal device | |
CN110445924B (en) | Network task execution method and terminal equipment | |
CN109859307B (en) | Image processing method and terminal equipment | |
CN108647056B (en) | Application program preloading method and device, storage medium and terminal | |
CN110865745A (en) | Screen capturing method and terminal equipment | |
CN110049486B (en) | SIM card selection method and terminal equipment | |
CN111030918B (en) | Message processing method, electronic equipment and server | |
CN110045890B (en) | Application identifier display method and terminal equipment | |
CN108845840A (en) | Management method, device, storage medium and the intelligent terminal of application program sound | |
WO2024001119A1 (en) | Message reply method and apparatus, and electronic device and storage medium | |
WO2022174684A1 (en) | Screen recording method and apparatus, electronic device, and storage medium | |
CN110855549A (en) | Message display method and terminal equipment | |
CN111383175A (en) | Picture acquisition method and electronic equipment | |
CN111399715A (en) | Interface display method and electronic equipment | |
CN111610909B (en) | Screenshot method and device and electronic 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: 22949195 Country of ref document: EP Kind code of ref document: A1 |