Function switching method and apparatus, and electronic device

By detecting user operations and dynamically displaying hidden controls, it solves the problem of cumbersome interactive operations on smart watches and other devices, achieves rapid function switching and improves user experience, saves resources and reduces energy consumption.

WO2024222043A1PCT designated stage expired Publication Date: 2024-10-31HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/070853
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-28
Filing Date
2024-01-05
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

When users need to use multiple functions on wearable devices such as smart watches, the interactive operations are cumbersome and time-consuming, resulting in reduced human-computer interaction and the inability to quickly open applications and the inability to quickly provide the functions required by users.

Method used

By detecting the user's operations on device components (such as the crown), the corresponding controls are dynamically displayed and hidden, enabling quick switching and access of functions, reducing user interaction and improving user experience.

Benefits of technology

It simplifies the user operation process, improves human-computer interaction and device playability, saves memory resources and energy consumption, and ensures quick access and use of functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024070853_31102024_PF_FP_ABST
    Figure CN2024070853_31102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of electronic devices. Provided are a function switching method and apparatus, and an electronic device. The method specifically comprises: first, an electronic device displaying a first interface, wherein the first interface is a display interface of a first application; and then, when it is detected that a user initiates a first operation on a first component, in response to the first operation, the electronic device displaying in the first interface a first control that can be used for implementing a first function. Furthermore, in response to an operation initiated by the user on the first control, the electronic device can execute the first function, wherein the first component may be, for example, a crown, and the first operation may be a clockwise rotation operation. In this way, in response to the first operation initiated by the user on the first component, the electronic device can quickly provide the first control to the user, such that the user can implement the first function by means of the first control, thereby meeting usage requirements of the user. Interaction operations of the user are reduced, and the usage experience of the user and the playability of the electronic device are also improved.
Need to check novelty before this filing date? Find Prior Art

Description

Function switching method, device and electronic equipment

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on April 28, 2023, with application number 202310484120.2 and application name “A function switching method, device and electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the technical field of electronic devices, and in particular to a function switching method, device, and electronic device. Background Art

[0003] With the development of wearable device technology, the application of wearable devices such as smart watches and smart bracelets is becoming more and more widespread, and their functions are becoming increasingly rich. Taking smart watches as an example, in addition to displaying time, smart watches also have multiple functions such as timing, taking photos, making calls, sending and receiving messages, navigation, counting steps, and measuring electrocardiograms, blood pressure, and blood sugar. These functions can be realized through the applications installed on the smart watch (hereinafter referred to as "apps").

[0004] However, in related technologies, if a user wants to experience these other functions, they usually need to search for the corresponding application on the smartwatch. This makes the user's interaction cumbersome and time-consuming. This not only reduces human-computer interaction, but also makes it difficult for the smartwatch to quickly open the application to provide the user's desired function.

[0005] Summary of the Invention

[0006] The present application provides a function switching method, apparatus, and electronic device. The function switching method can be applied to an electronic device configured with a first component. The electronic device can, in a display interface displaying a first application, display a control for implementing a first function in response to a user's first operation on the first component, so that the user can initiate an operation on the first control to quickly implement the first function, thereby meeting the user's usage needs. In this way, the user's interactive operations are reduced and the user experience is improved.

[0007] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0008] In a first aspect, a function switching method is provided, which can be applied to an electronic device equipped with a first component. Specifically, the method includes: first, the electronic device displays a first interface, which is a display interface of a first application; then, when the electronic device detects that a user initiates a first operation on the first component, the electronic device displays a first control in the first interface in response to the first operation, and the first control can be used to implement a first function. Furthermore, the electronic device can execute the first function in response to the operation initiated by the user on the first control. The first component can be, for example, a crown, and the first function can be, for example, a timing function, a sports function, a game function, etc. The first operation can be a clockwise rotation operation, or the first condition can also be a counterclockwise rotation operation.

[0009] In this method, when a user needs to use a first function through an electronic device, a first operation can be initiated on the first component. The electronic device can determine whether the user needs to use the first function by detecting the operation initiated by the user on the first component. Moreover, when the first operation is detected, the electronic device can display a first control that can be used to implement the first function. In this way, the electronic device can quickly provide the user with the first control in response to the first operation initiated by the user on the first component, so that the user can implement the first application function through the first control, thereby meeting the user's usage needs. In this way, not only the user's interactive operations are reduced, but also the user's usage experience and the playability of the electronic device are improved.

[0010] In conjunction with the first aspect, in an optional implementation, the program of the first application includes a program for the first function. When the electronic device detects a first operation performed by a user on the first component, the method further includes: the electronic device invoking the program for the first function in response to the first operation. In this implementation, the electronic device may not invoke the program for the first function if it does not detect the first operation. After detecting the first operation, the electronic device invokes the program for the first function to enable the electronic device to provide the first function to the user. This not only conserves the electronic device's memory resources but also reduces energy consumption.

[0011] In conjunction with the first aspect, in an optional implementation, the method further includes: upon detecting a second operation initiated by the user on the first component, the electronic device hides the first control in response to the second operation. The second operation may be a clockwise rotation operation, or the second operation may be a counterclockwise rotation operation. In one example, if the first operation is a clockwise rotation operation, the second operation may be a counterclockwise rotation operation. In another example, if the first operation is a counterclockwise rotation operation, the second operation may be a clockwise rotation operation.

[0012] In this implementation, when the user does not need to use the first function, the second operation can be initiated on the first component. When the electronic device detects the second operation, it can hide the first control. This simplifies the display interface of the electronic device and prevents user error.

[0013] In conjunction with the first aspect, in one optional implementation, the electronic device, in response to a first operation, displays a first control on a first interface, including: the electronic device displays the first control with a first animation effect. In some implementations, the first animation effect includes one or more of the following: fade-in, fade-out, zoom, and fly-in / fly-out. This can improve the smoothness of the electronic device displaying the first control, further enhancing the user experience.

