Control method and device, electronic equipment, storage medium and computer program product

By determining the target usage scenario on the display interface of electronic devices and responding to preset disappearance conditions, the display or disappearance of prompt messages can be dynamically controlled, solving the problem of chaotic display and disappearance of prompt messages and improving the user experience.

CN121367752APending Publication Date: 2026-01-20BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410962402.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2026-01-20

AI Technical Summary

Technical Problem

In the existing technology, the display and disappearance control of prompt messages on electronic devices is not flexible enough, resulting in confusion in display or disappearance and failing to meet the needs of different usage scenarios.

Method used

When a prompt message is displayed on the display interface of an electronic device, the target usage scenario is determined, and the exit display of the prompt message is controlled in response to a preset disappearance condition. The status parameters are obtained and updated using a preset cache queue, and the display or disappearance of the prompt message is dynamically adjusted.

Benefits of technology

It enables precise control over the display or disappearance of prompt messages based on different usage scenarios, improving the user experience and avoiding unnecessary visual interference and operation interruption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121367752A_ABST
    Figure CN121367752A_ABST
Patent Text Reader

Abstract

The invention relates to a control method and device, electronic equipment, a storage medium and a computer program product. The method comprises the following steps: displaying a prompt message on a display interface of the electronic equipment; determining a target use scene when the electronic equipment displays the prompt message; and in response to the target usage scene meeting the preset disappearance condition, controlling the prompt message to exit display. According to the method and the device, the target use scene of the electronic equipment is acquired, and the display or disappearance of the prompt message is dynamically and flexibly adjusted according to whether the target use scene meets the preset disappearance condition or not, so that the display and exit of the prompt message can meet the requirements of different use scenes, and the display or exit of the prompt message is accurately controlled.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of mobile communication, and in particular, to a control method and device, electronic equipment, storage medium and computer program product. BACKGROUND

[0002] At present, in an electronic device, when a short message or prompt is displayed to a user through a screen, in order not to interrupt the current operation of the user, the prompt is generally automatically disappeared after being displayed on the screen for a period of time. However, when to control the prompt to disappear or disappear needs to be controlled by research and development, and if the control is not good, it is easy to cause confusion of the prompt message display or disappearance. SUMMARY

[0003] To overcome the problems in the related art, the present disclosure provides a control method, device, electronic equipment, storage medium and computer program product. To solve the problem of confusion of prompt message display or disappearance.

[0004] According to a first aspect of an embodiment of the present disclosure, a control method is provided, comprising:

[0005] displaying a prompt message on a display interface of an electronic device;

[0006] determining a target use scenario when the electronic device displays the prompt message;

[0007] in response to the target use scenario satisfying a preset disappearance condition, controlling the prompt message to exit display. In some embodiments, the determining of the target use scenario when the electronic device displays the prompt message comprises:

[0008] obtaining at least two preset state parameters from a preset cache queue; wherein the preset state parameters comprise state parameters of each functional module in the electronic device and state parameters of each application in the electronic device; the preset cache queue is a first-in last-out queue, and the types of each preset state parameter are different;

[0009] determining the target use scenario based on the at least two preset state parameters.

[0010] In some embodiments, the method further comprises:

[0011] in a case where any one of the at least two preset state parameters satisfies a disappearance condition corresponding to the any one of the at least two preset state parameters, determining that the target use scenario satisfies the preset disappearance condition;

[0012] in a case where each of the at least two preset state parameters does not satisfy a disappearance condition corresponding to the each of the at least two preset state parameters, determining that the target use scenario does not satisfy the preset disappearance condition, and maintaining the display of the prompt message on the display interface;

[0013] The conditions corresponding to the preset state parameters are determined based on the types of the preset state parameters.

[0014] In some embodiments, the method further includes:

[0015] In a case where the new state parameter is acquired, it is determined whether the new state parameter satisfies a disappearance condition corresponding to the new state parameter.

[0016] In a case where the new state parameter satisfies the disappearance condition corresponding to the new state parameter, the new state parameter is updated to the preset cache queue.

[0017] In some embodiments, the updating of the new state parameter to the preset cache queue in the case where the new state parameter satisfies the disappearance condition corresponding to the new state parameter includes:

[0018] In a case where the new state parameter satisfies the disappearance condition corresponding to the new state parameter, a delay time corresponding to the new state parameter is determined.

[0019] In a case where the delay time is reached, the new state parameter is updated to the preset cache queue.

[0020] In some embodiments, the determining of the target use scenario based on the at least two preset state parameters includes:

[0021] A current use scenario of the electronic device is determined based on at least two current state parameters of the electronic device.

[0022] The current use scenario is updated based on the at least two preset state parameters to obtain a target use scenario.

[0023] In some embodiments, the updating of the current use scenario based on the at least two preset state parameters to obtain the target use scenario includes:

[0024] Target state parameters corresponding to each type of preset state parameter are determined based on the time of storage of the at least two preset state parameters to the preset cache queue, to obtain at least two target state parameters.

[0025] The current use scenario is updated based on the at least two target state parameters to obtain the target use scenario.

[0026] In some embodiments, the acquiring of the at least two preset state parameters from the preset cache queue includes:

[0027] The at least two preset state parameters are acquired from the preset cache queue by using a first thread.

[0028] The method further includes:

[0029] In a case where the second thread completes the indication operation, a state parameter generated based on the indication operation is updated to a preset cache queue.

[0030] According to a second aspect of the embodiments of the present disclosure, a control apparatus is provided, comprising:

[0031] a display module configured to display a prompt message on a display interface of an electronic device;

[0032] a determination module configured to determine a target use scenario when the electronic device displays the prompt message;

[0033] a control module configured to control the prompt message to exit the display in response to the target use scenario satisfying a preset disappearance condition.

[0034] In some embodiments, the apparatus further comprises:

[0035] obtaining at least two preset state parameters from a preset cache queue; wherein the preset state parameters comprise state parameters of each functional module in the electronic device and state parameters of each application in the electronic device; the preset cache queue is a first-in last-out queue, and each preset state parameter is of a different type;

[0036] determining the target use scenario based on the at least two preset state parameters.

[0037] In some embodiments, the apparatus further comprises:

[0038] In a case where any preset state parameter in the at least two preset state parameters satisfies a disappearance condition corresponding to the any preset state parameter, it is determined that the target use scenario satisfies the preset disappearance condition;

[0039] In a case where each preset state parameter in the at least two preset state parameters does not satisfy a disappearance condition corresponding to the each preset state parameter, it is determined that the target use scenario does not satisfy the preset disappearance condition, and the display of the prompt message on the display interface is maintained;

