Interface display method and apparatus
By setting dry eye-friendly and myopia-friendly functions in electronic devices, adjusting the contrast and saturation of the display, and performing image defocusing, the problem of eye fatigue caused by prolonged use of electronic devices is solved, improving user experience and health benefits.
Patent Information
- Application Number
- PCT/CN2024/105354
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2026-01-15
AI Technical Summary
Users are prone to eye strain, especially dry eye and myopia, when using electronic devices for extended periods, which affects their user experience and health.
By setting dry eye-friendly and myopia-friendly functions in electronic devices, adjusting the contrast and saturation of the display, and performing image defocusing when necessary, users' dry eye and myopia symptoms can be alleviated.
It effectively reduces eye strain from prolonged use of electronic devices, improving user experience and health.
Smart Images

Figure CN2024105354_15012026_PF_FP_ABST
Abstract
Description
Interface display method and device Technical Field
[0001] This application relates to the field of terminal technology, and in particular to interface display methods and apparatus. Background Technology
[0002] With the popularization and development of the internet, people's functional needs for electronic devices are becoming increasingly diversified. For example, in order to improve users' ability to use multiple services, electronic devices can support various types of applications, such as video applications, news applications, or e-book applications.
[0003] Typically, when an electronic device runs an application for an extended period of time, and the user stares at the device for a long time, eye strain and other problems may occur, affecting the user's experience.
[0004] Summary of the Invention
[0005] This application provides an interface display method and apparatus, applied in the field of terminal technology, to improve the eye fatigue problem when users use electronic devices for a long time and enhance the user experience.
[0006] In a first aspect, embodiments of this application provide an interface display method, applied to an electronic device including a display screen. The method includes: the electronic device displaying a first interface, the first interface having a first contrast ratio and a first saturation level; the electronic device displaying a first prompt on the first interface, the first prompt including a first button, the first prompt being used to prompt a user to enable a dry eye-friendly function, the dry eye-friendly function being used to alleviate the user's dry eye symptoms; in response to the user's operation of the first button, the electronic device starting to adjust the contrast ratio and / or saturation level of the interface on the display screen; when the duration for which the display screen is in a bright state and the electronic device is in an unlocked state reaches a first duration, the electronic device displaying a second interface, the second interface having a second contrast ratio and a second saturation level, wherein the second contrast ratio is less than the first contrast ratio, and / or the second saturation level is less than the first saturation level.
[0007] The first interface can be the interface shown in Figure 3A other than card 301, with a first contrast ratio of 2 and a first saturation of 2. The first prompt can be card 301 in Figure 3A, and the first button can be button 305 in card 301. The second interface can be the interface shown in Figure 3D and / or the interface shown in Figure 3E. The second contrast ratio can be contrast ratio 1, and the second saturation can be saturation ratio 1.
[0008] In this way, the electronic device can prompt the user to activate the dry eye-friendly function through the first prompt. When the dry eye-friendly function is activated, the electronic device can reduce the eye stimulation caused by prolonged use of the electronic device by reducing saturation and / or reducing contrast when it detects that certain conditions are met, thereby improving the user's experience.
[0009] In one possible implementation, after the electronic device begins to adjust the contrast and / or saturation of the interface on the display screen, the method further includes: when the duration for which the display screen is detected to be on and the electronic device is in an unlocked state reaches a second duration, the electronic device displays a third interface, the second duration being shorter than the first duration, wherein the contrast of the third interface is a third contrast, the saturation of the third interface is a third saturation, the third contrast is less than the first contrast and greater than the second contrast, and / or, the third saturation is less than the first saturation and greater than the second saturation.
[0010] The second duration can be 10 minutes or 15 minutes, etc. The third interface can be any interface displayed during the image adjustment process, such as interface 1. The third saturation can be saturation 3, and the third contrast can be contrast 3.
[0011] It is understandable that the process of adjusting the screen of an electronic device can be understood as a gradual adjustment process. That is, the electronic device gradually reduces the contrast and / or saturation to make the screen changes more gradual, so as to achieve the final effect in a way that is basically imperceptible to the user.
[0012] In one possible implementation, after the electronic device displays the third interface, the method further includes: when the electronic device is detected to be off, ending the adjustment of the saturation and / or contrast of the interface on the display screen; when the electronic device is detected to be on, displaying the fourth interface and starting to adjust the saturation and / or contrast of the interface on the display screen, wherein the contrast of the fourth interface is a first contrast ratio and the saturation of the fourth interface is a first saturation ratio; and when the duration of the detection that the display screen is on and the electronic device is in an unlocked state reaches a first duration, displaying the fifth interface, wherein the contrast of the fifth interface is a second contrast ratio and the saturation of the fifth interface is a second saturation ratio.
[0013] The fourth interface can be understood as the interface displayed after the screen is turned on. At this time, the contrast and saturation of the fourth interface are at the values before the image is adjusted.
[0014] The fifth interface is the one displayed when the image adjustment is finished. At this time, the contrast and saturation of the fifth interface are at the values when the image adjustment is completed, and the fifth interface can present the best display effect.
[0015] In this way, the electronic device can end the screen adjustment under the dry eye friendly function when it detects that the screen is off, and can also restart the screen adjustment under the dry eye friendly function when it detects that the screen is on, so as to improve the user experience.
[0016] In one possible implementation, the method further includes: when the third interface is displayed and a user's screen-off operation on the electronic device is detected, the electronic device turns off the screen in response to the screen-off operation; when the screen of the electronic device is detected to be on, the electronic device continues to adjust the contrast of the interface on the display screen starting from the third contrast ratio, and / or continues to adjust the saturation of the interface on the display screen starting from the third saturation ratio; when the duration of the detection that the display screen is on and the electronic device is unlocked reaches a first duration, the electronic device displays a fifth interface, the contrast ratio of the fifth interface being the second contrast ratio, and the saturation ratio of the fifth interface being the second saturation ratio.
[0017] In this scenario, after the electronic device screen is turned on, the contrast of the interface can be adjusted from the third contrast level to the second contrast level, and the saturation of the interface can be adjusted from the third saturation level to the second saturation level.
[0018] The fifth interface is the one displayed when the image adjustment is finished. At this time, the contrast and saturation of the fifth interface are at the values when the image adjustment is completed, and the fifth interface can present the best display effect.
[0019] In this way, the electronic device can pause the screen adjustment under the dry eye friendly function when it detects that the screen is off, and can also resume the screen adjustment under the dry eye friendly function when it detects that the screen is on, so as to save the device's power consumption.
[0020] In one possible implementation, after the electronic device begins to adjust the contrast and / or saturation of the interface on the display screen, the method further includes: displaying a sixth interface when the duration of the detection that the display screen is on and the electronic device is unlocked reaches a third duration, and the number of blinks by the user during the first time period is less than a first threshold, wherein the sixth interface includes a second prompt for prompting the user to blink.
[0021] The third duration can be 30 minutes. The first threshold can be 15 or 20. The sixth interface can be Figure 3K, and the second prompt can be capsule 337 in Figure 3K.
[0022] In this way, when the dry eye-friendly function is enabled, the electronic device can also detect the user's blinking frequency and prompt the user to blink when the blinking frequency is low, so as to improve eye fatigue caused by low blinking frequency.
[0023] In one possible implementation, when the third duration is longer than the first duration, the contrast of the sixth screen is equal to the contrast of the sixth screen, and / or, the saturation of the sixth screen is equal to the saturation of the sixth screen.
[0024] In this way, electronic devices can first adjust the screen to meet the needs of users with dry eyes, which can alleviate the problem of low blinking frequency to some extent. Then, by detecting the blinking frequency, blinking prompts can be provided, making the whole process more in line with the user's needs.
[0025] In one possible implementation, after displaying the sixth interface, the method further includes: after receiving an operation on the second prompt, displaying a seventh interface, which includes a third prompt to prompt the user to blink, and the third prompt includes a second button that is in an on state; and after receiving an operation on the second button, disabling the dry eye-friendly function.
[0026] The seventh interface can be the interface shown in Figure 3L, the third prompt can be card 340, and the second button can be button 334.
[0027] In this way, users can turn off the dry eye-friendly function by clicking the second button in the third prompt. It can be understood that after turning off the dry eye-friendly function, the blink detection function will also be turned off by default.
[0028] In one possible implementation, the second interface also includes a fourth prompt, which is used to prompt the user to complete the screen adjustment under the dry eye-friendly function.
[0029] The fourth prompt may include capsule 311 in Figure 3D and / or capsule 314 in Figure 3E. This allows the user to confirm that the electronic device has completed the image adjustment under the dry eye-friendly function via the fourth prompt.
[0030] In one possible implementation, the fourth prompt includes a first capsule and a second capsule; the first capsule includes an indicator of a dry eye-friendly function, and the second capsule includes an indicator for indicating the completion of screen adjustment under the dry eye-friendly function; the electronic device displays the fourth prompt, including an animation of the electronic device switching from the first capsule to the second capsule.
[0031] The first capsule can be capsule 311 in Figure 3D, and the second capsule can be capsule 314 in Figure 3E. In this way, the electronic device can increase the fun of the fourth prompt by changing the capsules.
[0032] In one possible implementation, the electronic device displays a first prompt on the first interface, including: when the electronic device detects that a first preset condition is met, the electronic device displays a first prompt on the first interface, the first preset condition including one or more of the following: the dry eye-friendly function is turned off, or the screen of the electronic device is on and the electronic device is unlocked for a period of time of a fourth duration.
[0033] The fourth duration can be 30 minutes. This allows the electronic device to display the first prompt when certain conditions are met, making the timing of the first prompt more aligned with the user's needs.
[0034] In one possible implementation, after displaying the second interface, the electronic device further includes: displaying an eighth interface, wherein the contrast of the eighth interface is the second contrast, and / or the saturation of the eighth interface is the second saturation.
[0035] The eighth interface is the one displayed after the image adjustment under the dry eye-friendly function is completed. This means that after image adjustment, saturation and / or contrast are no longer adjusted, ensuring the interface maintains the optimal display state corresponding to the second contrast and / or second saturation.
[0036] In one possible implementation, after the electronic device displays the first interface, the method further includes: displaying a fifth prompt on the first interface, the fifth prompt including a third button, the fifth prompt being used to indicate the activation of the myopia-friendly function, the myopia-friendly function being used to alleviate the user's myopia symptoms; in response to the user's operation on the third button, the electronic device begins to defocus the interface on the display screen; and after a fourth duration of detecting that the display screen is on and the electronic device is unlocked, a ninth interface is displayed, wherein the ninth interface is the interface displayed after defocusing.
[0037] The fifth prompt can be card 401 in Figure 4A, and the third button can be button 405 in Figure 4A. The fourth duration can be 5 minutes, and the ninth interface can be the interface shown in Figure 4D or Figure 4E.
[0038] In this way, the electronic device can prompt the user to activate the myopia-friendly function through the fifth prompt. When the myopia-friendly function is activated, the electronic device can reduce the eye stimulation caused by prolonged use of the electronic device by defocusing the image when it detects that certain conditions are met, thereby improving the user experience.
[0039] In one possible implementation, the ninth interface also includes a sixth prompt, which is used to prompt the user to complete the screen adjustment under the myopia-friendly function.
[0040] The sixth prompt may include capsule 411 in Figure 4D and / or capsule 414 in Figure 4E. This allows the user to confirm that the electronic device has completed the screen adjustment under the myopia-friendly function via the sixth prompt.
[0041] In one possible implementation, the electronic device displays a fifth prompt on the first interface, including: when the electronic device detects that a second preset condition is met, the electronic device displays a fifth prompt on the first interface. The second preset condition includes: activating a child use mode, which is used to guide children to use the electronic device reasonably. The second preset condition may also include one or more of the following: the myopia-friendly function is turned off; the screen of the electronic device is on and the electronic device is unlocked for a period of time that reaches a fourth duration; the electronic device is running a first preset application in the foreground; or the electronic device is in a dark environment.
[0042] The first preset application can be an application with a lot of text and image information. For example, the first preset application may include one or more of the following applications: video application (or short video application), news application, or e-book application.
[0043] In this way, electronic devices can display a second prompt when certain conditions are met, making the timing of the second prompt more in line with the user's needs.
[0044] In one possible implementation, the sixth prompt includes a third capsule and a fourth capsule, the third capsule including an indicator of a myopia-friendly function, and the fourth capsule including an indicator for indicating the completion of screen adjustment under the myopia-friendly function; the electronic device displays the sixth prompt, including: the electronic device displays an animation of switching from the third capsule to the fourth capsule.
[0045] The third capsule can be capsule 411 in Figure 4D, and the fourth capsule can be capsule 414 in Figure 4E. In this way, the electronic device can enhance the fun of the sixth prompt by changing the capsules.
[0046] In one possible implementation, the fourth prompt is an identifier displayed at the first time point, and the sixth prompt is an identifier displayed at the second time point, where the second time point is later than the first time point, and the difference between the first time point and the second time point is less than a second threshold. The ninth interface does not include the fourth prompt, or the ninth interface includes both the fourth prompt and the sixth prompt, wherein the sixth prompt is stacked on top of the fourth prompt, and the sixth prompt and the fourth prompt do not overlap.
[0047] In one possible implementation, the first prompt may be displayed in one or more of the following forms: a card, a capsule, or a pop-up. This allows the first prompt to be displayed in multiple formats on the interface, increasing the flexibility of the interface display.
[0048] It is understood that any of the prompts described in the embodiments of this application may be displayed in the form of a card, capsule, or pop-up window.
[0049] In this way, when the fourth and sixth prompts are included in the eight interfaces, the electronic device can determine that multiple prompts have been received.
[0050] Secondly, embodiments of this application provide an interface display device, which can be an electronic device, or a chip or chip system within an electronic device. The interface display device may include a display unit and a processing unit. When the interface display device is an electronic device, the display unit may be a display screen. The display unit is used to perform display steps to enable the electronic device to implement an interface display method described in the first aspect or any possible implementation of the first aspect. When the interface display device is an electronic device, the processing unit may be a processor. The interface display device may further include a storage unit, which may be a memory. The storage unit is used to store instructions, and the processing unit executes the instructions stored in the storage unit to enable the electronic device to implement an interface display method described in the first aspect or any possible implementation of the first aspect. When the interface display device is a chip or chip system within an electronic device, the processing unit may be a processor. The processing unit executes the instructions stored in the storage unit to enable the electronic device to implement an interface display method described in the first aspect or any possible implementation of the first aspect. The storage unit can be a storage unit within the chip (e.g., a register, cache, etc.) or a storage unit located outside the chip within the electronic device (e.g., a read-only memory, random access memory, etc.).
[0051] Specifically, the display unit is used to display a first interface, the first interface having a first contrast ratio and a first saturation level; the display unit is also used to display a first prompt on the first interface, the first prompt including a first button, the first prompt being used to prompt the user to activate the dry eye-friendly function, the dry eye-friendly function being used to relieve the user's dry eye symptoms; in response to the user's operation of the first button, the processing unit is used to start adjusting the contrast ratio and / or saturation level of the interface on the display screen; when the processing unit detects that the display screen is in a bright state and the electronic device is in an unlocked state for a duration of a first duration, the display unit is also used to display a second interface, the second interface having a second contrast ratio and a second saturation level, wherein the second contrast ratio is less than the first contrast ratio, and / or the second saturation level is less than the first saturation level.
[0052] Thirdly, embodiments of this application provide an electronic device, which includes: one or more processors and a memory; the memory is coupled to one or more processors, and the memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the electronic device to perform the methods described in the first aspect or any possible implementation of the first aspect.
[0053] Fourthly, embodiments of this application provide a computer-readable storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform the methods described in the first aspect or any possible implementation thereof.
[0054] Fifthly, embodiments of this application provide a computer program product including a computer program. When the computer program product includes computer program code, when the computer program code is run on an electronic device, it causes the electronic device to perform the method described in the first aspect or any possible implementation of the first aspect.
[0055] Sixthly, this application provides a chip system applied to an electronic device. The chip system includes one or more processors, which are used to invoke computer instructions to cause the electronic device to perform the methods described in the first aspect or any possible implementation of the first aspect.
[0056] In one possible implementation, the chip system described above in this application further includes at least one memory storing instructions. The memory can be an internal storage unit of the chip system, such as a register or cache, or it can be a storage unit of the chip system itself (e.g., read-only memory, random access memory, etc.).
[0057] It should be understood that the second to sixth aspects of this application correspond to the technical solutions of the first aspect of this application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be repeated here. Attached Figure Description
[0058] Figure 1 is a schematic diagram of a scenario provided in the application embodiment;
[0059] Figure 2 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;
[0060] Figures 3A-3P are schematic diagrams of an interface provided in an embodiment of this application;
[0061] Figures 4A-4H are schematic diagrams of an interface provided in an embodiment of this application;
[0062] Figures 5A and 5B are schematic diagrams of a timing relationship provided in an embodiment of this application;
[0063] Figures 6A and 6B are schematic diagrams illustrating a capsule variation according to an embodiment of this application;
[0064] Figures 7A-7D are schematic diagrams of a screen effect provided in an embodiment of this application;
[0065] Figure 8 is a flowchart illustrating an interface display method provided in an embodiment of this application;
[0066] Figure 9 is a schematic diagram of the hardware structure of another electronic device provided in an embodiment of this application. Detailed Implementation
[0067] To facilitate a clear description of the technical solutions in the embodiments of this application, some terms and technologies involved in the embodiments of this application will be briefly introduced below:
[0068] 1. Dry eye-friendly and myopia-friendly functions
[0069] Dry eye friendly function can be a function to relieve users' dry eye symptoms, and myopia friendly function (or defocus vision relief) can be a function to relieve users' myopia.
[0070] When the dry eye-friendly function is enabled, electronic devices can adjust parameters such as contrast and / or saturation to make the colors of the image softer. Dry eye symptoms are caused by a lack of tear lubrication and can include one or more of the following: dry eyes, itchy eyes, a foreign body sensation, sensitivity to wind and light, and difficulty opening the eyes. Users with dry eye symptoms are more sensitive to external stimuli, prone to eye fatigue, and in severe cases, may develop complications such as keratitis or corneal ulcers.
[0071] After the myopia-friendly function is enabled, the electronic device can achieve a blurred edge effect by defocusing the displayed image, thus shifting the user's visual focus. Defocus processing adjusts the focal length to deviate the image from its optimal focus. In this embodiment, the electronic device can filter blue light of the same wavelength in the image through defocus processing, resulting in greater color differences at the edges, similar to the Mach band effect. This means that at the boundary between light and dark areas, people often see a brighter band of light in bright areas and a darker line in dark areas. This effect is caused by the human visual system and has a mechanism to enhance edge contrast.
[0072] 2. Contrast and saturation
[0073] Contrast ratio can be used to adjust the overall grayscale of a photograph, affecting the representation of blacks and whites. Increased contrast makes blacks deeper and whites brighter, making the light and dark areas of the image more distinct, thus improving image clarity and color vibrancy. The level of contrast directly affects the sharpness, detail, and grayscale levels of the visual effect. High contrast helps improve sharpness, integrity, and contrast in situations with significant black and white contrast.
[0074] Saturation can be used to adjust the purity of all colors in a photograph, making them more intense. Increasing saturation makes the colors in a photograph more vibrant; for example, reds become redder, and greens become greener. Saturation affects colors in general, increasing the overall amount of color and making the photograph more vivid.
[0075] Understandably, reducing saturation decreases the vibrancy of colors in an image, making them more natural and softer; low contrast reduces the difference between light and dark areas, resulting in smoother transitions between bright and dark regions. Therefore, reducing saturation and / or contrast can make an image appear softer and more natural.
[0076] 3. Capsule button (or capsule)
[0077] Capsule buttons are used to display tasks performed by electronic devices. Their display allows users to view the real-time status of tasks, perform quick actions, or rapidly access applications. Capsule buttons can display the task name and / or task identifier, among other things.
[0078] The capsule button is typically located at the top of the screen, displayed in a "capsule" shape. It can be positioned near the punch-hole area of the display, which may include the area containing the front-facing camera (e.g., two circular areas displayed side-by-side), and can appear visually black within the punch-hole area. The punch-hole area can also be capsule-shaped; see Figure 3A for examples of punch-hole designs.
[0079] The capsule button can be associated with the punch-hole area. For example, when the punch-hole area is located in the center of the top of the screen, the capsule button can also be located in the center of the top of the screen, or when the punch-hole area is located in the left (or right) position of the top of the screen, the capsule button can also be located in the left (or right) position of the top of the screen.
[0080] The capsule area may also be independent of the punch-hole area. For example, when the punch-hole area is located at the top left, the capsule button may also be located at the top center of the screen. In this embodiment, the location of the capsule button is not limited.
[0081] Since capsule buttons are usually limited in size, if a lot of content needs to be displayed in the capsule button, the content can also be displayed in the form of scrolling text.
[0082] The capsule button can be simply referred to as a capsule. In some embodiments, the capsule button may also be called a dynamic capsule or a dynamic window, etc., and this application embodiment does not limit this.
[0083] 4. Electronic equipment
[0084] The electronic devices in this application embodiment may include handheld devices with display functions, in-vehicle devices, etc. For example, some electronic devices include: mobile phones, tablet computers, PDAs, laptops, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, in-vehicle devices, terminal devices in 5G networks, or terminal devices in future evolved public land mobile networks (PLMNs), etc., and this application embodiment is not limited to these. Wearable devices may include one or more of the following: smartwatches, smart glasses, smart bracelets, smart jewelry, etc.
[0085] The electronic devices in the embodiments of this application may also be referred to as: terminal equipment, user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent, or user device, etc.
[0086] 6. Other nouns
[0087] In the embodiments of this application, terms such as "first" and "second" are used to distinguish identical or similar items with substantially the same function and purpose. For example, "first chip" and "second chip" are used only to distinguish different chips and do not limit their order of execution. Those skilled in the art will understand that terms such as "first" and "second" do not limit the quantity or execution order, and that "first" and "second" do not necessarily imply that they are different.
[0088] It should be noted that, in the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0089] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, and c can be single or multiple.
[0090] The following illustration, with reference to the embodiment corresponding to Figure 1, illustrates a scenario where a user uses an electronic device for an extended period of time. In the embodiment corresponding to Figure 1, the example of a user browsing a short video application is used for illustration; this example does not constitute a limitation on the embodiments of this application.
[0091] Typically, users will see an interface as shown in Figure 1 after opening a short video application. Figure 1 can be a video playback interface, which may include one or more of the following: short video 101, control buttons in the dashed box 102, etc.
[0092] The image displayed in short video 101 can be a single frame from short video 101.
[0093] The control buttons in the dashed box 102 can be displayed from top to bottom as follows: a button for setting a like tag for short videos, a button for commenting on short videos, a button for saving short videos, and a button for forwarding short videos, etc.
[0094] Typically, users can browse other content in short video apps by swiping up or down along the screen as shown in Figure 1A. However, prolonged use of electronic devices can lead to eye strain, affecting the user experience and even their health.
[0095] In view of this, embodiments of this application provide an interface display method in which an electronic device can prompt the user that there may be dry eye or myopia when the device has been running for a long time. The device can then alleviate dry eye by adjusting the contrast (and / or saturation) of the screen and improve the user's myopia by defocusing the screen, resulting in a softer screen display.
[0096] It is understood that the content shown in Figure 1A is only an example. For example, users can also view other applications besides short video applications on electronic devices. In this case, the interface of other applications can be displayed in Figure 1A. This application embodiment does not limit this.
[0097] To better understand the embodiments of this application, the structure of the electronic device according to the embodiments of this application will be described below. For example, FIG2 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application.
[0098] The electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, an indicator 192, a camera 193, and a display screen 194, etc.
[0099] In this embodiment, the sensor module 180 may include a touch sensor 180A, which can be used to receive user trigger operations on the electronic device. The trigger operation may include one or more of the following: a click operation, a swipe operation, a double-click operation, or a drag operation, etc.
[0100] The sensor module 180 may also include one or more of the following: proximity light sensor and ambient light sensor, pressure sensor, gyroscope sensor, barometric pressure sensor, magnetic sensor, accelerometer, distance sensor, fingerprint sensor, temperature sensor, or bone conduction sensor, etc. (not shown in Figure 2), but this application embodiment does not specifically limit the following.
[0101] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device. In other embodiments of this application, the electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0102] The processor 110 may include one or more processing units. The processor 110 can implement the steps of detecting the user's air gesture and controlling the device to execute corresponding instructions based on the user's air gesture in the power supply method provided in the embodiments of this application.
[0103] USB interface 130 is an interface that conforms to the USB standard specification, specifically it can be a Mini USB interface, Micro USB interface, USB Type C interface, etc.
[0104] The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the charging management module 140 and the processor 110.
[0105] The wireless communication function of electronic devices can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0106] Electronic devices utilize GPUs, displays (194), and application processors to achieve display functions. The GPU is a microprocessor for image processing, connecting the displays (194) and the application processor.
[0107] The display screen 194 is used to display images and videos, for example, the display screen 194 can display the interface shown in FIG1, FIG3A-FIG4H as described in the embodiments of this application.
[0108] Electronic devices can achieve shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0109] Camera 193 is used to capture still images or videos. For example, camera 193 may include a front-facing camera and a rear-facing camera, the front-facing camera being used to detect the number of times a user blinks. For example, the process by which an electronic device detects the number of times a user blinks based on the front-facing camera can be seen in the description in Figure 3J, and will not be repeated here.
[0110] The external memory interface 120 can be used to connect an external memory card. The internal memory 121 can be used to store computer executable program code, including instructions.
[0111] Electronic devices can implement audio functions such as music playback and recording through audio modules 170, speakers 170A, receivers 170B, microphones 170C, headphone jacks 170D, and application processors.
[0112] The microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When a user inputs voice information into an electronic device through the microphone, the user can speak by bringing their mouth close to the microphone 170C. The electronic device can collect the sound signal through the microphone 170C and convert the sound signal into text information, which can then be displayed on a screen.
[0113] Touch sensor 180A can be located on display screen 194. Touch sensor 180A and display screen 194 together form a touch screen, or "touchscreen". Touch sensor 180A can detect user trigger operations on electronic devices.
[0114] Button 190 includes the power button, volume buttons, etc.
[0115] The software systems of electronic devices can adopt layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture, etc., which will not be elaborated here.
[0116] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be implemented independently or in combination with each other. The same or similar concepts or processes may not be described again in some embodiments.
[0117] In this embodiment, the electronic device can recommend dry eye-friendly functions and adjust the screen effect when the dry eye-friendly function is activated to alleviate the user's dry eye condition; and the electronic device can also recommend myopia-friendly functions and adjust the screen effect when the myopia-friendly function is activated to alleviate the user's myopia condition.
[0118] 1. Recommendations for dry eye-friendly features (see Figures 3A-3P)
[0119] When the electronic device detects that the first preset condition is met, the electronic device displays the interface shown in Figure 3A.
[0120] The first preset conditions may include: the dry eye-friendly function is turned off, and the electronic device's display is on and the electronic device is unlocked for more than 30 minutes during the first time period.
[0121] The first time period can be the period from 16:00 to 24:00.
[0122] Figure 3A may include: a video playback interface and card 301.
[0123] The content displayed in the video playback interface can be seen in the description of Figure 1, and will not be repeated here.
[0124] Card 301 may include one or more of the following: a dry eye-friendly function identifier 302, a dry eye-friendly function name (e.g., dry eye friendly) 303, a prompt message 304, or a button 305.
[0125] The 304 message can be used to prompt users to activate the dry eye-friendly function, or to introduce the function. For example, the 304 message can be displayed as "Provides a softer screen display effect, making it more comfortable and preventing dryness".
[0126] Button 305 can be used to activate or deactivate the dry eye-friendly function. When button 305 is in the OFF state (as shown in button 305 in Figure 3A), the user can activate the dry eye-friendly function by clicking button 305. Alternatively, when button 305 is in the OFF state (as shown in button 307 in Figure 3B), the user can deactivate the dry eye-friendly function by clicking button 305.
[0127] The top of the screen in Figure 3A may include a punch-hole area 300, which may be capsule-shaped and located within the area where card 301 is located.
[0128] When the electronic device displays as shown in Figure 3A, the electronic device can adjust the screen after activating the dry eye-friendly function based on button 305 (see Figures 3B-3E); or, the electronic device can prompt the user to activate the dry eye-friendly function in the notification center when the dry eye-friendly function is not activated (see Figures 3F-3H).
[0129] In response to a user's click on button 305 in Figure 3A, the electronic device can display the interface shown in Figure 3B.
[0130] Figure 3B shows the video playback interface and card 306.
[0131] Button 307 in card 306 is in the on state. Other content displayed in card 306 can be found in the description in card 301, and will not be repeated here.
[0132] Understandably, when button 307 is in the "on" state, the electronic device can also simultaneously display card 306 in the notification center, allowing users to determine the activation status of the dry eye-friendly function through card 306 in the notification center, as shown in Figure 3H. For example, card 306 can remain in the notification center for 1 hour.
[0133] When the electronic device detects that the display duration of card 306 has reached a certain time (e.g., 5 seconds), it will automatically retract card 306, at which time the electronic device will display the interface shown in Figure 3C.
[0134] Figure 3C shows the video playback interface and capsule 308.
[0135] The content displayed in the video playback interface in Figure 3C may differ from the content displayed in the video playback interface in Figure 3B. For example, if the content displayed in Figure 3C is the frame corresponding to the 5th second of short video 101, then Figure 3D may be the frame corresponding to the 10th second of short video 101. This embodiment does not impose any limitations on this.
[0136] Capsule 308 may display: the name 309 of the dry eye-friendly function, and the logo 310.
[0137] The logo 310 may consist of a capsule icon and a logo indicating dry eye-friendly features.
[0138] The indicator 310 can be used to indicate that the dry eye-friendly function is on, such as the indicator 310 being in one or more states such as bold display, color display, and shadow display.
[0139] It is understandable that even when the dry eye-friendly function is off, the electronic device can still display label 320 in capsule 308 (not shown in Figure 3C). Compared to label 310, label 320 may not be in a bold, color, or shaded display state.
[0140] Optionally, in response to a user's click on capsule 308 in Figure 3C, the electronic device may display card 306 in Figure 3B in Figure 3C.
[0141] Optionally, capsule 308 can cancel the display after a certain duration (e.g., 10 seconds), in which case only the video playback interface can be displayed in Figure 3C.
[0142] Optionally, in response to a user's click on an area other than button 305 in card 301 of Figure 3A, the electronic device can enter the settings interface for the dry eye-friendly function, as shown in Figure 3P.
[0143] After the electronic device activates the dry eye-friendly function based on button 305 in Figure 3A, the electronic device can adjust the display content in Figure 3A, for example, by adjusting parameters such as contrast and / or saturation, to make the image softer.
[0144] Understandably, after activating the dry eye-friendly function, the electronic device can gradually adjust the screen display, reaching its optimal effect after a certain adjustment period (e.g., 20 minutes). After 20 minutes of adjustment, the electronic device can maintain this optimal display effect. For example, the electronic device can simultaneously initiate screen adjustment while displaying Figure 3B. After 20 minutes of adjustment, the electronic device can sequentially display the interface shown in Figure 3D and then the interface shown in Figure 3E.
[0145] Optionally, the electronic device may also display Figure 3D or Figure 3E when the screen adjustment is completed, but this is not limited in the embodiments of this application.
[0146] Figure 3D shows the video playback interface and Capsule 311.
[0147] The content displayed in the video playback interface in Figure 3D may be the same as or different from the content displayed in the video playback interface in Figure 3A. Alternatively, Figure 3D may display any interface other than the video playback interface. This arbitrary interface can be the interface displayed when the electronic device is always running, and no screen lock or screen-off is detected during the operation of the electronic device. The content displayed in Figure 3D is not limited in this embodiment.
[0148] In Figure 3D, the contrast ratio is set to contrast ratio 1, and the saturation is set to saturation ratio 1. In Figure 3A, the contrast ratio is set to contrast ratio 2, and the saturation is set to saturation ratio 2. Contrast ratio 1 is less than contrast ratio 2, and saturation ratio 1 is less than saturation ratio 2. This means that electronic devices can reduce contrast and / or saturation to make the displayed image softer and more natural, thus alleviating eye strain caused by prolonged screen use.
[0149] It is understandable that there are other interfaces between Figure 3B and Figure 3D, such as Interface 1, which can display a video playback interface. The contrast ratio and saturation of the image in Interface 1 can be set to 3. Therefore, contrast ratio 3 is greater than contrast ratio 2 and less than contrast ratio 1, and saturation ratio 3 is greater than saturation ratio 2 and less than saturation ratio 1. Thus, the process of adjusting the image on an electronic device can be understood as a gradual adjustment process. That is, the electronic device gradually reduces contrast and / or saturation to make the image changes smoother, improving the user experience.
[0150] Capsule 311 may include: a label 312 and a name 313 for the dry eye-friendly function. The label 312 may be used to indicate that the dry eye-friendly function is enabled.
[0151] It is understood that the content displayed in capsule 311 may be the same as the content displayed in capsule 308 in Figure 3C, and this application embodiment does not limit this.
[0152] It is understood that the display order of the contents in any capsule is not limited in the embodiments of this application. For example, the identifier 312 can be displayed on the left side of the capsule 311 and the name 313 can be displayed on the right side of the capsule 311, or the identifier 312 can be displayed on the right side of the capsule 311 and the name 313 can be displayed on the left side of the capsule 311.
[0153] Figure 3E shows the video playback interface and capsule 314.
[0154] The content displayed in the video playback interface in Figure 3E may be the same as or different from the content displayed in the video playback interface in Figure 3A. This application embodiment does not limit this.
[0155] The contrast of the image in Figure 3E can be the same as the contrast 1 of the image in Figure 3D, and the saturation of the image in Figure 3E can be the same as the saturation 1 of the image in Figure 3D. That is, the electronic device can stop adjusting the contrast and / or saturation of the image 20 minutes after the image is adjusted, and continue to maintain the best display effect.
[0156] Capsule 314 may include: a label 315 and a name 316 for the dry eye-friendly function. The label 315 may be used to indicate that the screen adjustment process has been completed when the dry eye-friendly function is activated.
[0157] Optionally, during any of the processes shown in Figures 3B-3D on the electronic device, when the electronic device detects a user's screen-off operation, the electronic device can terminate the eye-friendly image adjustment. Further, when the electronic device detects that the screen is on, the electronic device can restart the image adjustment, such as starting from contrast 2 and / or saturation 2. If the display remains on and the electronic device remains unlocked for up to 20 minutes after the screen is detected to be on, the eye-friendly image adjustment is completed, at which point the image contrast can be set to contrast 1, and / or the image saturation can be set to saturation 1.
[0158] Optionally, during any of the processes shown in Figures 3B-3D on the electronic device, when the electronic device detects a user's screen-off operation, it can record the screen adjustment status at the moment the screen is off and the duration of the screen adjustment as duration 1. For example, the screen adjustment status could be: contrast 4 and / or saturation 4, and the eye-friendly screen adjustment can be paused. Further, when the electronic device detects that the screen is on, it can continue to adjust the screen, such as starting the adjustment from contrast 4 and / or saturation 4. When the screen is on and the electronic device is unlocked for a duration of duration 2 after the screen is detected to be on, the eye-friendly screen adjustment is completed. At this time, the screen contrast can be contrast 1, and / or the screen saturation can be saturation 1. The sum of duration 1 and duration 2 can be 20 minutes, where contrast 4 is greater than contrast 1 and less than contrast 2, and saturation 4 is greater than saturation 1 and less than saturation 2.
[0159] Optionally, in response to a user's click on capsule 311 or capsule 314, the electronic device may display card 306 on the interface. It is understood that even if the user accidentally activates the dry eye-friendly function by touching button 305, and the electronic device displays capsule 311 and capsule 314 after screen adjustment, the electronic device may still prompt the user that the dry eye-friendly function is currently activated based on the user's action on capsule 311 or capsule 314.
[0160] It's important to note that users with dry eyes are more sensitive to display quality and cannot stare at screens for extended periods. Understandably, they tend to prefer screens with low saturation and / or low contrast, such as liquid crystal displays (LCDs) and e-ink displays. However, electronic devices typically use organic light-emitting diodes (OLEDs), which can display high saturation and / or high contrast. Since users with dry eyes have a lower tolerance for high saturation and / or high contrast, electronic devices can, after activating a dry-eye-friendly function, adjust the image to reduce contrast and / or saturation, simulating the display effect of an LCD or e-ink screen and reducing eye strain from prolonged use. Furthermore, the image adjustment effect takes effect gradually over 20 minutes, achieving the final result in a manner that is virtually imperceptible to the user.
[0161] Optionally, the electronic device can automatically retract the card 301 when it detects that the display duration of the card 301 in Figure 3A has reached a certain duration (e.g., 5 seconds), at which time the electronic device displays the interface shown in Figure 3F.
[0162] Figure 3F shows the video playback interface and capsule 317.
[0163] The content displayed in the video playback interface in Figure 3F may be the same as or different from the content displayed in the video playback interface in Figure 3A. This application embodiment does not limit this.
[0164] Capsule 317 may include: a name 318 for the dry eye-friendly function, and a label 320. The meaning of label 320 can be found in the description in Figure 3C, and will not be repeated here.
[0165] Understandably, Capsule 317 can cancel the display after a duration of up to 10 seconds, at which point only the video playback interface can be displayed in Figure 3F.
[0166] While the electronic device displays Figure 3A, recommendations for eye-friendly features can also be made in the notification center. For example, in response to a user swiping down from the top left corner of the screen in Figure 3A, the electronic device can display the interface shown in Figure 3G.
[0167] Figure 3G shows the notification center interface, which can display card 321. The content displayed in card 321 can be the same as that displayed in card 301, and will not be described again here.
[0168] The retention time of card 321 can be 1 hour, meaning that card 321 can be retained in Figure 3G for 1 hour. This means that users can activate the dry eye-friendly function within 1 hour (when it was not activated in Figure 3A) using card 321 in Figure 3G. Electronic devices can provide users with more ways to activate the dry eye-friendly function through cards stored in the notification center, thus improving the user experience.
[0169] Optionally, when the retention time of card 321 is about to end, in response to the user triggering the operation of button 322 on card 321, the electronic device can extend the retention time of card 321 by 1 hour. In this scenario, card 321 can remain in the notification center for 2 hours.
[0170] In response to the user's click on button 322 in Figure 3G, the electronic device activates the dry eye-friendly function and displays the interface shown in Figure 3H.
[0171] In Figure 3H, card 321 can display a button 323 that is in the "on" state and a prompt message 324.
[0172] The prompt message 324 can be used to prompt users to check the display effect. For example, prompt message 324 can be displayed as "The function has been enabled. You can go to the device tips to check the display effect".
[0173] In response to the user's swipe left on card 321 in Figure 3H, the electronic device can display a delete button on the right side of card 321, and the user can delete card 321 by clicking the delete button, which is not shown in Figure 3H.
[0174] In response to the user's swipe up from the bottom of the display in Figure 3H, the electronic device can close the notification center and then display the capsule 308 in Figure 3C.
[0175] In some embodiments, after the dry eye-friendly function is enabled, the electronic device can also detect the user's blinking frequency and prompt the user to blink when the user's blinking frequency is low (see Figures 3I-3L).
[0176] When the electronic device detects that the first preset condition is met, the electronic device displays the interface shown in Figure 3I.
[0177] Understandably, when the electronic device detects that the first preset condition is met, it can determine whether it supports the blink detection function. For example, when the electronic device determines that it supports the blink detection function, it can display Figure 3I and prompt the user to activate blink detection at the same time as activating the dry eye-friendly function, based on the prompt information 333 in Figure 3I; or, when the electronic device determines that it does not support the blink detection function, it can display Figure 3A and prompt the user to enter the dry eye-friendly function, based on the prompt information 304 in Figure 3A.
[0178] Among them, electronic devices can detect whether they support blink detection function by means of device model or configuration information, or specific models of electronic devices can automatically start blink detection after the dry eye friendly function is enabled. This application embodiment does not limit this.
[0179] Figure 3I may include: a video playback interface and card 330.
[0180] Card 330 may include one or more of the following: a dry eye-friendly function identifier 331, a dry eye-friendly function name (e.g., dry eye friendly) 332, a prompt message 333, or a button 334.
[0181] The prompt message 333 can be used to prompt users to activate the dry eye friendly function and perform blink detection. For example, the prompt message 333 can be displayed as "Actively detect the number of blinks, intelligently guide blinks and adjust the display, and prevent dryness for greater comfort".
[0182] Button 334 is in the off state. The function of button 334 is the same as that of button 305, and will not be described again here.
[0183] In response to the user's click on button 334 in Figure 3I, the electronic device displays the interface shown in Figure 3J.
[0184] Figure 3J shows the video playback interface and card 335. Button 336 in card 335 is in the on state. Other content displayed in card 335 can be found in the description in card 330, and will not be repeated here.
[0185] In response to the user's click on button 334 in Figure 3I, the electronic device can gradually adjust the display content in Figure 3I while displaying Figure 3J. The optimal display effect is achieved after 20 minutes of adjustment, and capsule 311 in Figure 3D and capsule 314 in Figure 3E are displayed sequentially. The screen adjustment method under the dry eye friendly function can be found in the description of Figure 3D, and will not be repeated here.
[0186] In response to the user's click on button 334 in Figure 3I, the electronic device can begin calculating the usage time while displaying Figure 3J. When the usage time reaches a certain duration (e.g., 30 minutes), the electronic device can activate the front-facing camera and detect the number of blinks the user makes within one minute based on the front-facing camera. After the blink detection is completed, the electronic device can turn off the front-facing camera or set the front-facing camera to a low-power state.
[0187] For example, when an electronic device detects that the number of blinks by the user is greater than 1, the device can initiate the next blink detection after the screen has been on and the device has been unlocked for up to 30 minutes. Alternatively, when the electronic device detects that the number of blinks by the user is less than or equal to 1, it can prompt the user to blink via capsule 337 as shown in Figure 3K.
[0188] For example, the value 1 can be 15 or 20, etc.
[0189] Figure 3K shows the video playback interface and Capsule 337.
[0190] The content displayed in the video playback interface in Figure 3K may be the same as or different from the content displayed in the video playback interface in Figure 3J. This application example does not limit this.
[0191] Capsule 337 may include an identifier 338 and a prompt message 339. Both identifier 338 and prompt message 339 can be used to instruct the user to blink. For example, identifier 338 may be displayed as an "eye" or as a blinking animation (such as eyes opening and closing), and prompt message 339 may be displayed as "blink" or "please blink," etc. The content displayed in capsule 337 is not limited in this embodiment.
[0192] In response to a user's click on capsule 337, the electronic device can display the interface shown in Figure 3L. Figure 3L can display a video playback interface and card 340.
[0193] Card 340 may display one or more of the following: a dry eye-friendly function identifier 341, a dry eye-friendly function name (e.g., dry eye friendly) 342, a prompt message 343, or a button 344.
[0194] The prompt message 333 can be used to remind users that their blink rate is too low. For example, prompt message 333 can be displayed as "Current blink rate is too low. Increasing the blink rate can relieve dry eyes."
[0195] Button 334 can be used to turn off the dry eye-friendly function. Understandably, after turning off the dry eye-friendly function using button 334, the electronic device will disable the blink detection function by default.
[0196] Understandably, after responding to the user's click on button 334 in Figure 3I, the electronic device can begin detecting the usage time. After 20 minutes of use, the screen achieves optimal display quality. After 30 minutes of screen-on and unlocked operation (i.e., 10 minutes after screen adjustment), the electronic device can perform blink detection. Thus, the screens in Figures 3K-3L will all display the optimal image quality. In this way, the electronic device can first adjust the screen for 20 minutes to meet the needs of users with dry eyes, alleviating the issue of low blink rates to some extent. After 10 minutes of screen adjustment, the electronic device can detect the blink rate of users with dry eyes, and if low blink rates are detected, further blink reminders will be provided. The settings for screen adjustment duration and blink detection duration better meet user needs.
[0197] Optionally, the duration of screen adjustment and blink detection are not limited in this embodiment. For example, the screen adjustment duration can be 20 minutes and the blink detection duration can be 15 minutes. In response to the user's click operation on button 334 in Figure 3I, the electronic device can also perform blink detection when the display screen is on and the electronic device is unlocked for 15 minutes, and provide a blink prompt when the number of blinks detected is low, and continue screen adjustment within 4 minutes after the blink detection ends.
[0198] It is understandable that during any of the processes shown in Figures 3J-3K on the electronic device, when the electronic device detects a user's screen-off operation, it can terminate blink detection and screen adjustment. Furthermore, when the electronic device detects that the screen is on, blink detection and screen adjustment can be restarted.
[0199] It's important to note that a certain frequency of blinking helps maintain tear film stability. When the frequency decreases, the tear film ruptures, exposing the cornea to air and causing dry eye. During prolonged use of a visual display terminal (VDT), the user's blinking frequency significantly decreases, for example, from the usual 20-25 times per minute to 5-10 times per minute. Therefore, electronic devices can prompt the user to blink more frequently (e.g., 15 or 20 times per minute) via a sensor to alleviate dry eye.
[0200] Optionally, in response to a user swiping down from the upper left corner of the display screen in Figure 3I, the electronic device may display the interface shown in Figure 3M.
[0201] Figure 3M can be the notification center interface, which can display card 361.
[0202] Card 361 may include a button 362 in a closed state. The content displayed on card 361 may be the same as that displayed on card 330, and will not be repeated here. The retention time of card 361 can be found in the description of card 321, and will not be repeated here.
[0203] In response to the user's click on button 362 in Figure 3M, the electronic device activates the dry eye-friendly function and blink detection function, and displays the interface shown in Figure 3N.
[0204] Figure 3N shows: card 361 and prompt information 364.
[0205] In Figure 3N, card 361 may display button 363 in the "on" state.
[0206] The prompt message 364 can be used to remind users that a blinking prompt will be initiated when the blinking rate is low. For example, the prompt message can be displayed as "When your blinking rate is detected to be low, a prompt will be initiated to relieve dry eyes".
[0207] In response to the user's swipe left on card 361 in Figure 3N, the electronic device can display a delete button on the right side of card 361, and the user can delete card 361 by clicking the delete button, which is not shown in Figure 3N.
[0208] In response to the user swiping up from the bottom of the display in Figure 3N, the electronic device can close the notification center and then display the capsule 308 in Figure 3C.
[0209] Optionally, electronic devices can also enable dry eye-friendly features in the settings app.
[0210] For example, in response to a user opening the settings app, the electronic device displays the interface shown in Figure 30. Figure 30 may include multiple settings items, such as: buttons for setting WLAN, Bluetooth, mobile networks, more connections, desktop and personalization settings, display and brightness settings, or Oasis eye protection settings, etc.
[0211] In response to the user's click on button 350 in Figure 3O, the electronic device displays the interface shown in Figure 3P. Figure 3P can be referred to as the settings interface for the dry eye-friendly function or the settings interface for the myopia-friendly function.
[0212] Figure 3P shows the settings for dry eye-friendly function 351 and myopia-friendly function 352.
[0213] Setting item 351 can be used to turn the dry eye-friendly function on or off. When setting item 351 is off, in response to the user's click operation on setting item 351, the electronic device can activate the dry eye-friendly function and begin to adjust the screen under the dry eye-friendly function. After the screen adjustment is completed, capsule 311 in Figure 3D and capsule 314 in Figure 3E are displayed sequentially.
[0214] The area around setting item 351 may display one or more of the following: an icon for the dry eye-friendly function, the name of the dry eye-friendly function, a description of the dry eye-friendly function, or a button for viewing details.
[0215] Setting item 352 can be used to turn the myopia-friendly function on or off. When setting item 352 is off, in response to the user's click operation on setting item 352, the electronic device can activate the myopia-friendly function and begin to adjust the screen under the myopia-friendly function. After the screen adjustment is completed, capsule 411 in Figure 4D and capsule 414 in Figure 4E are displayed sequentially.
[0216] The button around setting 351 for viewing details can be used to see how the dry eye-friendly feature is used in the device usage tips.
[0217] The area surrounding setting 352 may display one or more of the following: an icon for the myopia-friendly function, the name of the myopia-friendly function, a description of the myopia-friendly function, or a button for viewing details. The description of the myopia-friendly function may be displayed as "Simulates myopia defocused images to relieve eye strain from refractive errors. When activated, the outline edges will change color, which will increase power consumption and heat generation."
[0218] The button around setting 352 for viewing details can be used to see how the nearsightedness-friendly feature is used in the device usage tips.
[0219] Understandably, even if the user does not activate the dry eye-friendly function based on the pop-up card 301, the user can also activate the dry eye-friendly function by triggering the setting item 351 in the interface shown in Figure 3P. Electronic devices can improve the user experience by adding the way to enable the dry eye-friendly function in the settings application.
[0220] Referring to the description in Figure 3A, it can be understood that the electronic device can record the time when dry eye-friendly functions are recommended, as well as the number of times they are recommended each day. For example, the electronic device can recommend dry eye-friendly functions the first time a first preset condition is met within a three-day period. The three-day period can be understood as the first three days of the dry eye-friendly function recommendation.
[0221] For example, if the electronic device detects that the first preset condition is met multiple times on the first day of using the dry eye-friendly function, the device can recommend the dry eye-friendly function the first time it detects that the first preset condition is met. Alternatively, if the user has already recommended the dry eye-friendly function multiple times within the first three days, the electronic device may not recommend it the first time it detects that the first preset condition is met on the fourth day of use.
[0222] Optionally, if the user does not activate the dry eye-friendly function within 7 days, the electronic device can also recommend the dry eye-friendly function via card 301 in Figure 3A after 7 days from the first recommendation of the dry eye-friendly function, when the device detects that the display screen has been on and the electronic device has been unlocked for more than 30 minutes during the first time period.
[0223] Optionally, if the user does not activate the dry eye-friendly function within 30 days, the electronic device can also recommend the dry eye-friendly function via card 301 in Figure 3A 30 days after the first recommendation of the dry eye-friendly function, when it is detected that the display screen has been on and the electronic device has been unlocked for more than 30 minutes during the first time period.
[0224] In scenarios where electronic devices cannot recommend dry eye-friendly functions, users can activate the dry eye-friendly function in the settings interface (as shown in Figure 3P), enabling the electronic device to adjust the image under the dry eye-friendly function.
[0225] Understandably, electronic devices do not recommend dry eye-friendly features every time the first preset condition is met, in order to reduce the impact on the user experience when recommendations are made multiple times.
[0226] Based on the description in Figure 3E, it can be understood that the electronic device can notify the user that the screen adjustment process is complete via capsules 311 and 314 during the first three days after the dry eye-friendly function is activated, and specifically during the first screen adjustment attempt detected within those three days. After these three days, the electronic device will not provide notifications via capsules 311 and 314 when screen adjustments are made.
[0227] 2. Recommendations for myopia-friendly features (see Figures 4A-4G)
[0228] When the electronic device detects that the second preset condition is met, the electronic device displays the interface shown in Figure 4A.
[0229] The second preset condition may include activating child mode (or student mode). In child mode, users can guide children to use electronic devices reasonably by setting screen time limits or device passwords.
[0230] The second preset condition also includes one or more of the following: the myopia-friendly function is turned off, the screen of the electronic device is on and the electronic device is unlocked for more than 30 minutes during the first time period, the electronic device is in a dark environment, or the electronic device is running the first preset application in the foreground.
[0231] The first time period can be the period from 16:00 to 24:00.
[0232] A low-light environment can be understood as an environment where electronic devices detect ambient light levels below a value of 2, where 2 can be 1000 nits, etc.
[0233] The first preset application can be an application containing a large amount of text and image information. For example, the first preset application may include one or more of the following applications: video application (or short video application), news application, or e-book application, etc. Figure 4A may include: a video playback interface and card 401.
[0234] Card 401 may include one or more of the following: a logo 402 for the myopia-friendly function, a name for the myopia-friendly function (e.g., myopia-friendly) 403, a prompt message 404, or a button 405.
[0235] The 404 error message can be used to prompt users to enter the myopia-friendly function, or to introduce the function. For example, the 404 error message can be displayed as "Simulates myopia defocus, automatically adjusts the image, and relieves eye strain from refractive errors".
[0236] Button 405 can be used to activate or deactivate the myopia-friendly function. When button 405 is in the OFF state (as shown in button 405 in Figure 3A), the user can activate the myopia-friendly function by clicking button 405. Alternatively, when button 405 is in the OFF state (as shown in button 407 in Figure 4B), the user can deactivate the myopia-friendly function by clicking button 405.
[0237] When the electronic device displays as shown in Figure 4A, the electronic device can adjust the screen after activating the myopia-friendly function based on button 405 (see Figures 4B-4E); or, the electronic device can prompt the user to activate the myopia-friendly function in the notification center when the myopia-friendly function is not activated (see Figures 4F-4H).
[0238] In response to a user's click on button 405 in Figure 4A, the electronic device can display the interface shown in Figure 4B.
[0239] Figure 4B shows the video playback interface and card 406. Button 407 in card 406 is in the on state. Other content displayed in card 406 can be found in the description in card 401, and will not be repeated here.
[0240] Understandably, when button 407 is in the "on" state, the electronic device can also simultaneously display card 406 in the notification center, allowing the user to determine the activation status of the myopia-friendly function through card 406 in the notification center, as shown in Figure 4H. For example, card 406 can remain in the notification center for 1 hour.
[0241] The electronic device can automatically retract card 406 when it detects that the display duration of card 406 has reached a certain time (e.g., 5 seconds), at which point the electronic device displays the interface shown in Figure 4C. 3D
[0242] Figure 4C shows the video playback interface and capsule 408.
[0243] The content displayed in the video playback interface in Figure 4C may be the same as or different from the content displayed in the video playback interface in Figure 4B. This application embodiment does not limit this.
[0244] Capsule 408 may display: the name 409 of the myopia-friendly function and the logo 410.
[0245] The logo 410 may consist of a capsule icon and a logo for myopia-friendly functions.
[0246] The indicator 410 can be used to indicate that the myopia-friendly function is on, such as the indicator 410 being in one or more states such as bold display, color display, and shadow display.
[0247] It is understandable that even when the myopia-friendly function is turned off, the electronic device can still display the identifier 420 in capsule 408 (not shown in Figure 4C). Compared to identifier 410, identifier 420 can be displayed in bold, color, or shaded states.
[0248] Optionally, in response to a user's click on capsule 408 in Figure 4C, the electronic device may display card 406 in Figure 4B in Figure 4C.
[0249] Optionally, capsule 408 can cancel the display after a certain duration (e.g., 10 seconds), in which case only the video playback interface can be displayed in Figure 4C.
[0250] Optionally, in response to a user's click on an area of card 401 in Figure 4A other than button 405, the electronic device can enter the settings interface for the myopia-friendly function, as shown in Figure 3P.
[0251] After the electronic device activates the myopia-friendly function based on button 405 in Figure 4A, the electronic device can gradually adjust the display content in Figure 4A. For example, by defocusing the image, the image will have blurred edges, thus achieving a defocused visual effect.
[0252] Understandably, electronic devices can typically initiate screen adjustment after activating the myopia-friendly function, gradually adjusting the image until the adjustment period reaches a certain duration (e.g., 5 minutes), at which point the optimal display effect is achieved. After 5 minutes of adjustment, the electronic device can maintain the optimal display effect. For example, the electronic device can simultaneously initiate screen adjustment while displaying Figure 4B, and after 5 minutes of adjustment, the electronic device can sequentially display the interface shown in Figure 4D and the interface shown in Figure 4E.
[0253] Optionally, the electronic device can also directly adjust the image after activating the myopia-friendly function and display the defocused image on the interface. In this case, the electronic device can sequentially display the interface shown in Figure 4D and the interface shown in Figure 4E. In this embodiment, the duration of image adjustment after activating the myopia-friendly function is not limited.
[0254] Optionally, the electronic device may also display Figure 4D or Figure 4E after the image defocusing process is completed.
[0255] Figure 4D shows the video playback interface and capsule 411.
[0256] The content displayed in the video playback interface in Figure 4D may be the same as or different from the content displayed in the video playback interface in Figure 4A. Alternatively, Figure 4D may display any interface other than the video playback interface. This arbitrary interface can be the interface displayed when the electronic device is always running, and no screen lock or screen-off is detected during the operation of the electronic device. The content displayed in Figure 4D is not limited in this embodiment.
[0257] Capsule 411 may include: a logo 412 and a name 413 for the myopia-friendly function.
[0258] Figure 4E shows the video playback interface and capsule 414.
[0259] It is understood that the content displayed in capsule 411 may be the same as the content displayed in capsule 408 in Figure 4C, and this application embodiment does not limit this.
[0260] It is understood that the display order of the contents in any capsule is not limited in the embodiments of this application. For example, the identifier 412 may be displayed on the left side of the capsule 411 and the name 413 may be displayed on the right side of the capsule 411, or the identifier 412 may be displayed on the right side of the capsule 411 and the name 413 may be displayed on the left side of the capsule 411.
[0261] The content displayed in the video playback interface in Figure 4E may be the same as or different from the content displayed in the video playback interface in Figure 4A. This application embodiment does not limit this.
[0262] Capsule 414 may include: a label 415 and a name 416 for the myopia-friendly function. The label 415 may be used to indicate that the screen adjustment process has been completed when the myopia-friendly function is activated.
[0263] It should be noted that electronic devices can use defocus algorithms to process images, achieving a visual defocusing effect. After defocusing, the image on the interface appears with blurred edges, thus shifting the user's visual focus and alleviating nearsightedness.
[0264] Optionally, the electronic device can automatically retract the card 401 when it detects that the display duration of the card 401 in Figure 4A has reached a certain duration (e.g., 5 seconds), at which time the electronic device displays the interface shown in Figure 4F.
[0265] Figure 4F shows the video playback interface and capsule 417.
[0266] The content displayed in the video playback interface in Figure 4F may be the same as or different from the content displayed in the video playback interface in Figure 4A. This application embodiment does not limit this.
[0267] Capsule 417 may include: a name 418 for the myopia-friendly function, and a label 420. The meaning of label 420 can be found in the description in Figure 4C, and will not be repeated here.
[0268] Understandably, Capsule 417 can cancel the display after a duration of up to 10 seconds, at which point only the video playback interface can be displayed in Figure 4F.
[0269] While the electronic device displays Figure 4A, it can also recommend nearsighted-friendly features in the notification center. For example, in response to a user swiping down from the top left corner of the screen in Figure 4A, the electronic device can display the interface shown in Figure 4G.
[0270] Figure 4G shows the notification center interface, which can display card 421. The content displayed in card 421 can be the same as that displayed in card 301, and will not be described again here.
[0271] Card 421 can be retained for 1 hour, meaning it can be kept in Figure 4G for 1 hour. This allows users to activate the myopia-friendly function within 1 hour (as shown in Figure 4A) using card 421 in Figure 4G. Electronic devices can provide users with more ways to enable the myopia-friendly function by storing the card in the notification center, thus improving the user experience.
[0272] Optionally, when the retention time of card 421 is about to end, in response to the user triggering the operation of button 422 on card 421, the electronic device can extend the retention time of card 421 by 1 hour, in which case card 421 can remain in the notification center for 2 hours.
[0273] In response to the user's swipe up from the bottom of the display in Figure 4G, the electronic device can close the notification center and then display capsule 408 in Figure 4C.
[0274] In response to the user's click on button 422 in Figure 4G, the electronic device activates the myopia-friendly function and displays the interface shown in Figure 4H.
[0275] Figure 4H can display card 421 and prompt message 430.
[0276] The card 421 may display the button 423, which is in the "on" state.
[0277] The 430 message can be used to prompt users to check the display effect. For example, the 430 message can be displayed as "Function is enabled. You can go to the Tips and Tricks section to check the display effect".
[0278] In response to the user's swipe left on card 421 in Figure 4H, the electronic device can display a delete button on the right side of card 421, and the user can delete card 421 by clicking the delete button, which is not shown in Figure 4H.
[0279] It should be noted that during any of the processes shown in Figures 4B-4D on the electronic device, when the electronic device detects a user's screen-off operation, it can terminate the screen adjustment under the myopia-friendly function. Furthermore, when the electronic device detects that the screen is on, it can restart the screen adjustment, and complete the myopia-friendly screen adjustment after the screen has been on and the electronic device has been unlocked for up to 5 minutes.
[0280] Optionally, during any of the processes shown in Figures 4B-4D on the electronic device, when the electronic device detects a user's screen-off operation, the electronic device can interrupt the screen adjustment under the myopia-friendly function. Furthermore, when the electronic device detects that the screen is on, the electronic device can continue to adjust the screen, and complete the screen adjustment under the myopia-friendly function after the screen has been on and the electronic device has been unlocked for up to 5 minutes following the detection of the screen being on.
[0281] Referring to the description in Figure 4A, it can be understood that the electronic device can record the time when the myopia-friendly function is recommended, as well as the number of times it is recommended each day. For example, the electronic device can recommend the myopia-friendly function the first time a first preset condition is met within a three-day period. The three-day period can be understood as the first three days of the myopia-friendly function recommendation.
[0282] Understandably, in scenarios where electronic devices cannot recommend myopia-friendly functions, users can activate the myopia-friendly function in the settings interface (as shown in Figure 3P), enabling the electronic device to adjust the screen under myopia-friendly conditions.
[0283] 3. Triggering of prompts 1 and 2 (see Figures 5A-5B and 6A-6B)
[0284] Tip 1 can be understood as a prompt triggered by the electronic device when it completes the screen adjustment under the dry eye-friendly function after the aforementioned dry eye-friendly function is enabled. For example, when the dry eye-friendly function is enabled, the electronic device can complete the screen adjustment under the dry eye-friendly function after 20 minutes and trigger Tip 1. Tip 1 can be presented as capsule 311 in Figure 3D and capsule 314 in Figure 3E.
[0285] Prompt 2 can be understood as a prompt triggered when the electronic device completes the screen adjustment under the myopia-friendly function after the aforementioned myopia-friendly function is enabled. When the myopia-friendly function is enabled, the electronic device can complete the screen adjustment under the myopia-friendly function after 5 minutes and trigger Prompt 2. Prompt 2 can be presented as capsule 411 in Figure 4D and capsule 414 in Figure 4E.
[0286] In one implementation, when the electronic device activates the dry eye-friendly function and the myopia-friendly function, the electronic device can first trigger prompt 1 and then trigger prompt 2.
[0287] As shown in Figure 5A, the electronic device can activate the dry eye-friendly function at time 1 and the myopia-friendly function at time 2. When the dry eye-friendly function has been activated for 20 minutes, prompt 1 is triggered at time 3, indicating the optimal display effect under the dry eye-friendly function. When the myopia-friendly function has been activated for 5 minutes, prompt 2 is triggered at time 4, indicating the optimal display effect under the myopia-friendly function.
[0288] In this scenario, since prompt 1 and prompt 2 are not triggered simultaneously, the electronic device can trigger prompt 1 at time 3, sequentially displaying capsule 311 in Figure 3D and capsule 314 in Figure 3E, and then trigger prompt 2 at time 4, sequentially displaying capsule 411 in Figure 4D and capsule 414 in Figure 4E.
[0289] Understandably, after time 1, the electronic device can adjust the contrast and / or saturation of the image, and after time 2, the electronic device can defocus the image. Therefore, the image after time 2 has both lower contrast (and / or lower saturation) and blurred image edges. Furthermore, the image at time 4 achieves the best display effect under both dry eye-friendly and myopia-friendly conditions.
[0290] In another implementation, when the electronic device activates the dry eye-friendly function and the myopia-friendly function, the electronic device can also trigger prompt 1 and prompt 2 simultaneously (or almost simultaneously).
[0291] As shown in Figure 5B, the electronic device can activate the dry eye-friendly function at time 5 and the myopia-friendly function at time 6, with a duration of 15 minutes between time 5 and time 6. When the dry eye-friendly function has been activated for 20 minutes and the myopia-friendly function has been activated for 5 minutes, the electronic device can simultaneously (or almost simultaneously) trigger prompt 1 and prompt 2 at time 7.
[0292] In this scenario, there may be a small time difference between prompt 1 and prompt 2, which may cause the electronic device to receive prompt 2 before prompt 1 has finished displaying. In this case, the electronic device can provide interface prompts through the following methods 1 and 2.
[0293] Method 1, as shown in Figure 6A, when the electronic device receives prompt 1, it can display capsule 311. If the electronic device receives prompt 2 before prompt 1 is fully displayed, it can sequentially display capsule 411 and then capsule 414. However, since prompt 2 interrupts the display of capsule 314 in prompt 1, the electronic device cannot display capsule 314.
[0294] Understandably, when the electronic device receives prompt 2, it can replace capsule 311 with capsule 411 as shown in Figure 6A. Alternatively, when the electronic device receives prompt 2, it can also stack capsule 411 on top of capsule 311. In this case, the user can see the fully displayed capsule 411 and the edges of capsule 311, with capsules 311 and 411 stacked together. The user can determine that multiple prompts have been received by observing this stacking effect.
[0295] Method 2, as shown in Figure 6B, when the electronic device receives prompt 1, it can display capsule 311. If the electronic device receives prompt 2 before prompt 1 is completed, it can sequentially display capsules 411 and 601, and capsules 414 and 601. However, since prompt 2 interrupts the display of capsule 314 in prompt 1, the electronic device cannot display capsule 314.
[0296] Capsule 601 may include: a label indicating dry eye-friendly function.
[0297] Understandably, electronic devices can display multiple capsules (such as capsule 411 and capsule 601) on the screen via method 2, and store the first received prompts in capsule 601, so that the user can determine the prompt information received by the electronic device through multiple capsules.
[0298] Based on methods 1 and 2, in response to the user's operation of opening the notification center, the electronic device can also view the card corresponding to capsule 311, the card corresponding to capsule 411, and the card corresponding to capsule 414 in the notification center.
[0299] Understandably, after time 5, the electronic device can adjust the contrast and / or saturation of the image, and after time 6, the electronic device can defocus the image. Therefore, the image after time 6 has both lower contrast (and / or lower saturation) and blurred image edges. Furthermore, the image at time 7 achieves the best display effect under both dry eye-friendly and myopia-friendly conditions.
[0300] In conjunction with the description in the embodiments of this application, the comparison diagrams of screen adjustment based on the dry eye-friendly function can be seen in Figures 7A and 7B, and the comparison diagrams of screen adjustment based on the myopia-friendly function can be seen in Figures 7C and 7D.
[0301] Figure 7A shows the image without the dry eye-friendly function, while Figure 7B shows the image after adjustment based on the dry eye-friendly function. The image in Figure 7A has brighter colors, and the sky can be dark (e.g., dark purple). The image in Figure 7B has significantly reduced contrast and / or significantly reduced saturation, and the sky is lighter (e.g., light purple), resulting in a softer image.
[0302] Figure 7C shows the image without the myopia-friendly function, while Figure 7D shows the image after the myopia-friendly function is applied. Compared to the edge areas in Figure 7C (such as the mountain peak indicated by the arrow), the edges in Figure 7D are blurred, and the edges can be a different color than those in Figure 7C (such as purple), making the overall image in Figure 7D more purple and softer.
[0303] It is understood that the images shown in Figures 7A-7D are merely examples and do not constitute a limitation on the embodiments of this application.
[0304] It should be noted that the content displayed in any capsule described in the embodiments of this application is only an example and does not constitute a limitation on the embodiments of this application.
[0305] It should be noted that the interface and the content that can be displayed in the interface provided in this application embodiment are only for illustration and do not constitute a limitation on the embodiments of this application.
[0306] It should be noted that the module names involved in the embodiments of this application can all be defined as other names, as long as they can achieve the function of each module, and no specific restrictions are placed on the module names.
[0307] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the embodiments of this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0308] The interface display method of the embodiments of this application has been described above. The apparatus for executing the above method provided in the embodiments of this application is described below. Those skilled in the art will understand that the methods and apparatus can be combined and referenced with each other, and the related apparatus provided in the embodiments of this application can execute the steps in the above list sorting method.
[0309] Based on the description in Figures 3A-7D above, Figure 8 is a flowchart illustrating an interface display method provided in an embodiment of this application. As shown in Figure 8, the interface display method may include the following steps:
[0310] S801, The electronic device displays the first interface.
[0311] The contrast of the first interface is the first contrast, and the saturation of the first interface is the first saturation.
[0312] The first interface can be any interface displayed in Figure 3A other than card 301, the first contrast can be contrast 2, and the first saturation can be saturation 2.
[0313] S802, The electronic device displays the first prompt on the first interface.
[0314] The first prompt includes a first button, which prompts the user to enable the dry eye-friendly function, which is used to relieve the user's dry eye symptoms.
[0315] The first prompt can be card 301 in Figure 3A, and the first button can be button 305 in card 301.
[0316] S803, In response to the user's operation of the first button, the electronic device begins to adjust the contrast and / or saturation of the interface on the display screen.
[0317] S804. When the duration during which the display screen is detected to be on and the electronic device is in an unlocked state reaches a first duration, the electronic device displays a second interface.
[0318] The contrast of the second interface is called the second contrast, and the saturation of the second interface is called the second saturation, wherein the second contrast is less than the first contrast, and / or the second saturation is less than the first saturation.
[0319] The second interface can be the interface shown in Figure 3D and / or the interface shown in Figure 3E. The second contrast can be a contrast ratio of 1, and the second saturation can be a saturation ratio of 1.
[0320] The first duration can be 20 minutes.
[0321] Based on this, electronic devices can prompt users to activate the dry eye-friendly function through an initial prompt, and when certain conditions are detected, reduce eye irritation during prolonged use of electronic devices by reducing saturation and / or reducing contrast, thereby improving the user experience.
[0322] The interface display method of the embodiments of this application has been described above. The apparatus for executing the above method provided in the embodiments of this application is described below. Those skilled in the art will understand that the methods and apparatus can be combined and referenced with each other, and the related apparatus provided in the embodiments of this application can execute the steps in the above list sorting method.
[0323] Figure 9 is a schematic diagram of the hardware structure of another electronic device provided in an embodiment of this application.
[0324] The electronic device includes a processor 901, a communication line 904, and at least one communication interface (in FIG9, communication interface 903 is used as an example for illustration).
[0325] The processor 901 may be a general-purpose CPU, a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application.
[0326] Communication line 904 may include circuitry for transmitting information between the aforementioned components.
[0327] The communication interface 903 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (WLAN), etc.
[0328] Possibly, the electronic device may also include a memory 902.
[0329] The memory 902 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. The memory may exist independently and be connected to the processor via communication line 904. The memory may also be integrated with the processor.
[0330] The memory 902 stores computer execution instructions for implementing the scheme of this application, and its execution is controlled by the processor 901. The processor 901 executes the computer execution instructions stored in the memory 902 to implement the method provided in the embodiments of this application.
[0331] It is possible that the computer execution instructions in the embodiments of this application may also be referred to as application code, and the embodiments of this application do not specifically limit this.
[0332] In a specific implementation, as one example, processor 901 may include one or more CPUs, such as CPU0 and CPU1 in FIG9.
[0333] In a specific implementation, as one embodiment, the electronic device may include multiple processors, such as processor 901 and processor 905 in FIG. 9. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. Here, a processor may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0334] The interface display method provided in this application can be applied to electronic devices with communication functions. Electronic devices include terminal devices, and the specific device form of the terminal device can be referred to the above-mentioned descriptions, which will not be repeated here.
[0335] This application provides a terminal device, which includes a processor and a memory; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory, causing the terminal device to perform the above-described method.
[0336] This application provides a chip. The chip includes a processor, which is used to call a computer program in memory to execute the technical solutions in the above embodiments. Its implementation principle and technical effects are similar to those in the related embodiments described above, and will not be repeated here.
[0337] This application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, it implements the methods described above. The methods described in the above embodiments can be implemented wholly or partially by software, hardware, firmware, or any combination thereof. If implemented in software, the functionality can be stored as one or more instructions or code on or transmitted over the computer-readable medium. The computer-readable medium can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium accessible by a computer.
[0338] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage or other magnetic storage devices, or any other medium targeted to carry or to store the required program code in the form of instructions or data structures, and accessible by a computer. Furthermore, any connection is appropriately referred to as a computer-readable medium. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. As used herein, disks and optical discs include optical discs, laser discs, optical discs, Digital Versatile Discs (DVDs), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs optically reproduce data using lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0339] This application provides a computer program product, which includes a computer program that, when run, causes a computer to perform the above-described method.
[0340] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, special-purpose computer, embedded processor, or other programmable device to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing device, create means for implementing the functions specified in one or more flowchart illustrations and / or one or more block diagrams.
[0341] The above specific embodiments further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solution of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for displaying an interface, characterized in that, The method is applied to an electronic device including a display screen, and the method includes: The electronic device displays a first interface, the contrast of the first interface is a first contrast ratio, and the saturation of the first interface is a first saturation ratio. The electronic device displays a first prompt on the first interface. The first prompt includes a first button. The first prompt is used to prompt the user to turn on the dry eye-friendly function. The dry eye-friendly function is used to relieve the user's dry eye symptoms. In response to the user's operation of the first button, the electronic device begins to adjust the contrast and / or saturation of the interface on the display screen; When the duration for which the display screen is on and the electronic device is unlocked reaches a first duration, the electronic device displays a second interface. The contrast of the second interface is a second contrast ratio, and the saturation of the second interface is a second saturation ratio. The second contrast ratio is less than the first contrast ratio, and / or the second saturation ratio is less than the first saturation ratio.
2. The method according to claim 1, characterized in that, After the electronic device begins adjusting the contrast and / or saturation of the interface on the display screen, the method further includes: When the duration during which the display screen is detected to be on and the electronic device is in an unlocked state reaches a second duration, the electronic device displays a third interface, where the second duration is shorter than the first duration. Wherein, the contrast of the third interface is a third contrast, the saturation of the third interface is a third saturation, the third contrast is less than the first contrast and the third contrast is greater than the second contrast, and / or, the third saturation is less than the first saturation and the third saturation is greater than the second saturation.
3. The method according to claim 2, characterized in that, After the electronic device displays the third interface, it also includes: When the screen of the electronic device is detected to be off, the adjustment of the saturation and / or contrast of the interface on the display screen is stopped; When the screen of the electronic device is detected to be on, the electronic device displays a fourth interface and begins to adjust the saturation and / or contrast of the interface on the display screen. The contrast of the fourth interface is the first contrast, and the saturation of the fourth interface is the first saturation. When the duration during which the display screen is in a lit state and the electronic device is in an unlocked state reaches the first duration, the electronic device displays a fifth interface, the contrast of the fifth interface being the second contrast, and the saturation of the fifth interface being the second saturation.
4. The method according to claim 2, characterized in that, After the electronic device displays the third interface, it also includes: When the third interface is displayed and a user's screen-off operation on the electronic device is detected, the electronic device turns off its screen in response to the screen-off operation; When the electronic device detects that the screen is on, the electronic device continues to adjust the contrast of the interface on the display screen starting from the third contrast ratio, and / or continues to adjust the saturation of the interface on the display screen starting from the third saturation ratio; The duration during which the display screen is detected to be on and the electronic device is unlocked reaches a certain threshold. During the first duration, the electronic device displays a fifth interface, the contrast of which is the second contrast, and the saturation of which is the second saturation.
5. The method according to any one of claims 1-4, characterized in that, After the electronic device begins adjusting the contrast and / or saturation of the interface on the display screen, the method further includes: When the electronic device detects that the display screen is on and the electronic device is unlocked for a period of time that reaches a third duration, and the number of blinks by the user within the first time period is less than a first threshold, the electronic device displays a sixth interface, wherein the sixth interface includes a second prompt, which is used to prompt the user to blink.
6. The method according to claim 5, characterized in that, When the third duration is greater than the first duration, the contrast of the sixth interface is equal to the contrast of the sixth interface, and / or the saturation of the sixth interface is equal to the saturation of the sixth interface.
7. The method according to claim 5 or 6, characterized in that, Following the display of the sixth interface, the following is also included: Upon receiving an operation in response to the second prompt, the electronic device displays a seventh interface, which includes a third prompt that prompts the user to blink. The third prompt includes a second button that is in an on state. Upon receiving an operation on the second button, the electronic device disables the dry eye-friendly function.
8. The method according to any one of claims 1-7, characterized in that, The second interface also includes a fourth prompt, which is used to prompt you to complete the screen adjustment under the dry eye friendly function.
9. The method according to claim 8, characterized in that, The fourth notification includes the first capsule and the second capsule; The first capsule includes an identifier for the dry eye-friendly function, and the second capsule includes an identifier for indicating the completion of image adjustment under the dry eye-friendly function; The electronic device displays the fourth prompt, including: The electronic device displays a motion effect that switches from the first capsule to the second capsule.
10. The method according to any one of claims 1-9, characterized in that, The electronic device displays a first prompt on the first interface, including: When the electronic device detects that the first preset condition is met, the electronic device displays the first prompt on the first interface. The first preset condition includes one or more of the following: the dry eye-friendly function is turned off, or the screen of the electronic device is on and the electronic device is unlocked for a period of time of a fourth duration within a first time period.
11. The method according to any one of claims 1-10, characterized in that, Following the display of the second interface, the following is also included: The electronic device displays an eighth interface, the contrast of which is the second contrast, and / or the saturation of which is the second saturation.
12. The method according to claim 8 or 9, characterized in that, After the electronic device displays the first interface, it further includes: The electronic device displays a fifth prompt on the first interface. The fifth prompt includes a third button. The fifth prompt is used to indicate that the myopia-friendly function is activated. The myopia-friendly function is used to alleviate the user's myopia symptoms. In response to the user's operation on the third button, the electronic device begins to defocus the interface on the display screen; When the duration of the detection that the display screen is on and the electronic device is unlocked reaches five durations, the electronic device displays a ninth interface, which is the interface displayed after the defocusing process.
13. The method according to claim 12, characterized in that, The ninth interface also includes a sixth prompt, which is used to prompt the completion of the screen adjustment under the myopia-friendly function.
14. The method according to claim 12 or 13, characterized in that, The electronic device displays a fifth prompt on the first interface, including: When the electronic device detects that the second preset condition is met, the electronic device displays the fifth prompt on the first interface. The second preset condition includes: activating the child use mode, which is used to guide the child to use the electronic device reasonably. The second preset condition also includes one or more of the following: the myopia-friendly function is turned off, the screen of the electronic device is on and the electronic device is unlocked for a period of time of a fourth duration within a first time period, the electronic device is running a first preset application in the foreground, or the electronic device is in a dark environment.
15. The method according to claim 13, characterized in that, The sixth prompt includes a third capsule and a fourth capsule. The third capsule includes an indicator of the myopia-friendly function, and the fourth capsule includes an indicator for indicating the completion of image adjustment under the myopia-friendly function. The electronic device displays the sixth prompt, including: The electronic device displays the animation of switching from the third capsule to the fourth capsule.
16. The method according to claim 13 or 15, characterized in that, The fourth prompt is an identifier displayed at the first time point, and the sixth prompt is an identifier displayed at the second time point, where the second time point is later than the first time point, and the difference between the first time point and the second time point is less than a second threshold. The ninth interface does not include the fourth prompt, or the ninth interface includes the fourth prompt and the sixth prompt, wherein the sixth prompt is stacked on the fourth prompt and the sixth prompt does not overlap with the fourth prompt.
17. The method according to any one of claims 1-16, characterized in that, The first prompt may be displayed in one or more of the following forms: card, capsule, or pop-up.
18. An electronic device, characterized in that, The electronic device includes: one or more processors and memory; The memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, the one or more processors invoking the computer instructions to cause the electronic device to perform the method as described in any one of claims 1 to 17.
19. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 17.
20. A computer program product, characterized in that, The computer program product includes computer program code that, when run on an electronic device, causes the electronic device to perform the method as described in any one of claims 1 to 17.
Citation Information
Patent Citations
Screen display method, electronic device and computer storage medium
CN110322858A
Display screen control method, device and equipment and storage medium
CN111739456A
Mobile terminal display adjustment method and device, equipment and medium
CN113504832A
Display control method, electronic equipment, storage medium and chip system
CN117472316A
Screen display parameter adjusting method, graphical interface and electronic equipment
CN117785005A