CN115840610A - Desktop dynamic effect display method and electronic equipment - Google Patents
Desktop dynamic effect display method and electronic equipment Download PDFInfo
- Publication number
- CN115840610A CN115840610A CN202111113324.2A CN202111113324A CN115840610A CN 115840610 A CN115840610 A CN 115840610A CN 202111113324 A CN202111113324 A CN 202111113324A CN 115840610 A CN115840610 A CN 115840610A
- Authority
- CN
- China
- Prior art keywords
- dynamic effect
- desktop
- playing
- application
- dynamic
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04842—Selection of displayed objects or displayed text elements
-
- 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)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- User Interface Of Digital Computer (AREA)
- Processing Or Creating Images (AREA)
Abstract
The application provides a desktop dynamic effect display method and electronic equipment, and relates to the technical field of terminals. The electronic equipment can be used for displaying the dynamic effect of the first desktop element in the region outside the display region of the first desktop element on the desktop, enriches the desktop expression content, and improves the user experience. The method comprises the following steps: in the process of displaying the desktop, the electronic device determines the dynamic effect of the first desktop element in the desktop elements, and the dynamic effect can be played in the area outside the display area for displaying the first desktop element.
Description
Technical Field
The embodiment of the application relates to the technical field of terminals, in particular to a desktop dynamic effect display method and electronic equipment.
Background
With the development of terminal technology, desktop display contents of electronic equipment (such as mobile phones, tablets and the like) are more and more abundant, and in the process of displaying the desktop, a user can quickly obtain relevant application information and the interestingness of desktop display of the electronic equipment can be increased.
Illustratively, as shown in an interface 101 in fig. 1 (a), the mobile phone displays an application icon, and displays a digital prompt message around the application icon, so that a user can quickly know relevant information of an application through the digital prompt message. For example, the number prompt message displayed on the email application icon 11 is 3, which is used to indicate that the number of the emails to be processed is 3. For another example, the application mall icon 12 displays a numeric prompt message of 5 to indicate that the number of applications to be updated is 5. However, it can be seen that the content of the digital cue information presentation is limited.
Further illustratively, as shown in fig. 1 (b) as an interface 102, the mobile phone provides part of the functions of the application by displaying a card. Such as weather card 13 displayed on interface 102, provides the user with real-time weather information quickly. Alternatively, the user may be provided with time information quickly, such as a clock card 14 displayed on the interface 102. However, the card can only display part of the application information in the area where the card is located, and the content of the expression is limited.
Disclosure of Invention
In order to solve the above technical problem, an embodiment of the present application provides a desktop dynamic effect display method and an electronic device. According to the technical scheme, the electronic equipment can be used for displaying the dynamic effect of the first desktop element in the area outside the display area of the first desktop element on the desktop, so that the desktop expression content is enriched, and the user experience is improved.
In order to achieve the technical purpose, the embodiment of the present application provides the following technical solutions:
in a first aspect, a desktop dynamic effect display method is provided and applied to an electronic device. The method comprises the following steps: a desktop is displayed, the desktop including a first desktop element. A first animation to play the first desktop element is determined. And playing a first dynamic effect in a first area of the desktop, wherein the first area comprises an area except for the area occupied by the first desktop element.
Illustratively, the electronic device displays a desktop that includes desktop elements such as application icons, cards, folders, status bars, and the like. The first desktop element playing the first dynamic effect may be a card or an icon corresponding to the first desktop element included in the desktop element.
In this way, the electronic device can display the dynamic effect of the first desktop element on the desktop, and the dynamic effect of the first desktop element can be displayed in an area outside the display area of the first desktop element. Therefore, the content can be enriched and the user can be provided with better dynamic effect experience.
According to a first aspect, before determining to play the first animation, the method further comprises: determining a dynamic effect playing environment with a playing first dynamic effect; the dynamic effect playing environment comprises that first content and/or second content do not exist on the desktop, the first content is content influencing the playing effect of the first dynamic effect, and the second content is content influencing the playing effect of the first dynamic effect.
For example, the first content or the second content may be a live effect playing on a desktop or a desktop element such as a floating window.
Therefore, the dynamic effect playing environment of the desktop is determined before the first dynamic effect is played, the dynamic effect played or other displayed contents on the desktop cannot be influenced in the first dynamic effect playing process, and the playing of the dynamic effect played or other displayed contents on the desktop cannot be influenced, so that the playing effect of the desktop dynamic effect is ensured.
According to the first aspect, or any implementation manner of the first aspect above, the second area displaying the first content intersects with a first key area in the first area, and the first area intersects with a second key area in the third area displaying the second content.
Optionally, the key area may be a touch area where the user can interact with the animation. Partial effects may be where all display areas are critical areas, or where no critical areas are present.
Exemplarily, it is assumed that a playing area of the dynamic effect a is a, and a key area is a1; the playing area of the dynamic effect B is B, and the key area is B1. And the dynamic effect module determines that the dynamic effect B needs to be played in the process of playing the dynamic effect A. The dynamic effect module determines that the playing area B does not affect the key area a1, and the playing area a does not affect the key area B1, so that the dynamic effect module can play the dynamic effect B in the process of playing the dynamic effect a.
According to the first aspect, or any implementation manner of the first aspect, the first content or the second content is content displayed in a floating window or dynamic content played on a desktop.
According to a first aspect, or any implementation of the first aspect above, the desktop further comprises a second desktop element, the method further comprising: and acquiring the requirement of playing the second dynamic effect of the second desktop element. If the second action is not played in the action effect playing environment, the electronic equipment does not play the second action, or the electronic equipment postpones the playing of the second action until the second action is played in the action effect playing environment.
In some embodiments, after receiving the dynamic effect request of the second desktop element, the electronic device may determine that a need for playing a second dynamic effect of the second desktop element is obtained. Or the electronic device acquires a dynamic effect event located at the head of the queue in the dynamic effect playing queue, and determines that the dynamic effect event is a dynamic effect event corresponding to the dynamic effect of the second desktop element, so that the electronic device can determine that a requirement for playing the second dynamic effect of the second desktop element is acquired. Then the electronic device may then determine whether there is a playback environment for playing the dynamic effect of the second desktop element to determine whether the dynamic effect may be played. If it is determined that the second animation cannot be played for the moment, it may be determined whether the second animation has a time limit requirement. For example, the second action has a time limit requirement, and playing the action after exceeding the time limit requirement has no meaning of reminding the user, and the second action can not be played any more. Alternatively, the second action has no time limit requirement, or has not reached the time limit required by the time limit, and the playing can be delayed. Optionally, whether the second animation has a time limit requirement may be determined by an application corresponding to the second desktop element, or whether the second animation has a time limit requirement may be determined by the animation module.
Therefore, even if the desktop does not have a dynamic effect playing environment at present, delayed playing can be achieved for partial dynamic effects, and dynamic effect playing experience of a user is guaranteed.
According to a first aspect, or any implementation of the first aspect above, the desktop further comprises a third desktop element, the method further comprising: and determining that the first dynamic effect and the third desktop element are pre-configured with linkage dynamic effects. And in the process of playing the first dynamic effect in the first area, playing a third dynamic effect of a third desktop element in a fourth area of the desktop.
Optionally, the fourth area includes an area outside an area occupied by the third desktop element.
In some embodiments, a developer may configure whether an application campaign may be linked with other applications and whether hardware functionality of an electronic device needs to be linked in configuring the application campaign. For example, if other applications can be linked, the linked animation effect can be determined in advance with the developer of the application that can be linked, the corresponding linked animation effect can be configured in the linked application, and the linked animation effect indication can be configured in the present application. Then, subsequently, in the process that the application program requests to play the dynamic effect, a dynamic effect request carrying the linkage dynamic effect indication may be sent to the dynamic effect module, and the linkage indication includes an identifier (such as an application ID) of the application program that needs linkage. After receiving the dynamic effect request, the dynamic effect module can determine an identifier according to the linkage indication therein, and then forward the linkage dynamic effect indication to the corresponding application program according to the identifier. And then the application program needing linkage sends a linkage action request to the action module according to the linkage action indication, so as to realize playing linkage action. For another example, if the hardware function of the electronic device needs to be linked, the developer configures the required hardware in the application program activity. Then, in the subsequent dynamic effect request process, the dynamic effect module can acquire which hardware functions are required by the dynamic effect requested to be played, and can request the launcher to call the hardware functions, for example, request the audio module to play dynamic effect sound. The number of the linked applications can be one or more.
Therefore, through full-screen desktop dynamic effect, more information corresponding to application programs can be displayed for a user, intelligent linkage can be achieved, the user can be helped to use the electronic equipment more conveniently, and user use experience is improved.
According to the first aspect, or any implementation manner of the first aspect above, before determining the animation effect of playing the first desktop element, the method further includes: and determining that the first application corresponding to the first desktop element has the dynamic effect playing permission.
In some embodiments, the application program needs to obtain the permission for playing the dynamic effect of the electronic device, and the dynamic effect module may play the dynamic effect after determining that the application program has the permission for playing the dynamic effect. For example, after receiving a dynamic effect request sent by an application program, the dynamic effect module determines that the application program does not have the dynamic effect playing permission, and then displays a prompt message for prompting a user to confirm whether to allow the application program to play the dynamic effect. If the user allows, the dynamic effect playing authority is obtained (namely the user authorization is obtained), and the dynamic effect playing authority can be saved. For another example, the electronic device provides a dynamic effect playing right setting entry in the setting application, and allows the user to set the dynamic effect playing right. For another example, a dynamic effect playing right setting entry is preset in the application program, and the user is allowed to set the dynamic effect playing right of the application program in the application program. Optionally, after the dynamic effect module receives the dynamic effect request each time, the dynamic effect playing permission of the application program needs to be determined, so that the dynamic effect playing permission change caused by user change setting is avoided, and the stored dynamic effect playing permission is different from the dynamic effect playing permission set by the user, so that abnormality occurs and user use experience is influenced.
According to the first aspect, or any implementation manner of the first aspect above, before the playing of the first animation in the first region of the desktop, the method further includes: acquiring dynamic effect resource information of a first dynamic effect; the dynamic effect resource information comprises a storage position of a dynamic effect resource of the first dynamic effect and/or information of a dynamic effect layer corresponding to the first dynamic effect; the number of the dynamic effect layers is one layer or multiple layers, the dynamic effect resources comprise one or multiple resources, and the information of the dynamic effect layers comprises the corresponding relation between one layer or multiple layers of dynamic effect layers and one or multiple resources; the storage position of the dynamic effect resource is used for obtaining the dynamic effect resource, and the information of the dynamic effect layer is used for determining the layer for playing the first dynamic effect.
In some embodiments, during the process of displaying the desktop, the application program detects a trigger event and requests the dynamic effect module for an available dynamic effect layer. The dynamic effect module sends information of dynamic effect layers (for example, the available dynamic effect layers are 3 layers) to the application program, and the application program selects one or more dynamic effect layers according to the obtained information of the dynamic effect layers and a selection rule preset by a developer, and can send the selected information of the dynamic effect layers and the corresponding storage positions of dynamic effect resources to the dynamic effect module if 1 dynamic effect layer is selected. And the dynamic effect module obtains dynamic effect resources stored in the storage position, draws a dynamic effect in a dynamic effect layer selected by the application program, and plays the dynamic effect on the desktop after the drawing is finished. Optionally, the application program may also be preconfigured with information of available animation layers. Then, the application may not have to request the available animation layer information from the animation module after detecting the trigger event.
In some embodiments, the dynamic resources of the dynamic may be stored in different memory locations, or all stored in the same memory location. In addition, the dynamic effects corresponding to different dynamic effect resources can be played on the same or different dynamic effect layers. The storage location of the dynamic effect resource and the information of the dynamic effect layer for playing can be pre-configured in the application program, for example, the developer can pre-configure the information in the application program during the development process of the application program. Then, when the subsequent electronic device determines that the dynamic effect playing needs to be performed, the dynamic effect resource can be obtained according to the preconfigured information, and the corresponding dynamic effect layer is determined, so as to implement the dynamic effect playing.
Therefore, the electronic equipment can realize automatic dynamic playing according to the pre-configured information, the operation difficulty of the user is reduced, and the use experience of the user is improved.
According to the first aspect or any one implementation manner of the first aspect, the dynamic effect resource information is determined by a first application corresponding to the first desktop element according to the desktop element included in the desktop and a selectable layer, where the selectable layer includes one or more dynamic effect layers determined by the first application.
In some embodiments, the dynamic effect module sends the desktop element to the application after receiving a dynamic effect request sent by the application. And the application program determines whether the electronic equipment is provided with the application program needing linkage according to the desktop elements, and after determining that the electronic equipment is provided with the application program needing linkage, the application program sends a linkage action effect indication to the action effect module so as to play the linkage action effect. Alternatively, the application can determine the display effect of the animation effect according to the desktop element. If the card requesting the animation determines that an application icon is displayed nearby, the animation module may be instructed to display the animation on the nearby application icon.
For example, assume that an application a (corresponding to a card a) is configured with a dynamic effect in an electronic device, and the dynamic effect can be displayed together with an application C (corresponding to a card C) in a linkage manner. The dynamic effect module receives a dynamic effect request sent by the application A, acquires desktop element information (a card C is displayed), and sends the desktop element information to the application A. And the application A determines that the electronic equipment is provided with the application C according to the desktop element information, then the linkage dynamic effect indication and the dynamic effect resource information (such as the storage position comprising the dynamic effect resource) corresponding to the linkage dynamic effect are sent to the dynamic effect module, the dynamic effect module forwards the linkage dynamic effect indication to the application C, and then the application C determines whether the linkage dynamic effect is displayed or not. If the application C determines to display the linkage dynamic effect, a dynamic effect request can be sent to the dynamic effect module. Then assume that the linkage action includes adding an expression and a wreath on card a, changing the display position of card C, and offering flowers from card C to card a. Then, the dynamic effect module realizes dynamic effect playing according to the received dynamic effect resource information sent by the application A and the received dynamic effect resource information sent by the application C.
Therefore, the electronic equipment can realize different dynamic effect playing effects according to the desktop element display condition, so that the dynamic effect playing effects can better meet the user requirements, and better dynamic effect playing experience is provided for the user.
According to the first aspect, or any implementation manner of the first aspect above, the method further includes: in the process of playing the first dynamic effect, the operation of the user on the first touch area included in the first dynamic effect is detected, and the playing of the first dynamic effect is stopped.
According to the first aspect, or any implementation manner of the first aspect above, the method further includes: in the process of playing the first dynamic effect, detecting the operation of the user on the second touch area included in the first dynamic effect, and playing the first dynamic effect again.
In some embodiments, in the process of configuring the application program action, a developer may configure a touch focus at a specific position in the action, where the touch focus is used to represent a touch area corresponding to a preset action interaction position, and a user may interact with the action through the touch area, such as instructing to stop playing the action, replay the action, and so on. Further, the command meaning corresponding to the touch focus can be configured. Then, subsequently, in the process of playing the animation effect, after detecting the operation of the user on the touch focus, the electronic device executes the corresponding command. Further, the electronic device detects that the user operates at a position where the touch focus is not configured (i.e., operates at a region outside the touch region), which results in focus breakdown, the dynamic effect module determines that the dynamic effect playing needs to be stopped, and executes a command corresponding to the desktop control corresponding to the touch position through the touch focus, so that interference of the dynamic effect on the desktop operation is reduced.
Therefore, the electronic equipment interacts with the user through the touch focus in the process of playing the dynamic effect, the participation sense of the user is improved, and the use experience of the user is improved.
According to a first aspect, or any implementation manner of the first aspect above, playing a first animation in a first area of a desktop includes: and playing a first dynamic effect with preset duration in a first area of the desktop.
In some embodiments, a dynamic effect playing time duration is preset in the application program, and after the time for playing the dynamic effect meets the dynamic effect playing time duration, the dynamic effect module may stop playing the corresponding dynamic effect. Therefore, the problem that the playing of subsequent dynamic effects is influenced due to overlong resource occupation time is avoided. Or, desktop display space is occupied, and desktop element display is affected.
According to the first aspect, or any one of the above implementation manners of the first aspect, the electronic device maintains a dynamic effect play queue, where the dynamic effect play queue is used to store dynamic effect events corresponding to dynamic effects to be played, and the dynamic effect events include one or more of an identifier of an application corresponding to a dynamic effect to be played, a latest play time of a dynamic effect to be played, a tag of a dynamic effect event corresponding to a linkage dynamic effect of a dynamic effect to be played, and dynamic effect resource information of a dynamic effect to be played.
In some embodiments, after receiving the dynamic effect request, the dynamic effect module may determine an identifier of an application corresponding to the dynamic effect request, and may determine the corresponding application when the identifier is recorded in the corresponding dynamic effect event, so as to facilitate subsequent signal interaction with the application. In addition, part of the dynamic effects have time limit requirements, and playing the dynamic effects after the time limit requirements are exceeded does not have the significance of reminding a user, so that the dynamic effect module can determine whether the corresponding dynamic effects have the time limit requirements or not in the process of establishing the dynamic effect events, and if so, the latest playing time of the corresponding dynamic effects to be played is determined. Then the next-hypothesis animation module may determine whether a delayed play is required, when it determines that an animation may be played, that the latest play time of the animation has been exceeded. In addition, partial dynamic effects can be played in a combined mode with dynamic effects of other application programs, namely playing linkage dynamic effects. Therefore, when the action module receives the linkage action including two or more action effects, it needs to mark the action events corresponding to the action effects (i.e. add the mark of the action event corresponding to the linkage action of the action effect to be played), and if both the two action events corresponding to the two action effects included in the linkage action effect are marked as 1, then the subsequent action module needs to determine whether the other action can be played when determining to play one of the action effects, thereby realizing playing the linkage action effect. In addition, the dynamic effect module needs to obtain dynamic effect resource information of the dynamic effect to be played in advance when the dynamic effect playing is realized, so that the dynamic effect module can obtain the dynamic effect resource information from a corresponding application in the process of creating the dynamic effect event.
According to a first aspect, or any implementation manner of the first aspect above, after determining to play the first animation of the first desktop element, the method further includes: and moving the dynamic effect event corresponding to the first dynamic effect out of the dynamic effect play queue.
In some embodiments, the dynamic effect module maintains a dynamic effect play queue for sorting dynamic effects to be played. The dynamic effect playing process meets the consumption mode of a producer, wherein the producer is an application program requesting playing of the dynamic effect, the cache region is used for storing a dynamic effect playing queue, and the consumer is a dynamic effect module. For example, the dynamic effect module maintains two threads (e.g., thread 1 and thread 2), where the thread 1 is configured to generate a corresponding dynamic effect event according to a dynamic effect request sent by an application program and place the dynamic effect event in a dynamic effect play queue, and the thread 2 is configured to take out the dynamic effect event from a head of the dynamic effect play queue to implement dynamic effect play. Specifically, after receiving the dynamic effect request, the dynamic effect module generates a corresponding dynamic effect event and places the dynamic effect event at the tail of the dynamic effect play queue (if the dynamic effect play queue is empty, the generated dynamic effect event is placed at the head of the dynamic effect play queue). And after receiving the dynamic effect requests, the dynamic effect module arranges corresponding dynamic effect events in the dynamic effect play queue in sequence according to the sequence of receiving the dynamic effect requests. And the dynamic effect module sequentially determines whether to play the corresponding dynamic effects from the dynamic effect event positioned at the head of the queue according to the sequence of the dynamic effect events in the dynamic effect play queue. When a certain action is determined to be played, the action event corresponding to the action can be moved out of the action playing queue. Therefore, after the action module starts playing an action, whether the action playing queue is empty can be checked, if not, whether the action at the head of the line can be played or not is determined, and if the action can be played, the action at the head of the line can be moved out and played. Namely, each action module is used for determining whether the action positioned at the head of the queue can be played.
Therefore, the electronic equipment realizes ordered dynamic effect playing by maintaining the dynamic effect playing queue, improves the dynamic effect processing efficiency and provides better dynamic effect playing experience for users.
In a second aspect, a desktop dynamic effect display method is provided and applied to an electronic device. A first desktop element corresponding to a first application is displayed on a desktop of the electronic equipment; the method comprises the following steps: a triggering event of a first animation of playing a first application is detected. Determining dynamic effect resource information of a first dynamic effect; the dynamic effect resource information comprises a storage position of a dynamic effect resource of the first dynamic effect and/or information of a dynamic effect layer corresponding to the first dynamic effect; the number of the dynamic effect layers is one layer or multiple layers, the dynamic effect resources comprise one or multiple resources, and the information of the dynamic effect layers comprises the corresponding relation between one layer or multiple layers of dynamic effect layers and one or multiple resources; the dynamic effect resource information is used for playing a first dynamic effect in a first area of the desktop, and the first area comprises areas outside the area occupied by the first desktop element.
According to a second aspect, the dynamic effect resource information is determined for a first application corresponding to a first desktop element according to the desktop element included in the desktop and optional layers, where the optional layers include one or more dynamic effect layers determined by the first application.
According to a second aspect, or any implementation manner of the second aspect above, the first application has an action-efficient playback right.
According to a second aspect, or any implementation manner of the second aspect above, the first desktop element includes a card and/or an icon of the first application corresponding to the first desktop element.
For technical effects corresponding to any one of the implementation manners in the second aspect and the second aspect, reference may be made to the technical effects corresponding to any one of the implementation manners in the first aspect and the first aspect, and details are not repeated here.
In a third aspect, an electronic device is provided. The electronic device includes: a processor, a memory, and a touch screen, the memory, the touch screen coupled to the processor, the memory for storing computer program code, the computer program code including computer instructions that, when read from the memory by the processor, cause the electronic device to perform: a desktop is displayed, the desktop including a first desktop element. A first animation to play the first desktop element is determined. And playing a first dynamic effect in a first area of the desktop, wherein the first area comprises an area except for the area occupied by the first desktop element.
According to a third aspect, the processor, when reading the computer instructions from the memory, further causes the electronic device to perform the following operations: determining a dynamic effect playing environment with a playing first dynamic effect; the dynamic effect playing environment comprises that first content and/or second content do not exist on the desktop, the first content is content influencing the playing effect of the first dynamic effect, and the second content is content influencing the playing effect of the first dynamic effect.
According to the third aspect, or any implementation manner of the third aspect above, the second area displaying the first content intersects with the first key area in the first area, and the first area intersects with the second key area in the third area displaying the second content.
According to the third aspect, or any implementation manner of the third aspect above, the first content or the second content is content displayed in a floating window or dynamic content played on a desktop.
According to a third aspect, or any implementation manner of the third aspect above, the desktop further includes a second desktop element, and when the processor reads the computer instructions from the memory, the electronic device is further caused to perform the following operations: and acquiring the requirement of playing the second dynamic effect of the second desktop element. If the dynamic effect playing environment for playing the second dynamic effect does not exist, the electronic equipment does not play the second dynamic effect, or the electronic equipment postpones the playing of the second dynamic effect to the dynamic effect playing environment for playing the second dynamic effect when the situation that the playing of the second dynamic effect is delayed is determined.
According to a third aspect, or any implementation manner of the third aspect above, the desktop further includes a third desktop element, and when the processor reads the computer instructions from the memory, the electronic device is further caused to perform the following operations: and determining that the first dynamic effect and the third desktop element are pre-configured with linkage dynamic effects. And in the process of playing the first dynamic effect in the first area, playing a third dynamic effect of a third desktop element in a fourth area of the desktop.
According to the third aspect, or any implementation manner of the third aspect above, when the processor reads the computer instructions from the memory, the electronic device is further caused to perform the following operations: and determining that the first application corresponding to the first desktop element has the dynamic effect playing permission.
According to the third aspect, or any implementation manner of the third aspect above, when the processor reads the computer instructions from the memory, the electronic device is further caused to perform the following operations: acquiring dynamic effect resource information of a first dynamic effect; the dynamic effect resource information comprises a storage position of a dynamic effect resource of the first dynamic effect and/or information of a dynamic effect layer corresponding to the first dynamic effect; the number of the dynamic effect layers is one layer or multiple layers, the dynamic effect resources comprise one or multiple resources, and the information of the dynamic effect layers comprises the corresponding relation between one layer or multiple layers of dynamic effect layers and one or multiple resources; the storage position of the dynamic effect resource is used for obtaining the dynamic effect resource, and the information of the dynamic effect layer is used for determining the layer for playing the first dynamic effect.
According to the third aspect, or any implementation manner of the third aspect, the dynamic effect resource information is determined for the first application corresponding to the first desktop element according to the desktop element included in the desktop and the optional layers, where the optional layers include one or more dynamic effect layers determined by the first application.
According to a third aspect, or any implementation manner of the third aspect above, when the processor reads the computer instructions from the memory, the electronic device is further caused to perform the following operations: in the process of playing the first dynamic effect, the operation of the user on the first touch area included in the first dynamic effect is detected, and the playing of the first dynamic effect is stopped.
According to the third aspect, or any implementation manner of the third aspect above, when the processor reads the computer instructions from the memory, the electronic device is further caused to perform the following operations: in the process of playing the first dynamic effect, detecting the operation of the user on the second touch area included in the first dynamic effect, and playing the first dynamic effect again.
According to the third aspect, or any implementation manner of the third aspect above, playing a first animation in a first area of a desktop includes: and playing a first dynamic effect with preset duration in a first area of the desktop.
According to the third aspect, or any implementation manner of the third aspect above, the first desktop element includes a card and/or an icon of the first application corresponding to the first desktop element.
According to the third aspect, or any one implementation manner of the third aspect, the electronic device maintains a dynamic effect play queue, where the dynamic effect play queue is used to store dynamic effect events corresponding to dynamic effects to be played, and the dynamic effect events include one or more of an identifier of an application corresponding to a dynamic effect to be played, a latest play time of a dynamic effect to be played, a tag of a dynamic effect event corresponding to a linkage dynamic effect of a dynamic effect to be played, and dynamic effect resource information of a dynamic effect to be played.
According to the third aspect, or any implementation manner of the third aspect above, when the processor reads the computer instructions from the memory, the electronic device is further caused to perform the following operations: and moving the dynamic effect event corresponding to the first dynamic effect out of the dynamic effect play queue.
For technical effects corresponding to any one of the implementation manners in the third aspect and the third aspect, reference may be made to the technical effects corresponding to any one of the implementation manners in the first aspect and the first aspect, and details are not repeated here.
In a fourth aspect, an electronic device is provided. The electronic device includes: a processor, a memory, and a touch screen, the memory, the touch screen coupled to the processor, the memory for storing computer program code, the computer program code including computer instructions that, when read from the memory by the processor, cause the electronic device to perform: a trigger event to play a first animation of a first application is detected. Determining dynamic effect resource information of a first dynamic effect; the dynamic effect resource information comprises a storage position of a dynamic effect resource of the first dynamic effect and/or information of a dynamic effect layer corresponding to the first dynamic effect; the number of the dynamic effect layers is one layer or multiple layers, the dynamic effect resources comprise one or multiple resources, and the information of the dynamic effect layers comprises the corresponding relation between one layer or multiple layers of dynamic effect layers and one or multiple resources; the dynamic effect resource information is used for playing a first dynamic effect in a first area of the desktop, and the first area comprises areas outside the area occupied by the first desktop element.
According to the fourth aspect, the dynamic effect resource information is determined for the first application corresponding to the first desktop element according to the desktop element included in the desktop and the selectable layers, and the selectable layers include one or more dynamic effect layers determined by the first application.
According to a fourth aspect, or any implementation manner of the fourth aspect above, the first application has an action-efficient playback permission.
According to a fourth aspect, or any implementation manner of the fourth aspect above, the first desktop element includes a card and/or an icon of the first application corresponding to the first desktop element.
For technical effects corresponding to any one of the implementation manners in the fourth aspect and the fourth aspect, reference may be made to the technical effects corresponding to any one of the implementation manners in the second aspect and the second aspect, and details are not repeated here.
In a fifth aspect, an embodiment of the present application provides an electronic device, where the electronic device has a function of implementing the desktop animation display method as described in the first aspect and any one of the possible implementation manners; alternatively, the electronic device has a function of implementing the desktop animation display method as described in the second aspect and any one of the possible implementations thereof. The function can be realized by hardware, and can also be realized by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
For technical effects corresponding to any one of the implementation manners of the fifth aspect and the fifth aspect, reference may be made to the technical effects corresponding to any one of the implementation manners of the first aspect and the first aspect, and details are not described here.
In a sixth aspect, a computer-readable storage medium is provided. A computer-readable storage medium stores a computer program (also referred to as instructions or code) that, when executed by an electronic device, causes the electronic device to perform the method of any one of the first aspect or the first aspect; or cause the electronic device to perform the method of any of the second aspect or the second aspect embodiments.
For technical effects corresponding to any one of the implementations of the sixth aspect and the sixth aspect, reference may be made to the technical effects corresponding to any one of the implementations of the first aspect and the first aspect, and details are not described here.
In a seventh aspect, an embodiment of the present application provides a computer program product, which, when run on an electronic device, causes the electronic device to execute the method of the first aspect or any one of the embodiments of the first aspect; or cause the electronic device to perform the method of any of the second aspect or the second aspect embodiments.
For technical effects corresponding to any one of the implementation manners in the seventh aspect and the seventh aspect, reference may be made to the technical effects corresponding to any one of the implementation manners in the first aspect and the first aspect, and details are not repeated here.
In an eighth aspect, the present application provides a circuit system, where the circuit system includes a processing circuit configured to execute the method of any one of the first aspect or the first aspect; alternatively, the processing circuitry is configured to perform the method of any of the second aspect or the second aspect.
For technical effects corresponding to any one implementation manner of the eighth aspect and the eighth aspect, reference may be made to the technical effects corresponding to any one implementation manner of the first aspect and the first aspect, and details are not described here.
In a ninth aspect, an embodiment of the present application provides a chip system, including at least one processor and at least one interface circuit, where the at least one interface circuit is configured to perform a transceiving function and send an instruction to the at least one processor, and when the at least one processor executes the instruction, the at least one processor performs the method of any one of the first aspect or the first aspect; alternatively, at least one processor performs the method of any one of the embodiments of the second aspect or the second aspect.
For technical effects corresponding to any one of the implementations of the ninth aspect and the ninth aspect, reference may be made to the technical effects corresponding to any one of the implementations of the first aspect and the first aspect, and details are not repeated here.
Drawings
FIG. 1 is a first schematic view of an interface provided in an embodiment of the present application;
fig. 2 is a schematic view of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 4A is a block diagram illustrating a software structure of an electronic device according to an embodiment of the present disclosure;
FIG. 4B is a schematic view of a scene of a desktop animation provided in an embodiment of the present application;
FIG. 5 is a second schematic interface diagram provided in an embodiment of the present application;
fig. 6 is a first diagram of a layer provided in an embodiment of the present application;
FIG. 7 is a schematic diagram of a layer touch focus provided in an embodiment of the present application;
FIG. 8 is a third schematic interface diagram provided in an embodiment of the present application;
fig. 9 is a second schematic diagram of a layer provided in the embodiment of the present application;
FIG. 10 is a fourth schematic interface provided by an embodiment of the present application;
FIG. 11 is a fifth schematic view of an interface provided by an embodiment of the present application;
fig. 12 is a sixth schematic interface provided in an embodiment of the present application;
fig. 13 is a seventh schematic interface diagram provided in an embodiment of the present application;
fig. 14 is an eighth schematic interface diagram provided by an embodiment of the present application;
FIG. 15 is a ninth schematic interface diagram provided by an embodiment of the present application;
fig. 16 is a schematic diagram ten of an interface provided in an embodiment of the present application;
FIG. 17 is an eleventh schematic interface diagram provided by an embodiment of the present application;
FIG. 18 is a twelfth schematic interface view provided by an embodiment of the present application;
FIG. 19 is a thirteen schematic interface diagram provided by an embodiment of the present application;
FIG. 20 is a fourteenth schematic interface diagram provided in accordance with an embodiment of the present application;
fig. 21 is a first flowchart of a desktop dynamic effect display method according to an embodiment of the present application;
FIG. 22 is a fifteen schematic interface diagram provided by an embodiment of the present application;
fig. 23 is a sixteenth schematic interface diagram provided in an embodiment of the present application;
FIG. 24 is a flowchart illustrating a second method for displaying a dynamic desktop effect according to an embodiment of the present disclosure;
fig. 25 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solution in the embodiments of the present application is described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments of the present application, the terminology used in the following embodiments is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used in the specification of the present application and the appended claims, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as "one or more", unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" means one or more than two (including two).
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise. The term "coupled" includes both direct and indirect connections, unless otherwise noted. "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
In the embodiments of the present application, the words "exemplary" or "such as" are used herein to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The desktop dynamic effect display method provided by the embodiment of the application can be applied to electronic equipment. For example, as shown in fig. 2, the electronic device may specifically be a mobile phone 21, a notebook computer 22, a tablet computer 23, a large screen display device 24, a wearable device (such as a smart watch, a smart bracelet, etc.) 25, an in-vehicle device, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), an artificial intelligence (artificial intelligence) device, and other terminal devices having a display function. Operating systems for electronic device installation include, but are not limited to Or other operating system. In some embodiments, the electronic device may be a stationary device or a portable device. The specific type of the electronic equipment and the installed operating system are not limited by the application.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
The electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like.
It is to be understood that the illustrated structure of the embodiments of the present application does not constitute a specific limitation to electronic devices. In other embodiments of the present application, an electronic device may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components may be used. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device, and may also be used to transmit data between the electronic device and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other second electronic devices, such as AR devices and the like.
It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only an exemplary illustration, and does not constitute a limitation on the structure of the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device. The charging management module 140 may also supply power to the second electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like.
The wireless communication function of the electronic device may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in an electronic device may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave.
The wireless communication module 160 may provide solutions for wireless communication applied to electronic devices, including Wireless Local Area Networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global Navigation Satellite Systems (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of the electronic device is coupled to the mobile communication module 150 and antenna 2 is coupled to the wireless communication module 160 so that the electronic device can communicate with the network and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), general Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device implements display functionality via the GPU, the display screen 194, and the application processor, among other things. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-OLED, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device may include 1 or N display screens 194, N being a positive integer greater than 1.
In some embodiments, the electronic device displays the desktop after detecting an unlocking operation or detecting an operation of exiting the application program and returning to the desktop. During the process of displaying the desktop via the display screen 194, the application program detects an event that triggers the dynamic effect of the desktop (e.g., the weather application detects a weather alert event) and requests the dynamic effect module to play the dynamic effect. The electronic device then displays the desktop animation on the display screen 194 through the animation module.
The sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
Touch sensors, also known as "touch devices". The touch sensor may be disposed on the display screen 194, and the touch sensor and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor may be disposed on a surface of the electronic device at a different location than the display screen 194.
In some embodiments, in the process of displaying the desktop animation, the electronic device executes a corresponding operation when detecting an operation of a user at a preset focal position of the desktop animation through the touch sensor. And if the operation that the user clicks a preset dynamic effect focus closing point in the desktop dynamic effect is detected, quitting the desktop dynamic effect and displaying the desktop. Or in the process of displaying the desktop dynamic effect, if the touch sensor detects that the user operates the desktop dynamic effect except for the preset focus, the electronic device exits from the desktop dynamic effect and executes the corresponding operation in response to the touch position. If the electronic equipment detects that the user clicks the application program icon through the touch sensor in the process of displaying the desktop dynamic effect, the desktop dynamic effect is quitted, and the application program corresponding to the application program icon is started.
The electronic device may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, the application processor, and the like.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device may include 1 or N cameras 193, N being a positive integer greater than 1.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The data storage area can store data (such as audio data, phone book and the like) created in the using process of the electronic device. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 110 executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The electronic device may implement audio functions through the audio module 170, as well as the application processor, etc. Such as music playing, recording, etc. The audio module 170 may include a speaker, a receiver, a microphone, an earphone interface, and the like. For converting digital audio information into an analog audio signal output and for converting an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic device may receive a key input, and generate a key signal input related to user settings and function control of the electronic device.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be attached to and detached from the electronic device by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic equipment can support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
The software system of the electronic device may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the application takes an Android system with a layered architecture as an example, and illustrates a software structure of an electronic device.
Fig. 4A is a block diagram of a software structure of an electronic device according to an embodiment of the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 4A, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 4A, the application framework layer may include a window manager, content provider, view system, resource manager, notification manager, telephony manager, activity module, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a brief dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The phone manager is used to provide communication functions of the electronic device. Such as management of call status (including on, off, etc.).
The dynamic effect module is used for managing desktop dynamic effects, such as controlling the playing and stopping of the desktop full-screen dynamic effects.
Illustratively, as shown in fig. 4B, the interactive message is transmitted in the electronic device through the animation module 42 as an intermediary or interface between the desktop (e.g. launcher) 43 and the application 41, so as to implement playing of the animation corresponding to the application 41. After detecting the trigger event of playing the dynamic effect, the application 41 sends a dynamic effect request to the dynamic effect module 42 for requesting to play the dynamic effect. After determining that the application 41 has the dynamic effect playing authority based on the dynamic effect request, the dynamic effect module 42 obtains the storage location of the dynamic effect resource of the dynamic effect to be played from the application 41. Then, the dynamic effect module 42 determines whether there is a desktop dynamic effect playing environment currently, and if there is a desktop dynamic effect playing environment (for example, the desktop does not play the dynamic effect, or the playing dynamic effect being played and the dynamic effect requested to be played do not affect each other), the dynamic effect resource can be obtained according to the storage location of the dynamic effect resource to play the dynamic effect. Such as playing a animation via launcher 43. Further, if the dynamic effect playing may also need hardware support, the dynamic effect module 42 requests the launcher 43 to call the hardware resource. If the sound needs to be played in the dynamic effect playing process, the dynamic effect module 42 calls the audio module of the electronic device through the launcher 43 to play the sound in the dynamic effect playing process.
In some embodiments, as shown in FIG. 4B, the dynamic effect module 42 may be packaged in a launcher 43 as a module in a launcher 43 application. Then, in the above interactive process of the dynamic effect playing, the application 41 may directly interact with the launcher 43 to implement the dynamic effect playing. Alternatively, the dynamic effect module 42 may be used as an independent application, and packaged separately to implement dynamic effect playing. Optionally, the dynamic effect module 42 may also be described as a dynamic effect application (application), a full-screen dynamic effect APP, a dynamic effect service, a dynamic effect management service, and the like, which is not limited in this embodiment of the application, and any module having a similar function, regardless of the name of the module, should be included in the protection scope of the application as long as the module conforms to the technical idea of the method provided in the embodiment of the application.
It should be noted that the application requesting playing of the animation may be a native APP installed in the electronic device,or may be a three-party APP installed in the electronic device. The native APP is an APP provided by an electronic device manufacturer, and for example, the short message application in the mobile phone is the native APP. Three-party APP for APPs provided by other manufacturers, e.g. in mobile phonesThe application is a three-party APP.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), two-dimensional graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide a fusion of the 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
In some embodiments, the electronic device may display one or more of an application icon, an application card, and a folder containing the application icon on the desktop after the application is installed. Optionally, a status bar of the electronic device may be displayed on the desktop, and the status bar is used to display the status of the electronic device, such as a network connection status and a battery power status. The desktop element of the electronic equipment comprises the content displayed on the desktop. Optionally, the desktop element that can apply for playing the dynamic effect may be a part of the desktop element, such as an application card and an application icon.
Illustratively, as shown in fig. 5 (a) as an interface 501, the interface 501 displays a desktop of the electronic device. An application icon, such as a clock icon 51, is displayed on the desktop. Also displayed on the desktop are application cards, such as music application cards 52. A folder 53 containing application icons is also displayed on the desktop. As shown in the interface 502 in fig. 5 (b), which is an interface displayed after the electronic device detects that the user clicks the folder 53, the interface is used to display an application icon included in the folder, and further, as shown in the interface 501 in fig. 5 (a), a status bar may also be displayed on the desktop, as shown in a dashed box indicated by the reference numeral 54, and information such as the power of the electronic device may be displayed in the status bar.
In some embodiments, during the process of displaying the desktop by the electronic device, the application running the application service may apply for playing the desktop animation. For example, a card displayed on a desktop can run an application service and can be applied for playing a dynamic effect. Such as a clock application card, can support the change of the display card content along with the time, so that the application service is running. For another example, in the application program corresponding to the application icon displayed on the desktop, the application program running in the background can run the application service, and can apply for playing dynamic effect. However, if the application is not running in the background, the desktop displays the icon of the application, and cannot apply for playing the desktop animation.
Therefore, the application program running the application service can apply for full-screen dynamic effect display in the process of displaying the desktop of the electronic equipment. Compared with the prior art that partial information of the application program can be displayed only in the area where the application program icon or card is located, the desktop dynamic effect display method provided by the embodiment of the application can display relevant information of the application program in the area outside the area where the application program icon or card is located, for example, the full-screen dynamic effect of the application is displayed, so that the desktop dynamic effect can contain more application program information, the user-defined dynamic effect display effect of a developer is supported, the interactivity of a user can be increased, and the use experience of the user is improved.
In some embodiments, during the development process of the application program, the developer can add the dynamic effect of the application program to the application program according to the requirement, and trigger the triggering event of the dynamic effect of the application program. Then, subsequently, in the process of displaying the desktop by the electronic device, after the application program detects the trigger event, the application program can apply for playing the dynamic effect to the dynamic effect module. The developer presets dynamic effect related information in the application development kit, for example, presets dynamic effect resources (such as picture resources, text resources, video resources and the like required in the dynamic effect playing process), dynamic effect playing duration and other information of the dynamic effect. The trigger event includes a trigger event associated with an application functionality attribute. For example, the calendar application has a function of adding a schedule, and if a trigger event preset in the calendar application by a developer meets a schedule reminding condition set by a user, the calendar application can request the dynamic effect module to play a dynamic effect after detecting the trigger event, such as playing schedule reminding information on a desktop. The following specifically introduces possible implementation manners of the trigger event in combination with specific scenarios, which are not described herein again.
In some embodiments, a dynamic effect module in the electronic device adds one or more layers on the desktop for playing the dynamic effect. And then, the application program requests to apply part or all of the layers and provides dynamic resources. After obtaining the dynamic effect resource, the dynamic effect module can play the dynamic effect in the requested dynamic effect layer. Optionally, a layer of the electronic device display desktop may be regarded as a desktop layer. The dynamic effect layer may include one or more of a layer below the desktop layer, a layer between the desktop layer and the floating window layer, and a layer above the floating window layer. The dynamic effect module can play the dynamic effect on the desktop layer according to the application program request.
For example, as shown in an interface 601 in fig. 6 (a), during the process of displaying the desktop, the electronic device detects a trigger event, and requests an available animation layer from the animation module. The dynamic effect module sends information of dynamic effect layers (for example, the available dynamic effect layers are 3 layers) to the application program, and the application program selects one or more dynamic effect layers according to the obtained information of the dynamic effect layers and a selection rule preset by a developer, and can send the selected information of the dynamic effect layers and the corresponding storage positions of dynamic effect resources to the dynamic effect module if 1 dynamic effect layer is selected. The dynamic effect module obtains dynamic effect resources stored in a storage location and draws a dynamic effect in a dynamic effect layer selected by an application program, for example, the dynamic effect layer shown in (b) of fig. 6 draws the dynamic effect, and after the drawing is completed, the dynamic effect is played on a desktop and displayed on an interface 602 shown in (c) of fig. 6, which includes a desktop layer and a dynamic effect layer. Optionally, the application program may also be preconfigured with information of available animation layers. Then, the application may not have to request the available animation layers from the animation module after detecting the triggering event.
In some embodiments, after receiving the dynamic effect request, the dynamic effect module may request the corresponding application program to obtain dynamic effect resource information of the dynamic effect to be played. The dynamic effect resource information comprises the storage position of the dynamic effect resource of the dynamic effect to be played and/or the information of the corresponding dynamic effect layer. The number of the dynamic effect layers is one or more layers, the dynamic effect resources include one or more resources (as shown in fig. 6, a plurality of flowers included in the scene are a plurality of resources), and the information of the dynamic effect layers includes a correspondence between one or more layers of dynamic effect layers and one or more resources. That is, the application determines the action layers for playing the action, and determines which action resources corresponding to the action are played at which action layer.
For example, the dynamic effect resource information includes a storage location of the dynamic effect resource of the dynamic effect to be played and information of a corresponding dynamic effect layer. Then, subsequently, the dynamic effect module can obtain corresponding dynamic effect resources from the storage locations of the dynamic effect resources (different dynamic effect resources can be stored in different storage locations), and determine which dynamic effect layer plays the dynamic effect of which dynamic effect resource according to the information of the dynamic effect layer. If different dynamic effect resources have respective dynamic effect resource identifiers, the dynamic effect module may determine to play the dynamic effect layer corresponding to the dynamic effect of the dynamic effect resources according to the corresponding relationship between the dynamic effect resource identifiers and the dynamic effect layer identifiers included in the information of the dynamic effect layer. The dynamic effect resource identifier may include an identifier of a storage location of the dynamic effect resource and an identifier of the layer. If the resource 1 is determined to be stored in the position 1, the corresponding action effect is played in the layer 1.
For another example, assume that the number of the animation layers available for playing animation is 1, or the animation layer for playing animation is a default layer. The dynamic effect resource information comprises the storage position of the dynamic effect resource of the dynamic effect to be played. Then, subsequently, after the dynamic effect module obtains the corresponding dynamic effect resource from the storage location of the dynamic effect resource, the dynamic effect module can perform dynamic effect playing in the corresponding 1 dynamic effect layer or the default layer. The electronic equipment can distinguish different storage positions of different dynamic effect resources through the identification of the dynamic effect resources. Such as determining that resource 1 is stored in location 1.
For another example, assuming that the storage locations of all the dynamic effect resources are the same (for example, all the dynamic effect resources are packaged and then stored), the dynamic effect resource information includes information of the corresponding dynamic effect layer. Then, subsequently, the dynamic effect module can obtain all dynamic effect resources from the storage locations of the dynamic effect resources, and can determine to play the dynamic effect layer corresponding to the dynamic effect resources according to the corresponding relationship between the dynamic effect resource identifiers and the layer identifiers included in the information of the dynamic effect layer. The electronic device can distinguish different dynamic effect image layers corresponding to different dynamic effect resources through the identification of the dynamic effect resources. If it is determined that the dynamic effect corresponding to the resource 1 is played on the layer 1.
In some embodiments, in the process of configuring the application program action, a developer may configure a touch focus of a specific position in the action, where the touch focus is used to represent a touch area corresponding to a preset action interaction position, and a user may interact with the action through the touch area, such as instructing to stop playing the action, replay the action, and so on. Further, the command meaning corresponding to the touch focus can be configured. Then, subsequently, in the process of playing the animation effect, after detecting the operation of the user on the touch focus, the electronic device executes the corresponding command. Further, the electronic device detects that the user operates at a position where the touch focus is not configured (i.e., operates at a region outside the touch region), which results in focus breakdown, the dynamic effect module determines that the dynamic effect playing needs to be stopped, and executes a command corresponding to the desktop control corresponding to the touch position through the touch focus, so that interference of the dynamic effect on the desktop operation is reduced.
Illustratively, corresponding to the scenario shown in fig. 6, as shown in fig. 7, a plurality of touch focuses are preset in the animation layer, including a touch focus in the displayed flower center, a touch focus is replayed, and a touch focus is turned off. For example, in the process of playing the dynamic effect, after detecting that the user clicks the heart of the flower to touch the focus 71, the electronic device controls the flower to display a corresponding dynamic effect, such as rotating petals, through the dynamic effect module. For another example, the electronic device may replay the animation via the animation module after detecting that the user clicked the replay touch focus 72. For another example, after the electronic device detects that the user clicks the operation of closing the touch focus 73, the dynamic effect module exits the dynamic effect playing to display the desktop. For another example, as shown in the interface 602 in fig. 6 (c), the user's viewing of the desktop display elements is not affected during the process of playing the animation by the electronic device. Then, the electronic device detects an operation of clicking the position shown by the reference numeral 61 by the user, determines that the non-dynamic effect layer at the operation position of the user is in the preset touch focus position, and exits the dynamic effect through the dynamic effect module. Further, the electronic device determines that the user operation position corresponds to the position of the card C displayed in the desktop layer, and determines that the user needs to start the application corresponding to the card C, and then starts the application. The playing of the dynamic effect module does not affect the operation of the user on the desktop, and the user experience is not affected while the interactivity is increased.
In some embodiments, the application program may further be configured with functions corresponding to other touch focuses to achieve different operation effects, such as presetting a touch focus for playing a next action. And after detecting the touch operation of other touch focuses of the non-user-defined touch focus, the dynamic effect module sends the touch event to the application program module, the application program determines a corresponding function of the touch operation, and the corresponding dynamic effect resource is sent to the dynamic effect module. And after receiving the touch resource corresponding to the touch operation, the dynamic effect module plays the corresponding dynamic effect. Optionally, the application program may already send all the dynamic effect resources including the dynamic effect resource corresponding to the touch operation when sending the dynamic effect resource, and then the application program does not need to send the dynamic effect resource to the dynamic effect module any more after receiving the touch event, but sends a dynamic effect indication for indicating the dynamic effect module to play the dynamic effect based on which dynamic effect resources.
In some embodiments, the operation of exiting the dynamic effect is preset, and the electronic device stops playing the dynamic effect through the dynamic effect module after detecting the operation of exiting the dynamic effect. Exiting the animation may include clicking to close the touch focus (closing touch focus 73 as shown in FIG. 7), which may be defined for the application or defined for the animation module. The operation of exiting the dynamic effect may further include a preset gesture operation at a position other than the preset touch focus in the displayed dynamic effect. For example, when the electronic device detects a click operation at a position other than the touch focus, the dynamic effect module may exit the dynamic effect playing. For another example, when the electronic device detects a preset gesture operation (e.g., a double-click operation) of the user at a position other than the touch focus, the dynamic effect playing can be quitted through the dynamic effect module, so as to avoid the dynamic effect quitting caused by the user mistakenly touching. Furthermore, after the dynamic effect module determines to quit the dynamic effect, the quit dynamic effect can be played in the quitting process. Wherein, the quit action can be defined by the action module or the application program. Such as fade-out, side-out display, application custom animation, etc.
Therefore, the electronic equipment interacts with the user through the touch focus in the process of playing the dynamic effect, the participation sense of the user is improved, and the use experience of the user is improved.
In some embodiments, a developer may configure whether an application campaign may be linked with other applications and whether hardware functionality of an electronic device needs to be linked in configuring the application campaign. For example, if other applications can be linked, the linked animation effect can be determined in advance with the developer of the application that can be linked, the corresponding linked animation effect can be configured in the linked application, and the linked animation effect indication can be configured in the present application. Then, subsequently, in the process that the application program requests to play the dynamic effect, a dynamic effect request carrying the linkage dynamic effect indication may be sent to the dynamic effect module, and the linkage indication includes an identifier (such as an application ID) of the application program that needs linkage. After receiving the dynamic effect request, the dynamic effect module can determine that the linkage dynamic effect needs to be played according to the linkage indication in the dynamic effect request, and forwards the linkage dynamic effect indication to the corresponding application program according to the identification. And then the application program needing linkage sends a linkage action request to the action module according to the linkage action indication, so as to realize playing linkage action. For another example, if the hardware function of the electronic device needs to be linked, the developer configures the required hardware in the application program activity. Then, in the subsequent dynamic effect request process, the dynamic effect module can acquire which hardware functions are required by the dynamic effect requested to be played, and can request the launcher to call the hardware functions, for example, request the audio module to play dynamic effect sound. The number of the linked applications can be one or more.
Furthermore, if the electronic equipment does not have the application program which can be linked with the application program, the dynamic effect module can play the dynamic effect of the application program independently without playing the linked dynamic effect; or the dynamic effect module does not play the dynamic effect of the application program. If the electronic equipment is not provided with the hardware needing linkage, the dynamic effect module can play the dynamic effect of the application program independently without linkage of related hardware; or the dynamic effect module does not play the dynamic effect of the application program. Optionally, the dynamic effect module receives a dynamic effect request sent by the application program, includes a linkage request, and determines that the electronic device does not have a linkage condition, and sends a linkage failure response to the application program, and determines whether to play the dynamic effect and how to play the dynamic effect in the application program. The application program judgment rule is a preset rule configured by a developer in the application program development process. Or after receiving a dynamic effect request sent by the application program, the dynamic effect module sends the desktop elements and the hardware capacity to the application program. And the application program determines whether the electronic equipment is provided with the application program needing linkage according to the desktop elements, and after determining that the electronic equipment is provided with the application program needing linkage, the application program sends a linkage action effect indication to the action effect module so as to play the linkage action effect. Similarly, the application program also judges whether the electronic equipment has the hardware capability needing linkage according to the received hardware capability of the electronic equipment, if so, the application program sends a linkage action indication to the action module so as to start the corresponding hardware.
For example, as shown in fig. 8 (a), an interface 801 assumes that an application a (corresponding to a card a) in an electronic device is configured with a dynamic effect, and the dynamic effect can display a linkage dynamic effect together with an application C (corresponding to a card C). The dynamic effect module receives a dynamic effect request sent by the application A, acquires desktop element information (a card C is displayed), and sends the desktop element information to the application A. And the application A determines that the electronic equipment is provided with the application C according to the desktop element information, then the linkage dynamic effect indication and the dynamic effect resource information (such as the storage position comprising the dynamic effect resource) corresponding to the linkage dynamic effect are sent to the dynamic effect module, the dynamic effect module forwards the linkage dynamic effect indication to the application C, and then the application C determines whether the linkage dynamic effect is displayed or not. If the application C determines that the linkage dynamic effect is played, a dynamic effect request can be sent to the dynamic effect module. Then assume that the linkage action includes adding an expression and a wreath on card a, changing the display position of card C, and offering flowers from card C to card a. Then, after the dynamic effect module draws a dynamic effect according to the received dynamic effect resource information sent by the application a and the received dynamic effect resource information sent by the application C, an interface 802 shown in (b) in fig. 8 is displayed, and the dynamic effects corresponding to the application a and the application C are played on the interface 802. Further, the dynamic effect of the application a may further include hardware support, such as playing music during the playing process of the dynamic effect. Then, the application a adds a hardware support request to the dynamic effect request, and the dynamic effect module calls the audio module of the electronic device to play music according to the dynamic effect request, so that the music is played in the process of playing the dynamic effect as shown in the interface 802.
As another example, a pre-configured linkage action in an application action may not specifically identify the specifically linked application, but rather indicate a desktop element that is linked to a card or icon attachment displayed on the desktop to which the application corresponds. For example, in the scenario shown in fig. 8, the linkage application C is not arranged in the action effect of the application a, but the linkage action effect is displayed on the card near the card a corresponding to the linkage application a. And if the application A receives the desktop element information, the display positions of the elements displayed on the desktop are obtained, the card C is determined to be positioned near the card A according to the display positions, the linkage dynamic effect playing condition is met, the linkage card C is requested to play the linkage dynamic effect in the linkage request, and dynamic effect resources of the linkage dynamic effect of the card C are pre-configured in the application A. Then, after receiving the dynamic effect request, the dynamic effect module may request the application C to allow playing of the dynamic effect or may not request the application C to allow playing of the dynamic effect, but directly controls the card C to display the linkage dynamic effect through the launcher.
For example, the application may request that some or all of the one or more animation layers provided by the animation module be used to play the animation. Then, as in the scenario of fig. 8 above, assuming that the animation module provides 3 animation layers, application a selects all 3 animation layers for playing the animation. Then, when sending the dynamic effect request to the dynamic effect module, the application a may carry dynamic effect layer information in the dynamic effect request, including which dynamic effect layers are requested to be used, and the content that needs to be displayed in each dynamic effect layer. And the dynamic effect module determines the dynamic effect playing requirement according to the dynamic effect request sent by the application A, and plays the required dynamic effect on the corresponding layer. For example, as shown in fig. 9, the dynamic effect module plays a flower-donating action in the dynamic effect on the bottom layer 901 (including hands and flowers, the dynamic effect and the dynamic effect layer may also be requested by the application C), plays a dynamic effect at a moving position of the card C in the dynamic effect on the desktop layer broadcast 902 (the dynamic effect and the dynamic effect layer may also be requested by the application C), and plays other dynamic effects in the dynamic effect on the top layer 903, so that after the dynamic effect layers are overlaid and displayed, a complete dynamic effect can be played.
In some embodiments, the application program needs to obtain the permission for playing the dynamic effect of the electronic device, and the dynamic effect module may play the dynamic effect after determining that the application program has the permission for playing the dynamic effect. For example, after receiving a dynamic effect request sent by an application program, the dynamic effect module determines that the application program does not have the dynamic effect playing permission, and displays a prompt message for prompting a user to confirm whether to allow the application program to play the dynamic effect. If the user allows, the dynamic effect playing authority is obtained (namely the user authorization is obtained), and the dynamic effect playing authority can be saved. For another example, the electronic device provides a dynamic effect playing right setting entry in the setting application, and allows the user to set the dynamic effect playing right. For another example, a dynamic effect playing permission setting entry is preset in the application program, and the user is allowed to set the dynamic effect playing permission of the application program in the application program. Optionally, after the dynamic effect module receives the dynamic effect request each time, the dynamic effect playing permission of the application program needs to be determined, so that the dynamic effect playing permission change caused by user change setting is avoided, and the stored dynamic effect playing permission is different from the dynamic effect playing permission set by the user, so that abnormality occurs and user use experience is influenced.
Illustratively, assuming that application a is requesting to play a desktop animation, as shown in interface 1001 of fig. 10, the electronic device displays a prompt message 101 for prompting the user to confirm whether application a is allowed to play the desktop animation. If the operation that the user clicks the permission control 102 is detected, it can be determined that the user allows playing of the desktop dynamic effect of the application A, and the dynamic effect is played through the dynamic effect module. If the operation that the user clicks the disallowed control 103 is detected, it can be determined that the user does not allow playing of the desktop dynamic effect of the application a, and the corresponding dynamic effect can be cancelled.
Further illustratively, assume that the user sets the live-action play authority by setting the application. As shown in an interface 1101 shown in fig. 11 (a), the electronic device displays the rights management setting option, detects an operation of clicking the action control 111 by the user, and displays an interface 1102 shown in fig. 11 (b). A user can set the dynamic effect playing permission of an application program installed in the electronic device on the interface 1102, as shown in the interface 1102, the application a has the dynamic effect playing permission, and the application B does not have the dynamic effect playing permission. The electronic device detects an operation of clicking the control 112 by the user, determines that the user needs to set the live-action playback permission of the application B, and may display an interface 1103 shown in fig. 11 (c). After detecting the operation of the user clicking the permission control 113, the electronic device determines that the user opens the dynamic play permission of the application B, and may display an interface 1104 shown in fig. 11 (d) to prompt the user that the dynamic play permission of the application B is opened.
In some embodiments, the dynamic effect module maintains a dynamic effect play queue for sorting dynamic effects to be played. The dynamic effect playing process meets a producer consumption mode, wherein a producer is an application program requesting to play the dynamic effect, the cache region is used for storing a dynamic effect playing queue, and a consumer is a dynamic effect module. For example, the dynamic effect module maintains two threads (e.g., thread 1 and thread 2), where the thread 1 is configured to generate a corresponding dynamic effect event according to a dynamic effect request sent by an application program and place the dynamic effect event in a dynamic effect play queue, and the thread 2 is configured to take out the dynamic effect event from a head of the dynamic effect play queue to implement dynamic effect play. Specifically, after receiving the dynamic effect request, the dynamic effect module generates a corresponding dynamic effect event and places the corresponding dynamic effect event at the tail of the dynamic effect play queue (if the dynamic effect play queue is empty, the generated dynamic effect event is placed at the head of the dynamic effect play queue). And after receiving the dynamic effect requests, the dynamic effect module arranges corresponding dynamic effect events in the dynamic effect play queue in sequence according to the sequence of receiving the dynamic effect requests. And the dynamic effect module sequentially determines whether to play the corresponding dynamic effects from the dynamic effect event positioned at the head of the queue according to the sequence of the dynamic effect events in the dynamic effect play queue. When a certain action is determined to be played, the action event corresponding to the action can be moved out of the action playing queue. Therefore, after the action module starts playing an action, whether the action playing queue is empty can be checked, if not, whether the action at the head of the line can be played or not is determined, and if the action can be played, the action at the head of the line can be moved out and played. Namely, each action module is used for determining whether the action positioned at the head of the queue can be played.
In some embodiments, the dynamic effect event may include one or more of application information (such as an application identifier) corresponding to reporting the dynamic effect, a latest playing time of the dynamic effect, a dynamic effect playing instance, information of an associated application program, and the like. The dynamic effect playing instance may include relative playing time of each dynamic effect requested to be played in the dynamic effect request corresponding to the dynamic effect event (in the scene shown in fig. 9, the dynamic effect is contributed, the moving position of the card C is dynamically changed, and the playing time interval of other dynamic effects), a playing area (including the playing position and the dynamic effect layer, for example), a dynamic effect resource storage position (including a dynamic effect resource link, for example), playing time, touch focus information, and the like. Optionally, the dynamic effect event may not include the dynamic effect playing instance, but when it is determined that the dynamic effect corresponding to the dynamic effect event needs to be played, the corresponding application program is requested to acquire the corresponding dynamic effect playing instance.
In some embodiments, the dynamic effect module may determine whether a dynamic effect playing environment exists currently, that is, whether a corresponding dynamic effect may be played according to a dynamic effect playing condition, where the dynamic effect playing condition includes that an electronic device displays a desktop, that a corresponding application program has a dynamic effect playing permission, that a current desktop element (such as a displayed icon, a displayed card, and the like) does not affect playing of the dynamic effect, that the dynamic effect being played on the desktop does not affect the dynamic effect requested to be played, and that a dynamic effect playing time limit is not exceeded. For example, the playing position of the action being played or the playing position of the action at the head of the line is influenced by the position of the desktop card, and the action may not be played temporarily. Furthermore, the action can be moved to the tail of the play queue to determine whether the next action can be played, so that the action play efficiency is improved. For another example, if the animation is time-efficient and does not satisfy the playing condition currently, the application can cancel playing the animation.
It should be noted that the dynamic effect module can play one or more dynamic effects on the desktop. For example, if the dynamic effect module determines that the head of the dynamic effect play queue is dynamic effect a and the dynamic effect a has the dynamic effect play condition, the dynamic effect a is played and the dynamic effect a is moved out of the dynamic effect play queue. Then, the action module determines that the head of the action play queue is an action B, and the action B has an action play condition (including that the play of the action a and the play of the action B do not affect each other), the action B is played in the process of playing the action a, and the action B is moved out of the action play queue.
In some embodiments, the critical areas of the animation may be preconfigured. For example, if the action requested to be played and the action being played do not affect the playing of the action in the key area, it can be determined that the playing processes of the actions do not affect each other, and the actions can be played simultaneously. Namely, the dynamic effect module can determine whether a dynamic effect playing environment exists or not and whether the dynamic effect to be played currently can be played or not according to the key area of the dynamic effect. Optionally, the dynamic key area is preconfigured in the application program, and when the application program sends the dynamic request, the application program may carry information of the dynamic key area in the dynamic request. The key area of the dynamic effect is smaller than or equal to the area occupied by the dynamic effect, the number of the key areas of the dynamic effect can be one or more, and the key area of the dynamic effect can be a touch area where a user can perform interactive operation in the process of playing the dynamic effect. Optionally, part of the animation may also have no key area (e.g., a smaller animation occupying a desktop display area, etc.).
Exemplarily, it is assumed that a playing area of the dynamic effect a is a, and a key area is a1; the playing area of the dynamic effect B is B, and the key area is B1. And the dynamic effect module determines that the dynamic effect B needs to be played in the process of playing the dynamic effect A. The dynamic effect module determines that the playing area B does not affect the key area a1, and the playing area a does not affect the key area B1, so that the dynamic effect module can play the dynamic effect B in the process of playing the dynamic effect a.
In some embodiments, the dynamic effect module may place dynamic effect events corresponding to a plurality of dynamic effects of a linkage in a dynamic effect play queue and mark the dynamic effect events when determining that there is no play environment of the linkage dynamic effect. Then the subsequent dynamic effect module can determine a plurality of dynamic effects which need to be played in a linkage manner according to the marks. Optionally, a plurality of dynamic effect events corresponding to the linkage dynamic effect may be located at adjacent positions or non-adjacent positions in the dynamic effect play queue.
For example, assume that application A requests to play action A and requests to play an action with application B. Correspondingly, the application B sends a dynamic effect request of the dynamic effect B to the dynamic effect module according to the linkage dynamic effect indication. Then, the dynamic effect module places the dynamic effect event a corresponding to the dynamic effect a and the dynamic effect event B corresponding to the dynamic effect B in a dynamic effect play queue, and adds a mark 0 to both. Subsequently, assuming that the dynamic effect module determines that the dynamic effect event at the head of the queue is the dynamic effect event a, and determines that the dynamic effect event B needs to be linked according to the mark 0, whether the dynamic effects corresponding to the two dynamic effect events meet the dynamic effect playing condition can be determined at the same time, and then the playing linkage dynamic effect is realized.
In some embodiments, after the electronic device switches a display desktop (for example, the display desktop is displayed after being unlocked in a screen locking state, the display desktop exits from an application program interface, and the like), or refreshes the desktop (for example, the application program requests to refresh the desktop to display a dynamic effect, or the desktop refreshes the desktop regularly), the dynamic effect module may acquire the dynamic effect play queue, determine whether the dynamic effect play queue is empty, and if not, determine whether the dynamic effect needs to be played according to the above method. In the process that the desktop is not displayed on the electronic equipment, after detecting a trigger event, the application program can send a dynamic effect request to the dynamic effect module, the dynamic effect module determines that the desktop is not displayed at present, if the dynamic effect playing condition is not met, the dynamic effect event corresponding to the dynamic effect request is determined, and the dynamic effect event is placed at the tail of the dynamic effect playing queue.
Illustratively, as shown in fig. 12 (a), an interface 1201 is used to display a desktop, including a card B corresponding to the chat software B and a card C corresponding to the shopping software C. Assuming that the chat software B receives a message containing a commodity link, the chat software B determines that the event for receiving the message is a trigger event, and can send a dynamic effect request to the dynamic effect module. Assuming that the dynamic effect playing queue is empty, after receiving the dynamic effect request, the dynamic effect module places the corresponding dynamic effect event at the head of the queue, and determines whether the trigger event meets the playing condition, if so, the dynamic effect resource provided by the chat software B can be obtained. As shown in fig. 12 (B) of the interface 1202, the dynamic effect module plays the dynamic effect of the card B as indicated by reference numeral 121 on the desktop.
Further illustratively, as shown in the above scenarios (a) and (B) in fig. 12, it is assumed that the chat software B is preset with the linked action of the trigger event and the shopping software C. Then, the chat software B receives the desktop element information after sending the dynamic effect request, can determine the card C with the shopping software C displayed on the desktop according to the desktop element information, and can send a linkage dynamic effect indication to the dynamic effect module, and the dynamic effect module forwards the linkage dynamic effect to the shopping software C. And after receiving the linkage dynamic effect instruction, the shopping software C sends a dynamic effect request to the dynamic effect module. After receiving the action request sent by the shopping software C, the action module determines to request to display the action co-played with the chat software B to realize the linkage action, and whether there are other action events in the action play queue, the action event corresponding to the shopping software C is placed after the action event corresponding to the chat software B in the action play queue (or if the action module has played the action corresponding to the chat software B, the corresponding action event has moved out of the action play queue, so that the action event corresponding to the action of the shopping software C is placed at the head of the action play queue, or the action event corresponding to the action of the shopping software C is not placed in the action play queue, and the linkage action is directly played), so that the linkage action of the chat software B and the shopping software C is played on the desktop as shown in an interface 1203 in fig. 12. As shown by reference numeral 122 in the interface 1203, an indication arrow, characters (for example, "goods are here") and a finger indication action are displayed on the card C corresponding to the shopping software C, and are used for matching with the action of the card B to realize a linkage action, so as to prompt a user that a goods link received by the chat software B can be viewed through the shopping software C.
Therefore, through full-screen desktop dynamic effect, more information corresponding to application programs can be displayed for a user, intelligent linkage can be achieved, the user can be helped to use the electronic equipment more conveniently, and user use experience is improved.
Optionally, in the linkage action playing scenario shown in fig. 12 (C), the linkage action indication sent by the application B to the action module may further include a detected shopping link, and a function preconfigured in the shopping software C for searching for a commodity according to the shopping link. Then, after receiving the linkage dynamic effect instruction, the shopping software C can also automatically search for the commodity according to the preconfigured function, and display the commodity information in the dynamic effect playing process. As shown in an interface 1204 of fig. 12 (d), after the shopping software searches for the commodity information, the dynamic effect resource sent to the dynamic effect module includes the commodity information. Then, the dynamic effect module can also display the commodity information as shown by reference numeral 123 in the process of playing the linkage dynamic effect, so that the user can directly view the commodity information in the desktop dynamic effect without starting the shopping software C to search the commodity, and the use experience of the user is further improved. However, since the display position occupied by displaying the commodity information is large, the display of the original desktop element is affected as shown in the interface 1204 (that is, the commodity information covers the card and the icon displayed on the original desktop, and affects the user to view the original desktop element). Therefore, the touch focus 124 is preset to be closed, and after the electronic device detects that the user clicks the operation of closing the touch focus 124, the commodity information is no longer displayed through the dynamic effect module, so that the user can view the original desktop elements covered by the commodity information. Or the playing time length of the commodity information is preset, and the dynamic effect module can automatically stop playing the commodity information after the display time length meets the preset time length.
In some embodiments, the linkage effect includes an application corresponding to a card displayed on the linkage desktop as described in the above scenario, and may further include an application corresponding to an application icon of an application service running on the linkage desktop. The application icons can be directly displayed on the desktop and can also be displayed in the desktop folder.
Illustratively, corresponding to the scenario shown in fig. 12, as shown in the interface 1301 shown in fig. 13, an icon of the shopping software C is displayed on the desktop, and it is assumed that the shopping software C runs the application service (e.g., the shopping software C is running in the background). And after receiving the linkage effect indication sent by the chat software B, the effect-acting module forwards the linkage effect indication to the shopping software C. Then, as shown by reference numeral 131, the dynamic effect module receives the dynamic effect resource corresponding to the icon of the shopping software C, and plays the dynamic effect.
Also illustratively, corresponding to the scenario illustrated in FIG. 12, a shopping software folder is displayed on the desktop as shown in interface 1401 in FIG. 14 (a). Suppose shopping software C is contained in the shopping software folder and runs an application service (e.g., shopping software C is running in the background). And after receiving the linkage effect indication sent by the chat software B, the effect-acting module forwards the linkage effect indication to the shopping software C. Then, as shown by reference numeral 141, the dynamic effect module receives the dynamic effect resource sent by the shopping software C, and plays the dynamic effect on the shopping software folder. Further, after detecting the operation of clicking the shopping software folder by the user, the electronic device opens the folder, and displays an interface 1402 as shown in (b) in fig. 14, and displays a dynamic effect as shown by reference numeral 142 on the icon of the shopping software C in the shopping software folder.
It should be noted that, if it is determined that the application (e.g., the shopping software C) to be linked does not run the application service, the dynamic effect module may wake up the application to play the linked dynamic effect. Or the dynamic effect module sends the condition that the application program to be linked does not run the application service to the application program (such as the chat software B) requesting playing of the linkage dynamic effect, and the application program requesting playing of the linkage dynamic effect determines whether to cancel playing of the linkage dynamic effect. If the application program requesting the play linkage action determines to cancel the play linkage action, the action module may only play the action of the application program requesting the play linkage action, or cancel all actions corresponding to the application program requesting the play linkage action (the decision is determined by the application program and the action module executes). If the application program requesting for playing the linkage action determines not to cancel the playing linkage action, the action module can be instructed to wake up the application program to be linked; or the dynamic effect resources of the linkage dynamic effect are preset in the application program requesting for playing the linkage dynamic effect, and the dynamic effect resources of the linkage dynamic effect can be sent to the dynamic effect module so as to realize playing the linkage dynamic effect.
In some embodiments, the desktop elements (e.g., cards, icons, etc.) running the application service may be displayed in a linked manner in the same interface on the desktop as the desktop elements running the application service (e.g., in the scenario shown in fig. 12, the linked action of the card B and the card C), and may also be displayed in a linked manner in different interfaces on the desktop as the desktop elements running the application service.
Illustratively, corresponding to the scenario shown in fig. 12, as shown in an interface 1501 (a) in fig. 15, a card B of the chat software B is displayed on the interface 1501 of the desktop display, and the chat software B and the shopping software C are preset in a linkage effect. After receiving the desktop element information sent by the dynamic effect module, the chat software B determines that the desktop element corresponding to the shopping software C is not displayed on the interface 1501, but the desktop element corresponding to the shopping software C is displayed on another interface of the desktop, so that the dynamic effect resource sent to the dynamic effect module may include the dynamic effect resource as shown by reference numeral 151. The dynamic effect module is used for prompting the user to view the display of the application program of the commodity on other interfaces and indicating the direction of the interface where the application program is located through displaying the indication arrow. After detecting an operation of clicking an arrow shown by reference numeral 151 or a sliding operation for displaying an interface shown by the arrow by the user, the electronic device displays an interface 1502 shown in fig. 15 (B) for displaying a card of the shopping software C linked with the chat software B, and the dynamic effect module may play a linked dynamic effect on the interface 1502.
Therefore, even if the desktop elements of the plurality of application programs with the linkage relation are not displayed in the same interface on the desktop, the linkage action effect can be played, and better use experience is provided for a user.
In some embodiments, the number of the dynamic effect trigger events preconfigured in the application program is one or more, the dynamic effects corresponding to different dynamic effect trigger events are the same or different, and the number of the dynamic effects corresponding to each trigger event is one or more. Optionally, the application program sends a dynamic effect request to the dynamic effect module, where the dynamic effect request is used to request to play the corresponding one or more dynamic effects, and the dynamic effect event generated by the dynamic effect module corresponds to the one or more dynamic effects.
For example, as shown in an interface 1601 in fig. 16 (a), when a card 161 of the chat software B receives a chat message, such as an explosive emoticon, and the chat software B determines that the event is a preset action triggering event, sends a corresponding action request to the action module to request to play two actions, which are matching actions. One of the dynamic effects includes enlarging an explosive expression on the card B161 and displaying a surprised expression on a desktop element (such as an icon or a card), and the other dynamic effect is playing the explosive dynamic effect on the desktop in a full screen. Thereafter, the dynamic effect module plays the dynamic effect displayed by the interface 1602 shown in fig. 16 (b) and plays the full-screen explosion dynamic effect displayed by the interface 1603 shown in fig. 16 (c) according to the dynamic effect request. Furthermore, the full-screen explosion dynamic effect can also request the audio module of the linkage electronic equipment to play the explosion sound, and then the dynamic effect module plays the explosion sound while playing the full-screen explosion dynamic effect through the launcher linkage electronic equipment audio module according to the linkage dynamic effect indication. Optionally, the dynamic effect request may include a dynamic effect playing instance, where the dynamic effect playing instance includes a playing time interval of the two dynamic effects (for example, after 3 seconds of the dynamic effect shown in the interface 1602, the full-screen explosion dynamic effect shown in the playing interface 1603), a playing duration of the two dynamic effects (for example, during the process of playing the full-screen explosion dynamic effect, the dynamic effect shown in the display interface 1602 is maintained), and the like.
In some embodiments, the application program may preset an application start touch focus in the dynamic effect, and after detecting that the user clicks the touch focus, the application program may directly start the corresponding application program and display the corresponding function interface.
Illustratively, as shown in an interface 1602 in fig. 16 (B), the electronic device detects that the user clicks a preset application start touch focus 162 (e.g., a chat dialog box), starts the chat software B, and displays an interface 1604 as shown in fig. 16 (d), where the interface 1604 is a chat interface corresponding to the explosive emotions received in the chat software B.
Therefore, the touch focus is started through the preset application, and the user can directly reach the functional interface corresponding to the dynamic effect in the application program through the touch focus. Therefore, the user does not need to check the function interface corresponding to the dynamic effect through step-by-step operation, the operation difficulty of the user is reduced, and the use experience of the user is improved.
In some embodiments, the partial dynamic effect playing is time-efficient, and playing the dynamic effect after exceeding the time limit has no reminding significance, which affects the user experience. Therefore, when the active effect module determines that the desktop has an active effect playing environment (for example, desktop elements do not affect active effect playing), and sends desktop element information to the application program, the active effect module also sends an aging confirmation request to the application program, for requesting to confirm whether the active effect to be played currently exceeds the time limit requirement. After receiving the time limit confirmation request, if confirming that the time limit requirement is exceeded, the application program can cancel all or part of the corresponding dynamic effects (for example, a plurality of dynamic effects are requested, and partial dynamic effects can be cancelled). For example, when the electronic device receives a dynamic effect request without displaying a desktop, the dynamic effect module adds the dynamic effect request to a dynamic effect play queue. Then, subsequently, when the electronic device displays the desktop, part or all of the action in the action play queue may have exceeded the time limit requirement, and the application program may cancel playing the corresponding action. The dynamic effect with time limit includes schedule dynamic effect, message dynamic effect, etc. Optionally, the dynamic effect request includes the latest play time, and the dynamic effect module adds the latest play time to the corresponding dynamic effect event after receiving the dynamic effect request. Then, after obtaining the head-of-line dynamic effect event in the dynamic effect play queue, the subsequent dynamic effect module determines that the current time is later than or equal to the latest play time, and may send an aging confirmation request to the corresponding application program to confirm whether the dynamic effect needs to be played.
Illustratively, as shown in the scenario of fig. 16, the message received by chat software B is time-sensitive. For example, after a certain time limit is exceeded, the message has no timeliness, and the reminding effect is reduced, so that the chat software B can cancel the playing effect. For another example, after the explosive emoticon is received, another message is received, and if another action is triggered, the action of playing the action corresponding to the explosive emoticon is reduced, so that the chat software B can cancel playing the action. Then, the chat software B may preset a message time limit, and cancel the live play after the time of receiving the time limit confirmation request exceeds the message time limit requirement. For example, assume a message time limit of 10 minutes. If the chat software B receives the time limit confirmation request within 10 minutes after sending the dynamic effect request, the chat software B confirms that the time limit is not exceeded, and the dynamic effect can be played. If the chat software B receives the time limit confirmation request after 10 minutes from the sending of the dynamic effect request, the chat software B confirms that the time limit is exceeded, the playing of the dynamic effect can be cancelled, and a dynamic effect cancellation instruction can be sent to the dynamic effect module and used for instructing the dynamic effect module to cancel the current dynamic effect playing. And after receiving the dynamic effect canceling indication, the dynamic effect module removes the dynamic effect playing queue from the dynamic effect event corresponding to the dynamic effect.
Further, in the scenario shown in fig. 16, the full-screen explosion dynamic effect full-screen playing prompting effect shown by the interface 1603 shown in fig. 16 (c) is strong, and the dynamic effect influence range shown by the interface 1602 shown in fig. 16 (B) is small, so that the chat software B can set different message time limits for the two dynamic effects, for example, the time limit of the dynamic effect shown by the interface 1602 is not limited, and the message time limit of the full-screen explosion dynamic effect is further limited to 10 minutes. Then, the chat software B receives the time limit confirmation request 10 minutes after sending the dynamic effect request, and confirms that the dynamic effect exceeds the time limit in full screen explosion. Accordingly, the dynamic effect module only displays the dynamic effect as shown in the interface 1602 in fig. 16 (b), and cancels the full-screen explosion dynamic effect as shown in fig. 16 (c).
In some embodiments, after the dynamic effect module returns to the display desktop or refreshes the desktop, it is determined that the dynamic effect play queue is not empty, and it is not determined whether the dynamic effect to be played in the dynamic effect play queue exceeds the time limit requirement, so that the dynamic effect time limit needs to be determined. Optionally, when the application program sends the dynamic effect request, the dynamic effect request may carry a time limit identifier, and the dynamic effect module determines that the dynamic effect has a time limit requirement according to the time limit identifier, and needs to perform time validity confirmation.
In some embodiments, the dynamic effect requested to be played by part of the application program has stronger timeliness, for example, if the schedule reminder is set in the calendar application as a reminder of a certain schedule at a certain time of a certain day, and the dynamic effect is played beyond the time, the reminding effect is reduced. Therefore, the application program can carry the priority playing label in the action request corresponding to the action, the action module receives the request in the process of displaying the desktop, and the corresponding action event is placed at the head of the action playing queue according to the label information, so that the action can be played as soon as possible. Namely, the dynamic effect module does not place the corresponding dynamic effect events at the tail of the dynamic effect play queue according to the receiving sequence. Optionally, the dynamic effect module receives a dynamic effect request carrying a priority playing tag in a process of not displaying the desktop, and may directly place the corresponding dynamic effect event at the head of the dynamic effect playing queue, and then confirm whether the time limit requirement is exceeded or not when displaying the desktop. Or, in the process of not displaying the desktop, after receiving the dynamic effect request carrying the priority playing tag, the dynamic effect module sends a temporary playing-impossible signal to the application program, so as to notify the application program that the current electronic device does not have a dynamic effect playing environment, so as to determine whether to cancel playing of the dynamic effect.
Illustratively, suppose a company is about to hold a house-shop at 12 noon-00 pm today-1 pm, user a sets a schedule reminder of 12. As shown in interface 1701 in fig. 17, a calendar card and a clock card are displayed on the desktop. The calendar application can acquire the time information, send a dynamic effect request to the dynamic effect module at corresponding time according to the schedule setting of the user A, and carry the priority label in the dynamic effect request. And if the dynamic effect module receives the dynamic effect request in the process of displaying the desktop, placing the dynamic effect event corresponding to the dynamic effect request at the head of the dynamic effect playing queue. And the dynamic effect module sends desktop elements to the calendar application, and the calendar application can determine that the clock card is displayed on the desktop and the display position of the clock card according to the received desktop elements and can send linkage dynamic effect indication to the dynamic effect module. And then the clock application determines whether to display the linkage action after receiving the linkage action indication forwarded by the action module. And if the dynamic effect module determines to display, sending a dynamic effect request to the dynamic effect module. The dynamic effect module sends the desktop element to the clock application according to the dynamic effect request of the clock application, and then the clock application can determine that the calendar card and the display position of the calendar card are displayed on the desktop according to the desktop element. Then subsequently, after acquiring the animation resources provided by the calendar application and the clock application, the animation module displays an animation, such as a clock card finger calendar card (which may be a linked animation corresponding to the calendar application and the clock application), as shown by reference numeral 171 in the interface 1701, so that the user a can notice the schedule setting displayed by the calendar card at the more wakeful animation.
Alternatively, the scene shown in fig. 17 may not be implemented as a linkage dynamic effect scene. For example, the calendar application determines a clock card displayed on the desktop according to the desktop element acquired after sending the animation effect request, and can determine the position of the clock card, and the animation effect resource of the animation effect shown as reference numeral 171 in the interface 1701 shown in fig. 17 is preset in the calendar application. Then, after the storage location of the dynamic effect resource is obtained, the dynamic effect module can directly display the dynamic effect as shown in fig. 17.
In some embodiments, a dynamic effect playing time length is preset in the application program, and after the time for playing the dynamic effect meets the dynamic effect playing time length, the dynamic effect module may stop playing the corresponding dynamic effect. Therefore, the problem that the playing of subsequent dynamic effects is influenced due to overlong resource occupation time is avoided. Or, desktop display space is occupied, and desktop element display is affected. The playing time lengths of the dynamic effects included in the dynamic effects can be the same or different. Optionally, the playing area required by part of the action effects is small, the display of the desktop elements is not influenced, or the influence on the desktop elements is small. Then, the action effects may not preset action effect playing time, and the action effect module may keep playing the action effects on the desktop before detecting the operation of closing the action effects by the user. That is, such dynamic effects are preset in the application program as resident dynamic effects. Further, the application program carries a corresponding tag in the action request, so that the action module can distinguish the action. And the dynamic effect module adds the resident dynamic effect to the dynamic effect play queue to realize the resident display each time the display desktop is switched or the desktop is refreshed.
For example, as shown in an interface 1801 of fig. 18, a weather card is displayed on the desktop, and a dynamic effect corresponding to real-time weather can be preset in a corresponding weather application and set as a resident dynamic effect. As shown in the interface 1801, the dynamic effect module plays the dynamic effect on the desktop at all times as shown by reference numeral 181. Further, the weather application may include other cards (e.g., clock cards) displayed under the weather card when the weather application learns about the desktop element. And the weather application determines that the current weather is light rain, the dynamic effect of splash can be displayed above the clock card in the process of displaying the dynamic effect of light rain (the dynamic effect can be the linkage dynamic effect of the weather application and the clock application, or the matching dynamic effect of two dynamic effects controlled by one application program preset in the weather application) so as to match the dynamic effect of light rain. Therefore, interesting dynamic effect is provided for the user, and the use experience of the user is improved.
In some embodiments, the electronic device does not display the desktop full-screen, and the dynamic effect module can play the dynamic effect on the display screen displaying the desktop. For example, the electronic device displays the dynamic effect in a split screen mode, and the dynamic effect module plays the dynamic effect on a display screen of a display desktop in the electronic device.
Illustratively, as shown in fig. 19 (a), a split screen interface, wherein an interface 1901 is used for displaying a chat application interface, an interface 1902 is used for displaying a desktop, and a music card is displayed on the desktop. When the music application detects that a trigger event sends a dynamic effect request to the dynamic effect module, as shown in (b) of fig. 19, the dynamic effect module plays a dynamic effect on the interface 1902 (i.e., the interface displaying the desktop), and the chat application interface is still displayed on the interface 1901 not displaying the desktop, and the dynamic effect is not played.
Therefore, in the split screen scene, the electronic equipment can play the dynamic effect, the dynamic effect playing requirement of the user in the split screen scene is met, and the user use experience is improved.
In some embodiments, in a smart multi-window scenario, the electronic device may also display a live action in a window of the display desktop based on a live action request sent by the application.
For example, as shown in the interface 2001 in fig. 20 (a), in the process that the dynamic effect module displays the dynamic effect corresponding to the weather application, the electronic device detects that the user drags out the smart multi-window application bar, displays the smart multi-window application bar 201 on the right side of the interface 2001, then detects that the user clicks the calculator icon 202, starts the floating window, displays the interface 2002 as shown in fig. 20 (b), and displays the calculator application interface in the floating window 203. The electronic device displays the floating window 203 at a position that does not affect the dynamic effect corresponding to the weather application. Further, the dynamic effect module can also send the information such as the position of the floating window to the weather application, and the weather application determines whether to continue playing the dynamic effect. Optionally, the electronic device detects an operation of moving the floating window 203 by the user, and if the display position of the floating window 203 after the movement covers the dynamic effect corresponding to the weather application, the electronic device may continue to play the dynamic effect below the floating window 203 through the dynamic effect module (if the floating window 203 completely covers the dynamic effect, the user cannot see the dynamic effect), that is, the display position of the floating window 203 moves, or is opened, or is closed, and the playing of the desktop dynamic effect is not affected. Or after the electronic equipment displays the floating window, if the floating window is determined not to influence the playing of the dynamic effect, continuing to play the dynamic effect; and if the floating window is determined to influence the playing of the dynamic effect, stopping playing the dynamic effect or stopping playing the non-resident dynamic effect.
Therefore, in the intelligent multi-window scene, the electronic equipment can play the dynamic effect, the dynamic effect playing requirement of the user in the intelligent multi-window scene is met, and the user using experience is improved.
Exemplarily, fig. 21 is a schematic diagram of a desktop animation display method provided in an embodiment of the present application. As shown in fig. 21, the method may include S2101-S2113:
s2101, the application program detects a trigger event.
In some embodiments, the trigger event is a dynamic effect trigger event preset in the application by the developer. For example, as shown in the scenario of fig. 12, the event that the chat software B receives the product link is a trigger event. For another example, as shown in the scenario of fig. 17, the calendar application detects that the event whose time is the schedule reminder time set by the user is a trigger event.
S2102, the application program sends a dynamic effect request to the dynamic effect module.
In some embodiments, the application may send a dynamic effect request to the dynamic effect module upon detecting a triggering event. Accordingly, the dynamic effect module receives the dynamic effect request.
S2103, the dynamic effect module determines whether the application program has the dynamic effect playing authority. If yes, go to step S2104; if not, the corresponding animation is not displayed (not shown in fig. 21, e.g., the application sends an unauthorized signal to the animation module).
In some embodiments, after receiving the dynamic effect request, the dynamic effect module needs to determine whether the corresponding application program has the dynamic effect playing permission. If the no-action playing permission is determined, user authorization is required, and if the user is not authorized, the corresponding action cannot be displayed.
Illustratively, as shown in interface 1001 of FIG. 10, the electronic device displays a prompt to obtain user authorization. After detecting the authorized operation granted by the user, the electronic equipment sends the authorization signal to the dynamic effect module, and the dynamic effect module determines that the application program has dynamic effect playing permission.
S2104, the dynamic effect module sends desktop element information and dynamic effect layer information to the application program.
S2105, the application program determines dynamic effect resources.
In some embodiments, in step S2104 and step S2105, after the dynamic effect module determines that the application program has the dynamic effect playing authority, the dynamic effect module sends the desktop element information and the dynamic effect layer information to the application program, so that the application program determines the corresponding dynamic effect resource.
Illustratively, in the scenarios shown in fig. 8 and 9, the application a (corresponding to the card a) determines to implement the play linkage action using the card C according to the desktop element information. And the application program A determines and selects three dynamic effect layers according to the dynamic effect layer information for playing dynamic effects and determines dynamic effect resources corresponding to each dynamic effect layer.
S2106, the application program sends the dynamic effect resource to the dynamic effect module.
In some embodiments, the application, upon determining the dynamic effect resource, may send the dynamic effect resource to the dynamic effect module. Correspondingly, the dynamic effect module receives dynamic effect resources.
In some embodiments, the dynamic effect module maintains a dynamic effect play queue, and after any one of the steps S2102, S2103, and S2106, the dynamic effect module may place the corresponding dynamic effect event in the dynamic effect play queue, such as at the tail of the queue. Moreover, if the dynamic effect module adds a corresponding dynamic effect event in the dynamic effect play queue in a certain step, the subsequent step does not need to add the corresponding dynamic effect event, and repeated addition is avoided.
For example, after the dynamic effect module receives the dynamic effect request (i.e., after step S2102), the dynamic effect module places the corresponding dynamic effect event at the tail of the dynamic effect play queue. Then, subsequently, when the dynamic effect event is located at the head of the queue (i.e. when to be displayed), the dynamic effect playing authority needs to be determined, and if it is determined that the dynamic effect event does not have the dynamic effect playing authority, the dynamic effect event can be moved out of the dynamic effect playing queue. Or after the dynamic effect module places the corresponding dynamic effect event at the tail of the dynamic effect play queue, whether the dynamic effect event has the dynamic effect authority or not and whether the dynamic effect event needs to be moved out of the dynamic effect play queue or not are directly confirmed.
For another example, after the dynamic effect module confirms that the dynamic effect has the dynamic effect playing authority (i.e. after step S2103), the corresponding dynamic effect event is placed at the tail of the dynamic effect playing queue. Then, subsequently, when the dynamic effect event is located at the head of the queue (i.e. when to be displayed), the corresponding dynamic effect resource needs to be acquired, and if the acquisition of the dynamic effect resource fails, the dynamic effect event can be moved out of the dynamic effect play queue. Or after the dynamic effect module places the corresponding dynamic effect event at the tail of the dynamic effect play queue, whether the corresponding dynamic effect resource exists or not is directly confirmed, and whether the dynamic effect play queue needs to be moved out or not is directly confirmed.
For another example, after the dynamic effect module receives the dynamic effect resource (i.e., after step S2106), the dynamic effect module places the corresponding dynamic effect event at the tail of the dynamic effect play queue. Then, subsequently, when the dynamic effect event is located at the head of the queue (i.e. when the event is to be displayed), directly determining whether a dynamic effect playing environment exists currently (see step S2108 below), and if the dynamic effect playing environment exists, directly calling the dynamic effect resource to implement dynamic effect playing.
S2107, the dynamic effect module displays a desktop.
In some embodiments, the dynamic effect module display desktop is used to indicate that the dynamic effect module displays the desktop through a launcher, including switching the display desktop, or an application notification refreshing the display desktop.
For example, assume that a developer sets the animation effects corresponding to a music application to fall animation effects corresponding to different notes and jump animation effects corresponding to desktop elements for different types of music. As shown in fig. 22 (a) of the music application interface 2201, the electronic equipment detects the operation of returning to the desktop by the user (assuming that the music application is not exited) in the music application interface, and displays an interface 2202 as shown in fig. 22 (b), wherein the interface 2202 is used for displaying the desktop on which the music action can be displayed.
Further illustratively, assuming that the exercise health application presets a moving target of 10000 steps, after the user realizes the moving target, the dynamic effect is a full-screen cheering dynamic effect. As shown in an interface 2301 of fig. 23, in the process of displaying the desktop on the electronic device, when the exercise health application determines that the cumulative number of steps of the user today reaches 1000 steps, the exercise health application sends an exercise effect request to the exercise effect module, and requests to refresh the desktop, so as to play the full-screen desktop exercise effect; or the dynamic effect module automatically refreshes the display desktop after receiving the corresponding dynamic effect resource in the step S2106.
S2108, the dynamic effect module obtains the dynamic effect playing queue and determines whether a dynamic effect playing environment exists. If yes, go to step S2109; if not, step S2110 is performed.
In some embodiments, after switching the display desktop or refreshing the display desktop, the electronic device obtains the saved dynamic effect play queue, determines the dynamic effect at the head of the queue, and determines whether the current desktop has a dynamic effect play environment of the dynamic effect. For example, whether the one or more animation effects being played affect the playing of the animation effects, and/or whether the playing of the animation effects affects the playing of the one or more animation effects being played.
S2109, the dynamic effect module plays dynamic effects.
In some embodiments, if the action module determines that the action has an action playing environment, the head of line action of the action playing queue is played and the action is moved out of the action playing queue.
In some embodiments, playing the animation comprises playing the linkage animation. For example, as shown in an interface 2202 in fig. 22 (b), a music card is displayed in association with a clock card to display an association effect. Wherein, the linkage movement effect comprises the movement effect of the falling of the notes of the music card and the movement effect of the waving of the clock movement effect. For a specific implementation of the linkage action, reference may be made to the related description of the above embodiments (scenarios shown in fig. 12 to fig. 15), and details are not repeated here.
In some embodiments, a touch focus may be preset in the dynamic effect of the application program, and the user can interact with the implementation dynamic effect through the touch focus. For example, as shown in the interface of fig. 23, after detecting that the user clicks the replay touch focus 2301, the electronic device repeatedly plays the corresponding animation. For another example, as shown in the interface shown in fig. 23, after detecting that the user clicks the operation of closing the touch focus 2302, the electronic device exits playing of the corresponding animation effect, and further may display a exited animation effect.
And S2110, delaying the playing request to the application program by the dynamic effect module.
In some embodiments, if the dynamic effect module determines that the dynamic effect does not have a dynamic effect playing environment, a delayed playing request is sent to the corresponding application program for confirming whether the dynamic effect can be delayed for playing. And the corresponding application program receives the delayed playing request sent by the dynamic effect module.
S2111, the application program determines whether to delay the playback.
S2112, the application program sends a delayed playing response to the dynamic effect module.
In some embodiments, in steps S2111 and S2112, the application program determines whether the corresponding action is with a play time limit requirement according to the delayed play request. If there is no broadcasting time limit requirement, the consent delay signal can be carried in the delayed broadcasting response; if there is a play time limit requirement, the delay play response carries a delay signal not agreeing. Further, if the application program confirms that the action has a play time limit requirement and must be played, a forced play signal can be carried in the delayed play response.
For example, as shown in fig. 22, in a music playing scenario, the music application may not set a playing time limit requirement, and then the delayed playing response sent by the music application to the action module carries an agreement delay signal.
Further exemplarily, as in the scenario shown in fig. 17, if the calendar application has a play time limit requirement corresponding to the animation, the calendar application sends a delay play response to the animation module, where the delay play response carries a delay signal that does not agree with the delay signal. Furthermore, the delayed play response may also carry a forced play signal.
S2113, if the delayed playing is determined, the dynamic effect module moves the dynamic effect to the tail of the dynamic effect playing queue; and if the fact that the playing is not delayed is determined, the action effect module removes the head action effect of the action effect playing queue.
In some embodiments, the animation module receives a delayed play response sent by the application. If the delayed play response carries the agreement delay signal, determining the delayed play action effect, and moving the action effect to the tail of the action effect play queue by the action effect module to wait for the follow-up re-confirmation of whether the play can be performed. If the delay play response carries an unapproved delay signal, the action module removes the head action of the action play queue, i.e. cancels the play of the action. Furthermore, if the delayed play response carrying the delay signal not agreeing with the delay signal also carries the compulsory play signal, the dynamic effect module compulsorily plays the dynamic effect no matter how the current play environment is, so as to avoid missing important items and influencing the user experience.
For example, as in the scenario shown in fig. 17, the dynamic effect module may forcibly play the dynamic effect of the calendar application according to the forcible play signal to prevent the user from missing the buy-in meeting. Further, if the electronic device is in a sleep state when the action needs to be forcibly played, the action module may forcibly wake up the electronic device to display the action. If the electronic equipment displays other application interfaces when the dynamic effect needs to be forcibly played, the dynamic effect module cannot display the corresponding dynamic effect, can remind a user of corresponding matters in a message reminding mode, and displays the dynamic effect after the user quits the application interface.
Optionally, the steps S2107 to S2113 are loop steps, and after the dynamic effect module plays the dynamic effect, the head dynamic effect of the dynamic effect play queue is taken out. And if the action play queue is not empty after the action at the head of the queue is taken out, determining whether the action at the head of the next queue has a play environment or not, and playing all the actions in the action play queue in sequence. If all the action effects in the action effect playing queue cannot be played in the desktop display process, the action effect playing queue is stored, and after the desktop is displayed again, whether the action effects can be played or not is determined in sequence from the head of the queue.
Therefore, by playing full-screen dynamic effect, more application information can be provided for the user in the process that the electronic equipment displays the desktop. Moreover, the interactive experience of the user can be increased by playing full-screen dynamic effect, and the use experience of the user is improved.
Exemplarily, fig. 24 is a schematic diagram of another desktop animation display method provided in the embodiment of the present application. As shown in fig. 24, the method may include S2401-S2403:
s2401, displaying a desktop by the electronic equipment, wherein the desktop comprises a first desktop element.
In some embodiments, the electronic device displays a desktop that includes desktop elements including, for example, application icons, cards, folders, status bars, and the like. The first desktop element playing the first dynamic effect may be a card and/or an icon of the first application corresponding to the first desktop element included in the desktop element.
For example, in the scenario shown in fig. 8, the first desktop element may be card a as shown in interface 801 shown in fig. 8 (a).
S2402, the electronic device determines to play the first dynamic effect of the first desktop element.
In some embodiments, when a first application corresponding to the first desktop element runs an application service, the first application can detect a dynamic effect triggering event and request to play a dynamic effect.
In some embodiments, before determining to play the first animation, it is determined whether the first application corresponding to the first desktop element has animation playing rights. If the play authority of the dynamic effect is available, the first dynamic effect is allowed to be played; if the user does not have the action playing authority, the first action is allowed to be played after the authorization of the user is obtained.
For example, the related content of the dynamic play right can refer to the related content shown in fig. 10 and fig. 11, and will not be described herein again.
In some embodiments, prior to determining to play the first animation, it is determined whether there is an animation playback environment to play the first animation. If the electronic equipment determines that the dynamic effect playing environment with the first dynamic effect is played, the dynamic effect playing can be carried out. The dynamic effect playing environment comprises that first content and/or second content do not exist on the desktop, the first content is content influencing the playing effect of the first dynamic effect, and the second content is content influencing the playing effect of the first dynamic effect. Optionally, the second area displaying the first content intersects with the first key area in the first area, and the first area intersects with the second key area in the third area displaying the second content. Optionally, the first content or the second content is content displayed in a floating window or dynamic content played on a desktop. Optionally, the key area may be a touch area where the user can interact with the animation. Partial effects may be where all display areas are critical areas, or where no critical areas are present.
Exemplarily, it is assumed that a playing area of the dynamic effect a is a, and a key area is a1; the playing area of the dynamic effect B is B, and the key area is B1. And the dynamic effect module determines that the dynamic effect B needs to be played in the process of playing the dynamic effect A. The dynamic effect module determines that the playing area B does not affect the key area a1, and the playing area a does not affect the key area B1, so that the dynamic effect module can play the dynamic effect B in the process of playing the dynamic effect a.
In other embodiments, if the desktop includes the second desktop element, when the electronic device obtains a requirement for playing the second dynamic effect of the second desktop element, the electronic device determines that the dynamic effect playing environment without the second dynamic effect for playing the second desktop element is not available, and the electronic device does not play the second dynamic effect, or postpones playing the second dynamic effect until the dynamic effect playing environment with the second dynamic effect is available when it is determined that the second dynamic effect is delayed to be played.
Optionally, after receiving the dynamic effect request of the second desktop element, the electronic device may determine to acquire a requirement for playing a second dynamic effect of the second desktop element. Or the electronic device acquires a dynamic effect event located at the head of the queue in the dynamic effect playing queue, and determines that the dynamic effect event is a dynamic effect event corresponding to the second dynamic effect of the second desktop element, so that the electronic device can determine that the requirement for playing the second dynamic effect of the second desktop element is acquired. Then the electronic device may then determine whether there is a playback environment for playing the dynamic effect of the second desktop element to determine whether the dynamic effect may be played. If it is determined that the second animation cannot be currently played for a while, it may be determined whether the second animation has a time limit requirement. For example, the second action has a time limit requirement, and playing the action after exceeding the time limit requirement has no meaning of reminding the user, and the second action can not be played any more. Alternatively, the second action has no time limit requirement, or has not reached the time limit required by the time limit, and the playing can be delayed.
In some embodiments, the electronic device further obtains the animation resource information of the first animation before determining to play the first animation. The dynamic effect resource information comprises a storage position of the dynamic effect resource of the first dynamic effect and/or information of a dynamic effect layer corresponding to the first dynamic effect. The number of the dynamic effect layers is one layer or multiple layers, the dynamic effect resources comprise one or multiple resources, and the information of the dynamic effect layers comprises the corresponding relation between one layer or multiple layers of dynamic effect layers and one or multiple resources. The dynamic effect resource information is determined for a first application corresponding to the first desktop element according to the desktop element and the selectable layers included in the desktop, and the selectable layers include one or more dynamic effect layers determined by the first application. The storage position of the dynamic effect resource is used for obtaining the dynamic effect resource, and the information of the dynamic effect layer is used for determining to play the first dynamic effect layer.
For example, the related content of the dynamic effect layer may refer to the related content shown in fig. 6 and fig. 9, and is not described herein again.
S2403, the electronic device plays the first dynamic effect in a first area of the desktop, wherein the first area comprises an area outside an area occupied by the first desktop element.
In some embodiments, the electronic device is capable of obtaining the dynamic effect resource stored in the storage location. And playing a first dynamic effect in a first area of the desktop according to the corresponding relation between the one or more dynamic effect layers and the dynamic effect resources.
In some embodiments, the dynamic effect is pre-configured with a touch area where a user can perform an interactive operation. For example, in the process of playing the first animation, the operation of the user on the first touch area included in the first animation is detected, and the playing of the first animation is stopped. For another example, in the process of playing the first animation, the operation of the user on the second touch area included in the first animation is detected, and the first animation is played again. Optionally, the touch area is used for representing an area corresponding to a preset dynamic effect interaction position.
For example, the related content of the linkage action may refer to the related content shown in fig. 7, and will not be described herein again.
In some embodiments, a dynamic effect playing time duration is preset in the application program, and after the time for playing the dynamic effect meets the dynamic effect playing time duration, the dynamic effect module may stop playing the corresponding dynamic effect. Therefore, the problem that the playing of subsequent dynamic effects is influenced due to overlong resource occupation time is avoided. Or, desktop display space is occupied, and desktop element display is affected. For example, a first animation of a preset duration is played in a first region of the desktop.
In some embodiments, the electronic device maintains a dynamic effect play queue, where the dynamic effect play queue is used to store dynamic effect events corresponding to dynamic effects to be played, and the dynamic effect events include one or more of an identifier of an application corresponding to a dynamic effect to be played, a latest play time of a dynamic effect to be played, a tag of a dynamic effect event corresponding to a linkage dynamic effect of a dynamic effect to be played, and dynamic effect resource information of a dynamic effect to be played.
Optionally, after determining to play the first animation, the electronic device moves an animation event corresponding to the first animation out of an animation play queue.
In some embodiments, determining that the first animation effect is preconfigured with a coordinated animation effect with the third desktop element. Then, in the process of playing the first animation in the first area, playing a third animation of a third desktop element in a fourth area of the desktop. Optionally, the fourth area includes an area outside an area occupied by the third desktop element.
For example, the related contents of the linkage action can refer to the related contents shown in fig. 8, fig. 12 to fig. 15, and fig. 17, and are not described again here.
Therefore, according to the desktop dynamic effect display method provided by the embodiment of the application, the relevant information of the application can be displayed in the area outside the area where the application icon or the card is located, for example, the full-screen dynamic effect of the application is displayed, so that the desktop dynamic effect can contain more application information, the user-defined dynamic effect display effect of a developer is supported, the interactivity of a user can be increased, and the use experience of the user is improved.
The desktop animation display method provided by the embodiment of the application is described in detail above with reference to fig. 5 to 24. The following describes in detail the desktop animation display device provided in the embodiment of the present application with reference to fig. 25.
In a possible design, fig. 25 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. As shown in fig. 25, the electronic device 2500 may include: a display unit 2501 and a processing unit 2502. The electronic device 2500 may be used to implement the functions of the electronic device involved in the above-described method embodiments.
Optionally, the display unit 2501 is configured to support the electronic device 2500 to display interface content; and/or, support electronics 2500 performs S2107 in fig. 21; and/or support electronics 2500 performs S2401 and S2403 in fig. 24.
Optionally, a processing unit 2502 to support the electronic device 2500 to perform S2101-S2106, and S2108-S2113 in fig. 21; and/or the support electronics 2500 performs S2402 in fig. 24.
Optionally, the electronic device 2500 may further include a transceiving unit (not shown in fig. 25), and the transceiving unit may receive a touch operation of a user on a desktop. The transceiver unit may include a receiving unit and a transmitting unit, may be implemented by a transceiver or a transceiver-related circuit component, and may be a transceiver or a transceiver module. In order to implement the corresponding flow of the desktop animation display method in the foregoing embodiment of the method, the operations and/or functions of each unit in the electronic device 2500 are respectively, all relevant contents of each step related to the foregoing embodiment of the method may be referred to the functional description of the corresponding functional unit, and for brevity, are not described again here.
Optionally, the electronic device 2500 shown in fig. 25 may further include a storage unit (not shown in fig. 25) in which a program or an instruction is stored. When the display unit 2501 and the processing unit 2502 execute the program or the instructions, the electronic device 2500 shown in fig. 25 may execute the desktop animation display method described in the above method embodiments.
For technical effects of the electronic device 2500 shown in fig. 25, reference may be made to the technical effects of the desktop animation display method described in the foregoing method embodiment, and details are not repeated here.
Besides the form of the electronic device 2500, the technical solution provided in this application may also be a functional unit or chip in the electronic device, or a device used in cooperation with the electronic device.
An embodiment of the present application further provides a chip system, including: a processor coupled to a memory for storing a program or instructions that, when executed by the processor, cause the system-on-chip to implement the method of any of the above method embodiments.
Optionally, the system on a chip may have one or more processors. The processor may be implemented by hardware or by software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, or the like. When implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.
Optionally, the memory in the system-on-chip may also be one or more. The memory may be integrated with the processor or may be disposed separately from the processor, and the embodiments of the present application are not limited thereto. The memory may be a non-transitory processor, such as a read only memory ROM, which may be integrated on the same chip as the processor or may be separately disposed on different chips.
The system-on-chip may be a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), a system on chip (SoC), a Central Processing Unit (CPU), a Network Processor (NP), a digital signal processing circuit (DSP), a Micro Controller Unit (MCU), a Programmable Logic Device (PLD), or other integrated chips.
It will be appreciated that the steps of the above described method embodiments may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in a processor.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program runs on a computer, the computer is caused to execute the relevant steps to implement the desktop animation display method in the foregoing embodiment.
The embodiment of the present application further provides a computer program product, which when running on a computer, causes the computer to execute the above related steps, so as to implement the desktop animation display method in the above embodiment.
In addition, the embodiment of the application also provides a device. The apparatus may be embodied as a component or a module, which may include one or more processors and memory coupled together. Wherein the memory is for storing a computer program. The computer program, when executed by one or more processors, causes an apparatus to perform the desktop animation display method in the above method embodiments.
The apparatus, the computer-readable storage medium, the computer program product, or the chip provided in the embodiments of the present application are all configured to execute the corresponding methods provided above. Therefore, the advantageous effects that can be achieved by the method can refer to the advantageous effects in the corresponding methods provided above, and are not described herein again.
The steps of a method or algorithm described in connection with the disclosure of the embodiments of the application may be embodied in hardware or in software instructions executed by a processor. The software instructions may be comprised of respective software modules that may be stored in Random Access Memory (RAM), flash memory, read Only Memory (ROM), erasable Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), registers, a hard disk, a removable disk, a compact disc read only memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuit (ASIC).
Through the above description of the embodiments, those skilled in the art may clearly understand that, for convenience and simplicity of description, only the division of the above functional modules is illustrated. In practical application, the functions can be distributed by different functional modules according to requirements; i.e. the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in the present application, it should be understood that the disclosed method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative. For example, the division of the module or unit is only a logic function division, and there may be another division manner in actual implementation; for example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of modules or units through some interfaces, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
Computer-readable storage media include, but are not limited to, any of the following: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (22)
1. A desktop animation display method is applied to electronic equipment, and the method comprises the following steps:
displaying a desktop, the desktop including a first desktop element;
determining a first dynamic effect of playing the first desktop element;
and playing the first dynamic effect in a first area of the desktop, wherein the first area comprises an area except for an area occupied by the first desktop element.
2. The method of claim 1, wherein prior to the determining to play the first animation, the method further comprises:
determining a dynamic effect playing environment having the first dynamic effect played; the dynamic effect playing environment comprises that first content and/or second content do not exist on a desktop, the first content is content influencing the playing effect of the first dynamic effect, and the second content is content influencing the playing effect of the first dynamic effect.
3. The method of claim 2, wherein a second region displaying the first content intersects with a first key region in the first region, and wherein the first region intersects with a second key region in a third region displaying the second content.
4. The method of claim 2 or 3, wherein the first content or the second content is a floating window display content or a dynamic effect content played on the desktop.
5. The method of any of claims 2-4, wherein the desktop further comprises a second desktop element, the method further comprising:
acquiring a requirement for playing a second dynamic effect of the second desktop element;
if the second action is not played in the action playing environment, the electronic device does not play the second action, or the electronic device plays the second action when the second action is delayed to play in the action playing environment in which the second action is played.
6. The method of any of claims 1-5, wherein the desktop further comprises a third desktop element, the method further comprising:
determining that the first dynamic effect and the third desktop element are pre-configured with a linkage dynamic effect;
and in the process of playing the first dynamic effect in the first area, playing a third dynamic effect of the third desktop element in a fourth area of the desktop.
7. The method of any of claims 1-6, wherein prior to the determining the animation of playing the first desktop element, the method further comprises:
and determining that the first application corresponding to the first desktop element has a dynamic effect playing permission.
8. The method of any of claims 1-7, wherein prior to playing the first animation at the first region of the desktop, the method further comprises:
acquiring dynamic effect resource information of the first dynamic effect; the dynamic effect resource information comprises a storage position of the dynamic effect resource of the first dynamic effect and/or information of a dynamic effect layer corresponding to the first dynamic effect; the number of the dynamic effect layers is one or more layers, the dynamic effect resources comprise one or more resources, and the information of the dynamic effect layers comprises the corresponding relation between one or more layers of dynamic effect layers and one or more resources; the storage position of the dynamic effect resource is used for obtaining the dynamic effect resource, and the information of the dynamic effect layer is used for determining to play the first dynamic effect layer.
9. The method according to claim 8, wherein the animation resource information is determined for a first application corresponding to the first desktop element according to a desktop element included in the desktop and optional layers, and the optional layers include the one or more animation layers determined by the first application.
10. The method according to any one of claims 1-9, further comprising:
and in the process of playing the first dynamic effect, detecting the operation of a user on a first touch area included in the first dynamic effect, and stopping playing the first dynamic effect.
11. The method according to any one of claims 1-9, further comprising:
and in the process of playing the first dynamic effect, detecting the operation of a user on a second touch area included in the first dynamic effect, and playing the first dynamic effect again.
12. The method of any of claims 1-11, wherein playing the first animation in the first region of the desktop comprises:
and playing the first dynamic effect with preset duration in the first area of the desktop.
13. The method of any of claims 1-12, wherein the first desktop element includes a card and/or an icon of a first application to which the first desktop element corresponds.
14. The method according to any one of claims 1 to 13, wherein the electronic device maintains a dynamic effect play queue, the dynamic effect play queue is configured to store dynamic effect events corresponding to dynamic effects to be played, and the dynamic effect events include one or more of an identifier of an application corresponding to a dynamic effect to be played, a latest play time of a dynamic effect to be played, a tag of a dynamic effect event corresponding to a linkage dynamic effect of a dynamic effect to be played, and dynamic effect resource information of a dynamic effect to be played.
15. The method of claim 14, wherein after the determining the first animation of playing the first desktop element, the method further comprises:
and moving the dynamic effect event corresponding to the first dynamic effect out of the dynamic effect play queue.
16. A desktop dynamic effect display method is applied to electronic equipment, and a first desktop element corresponding to a first application is displayed on a desktop of the electronic equipment; the method comprises the following steps:
detecting a trigger event for playing a first animation of the first application;
determining dynamic effect resource information of the first dynamic effect; the dynamic effect resource information comprises a storage position of the dynamic effect resource of the first dynamic effect and/or information of a dynamic effect layer corresponding to the first dynamic effect; the number of the dynamic effect layers is one or more layers, the dynamic effect resources comprise one or more resources, and the information of the dynamic effect layers comprises the corresponding relation between one or more layers of dynamic effect layers and one or more resources; the dynamic effect resource information is used for playing the first dynamic effect in a first area of the desktop, and the first area comprises areas except for the area occupied by the first desktop element.
17. The method according to claim 16, wherein the dynamic effect resource information is determined for a first application corresponding to the first desktop element according to desktop elements included in the desktop and optional layers, and the optional layers include the one or more dynamic effect layers determined by the first application.
18. The method according to claim 16 or 17, wherein the first application has a motion-effect play right.
19. The method of any of claims 16-18, wherein the first desktop element comprises a card and/or an icon of the first application.
20. An electronic device, comprising: a processor, a memory, and a touchscreen, the memory and the touchscreen coupled to the processor, the memory for storing computer program code, the computer program code comprising computer instructions that, when read from the memory by the processor, cause the electronic device to perform the method of any of claims 1-15; or cause the electronic device to perform the method of any of claims 16-19.
21. A computer-readable storage medium, comprising a computer program which, when run on an electronic device, causes the electronic device to perform the method of any one of claims 1-15; or cause the electronic device to perform the method of any of claims 16-19.
22. A computer program product, which, when run on a computer, causes the computer to perform the method of any one of claims 1-15; or cause the computer to perform the method of any of claims 16-19.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111113324.2A CN115840610A (en) | 2021-09-18 | 2021-09-18 | Desktop dynamic effect display method and electronic equipment |
PCT/CN2022/116535 WO2023040670A1 (en) | 2021-09-18 | 2022-09-01 | Method for displaying dynamic effect on desktop, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111113324.2A CN115840610A (en) | 2021-09-18 | 2021-09-18 | Desktop dynamic effect display method and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115840610A true CN115840610A (en) | 2023-03-24 |
Family
ID=85574532
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111113324.2A Pending CN115840610A (en) | 2021-09-18 | 2021-09-18 | Desktop dynamic effect display method and electronic equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115840610A (en) |
WO (1) | WO2023040670A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117389496A (en) * | 2023-09-19 | 2024-01-12 | 荣耀终端有限公司 | Folding screen display method, electronic equipment and computer readable storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AUPS058602A0 (en) * | 2002-02-15 | 2002-03-14 | Canon Kabushiki Kaisha | Representing a plurality of independent data items |
CN109117219A (en) * | 2018-07-16 | 2019-01-01 | 北京奇元科技有限公司 | Prompting implementation method and device in intelligent terminal |
CN110769120A (en) * | 2019-10-22 | 2020-02-07 | 广州华多网络科技有限公司 | Method, device, equipment and storage medium for message reminding |
CN111182343B (en) * | 2019-12-09 | 2021-09-24 | 腾讯科技(深圳)有限公司 | Method and apparatus for playing animation material, storage medium, and electronic apparatus |
CN112181572B (en) * | 2020-09-28 | 2024-06-07 | 北京达佳互联信息技术有限公司 | Interactive special effect display method, device, terminal and storage medium |
CN112148982A (en) * | 2020-09-29 | 2020-12-29 | 维沃移动通信有限公司 | Display method, display device and electronic equipment |
-
2021
- 2021-09-18 CN CN202111113324.2A patent/CN115840610A/en active Pending
-
2022
- 2022-09-01 WO PCT/CN2022/116535 patent/WO2023040670A1/en active Application Filing
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117389496A (en) * | 2023-09-19 | 2024-01-12 | 荣耀终端有限公司 | Folding screen display method, electronic equipment and computer readable storage medium |
CN117389496B (en) * | 2023-09-19 | 2024-10-18 | 荣耀终端有限公司 | Folding screen display method, electronic equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2023040670A1 (en) | 2023-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110138959B (en) | Method for displaying prompt of human-computer interaction instruction and electronic equipment | |
CN110839096B (en) | Touch method of equipment with folding screen and folding screen equipment | |
CN110602273B (en) | Message display method, electronic equipment and computer readable storage medium | |
CN110874168A (en) | Display method and electronic equipment | |
WO2022089207A1 (en) | Cross-device application interaction method, electronic device, and server | |
CN111208925A (en) | Method for establishing application combination and electronic equipment | |
CN110855826A (en) | Atomic service presentation method and device | |
CN114466102B (en) | Method for displaying application interface, related device and traffic information display system | |
CN115328358A (en) | Display method and related device | |
EP4354270A1 (en) | Service recommendation method and electronic device | |
EP4365722A1 (en) | Method for displaying dock bar in launcher and electronic device | |
CN115061607A (en) | Function page display method and electronic equipment | |
CN113835802A (en) | Device interaction method, system, device and computer readable storage medium | |
CN113485709B (en) | Application optimization method and device and electronic equipment | |
WO2023040670A1 (en) | Method for displaying dynamic effect on desktop, and electronic device | |
CN113805771B (en) | Notification reminding method, terminal equipment and computer readable storage medium | |
WO2022052706A1 (en) | Service sharing method, system and electronic device | |
US20240036696A1 (en) | Inter-Interface Conversion Method, Device, and System | |
CN115794272A (en) | Display method and electronic equipment | |
WO2023165413A1 (en) | Application development system and method, and device | |
WO2023045774A1 (en) | Display method and electronic device | |
US20240231560A9 (en) | Shortcut icon display method and terminal device | |
CN117632323A (en) | Display method and electronic equipment | |
CN118200432A (en) | Card display method and electronic equipment | |
CN116257201A (en) | Content collaboration method, electronic device, and computer-readable 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 |