[0040] wherein each preset state parameter has a corresponding condition, and the condition corresponding to the preset state parameter is determined based on the type of the preset state parameter.

[0041] In some embodiments, the apparatus further comprises:

[0042] In a case where a new state parameter is obtained, it is determined whether the new state parameter satisfies a disappearance condition corresponding to the new state parameter;

[0043] In a case where the new state parameter satisfies the disappearance condition corresponding to the new state parameter, the new state parameter is updated to the preset cache queue.

[0044] In some embodiments, the apparatus further comprises:

[0045] In a case where the new state parameter meets a disappearance condition corresponding to the new state parameter, a delay time corresponding to the new state parameter is determined.

[0046] In a case where the delay time is reached, the new state parameter is updated to a preset cache queue.

[0047] In some embodiments, the apparatus further includes:

[0048] Based on at least two current state parameters of the electronic device, a current use scenario of the electronic device is determined;

[0049] Based on the at least two preset state parameters, the current use scenario is updated to obtain a target use scenario.

[0050] In some embodiments, the apparatus further includes:

[0051] Based on a time of storage of the at least two preset state parameters to the preset cache queue, target state parameters corresponding to each type of preset state parameter are determined to obtain at least two target state parameters;

[0052] Based on the at least two target state parameters, the current use scenario is updated to obtain a target use scenario.

[0053] In some embodiments, the apparatus further includes:

[0054] The first thread is used to obtain the at least two preset state parameters from the preset cache queue;

[0055] The apparatus further includes:

[0056] In a case where the second thread completes the indication operation, a state parameter generated based on the indication operation is updated to the preset cache queue.

[0057] According to a third aspect of the embodiments of the present disclosure, an electronic device is provided, including

[0058] a processor;

[0059] a memory for storing computer programs or instructions;

[0060] The processor executes the computer programs or instructions to implement the steps of the method according to any one of the first aspect.

[0061] According to a fourth aspect of the embodiments of the present disclosure, a non-transitory computer readable storage medium is provided,

[0062] The storage medium stores a computer program or instructions, and when the computer program or instructions in the storage medium are executed by a processor, the steps of the method in any one of the first aspects are implemented. According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program or instructions, which, when executed by a processor, implement the steps of the method in any one of the first aspects.

[0063] The technical solutions provided by the embodiments of the present disclosure can include the following beneficial effects:

[0064] In the control method proposed in the embodiments of the present disclosure, a prompt message is displayed on a display interface of an electronic device; a target use scenario when the electronic device displays the prompt message is determined; and in response to the target use scenario satisfying a preset disappearance condition, the prompt message is controlled to exit the display.

[0065] That is, when the prompt message is displayed on the display interface of the electronic device, the target use scenario when the electronic device displays the prompt message is obtained, and in response to the target use scenario satisfying a preset disappearance condition, the prompt message is controlled to exit the display. Through the acquisition of the target use scenario of the electronic device, and according to whether the target use scenario satisfies the preset disappearance condition, the display or exit of the prompt message is dynamically and flexibly adjusted, so that the display and exit of the prompt message can meet the needs of different use scenarios, and the display or exit (disappearance) of the prompt message is accurately controlled.

[0066] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0067] The accompanying drawings, which are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure and, together with the specification, serve to explain the principles of the present disclosure.

[0068] Figure 1 is a flowchart of a control method according to an exemplary embodiment.

[0069] Figure 2 is an application scenario diagram of a control method according to an exemplary embodiment.

[0070] Figure 3 is a flowchart of a control method according to an exemplary embodiment Figure Two .

[0071] Figure 4 is a use scenario conversion diagram of a control method according to an exemplary embodiment.

[0072] Figure 5is a flowchart of a control method according to an example embodiment. Figure Three .

[0073] Figure 6 is a block diagram of a control device according to an example embodiment.

[0074] Figure 7 is a block diagram of a device 700 according to an example embodiment.

[0075] Figure 8 is a block diagram of a device 800 for control according to an example embodiment. DETAILED DESCRIPTION

[0076] The example embodiments will be described in detail herein with reference to the accompanying drawings. In the following description, unless otherwise indicated, like numbers in the different drawings represent the same or similar elements. The following example embodiments described in the example embodiments do not represent all implementations consistent with the present disclosure. Instead, they are merely examples of apparatuses and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0077] Figure 1 is a flowchart of a control method according to an example embodiment. As shown in Figure 1 , the method mainly includes the following steps:

[0078] In step 101, a prompt message is displayed on a display interface of an electronic device;

[0079] In step 102, a target use scenario when the electronic device displays the prompt message is determined;

[0080] In step 103, in response to the target use scenario satisfying a preset disappearance condition, the prompt message is controlled to exit display.

[0081] Here, the electronic device can include a terminal device, such as a mobile terminal or a fixed terminal. The mobile terminal can include a mobile phone, a tablet computer, a notebook computer, a wearable electronic device, etc. The fixed terminal can include a desktop computer, a smart television, a vehicle-mounted device, etc.

[0082] The display interface of an electronic device is generally composed of several basic elements: background and layout, icons and pictures, text and prompts, and interactive elements. Among them, the background and layout include background color, pattern, and overall layout, which determine the basic visual effect and user experience of the interface; icons and pictures are used to represent different functions, applications or states, helping users quickly identify and operate; text and prompts provide necessary information, instructions and feedback to ensure that users can accurately understand the current state and operation steps; interactive elements include buttons, sliders, input boxes, etc., allowing users to interact with the device through touch, click, etc.

[0083] Here, the prompt message is used to convey information, guide operation or feedback state to the user. The type of prompt message can include: text prompt message, voice prompt message, icon prompt message, etc.

[0084] It should be noted that when the prompt message is a text prompt message, the text can be highlighted by using a specific color (such as red, yellow) for important content.

[0085] For example, in a call scenario, the mobile terminal is in a folded state and the camera is facing down. Since the mobile terminal is in a folded state, the earpiece may be blocked or not in a good position, resulting in poor call quality, so in order to improve the call experience, the user needs to be prompted to rotate the phone to use the earpiece or turn on the hands-free function. For example, the prompt message is "Call, earpiece may be blocked, suggest rotating the phone or choosing hands-free", and "rotate the phone" and "choose hands-free" are highlighted.

[0086] It can be understood that the highlight color can quickly attract the user's attention, especially in the case of more page content or user distraction. Using highlights can ensure that the user notices important prompt messages at the first time. Through the contrast of colors, the highlighted text is clearly distinguished from the surrounding content, making important information more prominent, helping users quickly locate and process important information, and thus improving the overall user experience.

[0087] It should be noted that in different application scenarios, different types of prompt messages are used, and different types of prompt messages can be used together.

[0088] For example, Figure 2 is an application scenario diagram of a control method according to an example embodiment. As shown in Figure 2 When calling, if the call downlink device is an earpiece, the camera is facing down, and the mobile terminal is in a folded state, the user needs to be prompted to rotate the mobile terminal to use the earpiece or turn on the hands-free function when the mobile terminal is on. Application scenario: in a call scenario, the user needs to be prompted to guide the user to use the phone, especially when the display of the prompt message needs to meet multiple conditions at the same time.

[0089] For example, when the user misses a mandatory field when filling out a form, a textual prompt message and an icon prompt message are used to remind the user, such as displaying a red star icon and a textual prompt "This field is mandatory" next to the missed field. When the user is driving a vehicle and approaching an obstacle, a voice prompt message and an icon prompt message are used, such as a voice prompt "Attention, obstacle ahead" and a red warning icon and distance information displayed on the vehicle display screen.

[0090] It can be understood that different types of prompt messages have different characteristics and advantages, for example, textual prompt messages provide detailed information, voice prompt messages are suitable for visually limited environments, and different types of prompt messages significantly enhance the diversity and effectiveness of information transmission. The use of different types of prompt messages in different application scenarios can enhance the personalization and adaptability of the user experience by providing multiple types of prompt messages for the user to choose from or automatically adjusting the type and combination of prompt messages based on the user's behavior and preferences. The use of different types of prompt messages can facilitate user interaction and feedback with the application. And promote user interaction and feedback, that is, in different application scenarios, different types of prompt messages are used, and different types of prompt messages can be used in combination, which improves the user's experience.

[0091] It should be noted that the target use scenario of the electronic device when displaying the prompt message is related to the state parameters of the electronic device.

[0092] Here, the target use scenario refers to the updated use scenario of the electronic device. For example, the target use scenario is that the electronic device is in an unfolded state and the camera is facing up.

[0093] It should be noted that the target use scenarios of different types of electronic devices when displaying prompt messages can be the same or different.

[0094] For example, when the electronic device is a folding phone and the electronic device is a smart bracelet, the target use scenarios can include: when there is an incoming call, the folding phone and the smart bracelet display prompt messages in the full screen and screen light on scenario. It can also include: when there is an incoming call, the folding phone displays a prompt message in a half-screen and screen light-on scenario, while the smart bracelet displays a prompt message in a full-screen and screen light-on scenario.

[0095] It can be understood that when the target use scenarios of different types of electronic devices when displaying prompt messages are the same, a consistent user experience can be formed. This consistency helps to reduce the learning cost of users when switching between different devices and improves overall use efficiency. While the target use scenarios of different types of electronic devices when displaying prompt messages are different, the advantages of each device can be fully utilized to improve the user experience.

[0096] Here, the preset disappearance condition is used to switch the display prompt message to prompt message exit display (prompt message disappearance).

[0097] Exemplarily, when the electronic device is currently displaying the prompt message, the content of the prompt message is "in call, the receiver may be blocked, it is suggested to rotate the phone or select the hands-free", by obtaining the current target use scenario of the electronic device is unfolded, the preset disappearance condition is met, and the prompt message exits display.

[0098] Exemplarily, in the call scenario, the current use scenario of the electronic device is folded and the camera is downward, by obtaining that the folding angle of the electronic device changes from 0° to 20°, for example, the angle range of the folded state is 0° to 149°, obviously it is still folded, that is, the target use scenario is still folded and the camera is downward, and the preset disappearance condition is not met, and the display continues.

[0099] It can be understood that by obtaining the target use scenario and according to the preset disappearance condition, the display or disappearance of the prompt message can be flexibly and dynamically realized.

[0100] In the control method proposed by the embodiments of the present disclosure, the prompt message is displayed on the display interface of the electronic device; the target use scenario of the electronic device when displaying the prompt message is determined; and the prompt message is controlled to exit display in response to the target use scenario meeting the preset disappearance condition.

[0101] That is, when the prompt message is displayed on the display interface of the electronic device, the target use scenario of the electronic device when displaying the prompt message is obtained, and the prompt message is controlled to exit display when the target use scenario meets the preset disappearance condition.

[0102] In the prior art, the display and exit of the prompt message are directly based on the fixed time message set by the programmer, and do not involve the determination of the scene, and in some scenes, the display needs to continue, but because the time set by the programmer is reached, the display is exited, or in some scenes, the prompt message needs to be exited in advance, but because the time set by the programmer is not reached, the display continues. The display and exit of the prompt message cannot meet the needs of different scenes.

[0103] And the present application obtains the target use scenario of the electronic device, and dynamically and flexibly adjusts the display or exit of the prompt message according to whether the target use scenario meets the preset disappearance condition, so that the display and exit of the prompt message can meet the needs of different use scenarios, and the display or disappearance of the prompt message is accurately controlled.

[0104] In some embodiments, the determination of the target use scenario of the electronic device when displaying the prompt message comprises:

[0105] The at least two preset state parameters are obtained from a preset cache queue, wherein the preset state parameters include state parameters of each functional module in the electronic device and state parameters of each application in the electronic device, and the preset cache queue is a first-in last-out queue, and the types of the preset state parameters are different.

[0106] The target use scenario is determined based on the at least two preset state parameters.

[0107] Here, the preset cache queue is a preset state parameter stored by a user to meet the display of a prompt message or the exit of the display of the prompt message.

[0108] First-in last-out means that the preset state parameter stored in the stack of the preset cache queue last will be taken out first.

[0109] The state parameters of each functional module in the electronic device can include, but are not limited to, at least one of the following: a screen posture, a camera state, a receiver state, and a brightness state.

[0110] The state parameters of each application in the electronic device can include that each application is in a foreground state and each application is in a background state.

[0111] It should be noted that the preset state parameters corresponding to different application scenarios can be different.

[0112] Exemplarily, in a call scenario, the preset state parameters can include a screen posture, a camera orientation, and a state of an application. In an office work scenario, the preset state parameters can include a screen brightness, a volume size, and a size of the screen.

[0113] It can be understood that, according to the needs of different application scenarios, corresponding preset state parameters are set, which can make the electronic device closer to the use habits and needs of the user, and improve the use experience of the user. Moreover, by setting different preset state parameters for different scenarios, the electronic device can more flexibly cope with the needs of various scenarios, thereby improving its adaptability and usability. The user can set unique parameter combinations for different scenarios according to his own preferences and needs. This personalized experience not only enhances the satisfaction and loyalty of the user, but also makes the electronic device closer to the actual needs of the user.

[0114] It should be noted that the preset cache queue is a first-in last-out queue, which means that the preset state parameter that is last cached into the queue is taken out first, and the preset state parameter that is taken out is the latest state parameter.

[0115] Exemplarily, a stack can be used as the preset cache queue, and at least two preset state parameters are continuously popped out from the stack, or a list is used to simulate the stack, and at least two preset state parameters are taken out by using the pop() method of the list.

[0116] It can be understood that, since the preset cache queue is a first-in first-out queue, the at least two preset state parameters taken out from the preset cache queue first are the preset state parameters with the latest storage time, which indicates that the at least two preset state parameters taken out from the preset cache queue are the latest, and since the parameters of different preset state types are different, the at least two preset state parameters taken out from the preset cache queue are the latest and the types of the at least two preset state parameters taken out are different, that is, the latest preset state parameters have several types, and the latest parameters are several. In this way, the real-time and accuracy of the preset state parameters can be ensured, and the number of the preset state parameters taken out from the preset cache queue is determined based on the types of the preset state parameters, which facilitates updating the target use scenario and more accurately controlling the display and disappearance of the prompt message.

[0117] It should be noted that the types of the preset state parameters can be different types of state parameters of various functional modules in the electronic device and different types of state parameters of various applications in the electronic device.

[0118] Exemplarily, when the preset state parameters are a screen posture and a camera orientation, the screen posture represents an unfolded or folded posture of the electronic device, and the camera orientation refers to a viewing angle state of the electronic device, which are two different types.

[0119] It can be understood that, since the types of the preset state parameters are different, the determination of the target use scenario caused by the multiple changes of the same type of preset state parameter is avoided, and therefore the different types of the preset state parameters are beneficial to determining the target use scenario and accurately controlling the switching of the display and disappearance of the prompt message.

[0120] In the embodiments of the present disclosure, at least two preset state parameters are obtained from the preset cache queue, and the target use scenario is determined based on the at least two preset state parameters, which can more accurately determine the target use scenario and more accurately switch the display and disappearance of the prompt message.

[0121] In some embodiments, the method further includes:

[0122] In a case where any preset state parameter in the at least two preset state parameters satisfies a disappearance condition corresponding to the any preset state parameter, it is determined that the target use scenario satisfies a preset disappearance condition;

[0123] In a case where each preset state parameter in the at least two preset state parameters does not satisfy a disappearance condition corresponding to the each preset state parameter, it is determined that the target use scenario does not satisfy the preset disappearance condition, and the display of the prompt message on the display interface is maintained;

[0124] The conditions corresponding to the preset state parameters are determined based on the types of the preset state parameters.

[0125] Exemplarily, when the preset state parameter is a screen state, the disappearance condition corresponding to the preset state parameter is an unfolded state; when the preset state parameter is a camera state, the disappearance condition corresponding to the preset state parameter is that the camera is upward; and when the preset state parameter is a screen state of an application state, the disappearance condition corresponding to the preset state parameter is that the application is in a background state. The display condition can be flexibly selected according to actual requirements and conditions, and is not limited herein.

[0126] It should be noted that the condition for maintaining the display of the prompt message is that each of the at least two preset state parameters does not satisfy the disappearance condition corresponding to the preset state parameter (satisfies the display condition), that is, the display conditions of the display prompt message on the display interface include at least two, and the types of the at least two display conditions are different. As long as any one of the display conditions changes, the target use scenario satisfies the preset disappearance condition.

[0127] Exemplarily, in a call scenario, the mobile terminal is in a folded state and the camera is downward, which satisfies the display condition of the display prompt message. At this time, the display prompt message "In call, the earpiece may be blocked, it is suggested to rotate the mobile phone or select the hands-free mode" is displayed. When the mobile terminal is in an unfolded state or the camera is upward, the disappearance condition is satisfied, and the display prompt message is exited. When the folding angle of the electronic device changes from 0° to 20°, for example, the angle range of the folded state is 0° to 149°, and it is obviously still in the folded state, that is, the mobile terminal is still in the folded state and the camera is downward, which does not satisfy the preset disappearance condition, and the display of the prompt message is maintained.

[0128] It can be understood that, since the display prompt message will not be displayed for too long, the prompt message will disappear when any one of the preset state parameters satisfies the disappearance condition corresponding to the preset state parameter. This feedback makes the switching of the display and disappearance of the prompt message more rapid, and the disappearance of the prompt message avoids unnecessary visual interference caused by too long display time, so that the user can focus on the current task. The display and disappearance of the prompt message are both based on the preset state parameter, so that the entire interaction process is more smooth and natural, and abrupt jumps or interruptions are avoided.

[0129] Here, each of the preset state parameters has a corresponding condition, and the condition corresponding to the preset state parameter is determined based on the type of the preset state parameter. That is, the preset state parameter and the condition corresponding to the preset state parameter are in a one-to-one correspondence, and the preset state parameter of different types and the condition corresponding to the preset state parameter are in a one-to-one correspondence.

[0130] It can be understood that the preset state parameter is determined based on the type of the preset state parameter, so that the logical judgment is more clear and consistent, the display of the prompt information or the control of the display message exit can be accurately controlled, it can be ensured that the user receives relevant information or feedback when needed, the user operation is guided when the prompt information is displayed, the unnecessary interference and confusion are reduced when the display message exits, the user can focus more on the current task or operation, and therefore the user experience is improved.

[0131] In the embodiments of the present disclosure, in a case where any of the at least two preset state parameters meets the disappearance condition corresponding to the preset state parameter, it is determined that the target use scenario meets the preset disappearance condition; in a case where each of the at least two preset state parameters does not meet the disappearance condition corresponding to the preset state parameter, it is determined that the target use scenario does not meet the preset disappearance condition, and the display of the prompt message on the display interface is maintained. By judging different cases where the preset state parameter meets the disappearance condition corresponding to the preset state parameter, it is accurately controlled when the electronic device displays the prompt information or controls the display message to exit, and it is ensured that the user receives relevant information or feedback when needed.

[0132] In some embodiments, the method further includes:

[0133] In a case where the new state parameter is acquired, it is determined whether the new state parameter meets the disappearance condition corresponding to the new state parameter;

[0134] In a case where the new state parameter meets the disappearance condition corresponding to the new state parameter, the new state parameter is updated to the preset cache queue.

[0135] Exemplarily, Figure 3 is a flow of a control method according to an exemplary embodiment Figure Two . As Figure 3 shown, the new state parameter c1 is updated to the preset cache queue q.

[0136] It should be noted that the new state parameter can be acquired by the user actively or passively.

[0137] Exemplarily, the user actively acquires the new state parameter of the folding or unfolding state of the screen of the electronic device, the direction of the camera, and the earpiece state, and the like through sensors such as a gravity acceleration sensor, a gyroscope sensor, a receiver sensor, a Hall sensor, and a distance detection sensor.

[0138] Exemplarily, the user registers a callback function, and the callback function and the preset state parameter are in a one-to-one correspondence or multiple preset state parameters correspond to one callback function. When a preset state parameter changes, that is, a new state parameter is generated, the callback function is called. Therefore, the user is informed through the callback function, so that the user passively acquires the new state parameter.

[0139] When the callback function and the preset state parameter are in a one-to-one correspondence, the coupling between different preset state parameters and the callback function is reduced, and the logic is clearer and easier to understand and debug. When different preset state parameters use the same callback function, the same processing logic can be reused, and there is no need to write a separate callback function for each preset state parameter, reducing the dispersion of the code.

[0140] It can be understood that by acquiring the new state parameter, it is beneficial to determine the target use scenario and realize the switching of the prompt message display and disappearance.

[0141] Exemplarily, the current electronic device displays a prompt message, and the electronic device is a foldable screen in a folded state. It is assumed that the angle range of the folded state is 0° to 149°. The new state parameter obtained is that the screen angle of the foldable screen is 50°, and the disappearance condition corresponding to the new state parameter is that the foldable screen is in an unfolded state. It is assumed that the angle range corresponding to the unfolded state is 150° to 180°. Obviously, the folding angle 50° of the new state parameter is still within the range of 0° to 150°, that is, in the folded state, and still satisfies the display condition of displaying the prompt message, and does not satisfy the disappearance condition corresponding to the new state parameter. Obviously, at this time, there is no need to store it in the preset cache queue.

[0142] It can be understood that in the case where the new state parameter does not satisfy the disappearance condition corresponding to the new state parameter, the new state parameter is updated to the preset cache queue, so that the preset state parameter obtained by the user from the preset cache queue is always the latest, which is beneficial to accurately control the switching of the prompt message display and disappearance, and also avoids unnecessary storage of the new state parameter change in the preset cache queue, which occupies large memory and processing resources, slows down the processing speed, and further affects the prompt message display and disappearance, resulting in poor user experience.

[0143] In the embodiments of the present disclosure, in the case where the new state parameter is obtained, it is determined whether the new state parameter satisfies the disappearance condition corresponding to the new state parameter; in the case where the new state parameter satisfies the disappearance condition corresponding to the new state parameter, the new state parameter is updated to the preset cache queue, so that the preset state parameter obtained by the user from the preset cache queue is always the latest, which is beneficial to improve the processing speed and improve the user experience.

[0144] In some embodiments, the updating the new state parameter to the preset cache queue in the case that the new state parameter satisfies the disappearance condition corresponding to the new state parameter comprises:

[0145] In the case that the new state parameter satisfies the disappearance condition corresponding to the new state parameter, determining a delay time corresponding to the new state parameter;

[0146] In the case that the delay time is reached, updating the new state parameter to the preset cache queue.

[0147] It should be noted that in actual cases, the case that the display condition is satisfied and then the disappearance condition is satisfied immediately (prompting a flash) can occur, so the new state parameter can be delayed to be put into the preset cache queue, and the time interval of the delay time is used to avoid a flash.

[0148] Exemplarily, in a call scenario, the mobile terminal displays a prompt message "calling, the receiver can be blocked, it is suggested to rotate the mobile phone or select the hands-free", assuming that the new state parameter satisfies the disappearance condition corresponding to the new state parameter, a large amount of data statistics and user analysis show that the time interval of the display prompt message and the exit of the prompt message is 2 seconds, so the new state parameter is put into the preset cache queue with a delay time of 2 seconds, so that the disappearance condition is satisfied 2 seconds after the display condition is satisfied, to avoid the case of a flash.

[0149] In the embodiments of the present disclosure, in the case that the new state parameter satisfies the disappearance condition corresponding to the new state parameter, the delay time corresponding to the new state parameter is determined, and in the case that the delay time is reached, the new state parameter is updated to the preset cache queue, thereby avoiding the case of a flash.

[0150] In some embodiments, the determining the target use scenario based on the at least two preset state parameters comprises:

[0151] Determining a current use scenario of the electronic device based on at least two current state parameters of the electronic device;

[0152] Updating the current use scenario based on the at least two preset state parameters to obtain the target use scenario.

[0153] Here, the current use scenario is the current use scenario of the electronic device. For example, the current use scenario is that the electronic device is in a folded state and the camera is downward.

[0154] Exemplarily, in a call scenario, the current state parameters are a screen posture and a camera orientation of the electronic device, the current use scenario is that the screen is in a folded state and the camera is downward, and a prompt message "calling, the receiver may be blocked, it is suggested to rotate the phone or select the hands-free mode" is displayed. According to the preset state parameters obtained from the preset cache queue, the electronic device is in the folded state and the camera is downward, the current use scenario is updated to obtain the target use scenario, that is, the target use scenario is still in the folded state and the camera is downward, and the prompt message is controlled to be maintained to be displayed. Or, according to the preset state parameters obtained from the preset cache queue, the electronic device is in the unfolded state and the camera is upward, the current use scenario is updated to obtain the target use scenario in the unfolded state and the camera is upward, and the prompt message is controlled to exit.

[0155] It can be understood that, since the preset state parameters are all stored in the preset cache queue, the preset state parameters meet the display condition or the disappearance condition, and therefore it is not necessary to judge whether the preset state parameters meet the display condition or the disappearance condition, and the target use scenario is obtained by updating the current use scenario, thereby avoiding the repeated execution of operations, making the response speed faster, and improving the user experience. In the embodiment of the present disclosure, the current use scenario of the electronic device is determined based on at least two current state parameters of the electronic device, and the target use scenario is obtained by updating the current use scenario based on at least two preset state parameters, thereby effectively avoiding the repeated execution of operations, making the response speed faster, and improving the user experience.