[0014] In conjunction with the first aspect, in an optional implementation, before the electronic device displays the first interface, the method further includes: the electronic device displaying a prompt message, the prompt message being used to remind the user to display the first control by performing a first operation, and / or to hide the first control by performing a second operation. In this way, the electronic device can remind the user that the first control can be displayed or hidden, i.e., the first function can be enabled or disabled, by initiating an operation on the first component, thereby helping the user better understand the functionalities of the electronic device.

[0015] In conjunction with the first aspect, in one optional implementation, the first function may be a timing function. The first control may include one or more of the following: a start control, a reset control, a pause control, a split-timer control, and a display control. The start control is used to start timing, the reset control is used to reset the timer, the pause control is used to provisionally set the timer, the split-timer control is used to continuously perform split-time timing, and the display control is used to display timing information. In this way, the electronic device can provide the user with a variety of options for implementing timing functions through the first control, thereby meeting the user's needs for different timing functions.

[0016] In conjunction with the first aspect, in an optional implementation, when the electronic device is in the screen-off state in the always-on display (AOD) mode, the electronic device can display a second control for displaying timer information. In this way, the electronic device can display the timer to the user even in the screen-off state, meeting the user's usage needs and reducing the power consumption of the electronic device.

[0017] In a second aspect, a function switching device is provided, comprising: a display module and a processing module. The display module may be configured to display a first interface, which is a display interface of a first application. The processing module may be configured to, upon detecting a first user operation on a first component, display a first control on the first interface in response to the first operation, the first control being configured to implement a first function. The processing module may also be configured to execute the first function in response to the user operation on the first control.

[0018] The function switching device can respond to the user's operation on the first component and quickly provide the user with the first control to enable the user to implement the first application function and meet the user's usage needs. In this way, the user's interactive operations are reduced and the user experience is improved.

[0019] In a third aspect, an electronic device is provided, comprising: a memory, one or more processors; the memory is coupled to the processor; wherein computer program code is stored in the memory, and the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the method as described in the first aspect above and any one of its optional methods.

[0020] Specifically, the electronic device may be a smart watch, a bracelet, or other device with a crown or operable physical buttons, and a display screen, wherein the crown or the operable physical buttons are used to be operated by the user (such as rotation, etc.), so that the electronic device displays / hides the corresponding first control on the display screen in response to the user operation.

[0021] In a fourth aspect, a computer-readable storage medium is provided, comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method as described in the first aspect and any one of its optional methods.

[0022] In a fifth aspect, a computer program product is provided, which, when executed on a computer, enables the computer to execute the method according to the first aspect and any one of its optional methods.

[0023] It can be understood that the beneficial effects that can be achieved by the electronic device of the third aspect, the computer-readable storage medium of the fourth aspect, and the computer program product of the fifth aspect can be referred to the beneficial effects of the first aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] FIG1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;

[0025] FIG2 is a schematic diagram of a sliding display interface of an electronic device provided in an embodiment of the present application;

[0026] FIG3 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0027] FIG4 is a schematic diagram of a software structure of an electronic device provided in an embodiment of the present application;

[0028] FIG5 is a schematic diagram of a flow chart of a function switching method provided in an embodiment of the present application;

[0029] FIG6 is a schematic diagram of a smartwatch displaying a first interface according to an embodiment of the present application;

[0030] FIG7 is a schematic diagram of a smartwatch displaying a first control according to an embodiment of the present application;

[0031] FIG8 is a schematic diagram of a dial application setting interface provided in an embodiment of the present application;

[0032] FIG9 is a schematic diagram of a smartwatch displaying prompt information according to an embodiment of the present application;

[0033] FIG10 is a first schematic diagram of a display interface of a smartwatch in AOD mode provided by an embodiment of the present application;

[0034] FIG11 is a second schematic diagram of the display interface of the smartwatch in AOD mode provided by an embodiment of the present application;

[0035] FIG12 is a schematic diagram of the composition of a function switching device provided in an embodiment of the present application;

[0036] FIG13 is a schematic diagram showing the composition of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship. For example, A / B can represent A or B; "and / or" in the present application is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers 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, ac, bc, or abc, where a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit differences. At the same time, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way for easy understanding.

[0038] With the development of wearable device technology, the application of wearable devices such as smart watches and smart bracelets is becoming more and more widespread, and their functions are becoming increasingly rich. Take smart watches as an example. In addition to displaying time, smart watches also have multiple functions such as timing, taking photos, making calls, sending and receiving messages, navigation, counting steps, and measuring electrocardiograms, blood pressure and blood sugar. These functions can be realized through the applications installed on the smart watch.

[0039] However, if a user needs to use the aforementioned functions, such as timing or shooting, while the smartwatch is in the time display interface, they usually need to exit the time display interface, search for and open an application with these functions in the smartwatch's application directory to perform the corresponding function. This makes user interaction cumbersome and time-consuming, not only reducing human-computer interactivity but also preventing the smartwatch from quickly opening applications to provide the functions the user needs.

[0040] An embodiment of the present application provides a function switching method, which can be applied to an electronic device configured with a first component. Specifically, using the method provided by this embodiment, first, the electronic device can display a first interface, which is a display interface of a first application. Then, when the electronic device detects a first operation initiated by the user on the first component, it displays a first control in the first interface, and the first control can be used to implement the first function. Next, the electronic device can also execute the first function in response to the operation initiated by the user on the first control. In this way, the electronic device can display the first control that can be used to implement the first function in response to the first operation initiated by the user on the first component, so that the user can implement the first function by initiating an operation on the first control, thereby meeting the user's usage needs, thereby reducing the user's interactive operations and improving the user's usage experience.

[0041] The first function in the embodiment of the present application includes but is not limited to: timing function, sports function, music playback function, shooting function, heart rate monitoring function, navigation function, game function, etc. The first component includes but is not limited to: crown, button, frame, etc.

[0042] Exemplarily, the above-mentioned electronic devices in the embodiments of the present application may be: wearable devices, mobile phones, personal digital assistants (PDAs), augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (AI) devices, etc.

[0043] Among them, wearable devices include but are not limited to smart watches, smart bracelets, smart anklets, smart glasses, smart helmets, etc. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.

[0044] For example, FIG1 shows a schematic diagram of the structure of an electronic device, which may be a wearable device. Specifically, the electronic device 100 may include a device body 101 and a wearable component 102. The device body 101 includes a display screen 103 and a crown 104. The wearable component 102 is used to fix the device body 101 on the user's body (e.g., wrist).

[0045] It should be noted that the shape of the device body 101 can be circular, square, or other shapes, and this application does not limit this.

[0046] The display screen 103 may be provided on the surface of the device body 101 for displaying information and for displaying other relevant content in response to user touch operations. For example, the display screen 103 may display the time, the battery level of the device body 101, the Bluetooth identifier, received messages, and user exercise data. The display screen 103 may be a touch screen that can receive user touch operations (e.g., click operations, slide operations) and display the corresponding page selected by the user.

[0047] The crown 104 is disposed in an area of ​​the device body 101. For example, the crown 104 can be disposed on the side of the device body 101, and the crown 104 can be pulled out of the device body 101 or inserted into the device body 101. The crown 104 can be mechanical, which means that it can be connected to a sensor for converting the physical movement of the crown into an electrical signal. The crown 104 can have two rotation directions, for example, clockwise and counterclockwise. The crown 104 can also be touch-sensitive, for example, using capacitive touch technology, which can detect whether the user is touching the crown. In addition, the crown 104 can also be shaken in one or more directions or translated along a track that follows the edge of the device body 101 or at least partially surrounds the periphery of the device body 101. In some embodiments, the number of crowns 104 can be one or more, and the visual appearance of the crown 104 can be, but need not necessarily be, similar to the crown of a conventional watch.

[0048] The crown 104 can be used to implement a series of operations such as sliding the display interface in the control display screen 103, switching the display interface, etc.

[0049] For example, FIG2 shows a schematic diagram of a sliding display interface of an electronic device 100. As shown in FIG2(a), a system settings menu list is displayed in the display interface of the display screen 103. As shown in FIG2(b), in response to a clockwise rotation operation of the user on the crown 104, the electronic device 100 can slide the display interface upward, i.e., the system settings menu list slides upward. As shown in FIG2(c), in response to a counterclockwise rotation operation of the user on the crown 104, the electronic device 100 can slide the display interface downward, i.e., the system settings menu list slides downward.

[0050] FIG3 exemplarily shows a schematic diagram of the hardware structure of the electronic device 100 .

[0051] The electronic device 100 may include a processor 110, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a sensor module 180, a button 190, a motor 191, an indicator 192, a display 194, and a crown 195. The sensor module 180 may include a rotation sensor 180A.

[0052] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0053] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0054] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0055] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0056] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as augmented reality devices.

[0057] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0058] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0059] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0060] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0061] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0062] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0063] Display screen 194 is used to display images, videos, etc. In this embodiment, display screen 194 may be display screen 101 shown in FIG. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.

[0064] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0065] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, and the application processor.

[0066] Sensor module 180 may include a rotation sensor 180A, which can be used to detect the rotation angle of crown 195. Rotation sensor 180A can be any type of rotation sensor, such as an optical sensor, an encoder, a Honey effect sensor, a resolver, or any other suitable sensor that can detect the rotational motion of crown 195. In some embodiments, a crown shaft connected to crown 195 has grooves, teeth, or optical features detectable by an optical sensor. The optical sensor can determine the rotation angle, rotation direction, rotational acceleration, etc. of crown 195 based on the detected grooves, teeth, or optical features.

[0067] The rotation sensor 180A can detect various information about the rotational motion of the crown 195, including rotation speed, rotation direction, rotation acceleration, etc. The electronic device 100 can implement different functions in response to detecting the above information. For example, the user rotates the crown 195, thereby driving the crown shaft to rotate. In some embodiments, the rotation sensor 180A can be an encoder. At least one opening is formed on the crown shaft at a predetermined interval. The encoder includes a light source generating end and a light source receiving end. The light source generating end emits laser. When the crown shaft rotates, part of the laser emitted by the light source generating end can be received by the light source receiving end, and part is not received by the light source receiving end. Then, a light pulse can be formed at the light source receiving end. The pulsed light irradiates the light source receiving end to form an electrical pulse signal. The light source receiving end can input the electrical pulse information into the processor. The processor can determine the rotation angle, rotation speed, rotation acceleration and other rotational motion information of the crown shaft based on the light pulse signal. In the embodiment of the present application, the type of encoder is not limited. The encoder can be any type of suitable encoder that detects the rotational motion of the crown shaft.

[0068] In some embodiments, rotation sensor 180A may be a reflective optical sensor. This sensor measures the rotation angle of the crown shaft by placing a reflective mark on the crown shaft to which crown 195 is attached and then obtaining a light reflection signal. The reflective optical sensor's light source emits light toward the crown shaft. When the crown shaft rotates, the reflectivity of the reflective mark changes, thereby detecting the rotation angle of the crown shaft. If rotation sensor 180A is a reflective optical sensor, it can also detect radial deviation of the crown shaft. This radial deviation can be used by the electronic device to determine that the user is contacting and rotating crown 195.

[0069] The sensor module 180 may also include a touch sensor, a pressure sensor, a vibration sensor, a motion sensor (also referred to as an inertial sensor, such as a gyroscope, an accelerometer, a speed sensor, etc.), a position sensor, a temperature sensor, and the like.

[0070] It should be understood that in the embodiment of the present application, there is no limitation on the type of sensors included in the sensor module 180, and the sensor module may include more or fewer sensors.

[0071] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.

[0072] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts and can also be used for touch vibration feedback.

[0073] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.

[0074] In some embodiments, taking the crown 195 as the first component as an example, when implementing the function switching method in the embodiment of the present application based on the electronic device 100 shown in Figure 3, the electronic device can display a first interface through the display screen 194, and the first interface is the display interface of the first application. Then, the processor 110 of the electronic device can detect whether the user has initiated a first operation on the crown 195 through the rotation sensor 180A. When the first operation initiated by the user on the crown 195 is detected, the electronic device can display a first control through the display screen 194, and the first control can be used to implement the first function. In this way, the electronic device can quickly provide the first function to the user.

[0075] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present application, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.

[0076] FIG4 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application.

[0077] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

[0078] The application layer can include a series of application packages.

