CN111884913B - Message prompting method, device, terminal and storage medium - Google Patents
Message prompting method, device, terminal and storage medium Download PDFInfo
- Publication number
- CN111884913B CN111884913B CN202010719308.7A CN202010719308A CN111884913B CN 111884913 B CN111884913 B CN 111884913B CN 202010719308 A CN202010719308 A CN 202010719308A CN 111884913 B CN111884913 B CN 111884913B
- Authority
- CN
- China
- Prior art keywords
- avatar
- preset
- interface
- audio
- message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 86
- 238000004891 communication Methods 0.000 claims abstract description 134
- 238000007667 floating Methods 0.000 claims abstract description 43
- 230000033001 locomotion Effects 0.000 claims description 40
- 230000006870 function Effects 0.000 claims description 26
- 239000000725 suspension Substances 0.000 claims description 22
- 230000004044 response Effects 0.000 claims description 19
- 230000015654 memory Effects 0.000 claims description 16
- 230000000694 effects Effects 0.000 description 16
- 241000282326 Felis catus Species 0.000 description 11
- 230000002093 peripheral effect Effects 0.000 description 10
- 238000012545 processing Methods 0.000 description 10
- 230000001133 acceleration Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 238000004590 computer program Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 5
- 230000003068 static effect Effects 0.000 description 4
- 238000005034 decoration Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 241000270708 Testudinidae Species 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 235000005770 birds nest Nutrition 0.000 description 2
- 239000000919 ceramic Substances 0.000 description 2
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 210000002784 stomach Anatomy 0.000 description 2
- 235000005765 wild carrot Nutrition 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 239000010409 thin film Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/224—Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application provides a message prompting method, a message prompting device, a terminal and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: receiving a communication message; acquiring a first preset virtual image, wherein the first preset virtual image is used for prompting the receiving of a communication message; and suspending and displaying the first preset virtual image on a currently displayed interface. The method ensures that when the communication message is received under the condition that any interface is currently displayed, the first preset virtual image can be displayed in a floating mode on the interface, so that a user can know that the terminal receives the communication message through the first preset virtual image displayed in a floating mode.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a message prompting method, a device, a terminal, and a storage medium.
Background
With the widespread development of computer technology and the widespread application of device interaction, a terminal receives various communication messages, such as short messages, instant communication messages, incoming call requests, etc., and prompts a user when the terminal receives the communication messages. The current prompt mode is to play the prompt audio set by the user. However, the information presentation method is too single and not flexible enough.
Disclosure of Invention
The embodiment of the application provides a message prompting method, a message prompting device, a terminal and a storage medium, and a mode of prompting information for a user is more flexible. The technical scheme is as follows:
in one aspect, a message prompting method is provided, the method includes:
receiving a communication message;
acquiring a first preset virtual image, wherein the first preset virtual image is used for prompting the receiving of a communication message;
and suspending and displaying the first preset virtual image on a currently displayed interface.
In one possible implementation, the receiving a communication message includes: receiving a communication message of any application program;
the suspending display of the first preset avatar on the currently displayed interface comprises the following steps:
and suspending and displaying the first preset virtual image on an application program identifier of the application program.
In one possible implementation manner, the suspending and displaying the first preset avatar on the currently displayed interface includes:
and displaying the first preset virtual image moving according to the moving track in a floating way on the upper layer of the interface.
In one possible implementation manner, before the floating display of the first preset avatar moving according to the movement track at an upper layer of the interface, the method further includes:
And acquiring a preset display position of the first preset virtual image, and determining a movement track corresponding to the preset display position.
In one possible implementation, the first preset avatar includes a background avatar and a body avatar, and the floating display of the first preset avatar moving according to a movement track at an upper layer of the interface includes:
and displaying the main body avatar and the background avatar moving according to the moving track in a floating manner at the upper layer of the interface.
In one possible implementation manner, before the receiving the communication message, the method further includes: suspending and displaying a second preset virtual image on a currently displayed interface;
the suspending display of the first preset avatar on the currently displayed interface comprises the following steps: replacing the second preset avatar with the first preset avatar;
wherein the second preset avatar is a different avatar from the first preset avatar, or the second preset avatar and the first preset avatar belong to different states under the same avatar.
In one possible implementation manner, after the receiving the communication message, the method further includes: acquiring preset prompt audio, wherein the preset prompt audio is used for prompting that a communication message is received;
The suspending display of the first preset avatar on the currently displayed interface comprises the following steps:
and displaying the first preset virtual image in a floating mode on a currently displayed interface, and playing the preset prompt audio.
In one possible implementation, the sender of the communication message is a target user identity; the acquiring a first preset avatar includes:
and acquiring a first preset virtual image corresponding to the target user identifier.
In one possible implementation manner, before the receiving the communication message, the method further includes:
displaying a setting interface, the setting interface including at least one avatar;
and setting the first avatar to a first preset avatar for prompting the reception of a communication message in response to a first setting instruction for the first avatar in the setting interface.
In one possible implementation, the method further includes:
and setting a second avatar in the setting interface as a second preset avatar for decorating the interface in response to a second setting instruction for the second avatar.
In one possible implementation, the method further includes, after the setting the first avatar to the first preset avatar for prompting receipt of the communication message in response to a first setting instruction for the first avatar in the setting interface:
Displaying an audio setting interface;
acquiring input audio through the audio setting interface, and taking the input audio as preset prompting audio for prompting the receiving of a communication message; or,
and acquiring input audio through the audio setting interface, and editing the audio according to the detected editing operation to obtain preset prompting audio for prompting the receiving of the communication message.
In one possible implementation, the method further includes, after the setting the first avatar to the first preset avatar for prompting receipt of the communication message in response to a first setting instruction for the first avatar in the setting interface:
displaying an address book and acquiring a user identifier selected from the address book;
and setting the user identifier as a target user identifier corresponding to the first preset virtual image.
In one possible implementation, the method further includes:
receiving a message notification sent by an operating system through a prompt application program, wherein the message notification is used for notifying that a communication message is received;
the suspending display of the first preset avatar on the currently displayed interface comprises the following steps: and suspending and displaying the first preset virtual image on a currently displayed interface through the prompt application program.
In one possible implementation manner, before the receiving, by the prompting application, the message notification sent by the operating system, the method includes:
when the prompt application detects that the prompt function is started, starting the suspension display permission and the message notification permission of the prompt application;
the suspension display permission refers to permission of suspension display at an interface upper layer, and the message notification permission refers to permission of the prompt application program to monitor message notification sent by the operating system.
In another aspect, there is provided a message prompting apparatus, the apparatus comprising:
a message receiving module configured to receive a communication message;
an avatar acquisition module configured to acquire a first preset avatar for prompting receipt of a communication message;
and the avatar display module is configured to display the first preset avatar in a floating mode on a currently displayed interface.
In one possible implementation, the message receiving module is configured to receive a communication message of any application program;
the avatar display module is configured to hover-display the first preset avatar on an application identifier of the application.
In one possible implementation, the avatar display module is configured to hover-display the first preset avatar moving according to a movement track at an upper layer of the interface.
In one possible implementation, the avatar display module is further configured to obtain a preset display position of the first preset avatar, and determine a movement track corresponding to the preset display position.
In one possible implementation, the first preset avatar includes a background avatar and a body avatar, and the avatar display module is configured to hover-display the body avatar and the background avatar moving according to a movement trajectory at an upper layer of the interface.
In one possible implementation, the avatar display module is further configured to hover-display a second preset avatar on the currently displayed interface; replacing the second preset avatar with the first preset avatar; wherein the second preset avatar is a different avatar from the first preset avatar, or the second preset avatar and the first preset avatar belong to different states under the same avatar.
In one possible implementation, the apparatus further includes:
the audio acquisition module is configured to acquire preset prompt audio, and the preset prompt audio is used for prompting that a communication message is received;
the avatar display module is configured to display the first preset avatar in a floating manner on a currently displayed interface and play the preset prompt audio.
In one possible implementation, the sender of the communication message is a target user identity;
the avatar acquisition module is configured to acquire a first preset avatar corresponding to the target user identifier.
In one possible implementation, the apparatus further includes:
a setting interface display module configured to display a setting interface including at least one avatar;
and the avatar setting module is configured to set the first avatar as a first preset avatar for prompting the reception of the communication message in response to a first setting instruction of the first avatar in the setting interface.
In one possible implementation, the avatar setting module is further configured to set a second avatar in the setting interface as a second preset avatar for the decorating interface in response to a second setting instruction for the second avatar.
In one possible implementation, the apparatus further includes:
an audio setting module configured to display an audio setting interface; acquiring input audio through the audio setting interface, and taking the input audio as preset prompting audio for prompting the receiving of a communication message; or acquiring input audio through the audio setting interface, and editing the audio according to the detected editing operation to obtain preset prompting audio for prompting the receiving of the communication message.
In one possible implementation, the apparatus further includes:
the user identification setting module is configured to display an address book and acquire a user identification selected from the address book; and setting the user identifier as a target user identifier corresponding to the first preset virtual image.
In one possible implementation, the apparatus further includes:
the message determining module is configured to receive a message notification sent by the operating system through the prompt application program, wherein the message notification is used for notifying that a communication message is received;
the avatar display module is configured to display the first preset avatar in a floating manner on a currently displayed interface through the prompt application.
In one possible implementation, the apparatus includes:
the permission opening module is configured to open suspension display permission and message notification permission of the prompt application program when the prompt function opening is detected by the prompt application program; the suspension display permission refers to permission of suspension display at an interface upper layer, and the message notification permission refers to permission of the prompt application program to monitor message notification sent by the operating system.
In another aspect, a terminal is provided that includes a processor and a memory having at least one instruction stored therein, the instruction being loaded and executed by the processor to implement an operation performed in a message prompting method in any one of the possible implementations described above.
In another aspect, a computer readable storage medium having stored therein at least one instruction that is loaded and executed by a processor to implement operations performed in a message prompting method in any of the possible implementations described above is provided.
In yet another aspect, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions are loaded and executed by a processor to implement the operations performed in the message-prompting method in any one of the possible implementations described above.
The beneficial effects that technical scheme that this application embodiment provided include at least:
the embodiment of the application provides a novel message prompting mode, which can adopt a mode of displaying the virtual image in a floating manner to prompt the message, ensures that when a communication message is received under the condition that any interface is currently displayed, a first preset virtual image can be displayed in a floating manner on the interface, so that a user can know that the terminal receives the communication message through the first preset virtual image displayed in a floating manner.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic illustration of an implementation environment provided by embodiments of the present application;
FIG. 2 is a flowchart of a message prompting method provided in an embodiment of the present application;
FIG. 3 is a flowchart of a message prompting method provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of a message alert interface provided by an embodiment of the present application;
FIG. 5 is a block diagram of a message prompting apparatus provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It will be understood that as used herein, the terms "each," "plurality," and "any" and the like, a plurality includes two or more, each referring to each of the corresponding plurality, and any one refers to any one of the corresponding plurality. For example, the plurality of avatars includes 10 avatars, and each of the 10 avatars refers to each of the 10 avatars, and any one of the 10 avatars refers to any one of the 10 avatars.
FIG. 1 is a schematic diagram of an implementation environment provided by embodiments of the present application. Referring to fig. 1, the implementation environment includes a terminal 101 and a server 102. The terminal 101 and the server 102 are connected by a wireless or wired network. The terminal 101 is provided with a presentation application provided with a service by the server 102, and the terminal 101 can realize functions such as data transmission and message interaction by the presentation application. Optionally, the terminal 101 is a computer, a mobile phone, a tablet computer, or other terminals. Alternatively, the alert application is an alert application in the operating system of the terminal 101, or an alert application provided for a third party. Optionally, the alert application has other functions besides the message alert function, such as an interface decoration function, an image and video editing function, an audio editing function, etc., which the present application does not limit. Optionally, the server 102 is a background server of the alert application program or is a cloud server that provides services such as cloud computing and cloud storage.
The terminal 101 downloads the prompt application program from the server 102, and after the function of message prompt is opened in the prompt application program, the message prompt can be performed on the user through the message prompt method provided by the application. The message prompting method in the embodiment of the application can be applied to a scene of prompting any type of communication message, for example, a scene of prompting communication messages such as a short message, an instant communication message, an incoming call request and the like.
Fig. 2 is a flowchart of a message prompting method provided in an embodiment of the present application. Referring to fig. 2, the execution body of the method embodiment is a terminal. This embodiment includes:
step 201: a communication message is received.
Step 202: a first preset avatar is acquired, the first preset avatar being used to prompt receipt of a communication message.
Step 203: and suspending and displaying the first preset virtual image on the currently displayed interface.
The embodiment of the application provides a novel message prompting mode, which can adopt a mode of displaying the virtual image in a floating manner to prompt the message, ensures that when a communication message is received under the condition that any interface is currently displayed, a first preset virtual image can be displayed in a floating manner on the interface, so that a user can know that the terminal receives the communication message through the first preset virtual image displayed in a floating manner.
In one possible implementation, receiving a communication message includes: receiving a communication message of any application program;
suspending and displaying the first preset avatar on a currently displayed interface, wherein the method comprises the following steps:
and suspending and displaying the first preset avatar on an application identifier of the application.
In one possible implementation, the floating display of the first preset avatar on the currently displayed interface includes:
and at the upper layer of the interface, the first preset virtual image which moves according to the movement track is displayed in a floating mode.
In one possible implementation, before the floating display of the first preset avatar moving according to the movement track at an upper layer of the interface, the method further includes:
and acquiring a preset display position of the first preset virtual image, and determining a movement track corresponding to the preset display position.
In one possible implementation, the first preset avatar includes a background avatar and a body avatar, and the floating display moves according to a movement track at an upper layer of the interface includes:
at the upper layer of the interface, the body avatar and the background avatar moving according to the movement track are displayed in a floating manner.
In one possible implementation, before receiving the communication message, the method further includes: suspending and displaying a second preset virtual image on a currently displayed interface;
suspending and displaying the first preset avatar on a currently displayed interface, wherein the method comprises the following steps: replacing the second preset avatar with the first preset avatar;
wherein the second preset avatar is a different avatar from the first preset avatar, or the second preset avatar and the first preset avatar belong to different states under the same avatar.
In one possible implementation, after receiving the communication message, the method further includes: acquiring preset prompt audio, wherein the preset prompt audio is used for prompting that a communication message is received;
suspending and displaying the first preset avatar on a currently displayed interface, wherein the method comprises the following steps:
and displaying the first preset virtual image in a floating mode on a currently displayed interface, and playing preset prompt audio.
In one possible implementation, the sender of the communication message is a target user identity; acquiring a first preset avatar, including:
and acquiring a first preset virtual image corresponding to the target user identifier.
In one possible implementation, before receiving the communication message, the method further includes:
Displaying a setting interface including at least one avatar;
the first avatar is set as a first preset avatar for prompting receipt of the communication message in response to a first setting instruction for the first avatar in the setting interface.
In one possible implementation, the method further includes:
in response to a second setting instruction for a second avatar in the setting interface, the second avatar is set as a second preset avatar for the decoration interface.
In one possible implementation, after setting the first avatar to the first preset avatar for prompting receipt of the communication message in response to a first setting instruction for the first avatar in the setting interface, the method further includes:
displaying an audio setting interface;
acquiring input audio through an audio setting interface, and taking the input audio as preset prompting audio for prompting the reception of a communication message; or,
and acquiring input audio through an audio setting interface, and editing the audio according to the detected editing operation to obtain preset prompting audio for prompting the receiving of the communication message.
In one possible implementation, after setting the first avatar to the first preset avatar for prompting receipt of the communication message in response to a first setting instruction for the first avatar in the setting interface, the method further includes:
Displaying an address book and acquiring a user identifier selected from the address book;
and setting the user identifier as a target user identifier corresponding to the first preset virtual image.
In one possible implementation, the method further includes:
receiving a message notification sent by an operating system through a prompt application program, wherein the message notification is used for notifying that a communication message is received;
suspending and displaying the first preset avatar on a currently displayed interface, wherein the method comprises the following steps: and suspending and displaying the first preset virtual image on the currently displayed interface through the prompt application program.
In one possible implementation, before receiving a message notification sent by an operating system by prompting an application, the method includes:
when the prompt application detects that the prompt function is started, starting a suspension display permission and a message notification permission of the prompt application;
the suspension display permission refers to permission for suspension display on an interface upper layer, and the message notification permission refers to permission for prompting an application program to monitor message notification sent by an operating system.
Fig. 3 is a flowchart of a message prompting method provided in an embodiment of the present application. Referring to fig. 3, the execution body of the method embodiment is a terminal. This embodiment includes:
Step 301: the terminal displays a setting interface including at least one avatar.
From the type of avatar, the avatar includes images of the cartoon character and the actual character, for example, the cartoon character of the cat, the cartoon character of the character, or other cartoon characters, and the image of the actual character is an image of the actual cat, an image of the actual character, or an image of other actual characters. From the perspective of the avatar's display effect, the avatar includes a dynamic avatar and a static avatar. From the source of the avatar, the avatar includes an avatar acquired from a server and an avatar acquired locally from a terminal. The avatar includes an original avatar which is not edited by the user and an avatar which is edited by the user, in terms of whether the avatar is edited by the user. In terms of the composition of the avatars, the avatars include a background avatar and a body avatar, wherein the background avatar is a background of the body avatar, and the body avatar and the background avatar include any one of the above-described avatars.
The setting interface comprises a plurality of avatars, a user can select a favorite avatar from the plurality of avatars, and the avatar can be set as an avatar for prompting the receiving of a communication message, so that the personalized requirement of the user is met, and the viscosity of the user is improved.
Optionally, the setting interface further includes an introduction of the avatar, for example, a name of the avatar, an amount of resources required to obtain the avatar, a method of message prompting through the avatar, a heat value of the avatar, a tag of the avatar, etc., wherein the tag includes a dynamic avatar, a static avatar, a cartoon, an image of the actual avatar, etc., which is not limited in the present application.
Optionally, the at least one avatar is displayed in the setting interface in a classified manner, for example, the setting interface includes two categories, the first category is a dynamic avatar, the second category is a static avatar, and the like, the terminal detects a trigger operation for the first category, displays the at least one dynamic avatar on the setting interface, and detects a trigger operation for the second category, displays the at least one static avatar on the setting interface. Optionally, the setting interface further includes other categories, including, for example, a star character, a pet, a cartoon character, and the like, and accordingly, when the terminal detects a trigger operation on the category "star character", the virtual character of at least one star character is displayed in the setting interface, when the trigger operation on the category "pet" is detected, the virtual character of at least one pet is displayed in the setting interface, and when the setting operation on the category "cartoon character" is detected, the virtual character of at least one cartoon character is displayed in the setting interface. By displaying the virtual images in a classified manner in the setting interface, the user is facilitated to quickly find the favorite virtual images, and the operation efficiency of the terminal is improved.
Optionally, the setting interface is a setting interface of a prompting application program installed on the terminal, and the function of the prompting application program is to prompt that the communication message is received when the communication message is determined to be received. The terminal can log into the reminder application based on a user identification representing the identity of the user, optionally a user account, a cell phone number, etc.
Optionally, when the avatar acquired from the server is included in the setting interface, the terminal displays the setting interface, and the step of setting the interface to include at least one avatar includes: after the terminal logs in the prompt application program based on the user identification, the terminal sends the user identification to the server, the server obtains the virtual image recommended to the user according to the user identification, the virtual image is sent to the terminal, and the terminal displays the virtual image in the setting interface when displaying the setting interface.
Optionally, when the avatar locally acquired from the terminal is included in the setting interface, the step includes: the terminal displays a local acquisition button in the setting interface, displays an avatar list local to the terminal in response to a trigger operation of the local acquisition button, acquires an avatar selected from the avatar list, and displays the selected avatar in the setting interface. Wherein the avatar catalog includes at least one of a video and an image.
Optionally, after the terminal obtains the avatar selected from the avatar catalog, displaying an avatar editing interface, detecting an editing operation performed based on the avatar editing interface by the terminal, editing the avatar according to the detected editing operation, obtaining an edited avatar, and displaying the edited avatar in the setting interface. Illustratively, editing operations include cropping the avatar, adding material to the avatar, etc., as this application is not limited in this regard. Thus, when the user sets the first preset virtual image, the user can not only freely select the virtual image, but also edit the virtual image according to the preference, thereby meeting the personalized requirements of the user.
Step 302: the terminal sets the first avatar to a first preset avatar for prompting receipt of the communication message in response to a first setting instruction for the first avatar in the setting interface.
Optionally, the first avatar is any one of the avatars in the setup interface. The first preset avatar is an avatar for prompting the user to receive a communication message when the terminal determines that the message is received.
In one possible implementation, after the user selects the favorite first avatar from the setting interface, a setting button below the first avatar is triggered to set the first avatar as the first preset avatar. Correspondingly, the method comprises the following steps: the terminal displays a setting button corresponding to each avatar in a button display area corresponding to the avatar, and the terminal detects a trigger operation of the setting button to set the avatar corresponding to the setting button as a first preset avatar.
In another possible implementation, after the user selects the favorite first avatar from the setting interface, the first avatar is triggered to view the display effect of the first avatar when the message is prompted before the first preset avatar is set. Correspondingly, the method comprises the following steps: the terminal responds to the triggering operation of the first avatar in the setting interface, displays a preview interface, wherein the preview interface comprises a display mode and a setting button when the first avatar carries out message prompt, and responds to the triggering operation of the setting button, the terminal sets the first avatar as a first preset avatar. Therefore, the user can check the effect of the selected first avatar when the message prompt is carried out, then determine whether the first avatar is set as the first preset avatar, ensure that the display effect of the set first preset avatar when the message prompt is carried out is liked by the user, improve the viscosity of the user, avoid that the user can check the display effect of the first preset avatar after the first preset avatar is set, reduce the setting frequency of the user, and improve the operation efficiency of the terminal.
In one possible implementation, step 302 further includes: the terminal sets a second avatar as a second preset avatar for the decoration interface in response to a second setting instruction for the second avatar in the setting interface. Therefore, the user can freely set the virtual image for decorating the interface, the personalized requirement of the user is met, and the viscosity of the user is improved.
Optionally, the second avatar is any avatar in the setup interface. The second preset avatar is an avatar for decorating the interface displayed on the interface before the terminal determines that the message is received.
In one possible implementation, after the user selects a favorite second avatar from the setting interface, a setting button below the second avatar is triggered to set the second avatar as a second preset avatar. Accordingly, the step of the terminal setting the second avatar to a second preset avatar for decorating the interface in response to a second setting instruction for the second avatar in the setting interface includes: the terminal displays a setting button corresponding to each avatar in a button display area corresponding to the avatar, the terminal detects a triggering operation of the setting button, a first setting button and a second setting button are displayed in a popped floating window, the first setting button is used for setting the avatar as a first preset avatar, the second setting button is used for setting the avatar as a second preset avatar, and the terminal detects the triggering operation of the second setting button, so that the avatar corresponding to the setting button is set as the second preset avatar. Or the terminal directly displays the first setting button and the second setting button corresponding to each avatar in the button display area corresponding to the avatar, and when the triggering operation of the second setting button is detected, the avatar corresponding to the second setting button is set as a second preset avatar.
Optionally, the terminal sets the second preset avatar and then sets the first preset avatar, or sets the first preset avatar and then sets the second preset avatar, which is not limited in this application.
Another point to be described is that after setting the second avatar as the second preset avatar, the terminal suspends the second preset avatar on the currently displayed interface. When the interface displayed by the terminal is changed and is switched from one interface to another, the floating display of the second preset virtual image can be still maintained.
Optionally, step 302 further includes: the terminal displays the address book, acquires the user identification selected from the address book, and sets the user identification as the target user identification corresponding to the first preset virtual image. That is, after the terminal sets the first preset avatar, the user identifier corresponding to the first preset avatar is also set.
Optionally, the step includes: the terminal sets the first virtual image as a first preset virtual image for prompting the receiving of the communication message, displays an address book in a setting interface, acquires a user identification selected from the address book, and sets the user identification as a target user identification corresponding to the first preset virtual image. That is, when receiving the communication message sent by the target user identifier, the message prompt is performed by using the first preset avatar.
Optionally, one or more user identifiers are selected from the address list, when the selected user identifier is one, the terminal sets the one user identifier as a target user identifier corresponding to the first preset virtual image, and when the selected user identifiers are multiple, the multiple user identifiers are set as target user identifiers corresponding to the first preset virtual image.
It should be noted that the step of setting the first avatar to the first preset avatar by the terminal includes storing the first preset avatar, and the step of setting the selected user identifier to the target application identifier corresponding to the first preset avatar includes storing the target user identifier and the first preset avatar correspondingly.
Optionally, step 302 further includes: the terminal displays an audio setting interface, and acquires input audio through the audio setting interface as preset prompting audio for prompting the receiving of the communication message. That is, after the terminal sets the first preset virtual image, a preset prompting audio for prompting the receiving of the communication message is further set, and the terminal obtains the input audio through the audio setting interface, so that the user can freely select the input audio, and the audio freely selected by the user is used as the preset prompting audio for prompting the receiving of the communication message, thereby meeting the personalized requirements of the user and improving the viscosity of the user.
In one possible implementation, the preset alert audio is audio that is not edited by the user. Correspondingly, the terminal displays an audio setting interface, and acquires input audio through the audio setting interface as preset prompting audio for prompting reception of the communication message. Optionally, the step includes: the terminal displays an audio setting interface, wherein the audio setting interface comprises at least one audio, and the terminal responds to the selection operation of any audio to set the selected audio as a preset prompt audio. Optionally, the at least one audio included in the audio interface includes at least one of audio acquired from a server, audio acquired locally from a terminal, and currently entered audio, which is not limited in this application.
Optionally, the implementation manner of displaying the audio including the current input by the terminal is as follows: the terminal displays an input button in the audio setting interface, and in response to triggering operation of the input button, the terminal collects audio of a user and displays the collected audio in the audio setting interface. Therefore, when the user sets the preset prompt audio, not only the audio acquired from the server or the terminal can be selected, but also the audio which is freely recorded can be selected, and the personalized requirements of the user are fully met.
In another possible implementation manner, the preset prompting audio is audio edited by a user, and accordingly, the terminal obtains the input audio through the audio setting interface, edits the audio according to the detected editing operation, and obtains the preset prompting audio for prompting that the communication message is received. Optionally, the step includes: the terminal displays an audio setting interface, the audio setting interface comprises at least one audio, the terminal responds to the selection operation of any audio, an audio editing interface is displayed, the terminal detects the editing operation based on the audio editing interface, and edits the audio according to the detected editing operation to obtain preset prompt audio for prompting that the communication message is received. Optionally, the at least one audio included in the audio interface includes at least one of audio acquired from a server, audio acquired locally from a terminal, and currently entered audio, which is not limited in this application. In addition, editing operations include, but are not limited to, cutting out a portion of the audio from the audio, changing the voice in the audio, changing the tempo of the audio, and the like. Therefore, when the user sets the preset prompting audio, the user can freely select the audio and edit the audio according to preference, and personalized requirements of the user are further met.
In one possible implementation, the terminal displays an audio setting interface after setting the first preset avatar. At least one audio included in the audio setting interface is an audio matching the first preset avatar. Optionally, the step includes: the terminal sends a first preset virtual image to the server, the server acquires at least one audio matched with the first preset virtual image, the at least one audio is sent to the terminal, the terminal receives the at least one audio, and the at least one audio is displayed in the audio setting interface. Wherein, the corresponding relation between the virtual image and the audio matched with the virtual image is stored in the server in advance, and each virtual image at least corresponds to one audio, so that the server can acquire at least one audio matched with the first preset virtual image according to the corresponding relation between the virtual image and the audio.
For example, the first preset avatar is the cartoon character of the cat, and the audio matching the message prompt character includes the voice of the cat, music about the cat, or other audio matching the cartoon character of the cat. Through displaying the audio matched with the first preset virtual image in the audio setting interface, the user can conveniently set the preset prompt audio matched with the first preset virtual image, so that the message prompt is more flexible and interesting, and the user viscosity can be improved.
It should be noted that the setting of the first preset avatar is completed through the above steps 301 to 302, and then the terminal directly starts to perform from step 303 when receiving the communication message, without performing steps 301 to 302. In addition, the user can reset the first preset avatar, and the implementation is similar to steps 301-302, and will not be repeated here.
Step 303: the terminal receives the communication message.
The communication message includes at least one of a short message, an instant communication message, and an incoming call request, which is not limited in this application. Optionally, the terminal receives a communication message of any application program, which is not limited in this application.
In one possible implementation manner, after the terminal receives the communication message, the method further includes: the terminal receives a message notification sent by the operating system through the prompt application program, wherein the message notification is used for notifying that a communication message is received.
It should be noted that, the operating system has a function of monitoring communication messages of each application program on the terminal, and when the operating system monitors the communication messages of each application program, it sends a message notification to the alert application program, where the message notification is used to notify the application program that the terminal receives the communication message.
In one possible implementation manner, before the terminal receives the message notification sent by the operating system through the prompt application program, the method includes: when the terminal detects that the prompt function is started through the prompt application program, the suspension display permission and the message notification permission of the prompt application program are started.
The suspension display permission refers to permission for prompting an application program to perform suspension display on an upper layer of an interface, and the message notification permission refers to permission for prompting the application program to monitor message notification sent by an operating system.
Optionally, when the terminal detects that the prompt function is started through the prompt application, the terminal also starts the self-starting authority of the prompt application. The self-starting authority refers to the authority for automatically starting the prompt application program when the terminal is started, and is used for ensuring that the prompt application program is in a state of monitoring a message notification sent by the operating system.
Optionally, the user starts the prompt function in the prompt application, and when the terminal detects that the prompt function is started, the suspension display permission, the message notification permission and the self-starting permission of the prompt application are indicated to be started by the user through the prompt information.
The terminal opens the suspension display authority, the message notification authority and the self-starting authority, so that the prompt application program can receive the notification message sent by the operating system, and when receiving the notification message, the terminal prompts the message to the user in a suspension display virtual image mode, thereby improving the interestingness and flexibility of the message prompt and enhancing the prompt effect.
Step 304: the terminal acquires a first preset virtual image, and the first preset virtual image is used for prompting the receiving of the communication message.
In one possible implementation, the terminal stores the first preset avatar locally at the terminal when the first preset avatar is set, and accordingly, in this step, the terminal directly acquires the first preset avatar from the local.
Optionally, the sender of the communication message is a target user identifier, and correspondingly, the terminal obtains a first preset avatar, including: the terminal acquires a first preset virtual image corresponding to the target user identifier.
In one possible implementation manner, when the terminal sets the user identifier corresponding to the first preset avatar, the user identifier and the first preset avatar are stored locally in the terminal, and accordingly, in this step, the terminal obtains the first preset avatar corresponding to the target user identifier from the correspondence between the locally stored user identifier and the first preset avatar.
In the embodiment of the application, the terminal sets the corresponding user identifier for the first preset virtual image, and when the terminal determines that the communication message is received, the terminal acquires the first preset virtual image corresponding to the target user identifier of the communication message, so that different first preset virtual images can be displayed for the communication messages of different senders, the senders of the communication message can be distinguished through the first preset virtual image, the message prompting mode is more flexible, the prompting information amount is larger, and the prompting effect is enhanced.
Step 305: and the terminal suspends and displays the first preset virtual image on the currently displayed interface.
Optionally, the terminal suspends and displays the first preset avatar at any position of the currently displayed interface, for example, at the middle of the interface or at the upper right corner of the interface, which is not limited in this application.
Optionally, after the alert application opens the hover display permission, the alert application may hover display the first preset avatar on the currently displayed interface. Correspondingly, the terminal suspends and displays the first preset virtual image on the currently displayed interface, and the method comprises the following steps: and the terminal suspends and displays the first preset virtual image on the currently displayed interface through the prompt application program. The method is simple and easy to realize.
In one possible implementation, if the display position of the first preset avatar is a default display position, the step includes: and the terminal suspends and displays the first preset virtual image at a default display position of the currently displayed interface. The default display position includes any position of the interface, which is not limited in this application.
In another possible implementation manner, when the terminal sets the first preset avatar, the terminal sets a preset display position of the first preset avatar, and stores the preset display position and the first preset avatar correspondingly, and the steps include: the terminal obtains a preset display position corresponding to the first preset virtual image, and the first preset virtual image is displayed on a currently displayed interface in a floating mode according to the preset display position.
The method has the advantages that the first preset virtual image is displayed on the currently displayed interface in a floating mode, on one hand, a user can be prompted remarkably, on the other hand, when the current display position of the first preset virtual image prevents the current operation of the user, the user can move the first preset virtual image to other positions of the interface, therefore, the use of the terminal by the user cannot be affected, the user experience is guaranteed, and the user viscosity is improved.
In one possible implementation, the step of the terminal floating-displaying the first preset avatar on the currently displayed interface includes: and the terminal suspends and displays a first preset virtual image which moves according to the moving track at the upper layer of the interface. For example, if the first preset avatar is a small tortoise, the terminal suspends and displays a small tortoise that climbs on the upper layer of the interface. Therefore, the interest of message prompt is improved while the user is obviously prompted to receive the communication message, the message prompt mode is more flexible, and the prompt effect is enhanced.
In one possible implementation, the first preset avatar includes a background avatar and a body avatar, and the floating display of the first preset avatar moving according to the movement track includes: the terminal suspends and displays the main body virtual image and the background virtual image moving according to the moving track at the upper layer of the interface. For example, the background virtual image is an airship, the main virtual image is an alien person, the terminal suspends and displays the alien person and the airship at the interface, and the airship flies on the interface. Therefore, the interest of message prompt is improved while the user is obviously prompted to receive the communication message, the message prompt mode is more flexible, and the prompt effect is enhanced.
In one possible implementation, the first preset avatar includes a background avatar and a body avatar, and the floating display of the first preset avatar moving according to the movement track includes: the terminal suspends and displays the background virtual image and the main virtual image moving according to the moving track at the upper layer of the interface. For example, the background virtual image is a bird nest and the main virtual image is a bird, the terminal suspends the bird nest and the bird at the upper layer of the interface, and the bird flies over the interface. Therefore, the interest of message prompt is improved while the user is obviously prompted to receive the communication message, the message prompt mode is more flexible, and the prompt effect is enhanced.
Optionally, before the terminal suspends and displays the first preset avatar moving according to the movement track at the upper layer of the interface, the method further includes: the terminal acquires a preset display position of the first preset virtual image and determines a movement track corresponding to the preset display position. Therefore, the moving track of the first preset virtual image is ensured to be the moving track matched with the preset display position, and the display effect of the first preset virtual image can be improved, so that the message prompting effect is enhanced.
Optionally, the preset display position of the first preset avatar is a default display position, and the step of determining, by the terminal, a movement track corresponding to the preset display position includes: the terminal acquires a default movement track. The default display position comprises any position of the currently displayed interface, and the default movement track comprises any movement track. For example, the default display position is in the upper right corner of the interface and the default movement trajectory is one revolution along the edge of the interface in a counter-clockwise direction. The default display position and the default movement track described above are merely exemplary, and the present application is not limited thereto. In addition, the default display position is stored in the server or the terminal, which is not limited in this application.
Optionally, the preset display position of the first preset avatar is a display position previously set for the first preset avatar by the user, and the step of determining, by the terminal, a movement track corresponding to the preset display position includes: the terminal sends the preset display position to the server, the server obtains a movement track corresponding to the preset display position from the corresponding relation between the display position and the movement track according to the preset display position, the movement track is sent to the terminal, and the terminal receives the movement track. Optionally, the time when the terminal sends the preset display position to the server is when the terminal sets the first preset avatar, or when the terminal receives the communication message, or other time, which is not limited in this application.
The corresponding relation between the display position and the movement track is preset in the server, for example, the display position is in the middle area of the interface, the movement track corresponding to the display position is a circle in the anticlockwise direction, for example, the display position is in the upper left corner of the interface, and the movement track corresponding to the display position is a circle along the edge of the interface in the anticlockwise direction. The display positions and the corresponding movement tracks in the correspondence relationship between the display positions and the movement tracks are merely exemplary, and the present application is not limited thereto.
In one possible implementation, the step of the terminal floating-displaying the first preset avatar on the currently displayed interface includes: the terminal suspends and displays the first preset avatar on an application identifier of an application program, wherein the application program refers to the application program for receiving the communication message. Through suspending and displaying the first preset virtual image on the application program for receiving the communication message, the user can know the application program corresponding to the communication message through the display position of the first preset virtual image, the message prompting mode is more flexible, the prompting information quantity is larger, and the prompting effect is enhanced.
Referring to fig. 4, fig. 4 is a schematic view of a first preset avatar being displayed in suspension on an interface. The interface comprises a plurality of application program identifiers, the first preset virtual image is a bell image, the application program which receives the communication message currently is a short message application program, and the first preset virtual image (bell image) is displayed on the short message application program identifier.
It should be noted that, in the above step 302, if the terminal sets the second preset avatar, the terminal suspends and displays the second preset avatar on the currently displayed interface after the second preset avatar is set. Correspondingly, the terminal suspends and displays the first preset virtual image on the currently displayed interface, and the method comprises the following steps: the terminal replaces the second preset avatar with the first preset avatar.
Wherein the second preset avatar is a different avatar from the first preset avatar. For example, the second preset virtual image is a cat, the first preset virtual image is a dog, and when the communication message is not received, the cat is displayed in a floating mode on the currently displayed interface, and when the communication message is received, the dog is displayed in a floating mode on the currently displayed interface, so that the function of prompting a user to receive the communication message is achieved.
Alternatively, the second preset avatar and the first preset avatar belong to different states under the same avatar. For example, the second preset avatar is a cat sleeping on the stomach, the first preset avatar is a cat standing up and standing down, and when no communication message is received, the terminal suspends and displays the cat sleeping on the stomach on the currently displayed interface, and when the communication message is received, the cat standing up and standing down is suspended and displayed on the currently displayed interface, so that the function of prompting the user to receive the communication message is played.
In the embodiment of the application, whether the second preset virtual image and the first preset virtual image are different virtual images or the second preset virtual image and the first preset virtual image belong to different states under the same virtual image, the second preset virtual image on the interface is replaced by the first preset virtual image, so that the user can be remarkably prompted to receive the communication message, the message prompting mode is more flexible and interesting, the prompting effect is enhanced, and the user viscosity is improved.
Optionally, the step of replacing the second preset avatar with the first preset avatar includes: and changing the second preset avatar into the first preset avatar, namely, not suspending the second preset avatar on the currently displayed interface and suspending the first preset avatar on the currently displayed interface. Alternatively, the step of replacing the second preset avatar with the first preset avatar includes: the first preset avatar is overlaid on the second preset avatar.
In one possible implementation, in addition to the first preset avatar, the terminal acquires preset alert audio in step 304, and in step 305, the terminal suspends the first preset avatar on the currently displayed interface and plays the preset alert audio. Therefore, the message prompt is jointly carried out through the first preset virtual image and the preset prompt audio, namely, the prompt effect is achieved for the user in vision and hearing, the message prompt mode is more flexible, and the prompt effect is enhanced.
The implementation manner of the terminal for obtaining the preset prompt audio is similar to the implementation manner for obtaining the first preset virtual image, and will not be described herein. In addition, the method and the device do not limit the sequence of acquiring the first preset virtual image and acquiring the preset prompting audio.
The embodiment of the application provides a novel message prompting mode, which can adopt a mode of displaying the virtual image in a floating manner to prompt the message, ensures that when a communication message is received under the condition that any interface is currently displayed, a first preset virtual image can be displayed in a floating manner on the interface, so that a user can know that the terminal receives the communication message through the first preset virtual image displayed in a floating manner.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein in detail.
Fig. 5 is a block diagram of a message prompting apparatus according to an embodiment of the present application. Referring to fig. 5, the apparatus includes:
a message receiving module 501 configured to receive a communication message;
an avatar acquisition module 502 configured to acquire a first preset avatar for prompting receipt of a communication message;
the avatar display module 503 is configured to hover-display the first preset avatar on the currently displayed interface.
In one possible implementation, the message receiving module 501 is configured to receive a communication message of any application program;
the avatar display module 503 is configured to hover-display the first preset avatar on an application identifier of the application.
In one possible implementation, the avatar display module 503 is configured to hover-display the first preset avatar moving according to the movement trajectory at an upper layer of the interface.
In one possible implementation, the avatar display module 503 is further configured to acquire a preset display position of the first preset avatar, and determine a movement track corresponding to the preset display position.
In one possible implementation, the first preset avatar includes a background avatar and a body avatar, and the avatar display module is configured to hover-display the body avatar and the background avatar moving according to the movement trajectory at an upper layer of the interface.
In one possible implementation, the avatar display module 503 is further configured to hover-display the second preset avatar on the currently displayed interface; replacing the second preset avatar with the first preset avatar; wherein the second preset avatar is a different avatar from the first preset avatar, or the second preset avatar and the first preset avatar belong to different states under the same avatar.
In one possible implementation, the apparatus further includes:
the audio acquisition module is configured to acquire preset prompt audio, wherein the preset prompt audio is used for prompting that a communication message is received;
the avatar display module 503 is configured to hover-display the first preset avatar on the currently displayed interface and play the preset hint audio.
In one possible implementation, the sender of the communication message is a target user identity;
The avatar acquisition module 502 is configured to acquire a first preset avatar corresponding to the target user identifier.
In one possible implementation, the apparatus further includes:
a setting interface display module configured to display a setting interface including at least one avatar;
the avatar setting module is configured to set the first avatar to a first preset avatar for prompting receipt of the communication message in response to a first setting instruction for the first avatar in the setting interface.
In one possible implementation, the avatar setting module is further configured to set the second avatar to a second preset avatar for the decorative interface in response to a second setting instruction to the second avatar in the setting interface.
In one possible implementation, the apparatus further includes:
an audio setting module configured to display an audio setting interface; acquiring input audio through an audio setting interface, and taking the input audio as preset prompting audio for prompting the reception of a communication message; or acquiring the input audio through the audio setting interface, and editing the audio according to the detected editing operation to obtain the preset prompting audio for prompting the receiving of the communication message.
In one possible implementation, the apparatus further includes:
the user identification setting module is configured to display the address book and acquire the user identification selected from the address book; and setting the user identifier as a target user identifier corresponding to the first preset virtual image.
In one possible implementation, the apparatus further includes:
the message determining module is configured to receive a message notification sent by the operating system through the prompt application program, wherein the message notification is used for notifying that a communication message is received;
the avatar display module 503 is configured to hover-display the first preset avatar on the currently displayed interface by the reminder application.
In one possible implementation, an apparatus includes:
the permission opening module is configured to open suspension display permission and message notification permission of the prompt application program when the prompt function opening is detected by the prompt application program; the suspension display permission refers to permission for suspension display on an interface upper layer, and the message notification permission refers to permission for prompting an application program to monitor message notification sent by an operating system.
The embodiment of the application provides a novel message prompting mode, which can adopt a mode of displaying the virtual image in a floating manner to prompt the message, ensures that when a communication message is received under the condition that any interface is currently displayed, a first preset virtual image can be displayed in a floating manner on the interface, so that a user can know that the terminal receives the communication message through the first preset virtual image displayed in a floating manner.
It should be noted that: the message prompting apparatus provided in the above embodiment only illustrates the division of the above functional modules when performing message prompting, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the terminal is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the message prompting apparatus and the message prompting method embodiment provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment, and are not repeated here.
Fig. 6 shows a block diagram of a terminal 600 according to an exemplary embodiment of the present application. The terminal 600 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio plane 3), an MP4 (Moving Picture Experts Group Audio Layer IV, motion picture expert compression standard audio plane 4) player, a notebook computer, or a desktop computer. Terminal 600 may also be referred to by other names of user devices, portable terminals, laptop terminals, desktop terminals, etc.
In general, the terminal 600 includes: a processor 601 and a memory 602.
The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 602 is used to store at least one instruction for execution by processor 601 to implement the message hint methods provided by the method embodiments of the present application.
In some embodiments, the terminal 600 may further optionally include: a peripheral interface 603, and at least one peripheral. The processor 601, memory 602, and peripheral interface 603 may be connected by a bus or signal line. The individual peripheral devices may be connected to the peripheral device interface 603 via buses, signal lines or a circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 604, a display 605, a camera assembly 606, audio circuitry 607, a positioning assembly 608, and a power supply 609.
The Radio Frequency circuit 604 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 604 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 604 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 604 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuit 604 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuitry 604 may also include NFC (Near Field Communication, short range wireless communication) related circuitry, which is not limited in this application.
The display screen 605 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 605 is a touch display, the display 605 also has the ability to collect touch signals at or above the surface of the display 605. The touch signal may be input as a control signal to the processor 601 for processing. At this point, the display 605 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, the display 605 may be one, providing a front panel of the terminal 600; in other embodiments, the display 605 may be at least two, respectively disposed on different surfaces of the terminal 600 or in a folded design; in other embodiments, the display 605 may be a flexible display, disposed on a curved surface or a folded surface of the terminal 600. Even more, the display 605 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The display 605 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The camera assembly 606 is used to capture images or video. Optionally, the camera assembly 606 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal and the rear camera is disposed on the rear surface of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, camera assembly 606 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuit 607 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and environments, converting the sound waves into electric signals, and inputting the electric signals to the processor 601 for processing, or inputting the electric signals to the radio frequency circuit 604 for voice communication. For the purpose of stereo acquisition or noise reduction, a plurality of microphones may be respectively disposed at different portions of the terminal 600. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 601 or the radio frequency circuit 604 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, the audio circuit 607 may also include a headphone jack.
The location component 608 is used to locate the current geographic location of the terminal 600 to enable navigation or LBS (Location Based Service, location based services). The positioning component 608 may be a positioning component based on the United states GPS (Global Positioning System ), the Beidou system of China, the Granati system of Russia, or the Galileo system of the European Union.
A power supply 609 is used to power the various components in the terminal 600. The power source 609 may be alternating current, direct current, disposable battery or rechargeable battery. When the power source 609 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal 600 further includes one or more sensors 610. The one or more sensors 610 include, but are not limited to: acceleration sensor 611, gyroscope sensor 612, pressure sensor 613, fingerprint sensor 614, optical sensor 615, and proximity sensor 616.
The acceleration sensor 611 can detect the magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal 600. For example, the acceleration sensor 611 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 601 may control the display screen 605 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal acquired by the acceleration sensor 611. The acceleration sensor 611 may also be used for the acquisition of motion data of a game or a user.
The gyro sensor 612 may detect a body direction and a rotation angle of the terminal 600, and the gyro sensor 612 may collect a 3D motion of the user on the terminal 600 in cooperation with the acceleration sensor 611. The processor 601 may implement the following functions based on the data collected by the gyro sensor 612: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
The pressure sensor 613 may be disposed at a side frame of the terminal 600 and/or at a lower layer of the display 605. When the pressure sensor 613 is disposed at a side frame of the terminal 600, a grip signal of the terminal 600 by a user may be detected, and a left-right hand recognition or a shortcut operation may be performed by the processor 601 according to the grip signal collected by the pressure sensor 613. When the pressure sensor 613 is disposed at the lower layer of the display screen 605, the processor 601 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 605. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The fingerprint sensor 614 is used for collecting the fingerprint of the user, and the processor 601 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 614, or the fingerprint sensor 614 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 601 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. The fingerprint sensor 614 may be provided on the front, back, or side of the terminal 600. When a physical key or vendor Logo is provided on the terminal 600, the fingerprint sensor 614 may be integrated with the physical key or vendor Logo.
The optical sensor 615 is used to collect ambient light intensity. In one embodiment, processor 601 may control the display brightness of display 605 based on the intensity of ambient light collected by optical sensor 615. Specifically, when the intensity of the ambient light is high, the display brightness of the display screen 605 is turned up; when the ambient light intensity is low, the display brightness of the display screen 605 is turned down. In another embodiment, the processor 601 may also dynamically adjust the shooting parameters of the camera assembly 606 based on the ambient light intensity collected by the optical sensor 615.
A proximity sensor 616, also referred to as a distance sensor, is typically provided on the front panel of the terminal 600. The proximity sensor 616 is used to collect the distance between the user and the front of the terminal 600. In one embodiment, when the proximity sensor 616 detects a gradual decrease in the distance between the user and the front face of the terminal 600, the processor 601 controls the display 605 to switch from the bright screen state to the off screen state; when the proximity sensor 616 detects that the distance between the user and the front surface of the terminal 600 gradually increases, the processor 601 controls the display screen 605 to switch from the off-screen state to the on-screen state.
Those skilled in the art will appreciate that the structure shown in fig. 6 is not limiting of the terminal 600 and may include more or fewer components than shown, or may combine certain components, or may employ a different arrangement of components.
Fig. 7 is a schematic structural diagram of a server according to an embodiment of the present application, where the server 700 may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 701 and one or more memories 702, where at least one instruction is stored in the memories 702, and the at least one instruction is loaded and executed by the processors 701 to implement the message prompting method provided in the foregoing method embodiments. Of course, the server may also have a wired or wireless network interface, a keyboard, an input/output interface, and other components for implementing the functions of the device, which are not described herein.
The embodiment of the application also provides a terminal, which comprises a processor and a memory, wherein at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor to realize the operation executed in the message prompting method of the embodiment.
The embodiment of the application also provides a computer readable storage medium, wherein at least one instruction is stored in the computer readable storage medium, and the at least one instruction is loaded and executed by a processor to realize the operations executed in the message prompting method of the embodiment.
Embodiments of the present application also provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions are loaded and executed by a processor to implement the operations performed in the message prompting method of the above-described embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments is merely exemplary in nature and is in no way intended to limit the invention, since it is intended that all modifications, equivalents, improvements, etc. that fall within the spirit and scope of the invention.
Claims (13)
1. A message prompting method, the method comprising:
receiving a communication message of any application program;
acquiring a first preset avatar for prompting receipt of a communication message, the first preset avatar including a background avatar and a main body avatar;
Suspending and displaying the first preset virtual image on a currently displayed interface;
the suspending display of the first preset avatar on the currently displayed interface comprises the following steps:
suspending and displaying the first preset virtual image on an application program identifier of the application program;
at an upper layer of the interface, floating and displaying the main body avatar and the background avatar moving according to a moving track;
after receiving the communication message of any application program, the method further comprises: acquiring preset prompt audio, wherein the preset prompt audio is used for prompting that a communication message is received;
the suspending display of the first preset avatar on the currently displayed interface comprises the following steps:
and displaying the first preset virtual image in a floating manner on a currently displayed interface, and playing the preset prompt audio, wherein the preset prompt audio is the audio matched with the first preset virtual image.
2. The method of claim 1, wherein the method further comprises, at an upper layer of the interface, before the floating display of the body avatar and the background avatar moving according to a moving trajectory:
And acquiring a preset display position of the first preset virtual image, and determining a movement track corresponding to the preset display position.
3. The method of claim 1, wherein prior to receiving the communication message for any application, the method further comprises: suspending and displaying a second preset virtual image on a currently displayed interface;
the suspending display of the first preset avatar on the currently displayed interface comprises the following steps: replacing the second preset avatar with the first preset avatar;
wherein the second preset avatar is a different avatar from the first preset avatar, or the second preset avatar and the first preset avatar belong to different states under the same avatar.
4. The method of claim 1, wherein the sender of the communication message is a target user identification; the acquiring a first preset avatar includes:
and acquiring a first preset virtual image corresponding to the target user identifier.
5. The method of claim 1, wherein prior to receiving the communication message for any application, the method further comprises:
Displaying a setting interface, the setting interface including at least one avatar;
and setting the first avatar to a first preset avatar for prompting the reception of a communication message in response to a first setting instruction for the first avatar in the setting interface.
6. The method of claim 5, wherein the method further comprises:
and setting a second avatar in the setting interface as a second preset avatar for decorating the interface in response to a second setting instruction for the second avatar.
7. The method of claim 5, wherein the setting the first avatar to the first preset avatar for prompting receipt of the communication message is followed by the method further comprising:
displaying an audio setting interface;
acquiring input audio through the audio setting interface, and taking the input audio as preset prompting audio for prompting the receiving of a communication message; or,
and acquiring input audio through the audio setting interface, and editing the audio according to the detected editing operation to obtain preset prompting audio for prompting the receiving of the communication message.
8. The method of claim 5, wherein the setting the first avatar to the first preset avatar for prompting receipt of the communication message is followed by the method further comprising:
displaying an address book and acquiring a user identifier selected from the address book;
and setting the user identifier as a target user identifier corresponding to the first preset virtual image.
9. The method according to claim 1, wherein the method further comprises:
receiving a message notification sent by an operating system through a prompt application program, wherein the message notification is used for notifying that a communication message is received;
the suspending display of the first preset avatar on the currently displayed interface comprises the following steps: and suspending and displaying the first preset virtual image on a currently displayed interface through the prompt application program.
10. The method of claim 9, wherein prior to receiving the message notification sent by the operating system via the alert application, the method comprises:
when the prompt application detects that the prompt function is started, starting the suspension display permission and the message notification permission of the prompt application;
The suspension display permission refers to permission of suspension display at an interface upper layer, and the message notification permission refers to permission of the prompt application program to monitor message notification sent by the operating system.
11. A message prompting apparatus, the apparatus comprising:
a message receiving module configured to receive a communication message of any application program;
an avatar acquisition module configured to acquire a first preset avatar for prompting receipt of a communication message, the first preset avatar including a background avatar and a body avatar;
the virtual image display module is configured to display the first preset virtual image in a floating mode on a currently displayed interface;
the avatar display module is further configured to display the first preset avatar in a floating manner on an application identifier of the application;
at an upper layer of the interface, floating and displaying the main body avatar and the background avatar moving according to a moving track;
after receiving the communication message of any application program, the audio acquisition module is configured to acquire preset prompt audio, wherein the preset prompt audio is used for prompting that the communication message is received;
The avatar display module is further configured to display the first preset avatar in a floating manner on a currently displayed interface, and play the preset prompt audio, wherein the preset prompt audio is an audio matched with the first preset avatar.
12. A terminal comprising a processor and a memory having stored therein at least one instruction that is loaded and executed by the processor to implement the operations performed by the message prompting method of any one of claims 1 to 10.
13. A computer readable storage medium having stored therein at least one instruction that is loaded and executed by a processor to implement the operations performed by the message prompting method of any one of claims 1 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010719308.7A CN111884913B (en) | 2020-07-23 | 2020-07-23 | Message prompting method, device, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010719308.7A CN111884913B (en) | 2020-07-23 | 2020-07-23 | Message prompting method, device, terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111884913A CN111884913A (en) | 2020-11-03 |
CN111884913B true CN111884913B (en) | 2023-05-23 |
Family
ID=73155418
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010719308.7A Active CN111884913B (en) | 2020-07-23 | 2020-07-23 | Message prompting method, device, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111884913B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113325983B (en) * | 2021-06-30 | 2024-09-06 | 广州酷狗计算机科技有限公司 | Virtual image processing method, device, terminal and storage medium |
CN116170533A (en) * | 2022-12-27 | 2023-05-26 | 维沃移动通信有限公司 | Message reminding method and device, electronic equipment and readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105095345A (en) * | 2015-05-29 | 2015-11-25 | 小米科技有限责任公司 | Method and device for prompting push message |
CN105404446A (en) * | 2015-12-11 | 2016-03-16 | 魅族科技(中国)有限公司 | Information reminding method and terminal |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103634199B (en) * | 2013-08-26 | 2017-11-21 | 华为技术有限公司 | The display methods and device of notification message |
CN106534526B (en) * | 2016-11-07 | 2020-03-13 | 珠海市魅族科技有限公司 | Suspension notification prompting method and device |
CN110769120A (en) * | 2019-10-22 | 2020-02-07 | 广州华多网络科技有限公司 | Method, device, equipment and storage medium for message reminding |
-
2020
- 2020-07-23 CN CN202010719308.7A patent/CN111884913B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105095345A (en) * | 2015-05-29 | 2015-11-25 | 小米科技有限责任公司 | Method and device for prompting push message |
CN105404446A (en) * | 2015-12-11 | 2016-03-16 | 魅族科技(中国)有限公司 | Information reminding method and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN111884913A (en) | 2020-11-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112947823B (en) | Session processing method, device, equipment and storage medium | |
CN110971930B (en) | Live virtual image broadcasting method, device, terminal and storage medium | |
CN109982102B (en) | Interface display method and system for live broadcast room, live broadcast server and anchor terminal | |
CN110278464B (en) | Method and device for displaying list | |
CN112492097B (en) | Audio playing method, device, terminal and computer readable storage medium | |
CN110740340B (en) | Video live broadcast method and device and storage medium | |
CN113325983B (en) | Virtual image processing method, device, terminal and storage medium | |
CN109327608B (en) | Song sharing method, terminal, server and system | |
CN109451343A (en) | Video sharing method, apparatus, terminal and storage medium | |
CN112118477B (en) | Virtual gift display method, device, equipment and storage medium | |
CN112751679B (en) | Instant messaging message processing method, terminal and server | |
CN111355974A (en) | Method, apparatus, system, device and storage medium for virtual gift giving processing | |
CN108897597B (en) | Method and device for guiding configuration of live broadcast template | |
CN115378900A (en) | Song list sharing method, device, terminal and storage medium | |
CN113613028B (en) | Live broadcast data processing method, device, terminal, server and storage medium | |
CN110209316B (en) | Category label display method, device, terminal and storage medium | |
CN111711838A (en) | Video switching method, device, terminal, server and storage medium | |
CN110769120A (en) | Method, device, equipment and storage medium for message reminding | |
CN111884913B (en) | Message prompting method, device, terminal and storage medium | |
CN110808021B (en) | Audio playing method, device, terminal and storage medium | |
CN113485596B (en) | Virtual model processing method and device, electronic equipment and storage medium | |
CN113377270B (en) | Information display method, device, equipment and storage medium | |
CN113141538B (en) | Media resource playing method, device, terminal, server and storage medium | |
CN110493448A (en) | Communication message processing method, device and storage medium | |
CN111399797B (en) | Voice message playing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |