Notification method and electronic equipment
By detecting the device form and display orientation of the electronic device, calculating the display screen ratio and dynamically adjusting the notification mode, the problem of insufficient notification methods in the prior art is solved, and the effect of adjusting the notification intensity according to the use scenario is achieved.
Patent Information
- Application Number
- CN202510156077.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-12
- Publication Date
- 2025-06-13
AI Technical Summary
There is a lack of a novel notification method in the prior art, which can dynamically adjust the notification mode according to the proportion of the displayable screen of the electronic device to meet the needs of different usage scenarios.
By detecting the device shape and display orientation of the electronic device, calculating its display screen ratio, and determining different notification modes based on this ratio. The notification mode includes the first notification mode, the second notification mode and the third notification mode, respectively, and the notification is made through speakers, motors, information display, etc., and the intensity gradually weakens.
It realizes dynamic adjustment of notification methods according to the proportion of displayable screens of electronic devices, meets users' notification needs in different usage scenarios, and improves user experience.
Smart Images

Figure CN120151435A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of electronic devices, and in particular, to a notification method and an electronic device. Background Art
[0002] In related technologies, for an electronic device to receive notification messages such as messages and calls, the notification messages can be notified by ringing or vibrating. It is also possible to enable the do not disturb mode to achieve no disturbance to the notification messages. There is an urgent need for a novel solution for notifying notification messages. Summary of the Invention
[0003] This application provides a notification method and an electronic device to at least solve the above technical problems existing in the prior art.
[0004] According to a first aspect of the present application, a communication method is provided, including:
[0005] Determining a notification mode based on the display screen ratio of the electronic device, where the display screen ratio is determined by the target device form of the electronic device and the display screen exposed when the electronic device is in the target display orientation;
[0006] Notifying based on the notification mode.
[0007] In an implementable manner, the electronic device includes at least two device forms; the electronic device includes at least two display orientations;
[0008] The method further includes:
[0009] In response to the obtained notification message, determining the target device form of the electronic device and the target display orientation of the electronic device;
[0010] Obtaining the attributes of the display screen exposed when the electronic device is in the target device form and the target display orientation, where the attributes at least include the area of the exposed display screen;
[0011] Based on the attributes of the exposed display screen and the standard display attributes of the electronic device, obtaining the display screen ratio of the electronic device, where the standard display attributes at least include the area of the entire display screen of the electronic device.
[0012] In an implementable manner, the determining the notification mode based on the display screen ratio of the electronic device includes:
[0013] When the display screen ratio meets the first ratio, determining the notification mode as the first notification mode;
[0014] When the display screen ratio meets the second ratio, determining the notification mode as the second notification mode;
[0015] When the display screen ratio meets the third ratio, determine the notification mode as the third notification mode;
[0016] Among them, the prompting effect in the first notification mode is stronger than that in the second notification mode, and the prompting effect in the second notification mode is stronger than that in the third notification mode;
[0017] In the first notification mode, notify through at least one of the speaker, motor, displaying information on the exposed display screen, and the flashing mode of the signal lamp of the electronic device;
[0018] In the second notification mode, notify by the motor of the electronic device and / or by displaying information on the exposed display screen;
[0019] In the third notification mode, notify by the information display method, and the reminder effect of the information display method in the third notification mode is weaker than the reminder effect of displaying information on the exposed display screen in the first and second notification modes.
[0020] In an implementable manner, in the first notification mode, notifying through the speaker of the electronic device includes:
[0021] Based on the proportion of the visible screen in the first ratio, determine the first output volume of the speaker;
[0022] Obtain the audio data of the environment where the electronic device is located as the ambient audio;
[0023] Based on the first output volume and the ambient audio, determine the target output volume of the speaker;
[0024] Drive the speaker to notify based on the target output volume.
[0025] In an implementable manner, the determining the target output volume of the speaker based on the first output volume and the ambient audio includes:
[0026] In response to the operation of the user of the electronic device, based on the first output volume of the speaker, the input operation, and the ambient audio, determine the target output volume of the speaker, and the operation at least includes the operation on the output volume of the speaker of the electronic device.
[0027] In an implementable manner, the working intensity of the motor in the first notification mode is greater than that in the second notification mode;
[0028] The method further includes:
[0029] If the electronic device is in the first notification mode, the motor operates at a first intensity when the ambient audio is less than a first preset threshold, and operates at a second intensity when the ambient audio is not less than the first preset threshold, where the second intensity is greater than the first intensity;
[0030] If the electronic device is in the second notification mode, the motor operates at a third intensity when the ambient audio is greater than a second preset threshold, and operates at a fourth intensity when the ambient audio is not greater than the second preset threshold, where the third intensity is greater than the fourth intensity.
[0031] In an implementable manner, when the aspect ratio of the display screen satisfies a third ratio, determining that the notification mode is a third notification mode includes:
[0032] When the aspect ratio of the display screen satisfies a first sub-ratio of the third ratio, determining that the notification mode is a first sub-notification mode;
[0033] When the aspect ratio of the display screen satisfies a second sub-ratio of the third ratio, determining that the notification mode is a second sub-notification mode;
[0034] Wherein, the information display method in the second sub-notification mode has a stronger prompting effect on the notification message than the information display method in the first sub-notification mode.
[0035] In an implementable manner, the method further includes:
[0036] When the aspect ratio of the display screen of the electronic device satisfies a first condition, determining that the notification mode is a fourth notification mode;
[0037] When the aspect ratio of the display screen of the electronic device satisfies a second condition, determining that the notification mode is a fifth notification mode;
[0038] When the aspect ratio of the display screen of the electronic device satisfies a third condition, determining that the notification mode is a sixth notification mode;
[0039] Wherein, the prompting effect of the information display method in the fourth notification mode is stronger than that of the information display method in the fifth notification mode, and the prompting effect of the information display method in the fifth notification mode is stronger than that of the information display method in the sixth notification mode.
[0040] According to a second aspect of the present application, there is provided an electronic device, including:
[0041] A first determination unit, configured to determine a notification mode based on the aspect ratio of the display screen of the electronic device, where the aspect ratio of the display screen is determined by the target device form of the electronic device and the display screen exposed when the electronic device is in the target display orientation;
[0042] A first notification unit for performing notifications based on a notification mode.
[0043] In an implementable embodiment, the device further includes:
[0044] A second determination unit for obtaining the display screen ratio of the electronic device;
[0045] The second determination unit is further configured to:
[0046] If the electronic device has at least two bodies connected by a connection mechanism, obtain the attributes of the exposed display screen based on the connection form between the bodies and the display orientation in the connection form, and obtain the display screen ratio of the electronic device based on the attributes of the exposed display screen and the standard display attributes of the electronic device; or obtain the display screen ratio of the electronic device based on the angle between the bodies in the connection form between the bodies;
[0047] If the electronic device has a display screen that can contract or extend along the device body, obtain the attributes of the exposed display screen based on the contraction or extension state of the display screen along the body and the display orientation in the form, and obtain the display screen ratio of the electronic device based on the attributes of the exposed display screen and the standard display attributes of the electronic device.
[0048] According to a third aspect of the present application, there is provided an electronic device, including:
[0049] At least one processor; and
[0050] A memory communicatively connected to the at least one processor; wherein,
[0051] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method described in the present application.
[0052] According to a fourth aspect of the present application, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method described in the present application.
[0053] In the technical solution of the present application, it is a solution for determining which notification mode to use to notify a notification message based on the display screen ratio of an electronic device. It provides a new technical support for implementing the notification of the notification message, and is a novel solution for notifying the notification message.
[0054] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] By referring to the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present application will become readily understood. In the drawings, several embodiments of the present application are shown in an exemplary rather than restrictive manner, wherein:
[0056] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0057] Figure 1 FIG. shows the implementation process schematic of the notification method in the embodiment of the present application Figure 1 ;
[0058] Figure 2 FIG. shows the implementation process schematic of the notification method in the embodiment of the present application Figure 2 ;
[0059] FIGS. 3(a), 3(b), 3(c), and 3(d) show schematic diagrams of several device forms and several display orientations of the folding screen mobile phone in the embodiment of the present application;
[0060] FIGS. 4(a), 4(b), 4(c), and 4(d) show schematic diagrams of several device forms and several display orientations of the rollable screen mobile phone in the embodiment of the present application;
[0061] Figure 5 FIG. shows the third schematic diagram of the implementation process of the notification method in the embodiment of the present application;
[0062] Figure 6 FIG. shows the schematic composition structure of the electronic device in the embodiment of the present application Figure 1 ;
[0063] Figure 7 FIG. shows the schematic composition structure of the electronic device in the embodiment of the present application Figure 2 . DETAILED DESCRIPTION OF THE EMBODIMENTS
[0064] In order to make the objects, features, and advantages of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present application.
[0065] To make the objectives, technical solutions, and advantages of this application clearer, the following will further describe this application in detail with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
[0066] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments. However, it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with each other without conflict.
[0067] In the following description, the terms "first / second" are only used to distinguish similar objects and do not represent a specific order for the objects. It can be understood that "first / second" can be interchanged in a specific order or sequence when allowed, so that the embodiments of this application described here can be implemented in an order other than that illustrated or described here.
[0068] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0069] It should be understood that in various embodiments of this application, the magnitude of the serial numbers of the various implementation processes does not mean the sequence of execution. The execution sequence of each process should be determined by its function and internal logic and should not constitute any limitation on the implementation process of the embodiments of this application.
[0070] The electronic devices involved in this application can be mobile phones, computers, wearable devices, etc. Among them, the mobile phone can be a folding-screen mobile phone or a rollable-screen mobile phone. The computer can be a laptop computer or a tablet computer. The wearable device can be a smart watch. Preferably, the electronic device involved in this application is a folding-screen mobile phone or a rollable-screen mobile phone.
[0071] In the technical solution of this application, for the obtained notification message, based on the device form of the electronic device when the notification message is obtained, the display orientation of the electronic device, and the display screen exposed by the electronic device when the electronic device is in this display orientation, the display screen ratio of the electronic device can be obtained. Based on the display screen ratio, the notification mode is determined, and the notification is carried out based on the notification mode. It can be considered that the technical solution of this application is a solution for determining which notification mode to use to notify the notification message based on the display screen ratio of the electronic device. It provides a new technical support for realizing the notification of the notification message and is a novel solution for notifying the notification message.
[0072] The following explains the technical solution of this application.
[0073] Figure 1 Shows the implementation process schematic of the notification method in the embodiments of the present application Figure 1 . As Figure 1 shown, the method includes:
[0074] S101: Determine the notification mode based on the display screen ratio of the electronic device, where the display screen ratio is determined by the target device form of the electronic device and the display screen exposed when the electronic device is in the target display orientation.
[0075] In the present application, the electronic device can be a device whose device form can change or be altered. For example, a folding-screen mobile phone can be folded or unfolded (opened), that is, the electronic device includes at least two bodies, and at least two bodies are movably connected by a connecting mechanism. The folded form is the form presented when at least two bodies of the electronic device cover at least part of each other through the connecting mechanism. For this type of mobile phone, the device form refers to the form when the mobile phone is folded or unfolded. If the electronic device is a roll-screen mobile phone, its screen can contract or extend relative to the body, and the display device of the electronic device includes a deformable area, which is the display area in the display screen that can contract or extend along the device body in the electronic device. For this type of mobile phone, the device form refers to the form when the roll screen is in a contracted or extended (not contracted) state. That is, in the present application, the electronic device includes two or more device forms. The target device form of the electronic device can be the form in which the electronic device is when it receives a notification message. Exemplarily, if a folding-screen mobile phone is in the folded form when it receives a notification message, the target device form of the electronic device is the folded form. If a roll-screen mobile phone is in the screen-contracted form when it receives a notification message, the target device form of the electronic device is the contracted form.
[0076] For ease of description, in this application, for a folding screen mobile phone and a rollable screen mobile phone, the display orientations of the electronic device are defined to include the display orientation with the front of the electronic device facing upward and the display orientation with the back or reverse side of the electronic device facing upward. Among them, the front of the electronic device refers to the surface that is exposed within the user's visual range in the normal usage state. For example, a folding screen mobile phone has a flexible screen covering the first body and the second body (connected by a rotating shaft), and a secondary screen arranged on the first body or the second body on the back side of the flexible screen. Then, the front of the electronic device can refer to the surface where the flexible screen is located, and the surface where the secondary screen is located can be the back of the electronic device. The normal usage state specifically means that from the perspective of the user, when the electronic device is facing upward, the user can pick up the mobile phone and use most of the applications in the mobile phone. When the electronic device is facing downward, the user may only be able to use a small part of the applications. If all functions are to be used, the mobile phone needs to be flipped before use. Or, when the electronic device has at least two screens, the surface where the screen with the largest proportion among all the screens of the electronic device is located is the above-mentioned front, and the surface opposite to it is the above-mentioned back. Or, when the screen of the electronic device can be extended, the surface where the relatively fixed screen part is located is the front, and the surface opposite to it in the electronic device is the back. Facing upward can be relative to the bearing surface where the electronic device is located. For example, when placed on a table, the direction with the front facing upward relative to the table.
[0077] In this application, the displayable screen ratio of the electronic device refers to the displayable screen ratio of the electronic device when a notification message is received. This ratio can be determined based on the device form of the electronic device and the display screen exposed according to the display orientation of the electronic device when the electronic device receives the notification message.
[0078] For a folding screen mobile phone, it may include one or more physical screens. For a rollable screen mobile phone, it is usually one physical screen. The total display screen of the electronic device refers to all the physical screens of the electronic device. The exposed display screen can be a part or all of all the physical screens of the electronic device.
[0079] Since in different device forms and different display orientations, the display screens exposed by the electronic device are different parts of all the physical screens, different displayable screen ratios can be obtained by using different parts of all the physical screens. The aforementioned physical screen at least includes a flexible screen and a non-flexible screen, which is not limited in this application.
[0080] S102: Send a notification based on the notification mode.
[0081] In this application, for each of the two types of mobile phones, namely foldable screen mobile phones or rollable screen mobile phones, multiple notification modes for prompting notification messages are set. In different notification modes, the notification of notification messages is implemented in different ways or forms.
[0082] In S101, when filtering out a notification mode that adapts to or matches the parameter from multiple notification modes based on the ratio of the displayable screen of the electronic device obtained when the electronic device receives a notification message, in S102, the filtered notification mode is used to notify the notification message.
[0083] It can be seen from S101 to S102 that based on the device form of the electronic device, the display orientation of the electronic device, and the display screen exposed when the electronic device is in this orientation when obtaining the notification message, the ratio of the displayable screen of the electronic device can be obtained. Based on the ratio of the displayable screen, the notification mode is determined, and the notification is performed based on the notification mode. It can be considered that the technical solution of this application is a solution for determining which notification mode to use to notify the notification message based on the ratio of the displayable screen of the electronic device. It provides a new technical support for implementing the notification of notification messages and is a novel solution for notifying notification messages.
[0084] Figure 2 Shows the implementation process schematic of the notification method in the embodiment of this application Figure 2 As Figure 2 shown, the method further includes:
[0085] S201: In response to the obtained notification message, determine the target device form of the electronic device and the target display orientation of the electronic device.
[0086] In this step, when the electronic device receives notification messages such as application messages, short messages, incoming calls, etc., the sensor is used to detect the current device form of the electronic device. The gravity accelerometer, gyroscope, etc. are used to detect the current display orientation of the electronic device. In implementation, there is no strict order for detecting the device form and the display orientation. The device form can be detected first, and then the display orientation can be detected in the case of the detected device form. Or, the display orientation can be detected first, and then the device form can be detected in the case of the detected display orientation. Or, both can be detected simultaneously. No specific limitation is made on this.
[0087] In this application, Figures 3(a) to 3(d) 、 Figures 4(a) to 4(d) The gray area in is the display screen of the electronic device.
[0088] In this application, the electronic device can be a foldable screen mobile phone. Combining Figures 3(a) to 3(d)As shown. When the folding screen mobile phone is face up and in the folded state, the front of the mobile phone includes a display screen (sub-screen), as shown by the gray area in Fig. 3(a). In addition, when the folding screen mobile phone is regarded as a device composed of connecting two bodies through a connecting mechanism (such as a rotating shaft), when the included angle between the two bodies is 0, that is, when the two bodies are buckled together and stacked, the buckling surface of the two bodies is the main display screen. That is, the folding screen mobile phone in the present application includes two physical screens, one is the sub-display screen shown by the gray area in Fig. 3(a), and the other is the main display screen (main screen) presented after the folding screen mobile phone is opened.
[0089] For such a folding screen mobile phone, it can be detected by sensors that the device forms in Fig. 3(a) and Fig. 3(b) are in the folded state, and the device forms in Fig. 3(c) and Fig. 3(d) are in the unfolded state or the state where the folding screen mobile phone is opened. It can be detected by an accelerometer, a gyroscope, etc. that the display orientations in Fig. 3(a) and Fig. 3(c) are face up, and the display orientations in Fig. 3(b) and Fig. 3(d) are face down.
[0090] In the present application, the electronic device can be a scroll screen mobile phone, as shown in Figures 4(a) to 4(d) As shown. A part of the scroll screen is located on the front of the mobile phone and can occupy most of the space on the front of the mobile phone. Another part of the scroll screen is located on the back of the mobile phone. It can be understood that a part and another part of the aforementioned scroll screen can belong to the same physical screen. If necessary, the screen located on the back of the mobile phone can be moved to gradually move from the back of the mobile phone to the front of the mobile phone, so as to gradually expose the screen that was originally hidden on the back of the mobile phone and not in the user's line of sight to the user's line of sight.
[0091] For such a scroll screen mobile phone, it can be detected by sensors that the device forms in Fig. 4(a) and Fig. 4(b) are in the state of display screen contraction or non-extension, and the device forms in Fig. 4(c) and Fig. 4(d) are in the extended state. It can be detected by an accelerometer, a gyroscope, etc. that the display orientations in Fig. 4(b) and Fig. 4(d) are face up, and the display orientations in Fig. 4(a) and Fig. 4(c) are face down.
[0092] It should be noted that in Figures 3(a) to 3(d) and Figures 4(a) to 4(d) , the gray area represents the screen or the display area.
[0093] S202: Obtain the attributes of the display screen exposed when the electronic device is in the target device form and in the target display orientation, and the attributes at least include the area of the exposed display screen.
[0094] Taking the folding screen mobile phone with the device form shown in Fig. 3(a) being the folded state and the display orientation being face up as an example, the exposed display screen is the sub-screen indicated by the gray area in Fig. 3(a).
[0095] Taking the folding screen mobile phone with the device form shown in Figure 4(a) as the contracted form and the display orientation with the back facing up as an example, the exposed display screen is the screen area indicated by the gray area in Figure 4(a), which was originally hidden on the back of the mobile phone.
[0096] It can be understood that from Figures 3(a) to 3(d) , Figures 4(a) to 4(d) as shown, for folding screen mobile phones and rollable screen mobile phones, different device forms and different display orientations result in different areas of the display screens exposed by the electronic device in each device form and each display orientation.
[0097] For example, the area of the display screen exposed under the folding screen mobile phone shown in Figure 3(c) is larger than the areas of the display screens exposed under the folding screen mobile phones shown in Figure 3(a), Figure 3(b), and Figure 3(d). The areas of the display screens exposed under the folding screen mobile phones shown in Figure 3(a) and Figure 3(d) are larger than the area of the display screen exposed under the folding screen mobile phone shown in Figure 3(b).
[0098] For example, the area of the display screen exposed under the rollable screen mobile phone shown in Figure 4(d) is larger than the areas of the display screens exposed under the rollable screen mobile phones shown in Figure 4(a), Figure 4(b), and Figure 4(c). The areas of the display screens exposed under the rollable screen mobile phones shown in Figure 4(a) and Figure 4(b) are larger than the area of the display screen exposed under the rollable screen mobile phone shown in Figure 4(c).
[0099] In this application, the area of all the physical screens of the electronic device can be used as the area of all the display screens of the electronic device. In this way, it is easy to know the size of all the display screens of the electronic device. The display screens exposed in different device forms and different display orientations may be part of or all of the all display screens. In practical applications, there is a corresponding relationship at a specified device form and a specified display orientation, which is used to represent the parameter value or parameter range value of the area size of the exposed display screen corresponding to the specified device form and the specified display orientation. In this way, it is easy to know the area value of the display screen exposed by the electronic device in the target device form and the target display orientation.
[0100] S203: Based on the attributes of the exposed display screen and the standard display attributes of the electronic device, obtain the displayable screen ratio of the electronic device, where the standard display attributes at least include the area of all the display screens of the electronic device.
[0101] Generally speaking, the standard display property of an electronic device includes the area of the entire display screen of the electronic device. The displayable screen ratio can be determined based on the ratio of the area of the display screen exposed when the electronic device is in the target display orientation to the area of the entire display screen of the electronic device. For example, the result of dividing the area of the display screen exposed when the electronic device is in the target display orientation by the area of the entire display screen of the electronic device is used as the displayable screen ratio.
[0102] In this application, the displayable screen ratio refers to the proportion of the area of the entire display screen area exposed by the electronic device in a certain device form and display orientation relative to the area of the entire display screen of the electronic device. Among them, the display screen exposed by the electronic device refers to the screen area in the part exposed outward by the electronic device itself in a certain device form and target display orientation (for example, when the electronic device is placed on a table, the part exposed to the air and not in contact with the table). This screen area can be the entire display screen of the electronic device or a partial display area of the entire display screen. In this application, the display screen exposed by the electronic device itself is different from the display area exposed by the electronic device itself due to the occlusion of external objects (such as a piece of paper blocking part of the exposed display area), resulting in the situation where the display area seen by the user is reduced.
[0103] In S201 - S203, considering the influence of the device form and display orientation of the electronic device on the area size of the exposed display screen, when a notification message is obtained, determine the device form and display orientation of the electronic device, and obtain the area of the display screen exposed by the electronic device in this device form and display orientation. Through the area of the display screen exposed in this device form and display orientation and the area of the entire display screen of the electronic device, the displayable screen ratio is obtained.
[0104] In this application, this method of obtaining the displayable screen ratio can be adapted to mobile phones with special screens such as folding screens and rollable screens, with high feasibility and strong implementability. It provides a new technical support for the calculation of the displayable screen ratio of mobile phones with special display screens such as folding screens and rollable screens.
[0105] In some embodiments, take a folding-screen mobile phone as an example of the electronic device, where the folding-screen mobile phone includes a main screen and a secondary screen. The attributes of the exposed display screen may include the type of the display screen and the area of the display screen. The standard display attributes may include the type of the exposed display screen and the area of all the display screens of the electronic device. Exemplarily, when the electronic device receives a notification message, through the detection of the device form and the detection of the display orientation, it is obtained that the exposed display screen is the secondary screen (as shown in Fig. 3(a) or Fig. 3(d)). If the type of the exposed display screen is the secondary screen, then divide the area of all the display screens of the folding-screen mobile phone (the sum of the areas of the secondary screen and the main screen) by the area of the secondary screen, so as to obtain the displayable screen ratio. When the electronic device receives a notification message, through the detection of the device form and the detection of the display orientation, it is obtained that the exposed display screen is the main screen or a part of the main screen (as shown in Fig. 3(c)). If the type of the exposed display screen is the main screen, then divide the area of all the display screens of the folding-screen by the area of the exposed display screen, so as to obtain the displayable screen ratio.
[0106] Further, since the usage scenarios of the main screen and the secondary screen are different, when the type of the exposed display screen is the secondary screen, after obtaining the division result by dividing the area of all the display screens of the folding-screen mobile phone by the area of the secondary screen, the division result can be weighted, so that when the exposed areas of the secondary screen and the main screen are the same, the displayable ratios are different, and then different notification modes can be determined for the cases of the main screen exposure and the secondary screen exposure. The above weighting can be positive weighting, that is, when the exposed areas of the secondary screen and the main screen are the same, the displayable ratio corresponding to the case where the exposed screen is the secondary screen is greater than the displayable ratio corresponding to the case where the exposed screen is the main screen, or it can be negative weighting, so that when the exposed areas of the secondary screen and the main screen are the same, the displayable ratio corresponding to the case where the exposed screen is the secondary screen is less than the displayable ratio corresponding to the case where the exposed screen is the main screen. Similarly, weighting the division result when the exposed screen is the main screen can also achieve the above technical effects, which will not be elaborated here.
[0107] In some embodiments, the electronic device may include at least three notification modes: the first notification mode, the second notification mode, and the third notification mode. In this case, the foregoing solution for determining the notification mode based on the displayable screen ratio of the electronic device may be:
[0108] When the displayable screen ratio meets the first ratio, determine the notification mode as the first notification mode; when the displayable screen ratio meets the second ratio, determine the notification mode as the second notification mode; when the displayable screen ratio meets the third ratio, determine the notification mode as the third notification mode.
[0109] It can be understood that the more a user wants to receive a notification message, the more likely they are to place the electronic device in a way that exposes a larger display area or display screen. For example, when the user is at work, they may place the mobile phone in a way that can make the display screen large, such as the placement methods shown in Figures 3(c) and 4(d), to ensure that they do not miss any notification messages. The less a user wants to receive a notification message, the more likely they are to place the electronic device in a way that exposes a smaller display area. For example, when the user is in a meeting, they may place the mobile phone in a way that can make the display screen small, such as the placement methods shown in Figures 3(b) and 4(c), to avoid being notified. That is, when the user places the mobile phone on the desktop in different device forms and display orientations, the larger the area of the display screen exposed by the electronic device during placement, the more the user hopes to be notified. On the contrary, the smaller the area of the display screen exposed by the electronic device during placement, the less the user hopes to be notified.
[0110] Based on this, there will be a certain level of classification for the notification mode. In this application, if a certain notification intensity level is used to notify notification messages, the notification methods of the electronic device for notification messages are divided into a strong notification method, a medium notification method, and a weak notification method. Then, the first notification mode can be regarded as a strong notification method, the second notification mode is regarded as a medium notification method, and the third notification mode can be regarded as a weak notification method.
[0111] The strong notification method is the notification method with the strongest willingness for the user to be notified among all notification methods. With a strong willingness to be notified, the user will place the mobile phone in a device form and display orientation that exposes a large display screen area. For example, the user will place the mobile phone in the way shown in Figures 3(c) and 4(d).
[0112] The medium notification method is the notification method with a moderately strong willingness for the user to be notified. With a moderately strong willingness to be notified, the user will place the mobile phone in a device form and display orientation that exposes a medium display screen area. For example, the user will place the mobile phone in the way shown in Figures 3(a), 3(d), 4(a), and 4(b).
[0113] The weak notification method is the notification method with the weakest willingness for the user to be notified or the user does not want to be notified. With this willingness, the user will place the mobile phone in a device form and display orientation that exposes the smallest display screen area or does not expose the display screen. For example, if the user does not want to be notified, they will place the mobile phone in the way shown in Figures 3(b) and 4(c).
[0114] The first ratio, the second ratio, and the third ratio in this application can be specific numerical values or range values. Preferably, they are range values. Combining the foregoing content, the first notification mode, the second notification mode, and the third notification mode are notification methods with gradually decreasing notification intensities. The first ratio, the second ratio, and the third ratio are empirical values that decrease sequentially in numerical value. For example, according to experience, the first ratio is preset to [60%, 100%], the second ratio is [40%, 60%], and the third ratio is [10%, 40%] or [0%, 40%]. The first ratio, the second ratio, and the third ratio can also take any other reasonable values, and no specific limitations are made.
[0115] The solution for determining the notification mode based on the display screen ratio of the electronic device is implemented as follows: Determine which ratio range among the first ratio, the second ratio, and the third ratio the display screen ratio satisfies, that is, determine which ratio range it is located in. If it is within the numerical range indicated by the first ratio, it is considered to satisfy the first ratio. If it is within the numerical range indicated by the second ratio, it is considered to satisfy the second ratio. If it is within the numerical range indicated by the third ratio, it is considered to satisfy the third ratio. Based on the ratio satisfied by the display screen ratio, the notification mode is determined from the three notification modes. Generally speaking, the larger the display screen ratio, the stronger the user's willingness to be notified, and the stronger the prompting effect of the determined notification mode. Conversely, the smaller the display screen ratio, the stronger the user's willingness not to be notified, and the weaker the prompting effect of the determined notification mode. Based on this, it can be considered that in this application, the prompting effect of the electronic device on the user in different notification modes can be: the prompting effect in the first notification mode is stronger than that in the second notification mode, and the prompting effect in the second notification mode is stronger than that in the third notification mode. Differentiated notifications are achieved in the three notification modes, which can meet the actual needs of users in different usage scenarios.
[0116] In this application, for example, taking the output of ringtones with different volumes by the speaker and the output of different vibration sounds by the motor as an example, notifications in three modes can be made. For example, in the first notification mode, the notification message can be notified with the ringtone at the maximum volume and the vibration sound at the maximum vibration intensity. In the second notification mode, the notification message can be notified with the ringtone at the medium volume and the vibration sound at the medium vibration intensity. In the third notification mode, the notification message can be notified with the ringtone at the second weakest volume or no ringtone, and the vibration sound at the second weakest vibration intensity or no vibration to achieve differentiated notifications in the three notification modes.
[0117] In this application, in the first notification mode, notifications can be made through at least one of the speaker, motor, displaying information on the exposed display screen, and the flashing of signal lights of the electronic device. In the second notification mode, notifications are made through the vibration mode of the electronic device and / or by displaying information on the exposed display screen. In the third notification mode, notifications are made through the information display mode, and the reminder effect of the information display mode in the third notification mode is weaker than that of displaying information on the exposed display screen in the first and second notification modes.
[0118] Among the three notification modes, since the first notification mode is the mode in which users have the strongest desire to be notified among all notification modes, in the first notification mode, the notification methods adopted (including the four methods of speaker, motor, displaying information on the exposed display screen, and signal light flashing) are the most compared with other notification modes, and different methods can be combined for use. Compared with the first notification mode, the second notification mode is the mode in which users have a moderately strong desire to be notified. Therefore, it can have fewer notification methods compared with the first mode, such as the motor (driving the motor to generate a vibration sound) and the method of displaying information on the exposed display screen. Compared with the first and second notification modes, the notification method in the third notification mode is the least, and it can only have one notification method: the method of displaying information on the exposed display screen (referred to as the information display mode for short).
[0119] It can be understood that if both the first and second notification modes use the vibration mode to notify the notification message, the vibration sound intensity in the first notification mode is stronger than that in the second notification mode to highlight the different degrees of the user's willingness to be notified in different notification modes. If both the first and second notification modes use the method of displaying information on the exposed display screen to notify the notification message, the display position and / or display content of the information on the exposed display screen in the first notification mode must be more prominent than the display position and / or display content of the information on the exposed display screen in the second notification mode.
[0120] Exemplarily, in the first notification mode, the notification message can be displayed in a font size that can occupy the entire display screen and / or the message content can be displayed in a form with more words. In the second notification mode, the notification message can be displayed in a font size that occupies half of the entire display screen and / or the message content can be displayed in a form with fewer words. To highlight the different degrees of the user's willingness to be notified in the two notification modes.
[0121] It can be understood that the third notification mode notifies the notification message in an information display manner. Compared with the second notification mode, the display position and / or display content of the information in the exposed display screen in the third notification mode have a weaker reminder effect on the user than the reminder effect on the user in the second notification mode. For example, in the third notification mode, the notification message can be displayed in a font size that occupies one-tenth of the entire display screen, and / or the message content can be displayed in the form of fewer words.
[0122] In this application, corresponding to the actual wishes of the user in different notification modes, the corresponding notification methods are used for notification in different notification modes to meet the wishes of the user in different notification modes. Any reasonable notification method is covered within the technical scope of this application.
[0123] It is understood that a ringing sound can be produced by driving a speaker, and a vibrating sound can be produced by driving a motor.
[0124] In the present application, the aforementioned solution of notifying through the speaker of the electronic device in the first notification mode can be implemented in the following two ways.
[0125] Method 1: Determine a first output volume of a speaker based on the proportion of the visible screen in a first ratio; obtain audio data of an environment in which the electronic device is located as ambient audio; determine a target output volume of the speaker based on the first output volume and the ambient audio; and drive the speaker to make a notification based on the target output volume.
[0126] In the first notification mode, the visible screen may be an exposed display screen. There may be a corresponding relationship between the proportion of the visible screen and the output volume of the speaker. For example, when the proportion of the visible screen is [80%, 100%], the output volume of the speaker is the maximum volume; when the proportion of the visible screen is [60%, 80%], the output volume of the speaker is 80% of the maximum volume. Generally, the larger the proportion of the visible screen, the larger the output volume of the speaker. Based on the proportion of the visible screen to the entire display screen in the first ratio and the aforementioned corresponding relationship, the (first) output volume of the speaker is determined. The ambient sound of the environment in which the electronic device is located is collected by an audio acquisition device (MIC). The volume of the ambient sound and the (first) output volume are weighted (the weight of the output volume may be greater than the weight of the volume of the ambient sound) to obtain the target output volume of the speaker. Alternatively, the volume of the ambient sound and the (first) output volume are input into an audio model to obtain the target output volume of the speaker output by the audio model. The speaker is driven to notify at the target output volume, so as to notify the notification message. From the user's side, the user hears a ringing sound with a volume of the target output volume and receives the notification.
[0127] In practical applications, in the first notification mode, the larger the proportion of the visible screen, the louder the ringing sound generated by the driving speaker. The louder the external ambient sound, the louder the ringing sound generated by the driving speaker, so as to match the user's willingness that the electronic device can remind effectively in the first notification mode.
[0128] In Method 1, in the first notification mode, the influence of factors such as the proportion of the visible screen and ambient audio on the volume of the finally generated ringing sound is considered. By synthesizing these factors, the finally required volume of the ringing sound is obtained. It can ensure that the reminder of the ringing sound can accurately meet the actual needs of the user to be significantly reminded in the first notification mode.
[0129] Method 2: Determine the first output volume of the speaker based on the proportion of the visible screen in the first ratio; obtain the audio data of the environment where the electronic device is located as the ambient audio; in response to the operation of the user using the electronic device, based on the first output volume of the speaker, the input operation, and the ambient audio, determine the target output volume of the speaker, and the input operation at least includes an operation on the output volume of the speaker of the electronic device.
[0130] Compared with Method 1, in Method 2, in addition to considering the influence of factors such as the proportion of the visible screen and ambient audio on the volume of the finally generated ringing sound, the influence of the factor of the volume size desired by the user himself on the volume of the finally generated ringing sound also needs to be considered. When the user has a need for what the desired volume is, he will adjust the volume size through an input operation. For example, through the user's input operation, the original maximum volume is adjusted to 80% of the maximum volume. Detect the user's input operation to determine the volume size adjusted by the user through the input operation. Perform a weighted calculation on the (first) output volume determined based on the proportion of the visible screen, the volume obtained through the user's input operation, and the volume of the ambient sound. Or, input the (first) output volume determined based on the proportion of the visible screen, the volume obtained through the user's input operation, and the volume of the ambient sound into an audio model to obtain the target output volume of the speaker output by the audio model. Drive the speaker to notify with the target output volume, so as to notify the notification message to meet the volume required by the user in the first notification mode. Among them, the audio model can be a machine learning model used to implement volume calculation.
[0131] In Method 2, in the first notification mode, the influence of factors such as the proportion of the visible screen, ambient audio, and the user's own demand for volume on the volume of the finally generated ringing sound is considered. By synthesizing these factors, the finally required volume of the ringing sound is obtained. It can ensure that the reminder of the ringing sound can accurately meet the actual needs of the user to be significantly reminded in the first notification mode.
[0132] In this application, the user's willingness to be notified in the second notification mode is not as strong as that in the first notification mode. Based on this, the working intensity of the motor in this application can be greater in the first notification mode than in the second notification mode. Generally speaking, for the motor, in the first notification mode, the vibration sound generated can be made stronger than that in the second notification mode by controlling the working intensity of the motor. That is, through different controls of the working intensity of the motor, differential notifications are realized to match the actual willingness of the user.
[0133] In this application, if the electronic device is in the first notification mode, the motor works at the first intensity when the ambient audio is less than the first preset threshold, and works at the second intensity when the ambient sound is not less than the first preset threshold (greater than or equal to the first preset threshold), where the second intensity is greater than the first intensity.
[0134] Because the user's willingness to be notified in the first notification mode is stronger than that in other notification modes, the vibration sound generated by driving the motor in the first notification mode should be a vibration sound that can strongly remind the user. Thus, it is necessary for the motor to be able to generate a vibration sound that can cover the ambient sound. When the ambient audio is less than the first preset threshold, such as 40 dB (decibels), it means that the external environment is not that noisy, and the motor can be driven to work at a working intensity (the first intensity) that can generate a vibration sound that slightly covers the ambient sound. When the ambient sound is greater than or equal to the first preset threshold, it means that the external environment is noisy, and the motor can work at a working intensity (the second intensity) that can generate a vibration sound that covers this noisy sound. The louder the noisy sound, the greater the working intensity of driving the motor to cover the external noisy sound so that the user can clearly receive the notification message.
[0135] Alternatively, in the first notification mode, the motor can be driven to work at a certain intensity during the gaps in the ambient sound to avoid the influence of the noisy external environment and realize the notification of the notification message during the gaps that appear between the ambient sounds. Among them, the ambient sound is continuously collected through the MIC, and the continuously collected ambient sound is analyzed to determine the gaps between the ambient sounds. During this gap time, the motor is driven to work at a certain intensity. This intensity only needs to be an intensity that can enable the user to clearly receive the notification message, and no specific limitation is made.
[0136] The above notification method is to enable the electronic device to clearly notify the notification message in the first notification mode, match the strong willingness of the user to receive the notification message, and improve the user experience.
[0137] In this application, if the electronic device is in the second notification mode, the motor operates at the third intensity when the ambient audio is greater than the second preset threshold, and operates at the fourth intensity when the ambient audio is not greater than the second preset threshold (less than or equal to the second preset threshold), where the third intensity is greater than the fourth intensity.
[0138] Compared with the first notification mode, the user's willingness to receive notification messages is not as strong in the second notification mode. Therefore, the notification method for notification messages in the second notification mode may not be as strong as that in the first notification mode. When the ambient sound is greater than the second preset threshold, such as 42 dB, it indicates that the external environment is noisy. Then, the motor can be driven to operate at the working intensity (the third intensity) that can generate a vibration sound that exactly or slightly masks the noisy sound, so as to highlight that the reminder sound (vibration sound) generated by the motor is not as obtrusive as the external ambient sound. When the ambient sound is less than or equal to the second preset threshold, it indicates that the external environment is not that noisy. The motor is driven to operate at the working intensity (the fourth intensity) that can generate a vibration sound that exactly or slightly masks the ambient sound, so that in this ambient sound, the vibration sound generated by driving the motor does not seem so obtrusive.
[0139] In the second notification mode, the volume (loudness) of the vibration sound can be slightly larger than the volume (loudness) of the ambient sound, so that the vibration sound can be mixed in the ambient sound for vibration reminder, while meeting the user's need that the reminder sound is not so strong.
[0140] The above notification method is to enable the electronic device in the first notification mode to successfully notify the notification message, match the medium-strong willingness of the user to receive the notification message, and improve the user experience. Among them, the first preset threshold and the second preset threshold may be the same or different in value, depending on the specific situation.
[0141] It can be understood that among the first notification mode, the second notification mode, and the third notification mode, compared with the first and second notification modes, the user's willingness to have the electronic device remind of the notification message is the least strong in the third notification mode. Based on this, compared with the first and second notification modes, the third notification mode can be considered a do-not-disturb mode. Considering that in actual applications, users have two types of needs: partial do-not-disturb (notification messages of some applications can be reminded) and full do-not-disturb (notification messages of all applications cannot be reminded), so the notification scheme for the third notification mode can also be further divided as follows.
[0142] The foregoing solution for determining the notification mode as the third notification mode when the ratio of the displayable screen area meets the third ratio may be:
[0143] When the displayable screen ratio meets the first sub-ratio in the third ratio, determine the notification mode as the first sub-notification mode; when the displayable screen ratio meets the second sub-ratio in the third ratio, determine the notification mode as the second sub-notification mode; wherein, the information display method in the second sub-notification mode has a stronger prompting effect on the notification message than the information display method in the first sub-notification mode.
[0144] In the foregoing solution, it can be considered that the first sub-notification mode is the full Do Not Disturb mode in the Do Not Disturb mode, and the second sub-notification mode is the partial Do Not Disturb mode in the Do Not Disturb mode. Exemplarily, taking the third ratio as [0%, 40%], the second sub-ratio as [20%, 40%], and the first sub-ratio as [0%, 20%] as an example, if the displayable screen ratio obtained by calculation when receiving a notification message meets the third ratio. Further, within the first sub-ratio range of the third ratio, it is considered to meet the first sub-ratio. Regardless of the type of the notification message, such as an incoming call of a phone application or a short message of a short message application, determine the notification mode as the full Do Not Disturb mode, and block or prohibit notifications for all types of notification messages. If the displayable screen ratio obtained by calculation when receiving a notification message meets the third ratio. Further, within the second sub-ratio range of the third ratio, it is considered to meet the second sub-ratio, and determine the notification mode as the partial Do Not Disturb mode. Obtain the type of the notification message. If the type of the notification message belongs to the disturbable type, such as an incoming call belonging to the disturbable type, then notify this notification message of the incoming call. If the type of the notification message belongs to the non-disturbable type, such as a bank application message, then prohibit the notification of this notification message or block this notification message.
[0145] For example, in the device forms and display orientations shown in FIGS. 3(a), 3(d), and 4(a), it can be determined that the third notification mode is the partial Do Not Disturb mode, and notifications for disturbable type notification messages can be made, while notifications for non-disturbable type notification messages are blocked or prohibited. Also, for example, in the device forms and display orientations shown in FIGS. 3(b) and 4(c), it can be determined that the third notification mode is the full Do Not Disturb mode, and notifications for notification messages are blocked or prohibited.
[0146] In the partial Do Not Disturb mode of the third notification mode, if the type of the notification message belongs to the disturbable type, the notification message can be notified in a manner of being displayed within the display screen exposed when the electronic device receives the notification message. Further, the notification message can be displayed within the exposed display screen in an unobtrusive manner, such as in the smallest font or with the least content.
[0147] In the foregoing solution, the third notification mode is further refined into a partial do-not-disturb mode and a full do-not-disturb mode. This refinement solution can accurately determine whether to notify or not notify of notification messages based on the display screen ratio, so as to accurately match the actual usage requirements of the user's expectation of partial notification or full non-notification, and improve the user experience.
[0148] Based on the foregoing first notification mode - third notification mode, this application may further include a silent mode (which can be used as the seventh notification mode in this application). When the display screen ratio meets the seventh ratio, the notification mode is determined to be the silent mode. In some embodiments, the seventh ratio may be a value or a value range less than the third ratio. For example, the fourth ratio is [0%, 5%]. When a notification message is received, if the display screen ratio calculated according to the device form and display orientation of the electronic device is 2% of the total display area of the electronic device and is within the value range indicated by the seventh ratio, then the notification message can be notified in a silent manner. Of course, in actual applications, the silent mode can also be used when the calculated display screen ratio is a medium ratio or a large ratio. Regarding this, this article does not make too many limitations.
[0149] In this application, when using Figure 2 the solution shown to obtain the display screen ratio of the electronic device when receiving a notification message, in combination with Figure 5 as shown, the notification method of this application includes:
[0150] S501: When the display screen ratio of the electronic device meets the first condition, determine the notification mode to be the fourth notification mode.
[0151] In this step, the fourth notification mode may be a full disturbance mode. The full disturbance mode can be considered that any type of notification message can be notified. Meeting the first condition may be that the display screen ratio is within the value range indicated by the fourth ratio. The fourth ratio can be set according to empirical values, such as [70%, 100%]. If the user hopes that any notification message is notified, then when placing the mobile phone, the display screen area exposed by the mobile phone in the device form and display orientation is a large area. In the device form and display orientation shown in FIGS. 3(c) and 4(d), the mobile phone exposes the display screen with the maximum display area or close to the maximum display area, and it is considered that the user has the need to receive notification messages, and the notification mode is determined to be the full disturbance mode. One of the four methods of using a speaker, a motor, displaying information on the exposed display screen, and a signal lamp flashing, or a combination of two or more of these methods can be used to remind of the notification message. To meet the user's need that all types of notification messages are reminded.
[0152] S502: When the display screen ratio of the electronic device meets the second condition, determine that the notification mode is the fifth notification mode.
[0153] In this step, the fifth notification mode can be the partial disturbance mode. The full disturbance mode can be considered that some types of notification messages can be notified, while some types of notification messages are not notified. Meeting the second condition can be that the display screen ratio is within the numerical range shown by the fifth ratio. The fifth ratio can be set according to empirical values, such as [30%, 70%]. If the user hopes that some notification messages are notified, such as calls from family members are notified, and the rest of the notification messages do not need to be notified, then when placing the mobile phone, the area of the display screen exposed in the device form and display orientation can be medium area.
[0154] In the device forms and display orientations shown in FIGS. 3(a), 3(d), 4(a), and 4(b), the mobile phone exposes the display screen with a medium display area, and determines that the notification mode is the partial disturbance mode. Obtain the type of the notification message. If the type of the notification message belongs to the disturbance type, such as the call is from a family member and belongs to the disturbance type, then notify the notification message of the call from the family member. If the type of the notification message belongs to the non-disturbance type, then prohibit the notification of this notification message or block this notification message.
[0155] In the fifth notification mode, for communication messages, the communication source attribute of the notification message can be detected. If the communication source attribute is a disturbance communication source, the electronic device notifies the notification message and automatically replies to it. The communication source attribute can be that the call object is a family member. If it is a call from a family member, the electronic device can notify the user that there is a call from a family member and automatically reply to the family member.
[0156] S503: When the display screen ratio of the electronic device meets the third condition, determine that the notification mode is the sixth notification mode; among them, the prompting effect of the information display method in the fourth notification mode is stronger than that in the fifth notification mode, and the prompting effect of the information display method in the fifth notification mode is stronger than that in the sixth notification mode.
[0157] In this step, the sixth notification mode may be the full Do Not Disturb mode. The full Do Not Disturb mode can be considered as not notifying any type of notification message. Meeting the third condition may be that the proportion of the display screen that can be shown is within the numerical range shown by the sixth proportion. The sixth proportion can be set according to empirical values, such as [0%, 30%]. If the user hopes that all notification messages are not notified, when placing the mobile phone, the area of the display screen exposed in terms of the device form and display orientation of the mobile phone can be a smaller area or there is no display screen. In the device forms and display orientations shown in Fig. 3(b) and Fig. 4(c), it can be determined that the notification mode is the full Do Not Disturb mode, and the notification message is blocked or notification is prohibited.
[0158] In S501 to S503, directly based on the proportion of the display screen that can be shown, which condition among the first condition, the second condition, and the third condition is met, it is determined whether the notification method of the electronic device for the notification message is the full disturbance mode, the partial disturbance mode, or the full Do Not Disturb mode. By the size of the proportion of the display screen that can be shown or the area of the display screen exposed by the electronic device in the specified device form and display orientation to the area of the entire display screen, the determination of the notification mode is realized, which is a simple and feasible notification mode determination scheme. Moreover, using the determined notification mode to notify the notification message can accurately match the actual needs of the user when the electronic device is in the specified device form and display orientation, greatly improving the user experience.
[0159] It can be understood that Figures 3(a) to 3(d) and Figures 4(a) to 4(d) the display screens exposed by the electronic devices shown in are only several of the many situations where the display screen that the electronic device can actually expose. Any other reasonable situations are covered within the scope of the technology of this application. Among them, in a certain or certain device forms and display orientations, the notification mode can be any one of two or more modes among the fourth to sixth notification modes. As shown in Fig. 3(d), for a foldable screen mobile phone, it can be determined that its notification mode is the partial Do Not Disturb mode, or it can also be determined that the notification is the full Do Not Disturb mode, depending on the actual needs. Similarly, there is also a foldable screen mobile phone. The opened state of the foldable screen mobile phone includes the following state: the included angle between the two bodies connected by the connecting mechanism in the foldable screen mobile phone is 90° or close to 90°. In this case, it can be determined that the notification mode is the partial disturbance mode or the full disturbance mode. In this application, such situations are not enumerated one by one, and it can be understood according to the actual situation of the electronic device by the user.
[0160] In the above fourth notification mode, fifth notification mode, and sixth notification mode, namely the full disturbance mode, partial disturbance mode, and full do-not-disturb mode, the user's willingness to be notified gradually decreases. Therefore, for the notification methods adopted in the fourth notification mode, fifth notification mode, and sixth notification mode, reference can be made to the notification methods adopted in the aforementioned first notification mode, second notification mode, and third notification mode for similar understanding, and repeated content will not be elaborated.
[0161] If the fourth notification mode, fifth notification mode, and sixth notification mode are regarded as a grading mode that grades according to the area of the exposed display screen, then the notification scheme of the present application that uses the fourth notification mode, fifth notification mode, and sixth notification mode to notify notification messages can be regarded as a grading notification scheme. This notification scheme can accurately match the actual needs of the electronic device in the specified device form and display orientation towards the user, greatly improving the user experience.
[0162] The foregoing content has been described with the electronic device being a folding screen mobile phone or a scroll screen mobile phone. In addition, the electronic device in this solution can also be a notebook computer. The device form refers to the form of the notebook computer when the screen is on the cover (closed state) or when the computer is opened. The display orientation of the notebook computer can be the orientation with the front side facing up when the screen is on the cover, or the display orientation when there is a certain angle between the screen surface and the keyboard surface when the screen is opened. The scheme of calculating the displayable screen ratio based on the device form and display orientation of the notebook computer when the notification message is received, determining the notification mode based on the displayable screen ratio, and then using the notification mode to notify can be as follows: If the displayable screen ratio is 0, that is, the notebook computer is in the closed state and the user does not expect the notification message to be notified, then the notification message can be prohibited from disturbing in the do-not-disturb mode. If the displayable screen ratio is between 90° and 120°, it means that the user can receive the notification message, and then the notification message can be prompted with a strong reminder volume. If the displayable screen ratio is between 50° and 70°, it means that the user's willingness to receive the notification message is not so strong, and then the notification message can be prompted with a relatively weak reminder volume. The case where the electronic device is a notebook computer can also be any other reasonable case, which will not be elaborated one by one, for reference and understanding.
[0163] The present application provides an electronic device, such as Figure 6 shown, the electronic device includes:
[0164] A first determination unit 601, configured to determine a notification mode based on the displayable screen ratio of the electronic device, where the displayable screen ratio is determined by the exposed display screen when the electronic device is in the target device form and the target display orientation;
[0165] A first notification unit 602, configured to perform notification based on a notification mode.
[0166] In some embodiments, the electronic device further includes:
[0167] A second determination unit, configured to obtain the display screen ratio of the electronic device;
[0168] The second determination unit is further configured to:
[0169] If the electronic device has at least two bodies connected by a connection mechanism, obtain the attributes of the exposed display screen based on the connection form between the bodies and the display orientation in the connection form, and obtain the display screen ratio of the electronic device based on the attributes of the exposed display screen and the standard display attributes of the electronic device; wherein, the electronic device with at least two bodies connected by a connection mechanism may be a folding screen mobile phone. Obtain the folding device form or non-folding device form of the folding screen mobile phone based on the connection form between the two bodies. For example, if the connection form between the two bodies is 0°, it is considered a folding device form. If the connection form between the two bodies is non-0°, it is considered a non-folding device form.
[0170] The electronic device with at least two bodies connected by a connection mechanism may be a notebook computer. There is a certain angle between the two bodies of the notebook computer. The second determination unit is further configured to: obtain the display screen ratio of the electronic device based on the angle between the bodies in the connection form between the bodies.
[0171] The second determination unit is further configured to:
[0172] If the electronic device has a display screen that can contract or extend along the device body, obtain the attributes of the exposed display screen based on the contraction or extension state of the display screen along the body and the display orientation in the form, and obtain the display screen ratio of the electronic device based on the attributes of the exposed display screen and the standard display attributes of the electronic device. Wherein, the electronic device with a display screen that can contract or extend along the device body may be a rollable screen mobile phone.
[0173] In some embodiments, the second determination unit is configured to:
[0174] In response to the obtained notification message, determine the target device form of the electronic device and the target display orientation of the electronic device;
[0175] Obtain the attributes of the exposed display screen of the electronic device in the target device form and the target display orientation, where the attributes at least include the area of the exposed display screen;
[0176] Based on the attributes of the exposed display screen and the standard display attributes of the electronic device, obtain the displayable screen ratio of the electronic device, where the standard display attributes at least include the area of the entire display screen of the electronic device.
[0177] In some embodiments, the first determination unit 601 is configured to:
[0178] When the displayable screen ratio meets the first ratio, determine the notification mode as the first notification mode;
[0179] When the displayable screen ratio meets the second ratio, determine the notification mode as the second notification mode;
[0180] When the displayable screen ratio meets the third ratio, determine the notification mode as the third notification mode;
[0181] Wherein, the prompting effect in the first notification mode is stronger than that in the second notification mode, and the prompting effect in the second notification mode is stronger than that in the third notification mode;
[0182] In the first notification mode, notify through at least one of the speaker, motor, displaying information on the exposed display screen, and the flashing of the signal lamp;
[0183] In the second notification mode, notify through the motor of the electronic device and / or the way of displaying information on the exposed display screen;
[0184] In the third notification mode, notify through the information display method, and the reminder effect of the information display method in the third notification mode is weaker than the reminder effect of displaying information on the exposed display screen in the first and second notification modes.
[0185] In some embodiments, the first notification unit 602 is configured to:
[0186] Based on the proportion of the visible screen in the first ratio, determine the first output volume of the speaker;
[0187] Obtain the audio data of the environment where the electronic device is located as the ambient audio;
[0188] Based on the first output volume and the ambient audio, determine the target output volume of the speaker;
[0189] Drive the speaker to notify based on the target output volume.
[0190] In some embodiments, the first notification unit 602 is configured to:
[0191] In response to an operation of a user of the electronic device, determine a target output volume of the speaker based on a first output volume of the speaker, the input operation, and the ambient audio, where the operation at least includes an operation on the output volume of the speaker of the electronic device.
[0192] In some embodiments, the working intensity of the motor in the first notification mode is greater than that in the second notification mode;
[0193] The first notification unit 602 is configured to:
[0194] If the electronic device is in the first notification mode, the motor works at a first intensity when the ambient audio is less than a first preset threshold, and works at a second intensity when the ambient audio is not less than the first preset threshold, where the second intensity is greater than the first intensity;
[0195] If the electronic device is in the second notification mode, the motor works at a third intensity when the ambient audio is greater than a second preset threshold, and works at a fourth intensity when the ambient audio is not greater than the second preset threshold, where the third intensity is greater than the fourth intensity.
[0196] In some embodiments, the first determination unit 601 is configured to:
[0197] When the displayable screen ratio satisfies a first sub-ratio in a third ratio, determine that the notification mode is a first sub-notification mode;
[0198] When the displayable screen ratio satisfies a second sub-ratio in a third ratio, determine that the notification mode is a second sub-notification mode;
[0199] Wherein, the information display method in the second sub-notification mode has a stronger prompting effect on the notification message than the information display method in the first sub-notification mode.
[0200] In some embodiments, the first determination unit 601 is configured to:
[0201] When the displayable screen ratio of the electronic device satisfies a first condition, determine that the notification mode is a fourth notification mode;
[0202] When the displayable screen ratio of the electronic device satisfies a second condition, determine that the notification mode is a fifth notification mode;
[0203] When the displayable screen ratio of the electronic device satisfies a third condition, determine that the notification mode is a sixth notification mode;
[0204] Among them, the prompting effect of the information display method in the fourth notification mode is stronger than that in the fifth notification mode, and the prompting effect of the information display method in the fifth notification mode is stronger than that in the sixth notification mode.
[0205] It should be noted that for the electronic device according to the embodiment of the present application, since the principle of solving problems by this electronic device is similar to the foregoing notification method, therefore, the implementation process and implementation principle of the electronic device can refer to the description of the implementation process and implementation principle of the foregoing method, and repeated parts will not be elaborated.
[0206] According to the embodiments of the present application, the present application also provides an electronic device and a readable storage medium.
[0207] Among them, the electronic device includes at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the notification method of the present application. The computer instructions are used to cause the computer to execute the notification method of the present application.
[0208] The present application also provides a computer program product, including computer programs / instructions, and when the computer programs / instructions are executed by a processor, the notification method of the present application is implemented.
[0209] Figure 7 FIG. shows a schematic block diagram of an exemplary electronic device 800 that can be used to implement the embodiments of the present application. The electronic device is intended to represent various forms of digital computers, such as, laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or claimed herein.
[0210] As Figure 7 shown, the device 800 includes a computing unit 801, which can execute various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 802 or the computer program loaded from the storage unit 808 into the random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804. The input / output (I / O) interface 805 is also connected to the bus 804.
[0211] Multiple components in device 800 are connected to I / O interface 805, including: input unit 806, such as a keyboard, mouse, etc.; output unit 807, such as various types of displays, speakers, etc.; storage unit 808, such as a disk, optical disc, etc.; and communication unit 809, such as a network card, modem, wireless communication transceiver, etc. Communication unit 809 allows device 800 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0212] Computing unit 801 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of computing unit 801 include but are not limited to a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Computing unit 801 executes the various methods and processes described above, such as the notification method. For example, in some embodiments, the notification method can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program can be loaded and / or installed onto device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by computing unit 801, one or more steps of the notification method described above can be executed. Alternatively, in other embodiments, computing unit 801 can be configured to execute the notification method in any other suitable way (e.g., by means of firmware).
[0213] The various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGA), application-specific integrated circuits (ASIC), application-specific standard products (ASSP), system-on-chip systems (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that receives data and instructions from a storage system, at least one input device, and at least one output device, and transmits the data and instructions to the storage system, the at least one input device, and the at least one output device.
[0214] The program code for implementing the methods of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the program codes are executed by the processor or controller, the functions / operations specified in the flowchart and / or block diagram are implemented. The program codes can be executed entirely on the machine, partially on the machine, executed partially on the machine as an independent software package and partially on a remote machine, or executed entirely on a remote machine or server.
[0215] In the context of the present application, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0216] In order to provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which the user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, speech input, or tactile input).
[0217] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), and the Internet.
[0218] A computer system can include a client and a server. The client and the server are generally far from each other and typically interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, can also be a server of a distributed system, or a server incorporating a blockchain.
[0219] It should be understood that various forms of the processes shown above can be used, steps can be reordered, added, or deleted. For example, the steps recited in this disclosure can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this application can be achieved. There is no limitation herein.
[0220] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" can explicitly or implicitly include at least one of such features. In the description of this application, "a plurality" means two or more unless otherwise specifically defined.
[0221] As described above, the above is only the specific implementation manner of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application, and all should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
Claims
1. A communication method, comprising: Determining a notification mode based on a displayable screen ratio of the electronic device, wherein the displayable screen ratio is determined by a target device form of the electronic device and a display screen exposed when the electronic device is in a target display orientation; Notify based on notification mode.
2. The method according to claim 1, wherein the electronic device comprises at least two device forms; the electronic device comprises at least two display orientations; The method further comprises: In response to the obtained notification message, determining a target device form of the electronic device and a target display orientation of the electronic device; Obtaining properties of a display screen exposed by the electronic device in a target device form and a target display orientation, wherein the properties include at least an area of the exposed display screen; Based on the properties of the exposed display screen and the standard display properties of the electronic device, the displayable screen ratio of the electronic device is obtained, wherein the standard display properties at least include the area of the entire display screen of the electronic device.
3. The method according to claim 1, wherein determining the notification mode based on the displayable screen ratio of the electronic device comprises: When the displayable screen ratio satisfies the first ratio, determining the notification mode to be the first notification mode; When the displayable screen ratio satisfies the second ratio, determining the notification mode to be the second notification mode; When the displayable screen ratio satisfies the third ratio, determining the notification mode to be the third notification mode; Among them, the prompt effect in the first notification mode is stronger than the prompt effect in the second notification mode, and the prompt effect in the second notification mode is stronger than the prompt effect in the third notification mode; In the first notification mode, the notification is performed by at least one of a speaker of the electronic device, a motor, displaying the information on an exposed display screen, and a flashing signal light; In the second notification mode, notification is performed by a motor of the electronic device and / or by displaying information on an exposed display screen; In the third notification mode, notification is performed by information display, and the reminder effect of the information display in the third notification mode is weaker than the reminder effect of displaying the information on the exposed display screen in the first notification mode and the second notification mode.
4. The method according to claim 3, wherein in the first notification mode, the notification is performed through a speaker of the electronic device, comprising: Determining a first output volume of the speaker based on a proportion of the visible screen in the first ratio; Acquire audio data of the environment in which the electronic device is located as ambient audio; determining a target output volume of the speaker based on the first output volume and the ambient audio; The speaker is driven to make a notification based on the target output volume.
5. The method according to claim 4, wherein determining the target output volume of the speaker based on the first output volume and the ambient audio comprises: In response to an operation of a user of the electronic device, a target output volume of the speaker is determined based on a first output volume of the speaker, the input operation, and the ambient audio, wherein the operation at least includes an operation on an output volume of the speaker of the electronic device.
6. The method according to claim 3, wherein the working intensity of the motor in the first notification mode is greater than the working intensity in the second notification mode; The method further comprises: If the electronic device is in the first notification mode, the motor operates at a first intensity when the ambient audio is less than a first preset threshold, and operates at a second intensity when the ambient sound is not less than the first preset threshold, wherein the second intensity is greater than the first intensity; If the electronic device is in the second notification mode, the motor operates at a third intensity when the ambient audio is greater than a second preset threshold, and operates at a fourth intensity when the ambient audio is not greater than the second preset threshold, wherein the third intensity is greater than the fourth intensity.
7. The method according to claim 3, wherein when the displayable screen ratio satisfies the third ratio, determining the notification mode to be the third notification mode comprises: When the displayable screen ratio satisfies the first sub-ratio of the third ratio, determining the notification mode to be the first sub-notification mode; When the displayable screen ratio satisfies the second sub-ratio of the third ratio, determining the notification mode to be the second sub-notification mode; Among them, the information display mode in the second sub-notification mode has a stronger prompting effect on the notification message than the information display mode in the first sub-notification mode.
8. The method according to claim 2, further comprising: When the displayable screen ratio of the electronic device meets the first condition, determining that the notification mode is the fourth notification mode; When the displayable screen ratio of the electronic device meets the second condition, determining that the notification mode is the fifth notification mode; When the displayable screen ratio of the electronic device meets the third condition, determining that the notification mode is the sixth notification mode; Among them, the prompt effect of the information display method in the fourth notification mode is stronger than the prompt effect of the information display method in the fifth notification mode, and the prompt effect of the information display method in the fifth notification mode is stronger than the prompt effect of the information display method in the sixth notification mode.
9. An electronic device, comprising: A first determining unit, configured to determine a notification mode based on a displayable screen ratio of the electronic device, wherein the displayable screen ratio is determined by a target device form of the electronic device and a display screen exposed when the electronic device is in a target display orientation; The first notification unit is used to make a notification based on a notification mode.
10. The device according to claim 9, further comprising: A second determining unit, configured to obtain a displayable screen ratio of the electronic device; The second determining unit is further configured to: If the electronic device has at least two bodies connected by a connection mechanism, then based on the connection form between the bodies and the display orientation in the connection form, the properties of the exposed display screen are obtained, and based on the properties of the exposed display screen and the standard display properties of the electronic device, the displayable screen ratio of the electronic device is obtained; Alternatively, based on the angle between the bodies in the connection state between the bodies, the display screen ratio of the electronic device is obtained; If the electronic device has a display screen that can be retracted or extended along the device body, the properties of the exposed display screen are obtained based on the retracted or extended state of the display screen along the body and the display orientation in the said form, and the displayable screen ratio of the electronic device is obtained based on the properties of the exposed display screen and the standard display properties of the electronic device.