[0079] As shown in FIG4 , the application package may include short message applications, video applications, game applications, etc. Specifically, for example, camera, gallery, calendar, call, WLAN, Bluetooth, music, video, short message and other applications.

[0080] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0081] As shown in FIG4 , the application framework layer may include: a dial module, a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0082] The dial module is used to display the first interface and detect the rotation state of the crown. When it is detected that the rotation state of the crown meets the first condition, the second interface is displayed.

[0083] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.

[0084] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0085] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.

[0086] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).

[0087] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0088] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.

[0089] Android Runtime includes core libraries and a virtual machine. Android Runtime is responsible for scheduling and management of the Android system.

[0090] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.

[0091] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0092] The system library can include multiple functional modules, such as the surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), screen projection module, etc.

[0093] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0094] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0095] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0096] A 2D graphics engine is a drawing engine for 2D drawings.

[0097] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, sensor driver, etc., which are not limited in this embodiment of the present application.

[0098] The following describes the function switching method provided in an embodiment of the present application, taking the electronic device as a smart watch, the first application as a dial application, and the first function as a timing function as an example. The smart watch may have the structure shown in Figures 2, 3, and 4 above. Specifically, Figure 5 is a flow chart of the function switching method provided in an embodiment of the present application. As shown in Figure 5, the method may include the following steps S101-S105:

[0099] S101. The smart watch displays a first interface, which is a display interface of a first application.

[0100] Specifically, when the first application is a watch face application, the first interface may be a display interface of the watch face application.

[0101] In one implementation, the first interface may include a current time display area. For example, FIG6 is a schematic diagram of the first interface provided in an embodiment of the present application. As shown in FIG6(a), the first interface 601 includes a current time display area, which may specifically include: a scale value 611 of the current time (e.g., a scale value of a 12-hour system), an hour hand pointer 612 of the current time, a minute hand pointer 613 of the current time, a second hand dial 614 of the current time, and a second hand pointer 615 of the current time.

[0102] In another implementation, the first interface may also include a stopwatch timing display area. For example, as shown in FIG6(b), the first interface 601 may also include a stopwatch timing display area, which may specifically include: a stopwatch timing hour dial 621, a stopwatch timing hour hand 622, a stopwatch timing minute dial 623, a stopwatch timing minute hand 624, a stopwatch timing second hand 625, and a segment hand 626. In this way, the smartwatch can prompt the user that the dial application is configured with a timing function, so that the user can use the timing function when needed.

[0103] In some embodiments, the watch face application program may include a program capable of implementing a timing function (hereinafter referred to as a timing program). When the smartwatch displays the first interface, the timing program is in an uncalled state, for example, the timing program may be in a ready state.

[0104] S102: The smart watch detects an operation initiated by a user on the first component.

[0105] In an embodiment of the present application, the first component may be, for example, a crown, a button, or a frame of a smart watch. The operation initiated by the user on the first component may be, for example, a rotation operation on the crown, a pressing operation on the button (such as a single pressing operation, continuous multiple pressing operations, etc.), or a tapping operation on the frame (such as a single tapping operation, continuous multiple tapping operations, etc.).

[0106] The following description will be made by taking the first component as a crown and the operation initiated by the user on the crown as a rotation operation as an example.

[0107] In some application scenarios, when the user needs to use the timing function, they can rotate the crown to meet the conditions (such as the first operation described below) to initiate a command to the smartwatch to use the timing function. In this way, the smartwatch can determine whether the user needs to use the timing function by detecting the user's rotation operation on the crown.

[0108] In some embodiments, the smartwatch can detect whether the user has initiated a rotation operation on the crown by detecting the rotation state of the crown. The rotation state of the crown refers to the physical rotation state of the crown, specifically the physical rotation state of the crown shaft. Exemplarily, the rotation state of the crown can include: clockwise rotation or counterclockwise rotation.

[0109] In one implementation, using the hardware structure diagram shown in FIG3 as an example, the smartwatch can detect the rotation state of the crown using rotation sensor 180A. For example, if rotation sensor 180A is an optical sensor, the optical sensor can detect the rotation direction of the crown shaft connected to the crown, thereby allowing the smartwatch to determine the rotation state of the crown based on the rotation direction.

[0110] S103: When the smart watch detects a first operation initiated by the user on the first component, the smart watch displays a first control in the first interface in response to the first operation.

[0111] In the embodiment of the present application, the first operation may be a clockwise rotation operation or a counterclockwise rotation operation. The first operation may be pre-set in the smartwatch, or may be set by the smartwatch in response to a user setting the first operation. This application does not specifically limit this.

[0112] In some embodiments, when the program of the dial application includes a timing program, when the smart watch detects a first operation initiated by the user on the first component, in response to the first operation, the timing program can be called into the memory and executed to realize the timing function.

[0113] Furthermore, after executing the timing program, the smartwatch can display a first control in the first interface. Furthermore, the smartwatch can monitor and respond to user operations on the first control, so that the user can use the first control to implement the timing function. Thus, when the user needs to use the timing function, they can perform a first operation on the crown (e.g., rotating it clockwise) to trigger the smartwatch to quickly display the first control that enables the timing function, thereby providing the user with the timing function and improving the user experience.

[0114] In some embodiments, the first control may include a control capable of implementing a timing function. For example, the first control may include a start control and / or a reset control. The start control may be used to start timing (e.g., starting timing for the first time and continuing timing in a paused state), and the reset control may be used to reset (clear) the timing time to facilitate restarting the timing.

[0115] After starting the timing, in order to enable the smartwatch to provide more timing functions, the first control may further include: a pause control and / or a segmented timing control. The pause control may be used to pause the current timing, and the segmented timing control may be used to continuously perform multiple (multi-segment) timings.

[0116] For example, FIG7 is a schematic diagram of a smartwatch displaying a first control according to an embodiment of the present application, taking the first interface shown in FIG6(b) as an example. As shown in FIG7(a), the smartwatch displays a first interface 701. When the smartwatch detects a first operation initiated by a user on a first component while displaying the first interface 701, as shown in FIG7(b), the smartwatch may display a first control in the first interface 701, which may include, for example, a start control 7011 and a reset control 7012.

[0117] When the user starts the timer by clicking the start control 7011, as shown in FIG7(c), the smartwatch can replace the start control 7011 and the reset control 7012 with the pause control 7013 and the segmented timer control 7014. For example, the smartwatch can replace the start control 7011 with the pause control 7013 and the reset control 7012 with the segmented timer control 7014. Alternatively, the smartwatch can replace the start control 7011 with the segmented timer control 7014 and the reset control 7012 with the pause control 7013. This application does not specifically limit the corresponding relationship of the control replacement.

[0118] In another implementation, when the smartwatch displays the pause control 7013 and the split timer control 7014, after the user pauses the current timing by clicking the pause control 7013, as shown in FIG7(d), the smartwatch can replace the pause control 7013 and the split timer control 7014 with the start control 7011 and the reset control 7012. This allows the user to resume the timing in the paused state or perform a reset operation.

[0119] In some embodiments, to display the timed time in real time to the user and improve the user experience, the first control may further include a display control that can be used to display the timed time. As shown in (b), (c), and (d) of Figure 7, the first interface 701 may further include a display control 7015 that can be used to display the current timed time.

[0120] In some embodiments, when a user uses the split timing control to perform split timing, in one example, the display control can also display the time of each segment. In another example, as shown in FIG7(c), the display control 7015 can also display the current time and the time of the previous segment. In this way, the smartwatch can display the split timing while improving the simplicity of the display control in displaying the timing time.

[0121] In some embodiments, the smartwatch may also display a stopwatch timing display area on the first interface. Specifically, the stopwatch timing display area may refer to the stopwatch timing display area shown in FIG. 6(b) . Furthermore, to facilitate the user's intuitive understanding of the changing state of the seconds counted on the smartwatch, the stopwatch timing display area may also include a scale value for the seconds counted (e.g., a 60-second scale value) to enhance the user experience.

[0122] In one implementation, when the first interface includes a current time display area and a stopwatch timing display area, the smart watch can add a first control in the first interface and replace the scale value of the current time in the first interface with the second scale value of the stopwatch timing.

[0123] In another implementation, when the first interface includes a current time display area, the smart watch can replace the current time display area with a stopwatch timing display area in the first interface and add a first control in the first interface.

[0124] In some embodiments, to improve the smoothness of displaying the first control on the smartwatch, the smartwatch may display the first control with a first animation effect, wherein the first animation effect is one or more of the following: fade-in, zoom, and fly-in.

[0125] In one implementation, the smart watch can add display content (such as a first control) with a first motion effect, delete display content (such as the current time display area), and replace display content (such as replacing the current time scale value with the second scale value of the stopwatch timing), etc.

[0126] For example, if the first interface includes a current time display area, the smartwatch may gradually hide the current time display area until it disappears, and then gradually reveal the stopwatch timing display area until it is fully displayed. Simultaneously, the smartwatch may also gradually display first controls (such as the aforementioned start control, reset control, etc.) in the first interface.

[0127] S104: The smart watch executes the first function in response to the operation initiated by the user on the first control.

[0128] Furthermore, after the smart watch displays the first control, the smart watch may execute a timing function corresponding to the first control in response to an operation initiated by the user on the first control.

[0129] Specifically, taking the display interface of the smartwatch shown in FIG7 as an example, as shown in FIG7(b), the display interface of the smartwatch includes a start control 7011 and a reset control 7012. When the user needs to start the timer, they can initiate a click operation on the start control 7011. In response to the user's click operation on the start control 7011, the smartwatch starts the timer and can display the current timer time in real time in the display control 7015.

[0130] At the same time, after the smartwatch starts timing, as shown in Figure 7(c), the smartwatch can replace the start control 7011 with the pause control 7013, and the reset control 7012 with the split timing control 7014. When the user needs to start split timing, they can initiate a click operation on the split timing control 7014. In response to the user's click operation on the split timing control 7014, the smartwatch starts the split timing. In addition, the split timing time can be displayed in the display control 7015.

[0131] When the user needs to pause the timer, they can initiate a click operation on the pause control 7013. The smartwatch pauses the timer in response to the user's click operation on the pause control 7013. At the same time, after the smartwatch pauses the timer, as shown in FIG7(d), the smartwatch can replace the pause control 7013 with the start control 7011 and the segmented timer control 7014 with the reset control 7012.

[0132] When the user needs to continue timing, they can initiate a click operation on the start control 7011. The smartwatch responds to the user's click operation on the start control 7011 and continues timing. When the user needs to reset the timing, they can initiate a click operation on the reset control 7012. The smartwatch responds to the user's click operation on the reset control 7012 and resets the timing so that the next timing can be started.

[0133] S105: When the smart watch detects a second operation initiated by the user on the first component, the smart watch hides the first control in response to the second operation.

[0134] In an embodiment of the present application, after the smartwatch displays the first control, the user's operation on the first component can continue to be detected. Continuing with the example of the first component being a crown and the user's operation on the crown being a rotation operation.

[0135] The smartwatch can detect whether the user has initiated a second operation on the crown by detecting the rotation state of the crown. If the second operation initiated by the user on the crown is detected, the smartwatch can hide the first control in response to the second operation.

[0136] In some embodiments, the smartwatch may stop executing the timing program and hide the first control in response to the second operation. Furthermore, the smartwatch may clear the timing program called in the memory to save memory space resources of the smartwatch.

[0137] In this way, when the user does not need to use the timing function (i.e., needs to turn off the timing function), the user can initiate a second operation on the crown, thereby triggering the smart watch to quickly hide the first control to display a simpler first interface to the user. In addition, it can also prevent the user from accidentally operating (accidentally clicking) the first control when the timing function is not needed, thereby improving the user experience.

[0138] The second operation may be a clockwise rotation operation or a counterclockwise rotation operation. Specifically, if the first operation is a clockwise rotation operation, the second operation may be a counterclockwise rotation operation. If the first operation is a counterclockwise rotation operation, the second operation may be a clockwise rotation operation. The second operation may be pre-set in the smartwatch, or may be set by the smartwatch in response to a user's setting operation for the second operation. This application does not specifically limit this.

[0139] In some embodiments, to improve the smoothness of hiding the first control on the smartwatch, the smartwatch can hide the first control with a second animation. The second animation can be one or more of the following: fade-in, fade-out, zoom, or fly-in / fly-out. The second animation can be the same as or different from the first animation. Specifically, the implementation of the second animation can refer to the implementation of the first special effect described above and is not detailed here.

[0140] In some embodiments, to prevent the smartwatch from hiding the first control due to a user's accidental operation of the crown while the smartwatch is timing, thus causing timing failure, after the smartwatch responds to the user's click on the start control and starts timing, that is, when the smartwatch is timing, it may not detect the user's operation on the crown, that is, it may not detect the rotation state of the crown. Alternatively, if it detects that the rotation state of the crown meets the second condition, the first control may not be hidden. This ensures that the smartwatch accurately performs its timing function.

[0141] In some embodiments, when the smartwatch displays the first control and is in an untimed state, for example, the smartwatch is in a time reset state, or the smartwatch is in a paused time state, etc. If the time the smartwatch is in the untimed state reaches a time threshold (for example, 2 minutes), that is, the time the user has not initiated an operation on the smartwatch reaches the time threshold, the smartwatch can reset the time that has been counted and hide the first control. Among them, the user not initiating an operation on the smartwatch may include: the user not initiating a click operation on the first control, or the user not initiating a rotation operation on the crown. In this way, when the user has no use demand and has not operated the smartphone for a time that reaches the time threshold, the smartwatch can hide the first control, which can further prevent the user from making an erroneous operation.

[0142] In some embodiments, the first interface displayed by the smart watch in S101 may be a display interface of a first application preset in the smart watch, that is, a display interface of a dial application preset in the smart watch.

[0143] In some embodiments, the first application may also be determined by the smartwatch in response to a setup operation initiated by the user. Specifically, the smartwatch may be pre-set with multiple first applications, such as multiple watch face applications. The user may determine a watch face application as needed and initiate a setup operation corresponding to the watch face application to the smartwatch. The smartwatch then receives the user's setup operation, determines the watch face application, and displays the display interface corresponding to the watch face application, i.e., the first interface.

[0144] For example, FIG8 is a schematic diagram of a watch face application setting interface provided in an embodiment of the present application. As shown in FIG8 , a smartwatch may provide a watch face application setting interface. The watch face application setting interface of the smartwatch displays multiple watch face applications in thumbnail form, such as a stopwatch watch face application 801 with a timing function, a sports watch face application 802 with a pedometer function, and a game watch face application 803 with a game function. When the first function is the timing function, the user can click the display area of ​​the stopwatch watch face application 801 to initiate a setting operation for selecting the timing function on the smartwatch, so that the smartwatch can display the display interface corresponding to the stopwatch watch face application.

[0145] In some embodiments, after the user initiates a setting operation and before the smart watch displays the first interface, the smart watch may display a prompt message, which may be used to remind the user that the first control (or first function) can be displayed by performing the first operation, and / or that the first control (or first function) can be hidden by performing the second operation.

[0146] FIG9 is a schematic diagram of a smartwatch displaying prompt information provided by an embodiment of the present application. As shown in FIG9 , taking the example of a user selecting a stopwatch dial with a timing function, the smartwatch may display prompt information 901 in the display interface. The content of prompt information 901 may be: Turn the crown clockwise to display the timing function, and turn the crown counterclockwise to hide the timing function. Alternatively, the content of prompt information 901 may also be: Turn the crown clockwise to display the timing control, and turn the crown counterclockwise to hide the timing control. In this way, the user can be reminded that the timing control (or timing function) can be used or hidden by turning the crown.

[0147] In some embodiments, the smartwatch may continue to display the prompt until the user confirms the action, and then display the first interface. In this way, the smartwatch can ensure that the user views the prompt and knows that the first control can be displayed or hidden by rotating the crown.

[0148] For example, referring to FIG9 , the user can also click the “Done” control 902 to initiate a confirmation operation on the smartwatch. The “Done” control is an example name. The present application embodiment does not limit the naming of this control, and it can also be replaced with names with the same or similar functions such as “Confirm” or “Receive”.

[0149] In some embodiments, the smart watch may also have an always on display (AOD) function, that is, the smart watch supports AOD mode. Specifically, the smart watch may include: a screen-on state and a screen-off state in the AOD mode. Among them, the screen-on state is the working state of the smart watch, that is, the display screen of the smart watch remains always on. The screen-on state can be the sleep state of the smart watch (or the lock screen state), that is, part of the display screen of the smart watch remains always on to display target information (such as time, notification information, etc.). In this way, not only can the smart watch realize the AOD function, but also the power consumption of the smart watch can be reduced.

[0150] In one implementation, when the smart watch is in a bright screen state and displays the first interface, exemplarily, Figure 10 is a schematic diagram 1 of the display interface of the smart watch in AOD mode provided by an embodiment of the present application, as shown in (a) in Figure 10, similar to the first interface displayed in (b) in Figure 6, the first interface 1001 displayed by the smart watch includes: the scale value of the current time, the hour hand pointer of the current time, the minute hand pointer of the current time, the second hand dial of the current time, the second hand pointer of the current time, the hour dial of the stopwatch timing, the hour pointer of the stopwatch timing, the minute dial of the stopwatch timing, the minute pointer of the stopwatch timing and the second pointer of the stopwatch timing.

[0151] When the screen is off, the smartwatch can display a second interface. As shown in FIG10( b), the second interface 1002 displayed on the smartwatch includes: a scale value 1011 for the current time, an hour hand 1010 for the current time, and a minute hand 1013 for the current time. Furthermore, the background area of ​​the second interface 1002 is dark (e.g., black), while the display areas for the scale value 1011 for the current time, the hour hand 1012 for the current time, and the minute hand 1013 for the current time are bright (e.g., white). This reduces the power consumption of the smartwatch in AOD mode.

[0152] In another implementation, when the smart watch is in a bright screen state and the first control is displayed in the first interface, and the smart watch executes a corresponding timing function in response to an operation initiated by the user on the first control.