[0156] In some embodiments, the updating of the current use scenario based on the at least two preset state parameters to obtain the target use scenario comprises:

[0157] determining target state parameters corresponding to each type of preset state parameter based on the time when the at least two preset state parameters are stored in the preset cache queue, to obtain at least two target state parameters;

[0158] updating the current use scenario based on the at least two target state parameters to obtain the target use scenario. It should be noted that, based on the last time when the at least two preset state parameters are respectively stored in the preset cache queue, the at least two preset state parameters are of different types, and the target state parameters corresponding to each type of preset state parameter are determined.

[0159] Here, the target state parameters are the latest state parameters and are of different types.

[0160] Exemplarily, the preset state parameters are screen posture and camera orientation. The display interface of the current electronic device displays the prompt message, so the screen posture of the preset state parameters is folded state and the camera orientation is downward. According to the last time of the screen posture and the camera orientation to the preset cache queue, it is obtained that the screen posture of the preset state parameters is unfolded state and the camera orientation is upward, that is, the target state parameters are screen posture unfolded state and camera orientation upward.

[0161] Exemplarily, as shown in Figure 3 if the preset state parameters taken out from the preset cache queue q are preset state parameters C a+1 that change for the a+1th time, then the target use scene S b+l is updated according to C a+1 , other types of preset state parameters C a that change for a times, and the current use scene S b . For example, C3 is the third time that the receiver is closed to change to the receiver open, C2 includes the first change and the second change, the first change is that the screen posture changes from folded state to unfolded state, and the second change is that the camera orientation changes from downward to upward, and the target use scene is updated to unfolded state, camera upward and receiver open in combination with C3, C2 and the current use scene.

[0162] It can be understood that, based on the last time of storing at least two preset state parameters to the preset cache queue, the target state parameters corresponding to each type of preset state parameters are determined, which can ensure that the at least two preset state parameters obtained are the latest and each is of different type, and the switching of the prompt message display and the exit display can be more accurately controlled.

[0163] Exemplarily, Figure 4 a use scene conversion diagram of a control method according to an exemplary embodiment. As Figure 4As shown, here the state (i.e. use scenario) is represented by a rectangular box. In the call scenario, when a call enters the call center system, the call state is started to be monitored (start watch call state), after the start call state is determined, the call is waited for (Wait_call), when the interface of the mobile terminal displays "in call" or other similar states, it indicates that the call is in progress (in_call), when the call is in progress, other conditions are started to be monitored (Start watch Other conditions) (whether the preset state parameter changes), when the call in progress detects other conditions, the next step is (in_call_next), when the detected other conditions satisfy the exit call, the call is exited (exit_call), or it is judged whether the monitored other conditions satisfy the display conditions of the prompt message, in the case that the prompt display conditions are satisfied (satisfy tip appearing conditions), the prompt display is started (start_show_tip), and the prompt message is displayed (tip_shown), in the case that the prompt disappearing conditions are satisfied (satisfy tip disappearing conditions), the prompt display is started to be hidden (start_hide_tip), and the display is controlled to exit (tip_hidden) i.e. the display disappears, and after the display exits, the monitoring of the other conditions is stopped (Stopwatch other conditions), and the call is exited (exit_call).

[0164] In the embodiments of the present disclosure, based on the time at which the at least two preset state parameters are stored to the preset cache queue, target state parameters corresponding to each type of preset state parameter are determined, and at least two target state parameters are obtained; and based on the at least two target state parameters, the current use scenario is updated, and a target use scenario is obtained, which can ensure that the at least two preset state parameters obtained are the latest, and can more accurately control the switching of the display and disappearance of the prompt message.

[0165] In some embodiments, the obtaining of the at least two preset state parameters from the preset cache queue comprises:

[0166] The at least two preset state parameters are obtained from the preset cache queue by using the first thread.

[0167] The method further comprises:

[0168] In the case that the second thread completes the indication operation, the state parameter generated based on the indication operation is updated to the preset cache queue.

[0169] It should be noted that the types of prompt modes can be different in different scenarios.

[0170] Here, the prompting manner of the first thread can be a prompt message, and the prompting manner of the second thread can be an animation prompt.

[0171] Exemplarily, in a call scenario, the user is prompted by the prompt manner of the prompt message "calling, the receiver may be blocked, it is suggested to rotate the mobile phone or select the hands-free mode".

[0172] In a game scenario, when a new user uses it for the first time, the user is guided to understand the interface layout, function operation, etc. by the prompt manner of the animation prompt. Or when the data is being loaded or updated, the user is prompted to wait by using the animation prompt manner, such as a rotating loading indicator, a progress bar, etc.

[0173] It can be understood that according to the current scenario of the user, selecting a suitable prompt manner can significantly improve the user's use experience, enhance the conveying effect of information, and meet the needs of different users.

[0174] It can be understood that by obtaining at least two preset state parameters from the preset cache queue by using the first thread, and updating the state parameters generated based on the indication operation to the preset cache queue in the case that the second thread completes the indication operation, the step of obtaining the two preset state parameters in the second thread can be simplified, the processing speed is improved, and the user's use experience is improved.

[0175] It should be noted that due to different scenarios, the preset state parameters can be different. Therefore, in order to avoid the different preset state parameters of different scenarios leading to inaccurate conditions for switching the display and disappearance of the prompt message, and thus affecting the accuracy of control, at least two preset state parameters can be obtained separately instead of being obtained from the preset cache queue by using the first thread.

[0176] In the embodiments of the present disclosure, at least two preset state parameters are obtained from the preset cache queue by using the first thread; and in the case that the second thread completes the indication operation, the state parameters generated based on the indication operation are updated to the preset cache queue, so that the processing speed is improved and the user's use experience is improved.

[0177] Figure 5 is a flow of a control method according to an exemplary embodiment Figure Three As shown in Figure 5 , the following steps are mainly included:

[0178] Step 501, register the callback function.

[0179] Here, the callback function is called when a new state parameter is obtained, and part of the callback function can be registered again under certain conditions.

[0180] Step 502, put the new state parameter into the preset cache queue based on the callback function.

[0181] The putting of the new state parameter into the preset cache queue includes: the new state parameter can be put into the preset cache queue after a delay time according to needs, so as to avoid the case that the display condition is met and then the disappearance condition is met immediately; whether the new state parameter is put into the preset cache queue is determined according to the display / disappearance condition, and the new state parameter can not be put into the preset cache queue when the new state parameter is other values.

[0182] Step 503, in the first thread, update the current use scene to the target use scene based on the preset state parameter.