[0153] Exemplarily, Figure 11 is a second schematic diagram of the display interface of the smart watch in AOD mode provided by an embodiment of the present application. As shown in Figure 11 (a), the smart watch is in an unstarted timing state (i.e., a timing time reset state) under the first interface 1101 displaying the first control. As shown in Figure 11 (b), the smart watch is in a paused timing state under the first interface 1101 displaying the first control. As shown in Figure 11 (c), the smart watch is in a timing state, etc. under the first interface 1101 displaying the first control. As shown in Figure 11 (d), the smart watch can display a second interface 1102 in the off-screen state. Among them, the second interface 1102 may include at least a second control 11021, and the second control 11021 is used to display information.

[0154] Thus, when the smartwatch is in the unstarted timing state shown in FIG11 (a) and the paused timing state shown in FIG11 (b), in one implementation, the second control can prompt the user that the smartwatch is currently in the timing function state by displaying timing time information. In another implementation, the second control can prompt the user that the smartwatch is currently in the timing function state by displaying a timing icon. In another implementation, the second control can also prompt the user by displaying text information such as "timing function". This application does not specifically limit the content of the text information displayed by the second control.

[0155] When the smart watch is in the timing state shown in (c) in Figure 11, the timing time information can be displayed in the second control, so that the smart watch can display the timing time information to the user even in the screen-off state, which not only meets the user's usage needs but also reduces the power consumption of the electronic device.

[0156] In some embodiments, the rule for displaying the timing information of the second control may be: if the current timing time ab:cd:ef is less than 1 hour, then "<cd+1 minute" is displayed. If the current timing time ab:cd:ef is greater than or equal to 1 hour, then "<ab hours cd+1 minute" is displayed. Wherein, ab is used to represent the hours of the current timing time, cd is used to represent the minutes of the current timing time, and ef is used to represent the seconds of the current timing time. In this way, the timing information displayed by the smart watch in the screen-off state can be simplified, further reducing the power consumption of the electronic device.

[0157] In one example, as shown in (c) of FIG11 , taking the current timing time 00:02:36 displayed in the first interface 1101 of the smart watch as an example, as shown in (d) of FIG11 , the smart watch displays the second interface 1102 in the screen-off state, and displays the timing time as "<3 minutes" through the second control 11021.

[0158] In another example, taking the current timing time 01:51:18 displayed in the display interface of the smart watch as an example, the smart watch displays a second interface in the screen-off state, and displays the timing time as "<1 hour 52 minutes" through the second control.

[0159] In some embodiments, the electronic device is a smart watch, the first component is a crown, the first application is a dial application, and the first function is a game function. The function switching method provided in the embodiment of the present application may include:

[0160] First, the smartwatch displays a first interface, which may be a display interface of a dial application. The dial application program may include a program capable of implementing a game function (hereinafter referred to as a game program).

[0161] Then, the smartwatch detects an operation initiated by the user on the crown. When the smartwatch detects a clockwise rotation operation initiated by the user on the crown, in response to the clockwise rotation operation, the smartwatch calls and executes the game program and displays a first control in the first interface. The first control can be used to implement game functions. Exemplarily, the first control may include: a start control, an exit control, a pause control, and a movement control. Among them, the start control can be used to start the game, the exit control can be used to exit the game, the pause control can be used to pause the game, and the movement control can be used to control the movement of the target object in the game. The movement control may include, for example, an upward movement control, a downward movement control, a leftward movement control, a rightward movement control, and a joystick control.

[0162] Then, the smartwatch executes the game function corresponding to the first control in response to the user's operation on the first control. For example, the smartwatch can start a game in response to the user clicking the start control. The smartwatch can control the target object in the game to move upward in response to the user clicking the move up control.

[0163] In this way, the smart watch can respond to the user's clockwise rotation operation on the crown and quickly provide the user with a first control that can realize the game function. Then, the smart watch can realize the game function in response to the user's operation on the above-mentioned first control, thereby improving the playability of the smart watch and the user experience.

[0164] Furthermore, when the smartwatch detects a counterclockwise rotation operation initiated by the user on the crown, the smartwatch stops executing the game program and hides the first control in response to the counterclockwise rotation operation. This simplifies the first interface displayed on the smartwatch and prevents user misoperation.

[0165] In some embodiments, the electronic device is a smart watch, the first component is a watch frame, the first application is an album application, the first function is an editing function, the first operation is a single tap operation, and the second operation is a double tap operation (hereinafter referred to as a double tap operation) as an example. The function switching method provided in the embodiment of the present application may include:

[0166] First, the smartwatch displays a first interface, which may be a display interface of an album application. The watch face application program may include a program capable of implementing an editing function (hereinafter referred to as an editing program).

[0167] Then, the smartwatch detects an operation initiated by the user on the watch frame. When the smartwatch detects that the user has initiated a single tap operation on the watch frame, in response to the single tap operation, the smartwatch calls and executes the editing program and displays the first control in the first interface. The first control can be used to implement the editing function. Exemplarily, the first control may include: a cropping control, a rotation control, a brush control, and an erase control. Among them, the cropping control can be used to crop a picture, the rotation control can be used to rotate the direction of the picture, the brush control can be used to draw in the picture, and the erase control can be used to erase the drawing generated by the brush control.

[0168] Then, the smartwatch executes the editing function corresponding to the first control in response to the user's operation on the first control. For example, the smartwatch can rotate an image in response to a user clicking on a rotation control. In response to a user clicking and sliding on an erase control, the smartwatch can clear the drawing along the sliding path.

[0169] In this way, the smart watch can respond to a single tap operation initiated by the user on the watch frame and quickly provide the user with a first control that can realize the editing function. Then, the smart watch can realize the editing function of the picture in response to the user's operation of the above-mentioned first control, thereby improving the playability of the smart watch and the user experience.

[0170] Furthermore, when the smartwatch detects that the user initiates a double-click operation on the watch frame, in response to the double-click operation, the editing program is stopped and the first control is hidden. In this way, the first interface displayed on the smartwatch can be simplified and the user's misoperation can be prevented.

[0171] As can be seen, using the technical solutions provided by the above embodiments, the smartwatch can determine whether the user needs to use the first function by detecting the user's operation on the first component. When the user is detected to have initiated the first operation on the first component, the smartwatch can display the first control for implementing the first function. In this way, the smartwatch can respond to the first operation initiated by the user on the first component and quickly provide the user with the first control, enabling the user to implement the first application function, thereby meeting the user's usage needs. This not only reduces the user's interactive operations but also improves the user experience and the playability of the smartwatch.

[0172] Furthermore, when the smartwatch detects that the user initiates the second operation on the first component, the smartwatch can hide the first control for implementing the first function. In this way, the display interface of the smartwatch can be simplified and the user's misoperation can be prevented.

[0173] It is understandable that the above-mentioned electronic device (such as the above-mentioned smart watch) includes a hardware structure and / or software module for performing each function in order to realize the above-mentioned functions. It should be easily appreciated by those skilled in the art that, in combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0174] In the embodiment of the present application, the functional modules of the electronic device can be grouped according to the above method example. For example, each functional module can be grouped according to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the grouping of modules in the embodiment of the present application is schematic and is only a logical functional grouping. In actual implementation, there may be other grouping methods.

[0175] An embodiment of the present application also provides a function switching device, which can be the above-mentioned electronic device (for example, a smart watch), or a chip in the electronic device, or a system on a chip. The function switching device can be used to execute the functions of the smart watch involved in the above-mentioned embodiments.

[0176] As one possible implementation, as shown in FIG12 , a function switching device 200 may include a display module 201 and a processing module 202. Specifically, the display module 201 may be configured to display a first interface, which is the display interface of a first application. The processing module 202 may be configured to, upon detecting a first user operation on a first component, display a first control on the first interface in response to the first operation. The first control may be configured to implement a first function. The processing module 202 may also be configured to execute the first function in response to the user operation on the first control.

[0177] An embodiment of the present application further provides an electronic device, which may include: a display screen, a memory, and one or more processors. The display screen, the memory, and the processor are coupled. The memory is used to store computer program code, which includes computer instructions. When the processor executes the computer instructions, the electronic device can perform the various functions or steps performed by the smartwatch in the above-mentioned method embodiment. Of course, the electronic device includes but is not limited to the above-mentioned display screen, the memory, and the one or more processors.

[0178] The embodiment of the present application also provides a chip system, which can be applied to the electronic device in the aforementioned embodiment. As shown in Figure 13, the chip system includes at least one processor 301 and at least one interface circuit 302. The processor 301 can be the processor in the above-mentioned electronic device. The processor 301 and the interface circuit 302 can be interconnected through a line. The processor 301 can receive and execute computer instructions from the memory of the above-mentioned electronic device through the interface circuit 302. When the computer instructions are executed by the processor 301, the electronic device can execute the various steps executed by the smart watch in the above-mentioned embodiment. Of course, the chip system can also include other discrete components, which are not specifically limited in the embodiment of the present application.

[0179] An embodiment of the present application also provides a computer-readable storage medium for storing computer instructions executed by the above-mentioned electronic device (such as a smart watch).

[0180] An embodiment of the present application also provides a computer program product, including computer instructions executed by the above-mentioned electronic device (such as a smart watch).

[0181] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0182] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0183] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0184] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0185] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0186] The above content is only a specific embodiment of this application, but the scope of protection of this application is not limited to this. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A function switching method, characterized in that: Applied to an electronic device equipped with a first component, the method includes: Displaying a first interface, where the first interface is a display interface of a first application; In the case of detecting that the user initiates a first operation on the first component, in response to the first operation, displaying a first control in the first interface, where the first control is used to implement a first function; In response to an operation initiated by a user on the first control, the first function is executed.

2. The method according to claim 1, characterized in that The program of the first application includes a program of the first function; In the case where a first operation of the user on the first component is detected, the method further includes: In response to the first operation, a procedure of the first function is called.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: When it is detected that the user initiates a second operation on the first component, the first control is hidden in response to the second operation.

4. The method according to claim 3, characterized in that The first operation is a clockwise rotation operation, and the second operation is a counterclockwise rotation operation; Alternatively, the first operation is a counterclockwise rotation operation, and the second operation is a clockwise rotation operation.

5. The method according to any one of claims 1 to 4, characterized in that: The step of displaying a first control in the first interface in response to the first operation includes: The first control is displayed with a first animation effect.

6. The method according to claim 5, characterized in that The first motion effect includes one or more of the following motion effects: fade in and fade out, zoom in and zoom out, and fly in and fly out.

7. The method according to any one of claims 1 to 6, characterized in that: Before displaying the first interface, the method further includes: Prompt information is displayed, where the prompt information is used to remind the user to display the first control by performing the first operation, and / or to hide the first control by performing the second operation.

8. The method according to any one of claims 1 to 7, characterized in that: The first function is a timing function; The first control includes one or more of the following: a start control, a reset control, a pause control, a segment timing control, and a display control; Among them, the start control is used to start timing, the reset control is used to reset the timing time, the pause control is used to temporarily stop timing, the segment timing control is used to continuously perform segment timing, and the display control is used to display timing time information.

9. The method according to claim 8, characterized in that When the electronic device is in the screen-off state in the always-on display AOD mode, a second control is displayed, and the second control is used to display timing time information.

10. A function switching device, characterized in that: The device comprises: a display module and a processing module; The display module is used to display a first interface, where the first interface is a display interface of a first application; The processing module is configured to, when detecting that a user initiates a first operation on the first component, display a first control in the first interface in response to the first operation, wherein the first control is used to implement a first function; The processing module is further configured to execute the first function in response to an operation initiated by a user on the first control.

11. An electronic device, characterized in that: include: A memory and one or more processors; the memory is coupled to the processor; wherein the memory stores computer program code, the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the method as described in any one of claims 1-9.

12. A computer-readable storage medium, characterized in that: The method comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Function switching method and device and electronic equipment

    CN118860222A

  • Control method and device of tab bar

    CN106951152A

  • Watch Type Mobile Terminal And Method For Controlling The Same

    CN107203261A

  • Page control method and wearable device

    CN114637452A

  • Clock faces for an electronic device

    US10620590B1