[0183] Here, in the first thread, the preset state parameter C a+1 of the a+1th change is taken out from the preset cache queue q, and the latest value of the condition is obtained if the condition needs to be put into the queue with a delay. a+1 , all preset state parameters C a change a times, and the current use scene S b is updated to the target use scene S b+l , l>0 or S0.

[0184] Step 504, perform an operation according to the target use scene, and complete other operations in the second thread.

[0185] Here, the operation O d of displaying a prompt message or exiting display is performed according to the target use scene, and for some operations that need to be completed in the second thread, the progress of the operation can also be put into the preset cache queue as a condition.

[0186] Step 505, listen to the new state parameter in real time, and update the target use scene.

[0187] Figure 6 is a control device block diagram according to an example embodiment. As shown in Figure 6 , the device mainly includes:

[0188] The display module 601 is configured to display a prompt message on the display interface of the electronic device.

[0189] The determination module 602 is configured to determine the target use scene when the electronic device displays the prompt message.

[0190] The control module 603 is configured to control the prompt message to exit display in response to the target use scene meeting a preset disappearance condition.

[0191] In some embodiments, the device 600 further includes:

[0192] From the preset cache queue, at least two preset state parameters are acquired; wherein, the preset state parameters include: state parameters of each functional module in the electronic device and state parameters of each application in the electronic device; the preset cache queue is a first-in last-out queue, and the types of each preset state parameter are different;

[0193] Based on the at least two preset state parameters, a target use scenario is determined.

[0194] In some embodiments, the apparatus 600 further includes:

[0195] In a case where any of the at least two preset state parameters meets a disappearance condition corresponding to the any of the at least two preset state parameters, it is determined that the target use scenario meets a preset disappearance condition;

[0196] In a case where each of the at least two preset state parameters does not meet a disappearance condition corresponding to the each of the at least two preset state parameters, it is determined that the target use scenario does not meet the preset disappearance condition, and the display of the prompt message on the display interface is maintained;

[0197] Wherein, each preset state parameter has a corresponding condition, and the corresponding condition of the preset state parameter is determined based on the type of the preset state parameter.

[0198] In some embodiments, the apparatus 600 further includes:

[0199] In a case where a new state parameter is acquired, it is determined whether the new state parameter meets a disappearance condition corresponding to the new state parameter;

[0200] In a case where the new state parameter meets the disappearance condition corresponding to the new state parameter, the new state parameter is updated to the preset cache queue.

[0201] In some embodiments, the apparatus 600 further includes:

[0202] In a case where the new state parameter meets the disappearance condition corresponding to the new state parameter, a delay time corresponding to the new state parameter is determined;

[0203] In a case where the delay time is reached, the new state parameter is updated to the preset cache queue.

[0204] In some embodiments, the apparatus 600 further includes:

[0205] Based on at least two current state parameters of the electronic device, a current use scenario of the electronic device is determined;

[0206] Based on the at least two preset state parameters, the current use scenario is updated to obtain a target use scenario.

[0207] In some embodiments, the apparatus 600 further includes:

[0208] determining target state parameters corresponding to each type of preset state parameter based on time of the at least two preset state parameters stored to the preset cache queue, to obtain at least two target state parameters;

[0209] updating the current use scenario based on the at least two target state parameters, to obtain a target use scenario.

[0210] In some embodiments, the apparatus 600 further includes:

[0211] acquiring the at least two preset state parameters from the preset cache queue by using the first thread;

[0212] The apparatus 600 further includes:

[0213] updating the state parameter generated based on the indication operation to the preset cache queue in the case that the second thread completes the indication operation.

[0214] As to the apparatus in the above-described embodiments, specific manners in which various modules perform operations have been described in details in embodiments of the method, and will not be described in details here.

[0215] Figure 7 is a structural block diagram of an apparatus 700 according to an exemplary embodiment. The apparatus 700 can be a mobile phone, computer, digital broadcast terminal, messaging equipment, game console, tablet device, medical equipment, fitness equipment, personal digital assistant, etc.

[0216] Referring to Figure 7 , the apparatus 700 can include one or more of the following components: a processing component 702, a memory 704, a power supply component 706, a multimedia component 708, an audio component 710, an input / output (I / O) interface 712, a sensor component 714, and a communication component 716.

[0217] The processing component 702 usually controls overall operations of the apparatus 700, such as operations associated with display, telephone call, data communication, camera operation and recording operation, at least one of which. The processing component 702 can include one or more processors 720 to execute instructions to complete all or part of the steps of the above-described method. In addition, the processing component 702 can include one or more modules to facilitate interaction between the processing component 702 and other components. For example, the processing component 702 can include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.

[0218] The memory 704 is configured to store various types of data to support operations on the device 700. Examples of such data include at least one of instructions, contact data, phonebook data, messages, pictures, and videos for any application or method operating on the device 700. The memory 704 can be implemented by any type of volatile or nonvolatile storage devices or a combination thereof such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0219] The power component 706 provides power to the various components of the device 700. The power component 706 can include at least one of a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 700.

[0220] The multimedia component 708 includes a screen providing an output interface between the device 700 and the user. In some embodiments, the screen includes a liquid crystal display (LCD) and a touch panel (TP). If the screen includes the touch panel, the screen can be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense a touch, a slide, and a gesture on the touch panel. The touch sensor can not only sense a boundary of a touching or sliding action, but also detect duration and pressure related to the touching or sliding action. In some embodiments, the multimedia component 708 includes a front camera and / or a back camera. When the device 700 is in an operation mode, such as a photographing mode or a video mode, the front camera and / or the back camera can receive external multimedia data. Each of the front and back cameras can be a fixed optical lens system or have a focal length and optical zoom capability.

[0221] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC) that is configured to receive an external audio signal when the device 700 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 704 or transmitted via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting an audio signal.

[0222] The I / O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which can be a keyboard, a click wheel, and buttons, etc. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.

[0223] The sensor component 714 includes one or more sensors for providing status assessments of various aspects of the device 700. For example, the sensor component 714 can detect an open / closed position of the device 700, relative positioning of components, such as a display and a keypad of the device 700, a change in position of the device 700 or a component of the device 700, presence or absence of user contact with the device 700, changes in orientation or acceleration / deceleration of the device 700, and temperature changes of the device 700, among other possibilities. The sensor component 714 can include a proximity sensor configured to detect presence of a nearby object without any physical touch. The sensor component 714 can also include a light sensor, such as a complementary metal oxide semiconductor (CMOS) or charge coupled device (CCD) image sensor, utilized in an imaging application. In some embodiments, the sensor component 714 can further include at least one of an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, and a temperature sensor, among other possibilities.

[0224] The communication component 716 is configured to facilitate wired or wireless communication between the device 700 and other devices. The device 700 can access a wireless network based on a communication standard, such as Wi-Fi, 4G, 5G, or a combination thereof. In an example embodiment, the communication component 716 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an example embodiment, the communication component 716 also includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0225] In an example embodiment, the device 700 can be implemented with one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic elements.

[0226] In an example embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 704 including executable instructions or a computer program, is also provided, which can be executed by the processor 720 of the device 700 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0227] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform any one of the control methods according to the embodiments of the present disclosure. For example, the method includes:

[0228] Display a prompt message on a display interface of an electronic device;

[0229] Determine a target use scenario when the electronic device displays the prompt message;

[0230] In response to the target use scenario satisfying a preset disappearance condition, control the prompt message to exit display.

[0231] The embodiment of the disclosure provides a computer program product, which comprises a computer program or executable instructions stored in a computer readable storage medium. The processor of the computer device reads the computer program or executable instructions from the computer readable storage medium, and the processor executes the computer program or executable instructions, so that the computer device executes any one of the control methods provided in the embodiment of the disclosure.

[0232] Figure 8 is a block diagram of an apparatus 800 for controlling according to an exemplary embodiment. For example, the apparatus 800 can be provided as a server. Referring to Figure 8 , the apparatus 800 includes a processing component 822, which further includes one or more processors, and a memory resource represented by a memory 832, for storing instructions executable by the processing component 822, such as an application program. The application program stored in the memory 832 can include one or more than one module each corresponding to a set of instructions. In addition, the processing component 822 is configured to execute the instructions to perform any one of the control methods described above. For example, the method includes:

[0233] Display a prompt message on a display interface of an electronic device;

[0234] Determine a target use scenario when the electronic device displays the prompt message;

[0235] In response to the target use scenario satisfying a preset disappearance condition, control the prompt message to exit display.

[0236] The apparatus 800 can also include a power component 826 configured to perform power management of the apparatus 800, a wired or wireless network interface 850 configured to connect the apparatus 800 to a network, and an input / output (I / O) interface 858. The apparatus 800 can operate an operating system stored in the memory 832, such as Windows ServerTM, Mac OS XTM, UnixTMLinuxTM, FreeBSDTM or the like.

[0237] Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the features disclosed herein. It is intended that the disclosure be construed as including any paterns of this disclosure that can be derived from the description and illustrations presented herein without departing from the scope and spirit of the disclosure. The specification and examples are exemplary only, with the true scope and spirit of the disclosure being indicated by the claims.

[0238] It is to be understood that the disclosure is not limited to the precise construction hereinafter described and as shown in the attached drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the disclosure is limited only by the claims appended hereto.

Claims

1. A control method characterized by, The method comprises: displaying a prompt message on a display interface of an electronic device; determining a target use scenario of the electronic device when the electronic device displays the prompt message; in response to the target use scenario satisfying a preset disappearance condition, controlling the prompt message to exit display.

2. The method of claim 1, wherein, The determination of the target use scenario of the electronic device when the electronic device displays the prompt message comprises: obtaining at least two preset state parameters from a preset cache queue; wherein the preset state parameters comprise state parameters of each functional module in the electronic device and state parameters of each application in the electronic device; the preset cache queue is a first-in, first-out queue, and each preset state parameter is of a different type; determining the target use scenario based on the at least two preset state parameters.

3. The method of claim 2, wherein, The method further comprises: in a case where any one of the at least two preset state parameters satisfies a disappearance condition corresponding to the any one preset state parameter, determining that the target use scenario satisfies the preset disappearance condition; in a case where each of the at least two preset state parameters does not satisfy a disappearance condition corresponding to each preset state parameter, determining that the target use scenario does not satisfy the preset disappearance condition, and maintaining display of the prompt message on the display interface; wherein each preset state parameter has a corresponding condition, and the corresponding condition of the preset state parameter is determined based on the type of the preset state parameter.

4. The method of claim 2, wherein, The method further comprises: in a case where a new state parameter is obtained, determining whether the new state parameter satisfies a disappearance condition corresponding to the new state parameter; in a case where the new state parameter satisfies the disappearance condition corresponding to the new state parameter, updating the new state parameter to the preset cache queue.

5. The method of claim 4, wherein, The updating of the new state parameter to the preset cache queue in the case where the new state parameter satisfies the disappearance condition corresponding to the new state parameter comprises: in a case where the new state parameter satisfies the disappearance condition corresponding to the new state parameter, determining a delay time corresponding to the new state parameter; in a case where the delay time is reached, updating the new state parameter to the preset cache queue.

6. The method of claim 2, wherein, The determination of the target use scenario based on the at least two preset state parameters comprises: determining a current use scenario of the electronic device based on at least two current state parameters of the electronic device; updating the current use scenario based on the at least two preset state parameters to obtain the target use scenario.

7. The method of claim 6, wherein, The updating of the current use scenario based on the at least two preset state parameters to obtain the target use scenario comprises: determining target state parameters corresponding to each type of preset state parameter based on a time at which the at least two preset state parameters are stored in the preset cache queue, to obtain at least two target state parameters; updating the current use scenario based on the at least two target state parameters to obtain the target use scenario.

8. The method of claim 2, wherein, The obtaining of the at least two preset state parameters from the preset cache queue comprises: acquire, by a first thread, at least two preset state parameters from the preset cache queue; The method further includes: In a case where a second thread completes an indication operation, updating a state parameter generated based on the indication operation to the preset cache queue.

9. A control device characterized by comprising: Comprise: a display module, configured to display a prompt message on a display interface of an electronic device; a determination module, configured to determine a target use scenario when the electronic device displays the prompt message; a control module, configured to control the prompt message to exit display in response to the target use scenario satisfying a preset disappearance condition.

10. An electronic device, comprising: Comprise: a processor; a memory for storing computer programs or instructions; wherein the processor executes the computer programs or instructions to implement the steps of the method of any one of claims 1 to 8.

11. A non-transitory computer-readable storage medium storing a computer program or instructions, wherein, When the computer programs or instructions in the storage medium are executed by the processor, the steps of the method of any one of claims 1 to 8 are implemented.

12. A computer program product comprising computer programs or instructions, characterized in that, The computer programs or instructions are executed by the processor to implement the steps of the method of any one of claims 1 to 8.