WO2024078251A1 - 显示方法及电子设备 - Google Patents
显示方法及电子设备 Download PDFInfo
- Publication number
- WO2024078251A1 WO2024078251A1 PCT/CN2023/118791 CN2023118791W WO2024078251A1 WO 2024078251 A1 WO2024078251 A1 WO 2024078251A1 CN 2023118791 W CN2023118791 W CN 2023118791W WO 2024078251 A1 WO2024078251 A1 WO 2024078251A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- electronic device
- control
- scene
- scenario
- target operation
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 93
- 230000004044 response Effects 0.000 claims abstract description 21
- 230000015654 memory Effects 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 13
- 230000001960 triggered effect Effects 0.000 claims description 3
- 238000004891 communication Methods 0.000 description 25
- 230000006854 communication Effects 0.000 description 25
- 206010000117 Abnormal behaviour Diseases 0.000 description 16
- 230000006870 function Effects 0.000 description 12
- 230000006399 behavior Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 6
- 238000010295 mobile communication Methods 0.000 description 6
- 210000000988 bone and bone Anatomy 0.000 description 5
- 230000005236 sound signal Effects 0.000 description 5
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 3
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 241000282326 Felis catus Species 0.000 description 1
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 238000010009 beating Methods 0.000 description 1
- 230000007175 bidirectional communication Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000036772 blood pressure Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000013515 script Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2816—Controlling appliance services of a home automation network by calling their functionalities
- H04L12/282—Controlling appliance services of a home automation network by calling their functionalities based on user interaction within the home
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2823—Reporting information sensed by appliance or service execution status of appliance services in a home automation network
- H04L12/2827—Reporting to a device within the home network; wherein the reception of the information reported automatically triggers the execution of a home appliance functionality
Definitions
- Embodiments of the present application relate to the field of terminals, and more specifically, to a display method and an electronic device.
- the smart home environment involves a large number of scene configurations associated with electronic devices.
- the scene configuration associated with electronic devices can be implemented through gateways, cloud servers, and central devices, and can also be implemented through artificial intelligence (AI) scripts.
- AI artificial intelligence
- the embodiments of the present application provide a display method and an electronic device.
- a user can not only query the scene associated with a second electronic device through a first electronic device, but can also manage the scene of the second electronic device through a control for managing the scene of the second electronic device displayed on the first electronic device, thereby bringing convenience to the user and helping to improve the user experience.
- a first aspect provides a display method, which is applied to a first electronic device, comprising: displaying a first interface of a target application, the first interface including a first control related to a second electronic device, the target application being used to manage scenes associated with the second electronic device; in response to detecting a first operation of the user on the first control, displaying a second control on the first interface; in response to detecting a second operation of the user on the second control, displaying a second interface of the target application, the second interface including scene information associated with the second electronic device, the second interface also including a third control and/or a fourth control, the third control being used to prohibit or unprohibit the second electronic device from performing a first target operation in the first scene associated with the second electronic device, and the fourth control being used to prohibit or unprohibit the second electronic device from performing a target operation corresponding to each scene in each scene associated with the second electronic device.
- the user when the user finds that the second electronic device has abnormal behavior, the user can not only query the scene information associated with the second electronic device through the first electronic device on the first electronic device, but also prohibit the first scene of the second electronic device suspected by the user through the third control, so that the user can find the reason for the abnormal behavior of the second electronic device as soon as possible, so as to achieve the user's management of the abnormal behavior of the second electronic device.
- the user when the user needs to manage all the behaviors of the second electronic device for a period of time, such as when the user needs to turn off the second electronic device for a long time, the user can not only query the scene information associated with the second electronic device through the first electronic device on the first electronic device, but also prohibit all the scenes of the second electronic device through the fourth control, so that the user can turn off the second electronic device as soon as possible, saving the power consumption and electric energy of the second electronic device. In this way, the user does not need to modify the opening rules of the second electronic device in the complex scene of the second electronic device. Furthermore, in the process of the user managing the second electronic device, it brings convenience to the user and helps to improve the user experience.
- the third control is in an unselected state
- the display method further includes: in response to detecting a third operation of the user on the third control, controlling the third control to be in a selected state, and prohibiting the second electronic device from performing the first target operation in the first scenario.
- prohibiting the second electronic device from performing the first target operation in the first scenario includes: sending a first instruction to a third electronic device, the third electronic device being used to control whether the second electronic device performs the first target operation in the first scenario, the first instruction being used to instruct the third electronic device to prohibit the second electronic device from performing the first target operation in the first scenario.
- the display method further includes: receiving a first message from the third electronic device, the first message being used to indicate that the second electronic device has been prohibited from executing the first target in the first scenario; Display the first message.
- prohibiting the second electronic device from performing the first target operation in the first scenario includes: when it is detected that the trigger condition for the second electronic device to perform the first target operation in the first scenario is met, not triggering the second electronic device to perform the first target operation in the first scenario.
- the method further includes: displaying first prompt information, where the first prompt information is used to indicate that the second electronic device has been prohibited from performing the first target operation in the first scenario.
- the third control is in a selected state
- the display method further includes: in response to detecting a fourth operation of the user on the third control, controlling the third control to be in an unselected state, and lifting the prohibition of the second electronic device from performing the first target operation in the first scenario.
- the fourth control is in an unselected state
- the display method further includes: in response to detecting a fifth operation of the user on the fourth control, controlling the fourth control to be in a selected state, and prohibiting the second electronic device from performing the target operation corresponding to each scene in each scene associated with the second electronic device.
- prohibiting the second electronic device from performing the target operation corresponding to each scenario in each scenario associated with the second electronic device includes: sending a second instruction to a third electronic device, the third electronic device being used to control whether the second electronic device performs the target operation corresponding to each scenario in each scenario associated with the second electronic device, the second instruction being used to instruct the third electronic device to prohibit the second electronic device from performing the target operation corresponding to each scenario in each scenario associated with the second electronic device.
- the display method also includes: receiving a second message from the third electronic device, the second message being used to indicate that the third electronic device has prohibited the second electronic device from performing a target operation corresponding to each scenario in each scenario associated with the second electronic device; and displaying the second message.
- the prohibiting the second electronic device from performing the target operation corresponding to each scenario in each scenario associated with the second electronic device includes: when it is detected that the triggering condition for the second electronic device to perform the target operation corresponding to each scenario in each scenario associated with the second electronic device is met, the second electronic device is not triggered to perform the target operation corresponding to each scenario in each scenario associated with the second electronic device.
- the method further includes: displaying second prompt information, wherein the second prompt information is used to indicate that the second electronic device has been prohibited from performing a target operation corresponding to each scenario in each scenario associated with the second electronic device.
- the fourth control is in a selected state
- the display method further includes: in response to detecting a sixth operation of the user on the fourth control, controlling the fourth control to be in an unselected state, and lifting the prohibition on the second electronic device from performing the target operation corresponding to each scene in each scene associated with the second electronic device.
- the second aspect provides an electronic device, comprising: one or more processors, one or more memories, and one or more computer programs; the above-mentioned one or more computer programs are stored in the memory, and when the electronic device is running, the processor executes the one or more computer programs stored in the memory to enable the electronic device to perform the display method described in the above-mentioned first aspect and any possible implementation method of the first aspect.
- a third aspect provides a computer-readable storage medium, comprising computer instructions.
- the computer instructions When the computer instructions are executed on an electronic device, the electronic device executes the display method as described in the first aspect and any possible implementation of the first aspect.
- a fourth aspect provides a computer program product.
- the computer program product runs on an electronic device, the electronic device executes the display method as described in the first aspect and any possible implementation of the first aspect.
- the fifth aspect provides a chip, comprising at least one processor and an interface circuit, wherein the interface circuit is used to provide program instructions or data to the at least one processor, and the at least one processor is used to execute the program instructions to implement the display method as described in the first aspect and any possible implementation method of the first aspect.
- FIG1 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
- FIG. 2 is a software structure block diagram of an electronic device provided in an embodiment of the present application.
- FIG. 3 is an example of a GUI provided in an embodiment of the present application.
- FIG. 4 is a set of GUIs for a mobile phone provided in an embodiment of the present application.
- FIG. 5 is another set of GUIs for a mobile phone provided in an embodiment of the present application.
- 6 to 8 are schematic flow charts of an example of a display method provided in an embodiment of the present application.
- FIG. 9 is a schematic block diagram of an electronic device provided in an embodiment of the present application.
- FIG. 10 is a schematic block diagram of another electronic device provided in an embodiment of the present application.
- the electronic devices involved in the embodiments of the present application may refer to user equipment, access terminals, user units, user stations, mobile stations, mobile stations, remote stations, remote terminals, mobile devices, terminals, wireless communication devices, user agents or user devices.
- the electronic device may also be a cellular phone, a cordless phone, a session initiation protocol phone, a personal digital processing, a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device (such as a Bluetooth headset or a smart watch), a home device (such as a smart door lock, a smart light or a smart cat's eye), a device in a future 5G network or a device in a future evolved public land mobile communication network, etc., and the embodiments of the present application are not limited to this.
- FIG1 shows a schematic structural diagram of an electronic device 100 provided in an embodiment of the present application.
- the electronic device 100 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, 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, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
- SIM subscriber identification module
- the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
- the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
- the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently.
- the components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
- 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 processor (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), etc.
- AP application processor
- GPU graphics processor
- ISP image signal processor
- controller a memory
- video codec a digital signal processor
- DSP digital signal processor
- NPU neural-network processing unit
- Different processing units may be independent devices or integrated in one or more processors.
- 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.
- the processor 110 may also be provided with a memory for storing instructions and data.
- the memory in the processor 110 is a cache memory.
- the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
- the processor 110 may include one or more interfaces.
- the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
- the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
- SDA serial data line
- SCL serial clock line
- the I2S interface can be used for audio communication.
- the processor 110 may include multiple groups of I2S buses.
- the processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170.
- the PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals.
- the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface.
- the interface is a universal serial data bus for asynchronous communication.
- the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
- the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
- the MIPI interface can be used to connect the processor 110 to the display screen 194, the camera 193 and other peripheral devices.
- the GPIO interface can be configured by software.
- the GPIO interface can be configured as a control signal or as a data signal.
- the GPIO interface can be used to connect the processor 110 to the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc.
- the USB interface 130 is an interface that complies with the USB standard specification, and can specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
- the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices.
- the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100.
- the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
- the charging management module 140 is used to receive charging input from a charger.
- the charger can be a wireless charger or a wired charger.
- the charging management module 140 can receive charging input from a wired charger through the USB interface 130.
- the charging management module 140 can receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it can also power the electronic device through the power management module 141.
- the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
- 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.
- the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
- the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 can provide wireless communication solutions for application in the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.
- WLAN wireless local area networks
- Wi-Fi wireless fidelity
- BT Bluetooth
- GNSS global navigation satellite system
- FM frequency modulation
- NFC near field communication technology
- IR infrared technology
- antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with the network and other devices through wireless communication technology.
- the electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor.
- the GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor.
- the GPU is used to perform mathematical and geometric calculations for graphics rendering.
- the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos, etc.
- the display screen 194 includes a display panel.
- the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
- the electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
- 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 electronic device 100 can implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, and an application processor.
- the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals.
- the speaker 170A also known as a "speaker” is used to convert audio electrical signals into sound signals.
- the receiver 170B also known as a "earpiece”, is used to convert audio electrical signals into sound signals.
- the microphone 170C also known as a "microphone” or “microphone” is used to convert sound signals into electrical signals.
- the headphone jack 170D is used to connect wired headphones.
- the pressure sensor 180A is used to sense pressure signals and can convert pressure signals into electrical signals. In some embodiments, the pressure sensor 180A can be set on the display screen 194.
- the gyroscope sensor 180B can be used to determine the movement posture of the electronic device 100.
- the air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
- the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes).
- the distance sensor 180F is used to measure the distance.
- the fingerprint sensor 180H is used to collect fingerprints.
- the touch sensor 180K is also used to measure the distance.
- the touch sensor 180K can be arranged on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen”.
- the bone conduction sensor 180M can obtain vibration signals.
- the bone conduction sensor 180M can obtain vibration signals of vibrating bones of the human body.
- the bone conduction sensor 180M can also contact the human body's pulse to receive blood pressure beating signals.
- the buttons 190 include a power button, a volume button, etc.
- the motor 191 can generate a vibration prompt.
- the indicator 192 can be an indicator light, which can be used to indicate the charging status, power change, messages, missed calls, notifications, etc.
- the SIM card interface 195 is used to connect a SIM card.
- the software system of the electronic device 100 shown in FIG. 1 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
- the present application embodiment does not limit the software system.
- the software system can be or System, etc.
- the layered architecture Take as an example to illustrate the software structure of the electronic device 100.
- Fig. 2 is a software structure diagram of the electronic device 100 of the embodiment of the present application.
- the layered architecture divides the software into several layers, each layer has a clear role and division of labor.
- the layers communicate with each other through software interfaces.
- the Android system is divided into four layers, from top to bottom, respectively, the application layer, the application framework layer and the system library, and the kernel layer.
- the application layer can include a series of application packages.
- the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
- the application framework layer provides application programming interface (API) and programming framework for the applications in the application layer.
- API application programming interface
- the application framework layer includes some predefined functions.
- the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
- the window manager is used to manage window programs.
- the window manager can obtain the display screen size, determine whether there is a status bar, disable the screen, capture the screen, etc.
- 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.
- the view system includes visual controls, such as controls for displaying text, controls for displaying images, etc.
- the view system can be used to build applications.
- a display interface can be composed of one or more views.
- a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
- the phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
- the resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
- the notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
- the notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
- the application layer and the application framework layer run in a virtual machine.
- the virtual machine executes the Java files of the application layer and the application framework layer as binary files.
- the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
- the system library can include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
- functional modules such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
- the surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
- the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
- the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing.
- a 2D graphics engine is a drawing engine for 2D drawings.
- the kernel layer is the layer between hardware and software.
- the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
- FIG. 3 shows an example of a graphical user interface (GUI) provided in an embodiment of the present application.
- GUI graphical user interface
- the GUI shown in FIG3 is a display interface of a scene in an Internet of Things (IOT) control end application such as a smart life application.
- IOT Internet of Things
- the user can view the remaining 5 scene controls by sliding up on the GUI.
- the user can view the trigger condition, target operation, and target device of the scene through the control corresponding to the scene (such as clicking the control). When the target device meets the trigger condition, the target operation will be executed.
- the 13 scene settings shown in FIG. 3 can be scene settings for the same device or for multiple devices, and the embodiments of the present application do not limit this. Also, the number of scenes shown in FIG. 3 is only an example, which should not limit the present application. In addition, the present application is described by taking the IoT control terminal application as an example of a smart life application, which should not limit the present application.
- a target electronic device For example, if a user finds that a target electronic device performs a target operation for unknown reasons, such as a light at home turns on automatically, but the user does not know why or when it was turned on. At this time, the user needs to check one by one from a large number of scene configurations in the smart home environment to find the scene settings related to the reason why the light turned on automatically.
- the user when a user is traveling far away or away from home for a long time, the user hopes that the electronic devices at home (such as air conditioners) will not work in any scene. At this time, the user needs to check one by one from a large number of scene configurations in the smart home environment to find all the scene settings associated with the electronic devices.
- the electronic devices at home such as air conditioners
- an embodiment of the present application provides a display method, which can be applied to a first electronic device.
- a user can not only query the scene associated with each electronic device through the first electronic device, but also manage the scene of the second electronic device through the control for managing the scene of the second electronic device displayed on the first electronic device, which brings convenience to the user and helps to improve the user experience.
- a set of GUIs for a mobile phone provided in an embodiment of the present application is described below in conjunction with FIG. 4 and FIG. 5 .
- FIG. 4 and FIG. 5 are described by taking the first electronic device as a mobile phone as an example, which should not constitute a limitation to the present application.
- the user finds that the device 4 in the smart home environment has abnormal behavior, but the user does not know the reason for the abnormal behavior of the device 4, then the user can manage the abnormal behavior of the device 4 through the smart life application. For example, the user finds that the downlight (an example of the device 4) in the home always turns on automatically in the middle of the night, but the user does not know the reason for the downlight to turn on automatically in the middle of the night. The user can manage the abnormal behavior of the downlight turning on automatically in the middle of the night through the smart life application.
- the downlight an example of the device 4
- FIG. 4 is a set of GUIs for a mobile phone provided in an embodiment of the present application.
- the mobile phone displays a desktop, which includes icons of multiple applications, including a clock, a calendar, a gallery, a memo, a smart life, and an application store.
- the mobile phone When the mobile phone detects that the user clicks the icon of the smart life application, the mobile phone can display the GUI as shown in (b) of Figure 4.
- the GUI is the main page of the smart life application.
- the GUI shows the controls corresponding to the four devices managed by the smart life application, namely, control 301 corresponding to device 1, control 302 corresponding to device 2, control 303 corresponding to device 3, and control 304 corresponding to device 4.
- the main page of the smart life can also display the number of devices and the number of scenes managed by the smart life.
- the GUI can also include text information of "4 devices" and text information of "14 smart scenes”.
- the mobile phone When the mobile phone detects that the user has long pressed the control 304 corresponding to the device 4 , the mobile phone may display a control 305 for querying the associated scenes of the device 4 as shown in (c) in FIG. 4 .
- the mobile phone When the mobile phone detects a single click operation on the control 305 by the user, the mobile phone may display a detailed display interface of the scene associated with the device 4, such as the GUI shown in (d) of FIG. 4 .
- the detailed display interface of the scene associated with the device 4 may include controls corresponding to each scene associated with the device 4 and a prohibition control corresponding to a single scene.
- the prohibition control corresponding to a single scene is used to prohibit or unprohibit the operation performed by the device 4 in the single scene associated with the device 4. It should be understood that the prohibition control is only an example, and other names may also be used, which does not constitute a limitation to the present application.
- the detailed display interface of the scene associated with the device 4 may include controls corresponding to all scenes associated with the device 4 and prohibition controls 3101 corresponding to all scenes.
- the prohibition controls corresponding to all scenes are used to prohibit or unprohibit the device 4 from performing operations of each scene in each scene associated with the device 4.
- the detail display interface of the scene associated with the device 4 includes not only the controls corresponding to each scene associated with the device 4 and the prohibited controls corresponding to a single scene, but also includes the controls corresponding to all scenes associated with the device 4 and the prohibited controls corresponding to all scenes.
- the GUI includes a control 306 corresponding to scene 1 associated with device 4 and a prohibition control 3061 corresponding to scene 1, a control 307 corresponding to scene 2 associated with device 4 and a prohibition control 3071 corresponding to scene 2, a control 308 corresponding to scene 3 associated with device 4 and a prohibition control 3081 corresponding to scene 3, a control 309 corresponding to scene 4 associated with device 4 and a prohibition control 3091 corresponding to scene 4, a control 310 corresponding to all scenes associated with device 4 and a prohibition control 3101 corresponding to all scenes.
- the prohibition controls shown in (d) of Figure 4 are all in a closed state (unselected state), which should not constitute a limitation to this application.
- the prohibition control corresponding to the scene is in a closed state, it can be considered that the scene is not prohibited, that is, when the device meets the trigger conditions set in the scene, the target operation set in the scene will be executed.
- the prohibition control corresponding to the scene is in an open state (selected state)
- it can be considered that the scene is prohibited that is, when the device meets the trigger conditions set in the scene, the target operation set in the scene will not be executed.
- the details display interface of the device 4 associated scenes may further include the name of the device 4 and the number of scenes associated with the device 4. As shown in (d) of FIG4 , the details display interface of the device 4 associated scenes also includes text information of “device 4” and text information of “4 associated scenes”.
- the user can view detailed information of each scene by clicking a control corresponding to the scene, for example, viewing the trigger conditions, execution operations, etc. under the scene.
- the user can click the prohibition control 3091 corresponding to scene 4.
- the prohibition control 3091 is in the open state as shown in (e) of Figure 4.
- the mobile phone prohibits scene 4 of device 4, that is, prohibits device 4 from executing the operation set in scene 4 when the trigger condition set in scene 4 is met.
- the mobile phone needs to prohibit device 4 from executing scene 4 through the control device in the home scene.
- the mobile phone sends a prohibition instruction to the control device in the home scene, so that the control device in the home scene prohibits scene 4 of device 4 after receiving the prohibition instruction, that is, when the trigger condition set in scene 4 is met, the control device in the home scene will not trigger device 4 to execute the operation set in scene 4.
- control devices in a home scene are unique.
- control device may be set by a user, for example, the user sets the control device through a smart life application.
- control device may be a default device in a networked home scenario, for example, a default device in a smart life application.
- control device in the home scene can be a device that provides a home LAN interface, such as a router.
- the control device in the home scene can also be a cloud, a cloud server, a home local network host, etc. This application does not limit the type of the control device.
- the mobile phone may also display a prompt message to prompt the user that the execution of scenario 4 by device 4 is prohibited.
- the mobile phone may display a pop-up window 311 , in which a text message “Your device 4 is prohibited from executing scene 4, please note!” is displayed.
- the mobile phone may also deliver the prompt information to the message queue of the smart life application, and then the smart life application takes the prompt information from its message queue and displays it.
- the control device in the home scene sends the prompt information described above to the mobile phone through a message push platform (such as Huawei push cloud server) when detecting that the trigger condition set in scene 4 is met.
- a message push platform such as Huawei push cloud server
- the user can manage the opening behavior of device 4 through the smart life application to achieve long-term shutdown management of device 4. For example, when the user is away from home for a long time, the user does not want to trigger the opening of the air conditioner during the time away from home to save the power consumption and energy of the air conditioner. At this time, the user can manage the automatic opening behavior of the air conditioner during the time away from home through the smart life application.
- FIG5 is a set of GUIs for a mobile phone provided in an embodiment of the present application.
- the user When the user wants to shut down the device 4 in the smart home environment for a long time, the user can click the prohibition control 3101 corresponding to all scenes shown in (d) of Figure 5.
- the prohibition control 3101 When the mobile phone detects the user's single click operation on the control 3101, the prohibition control 3101 is in the open state as shown in (e) of Figure 5.
- the mobile phone prohibits all scenes 4 of the device 4, that is, prohibits the device 4 from executing the operations set in each scene when the trigger conditions set in each scene are met.
- the mobile phone may also display a prompt message to prompt the user that the device 4 is disabled.
- the mobile phone may display a pop-up window 312 , in which a text message “Your device 4 has been banned, please note!” is displayed.
- the mobile phone may also deliver the prompt information to the message queue of the smart life application, and then the smart life application takes the prompt information from its message queue and displays it.
- the display method provided by the embodiment of the present application is described below in conjunction with Figure 6.
- the display method can be applied to a first electronic device, which can be the electronic device 100 shown in Figure 1 or Figure 2 above, or the first electronic device can be the mobile phone described in Figures 4 and 5 above.
- FIG. 6 shows a schematic flow chart of a display method 400 provided in an embodiment of the present application.
- the method 400 includes:
- S410 The first electronic device displays a first interface of a target application.
- the first interface includes a first control related to the second electronic device.
- the second electronic device and the target application are products of the same manufacturer, or the second electronic device supports a target connection protocol, and the target connection protocol and the target application are products of the same manufacturer.
- the target application is used to manage the scene associated with the second electronic device.
- the user can set the scene of the second electronic device through the target application.
- the scene setting may include basic information of the scene (such as the scene name, etc.), trigger conditions (such as the effective period, the conditions met, etc.), target operation, and the associated second electronic device. In this way, in the scene associated with the second electronic device, when the second electronic device meets the trigger condition, the second electronic device can be controlled to perform the target operation.
- the target application is an IOT control terminal application.
- the target application may be a Huawei smart life application, which may be used to discover, connect and manage electronic devices produced by Huawei or electronic devices supporting the Huawei HiLink protocol (an example of a target connection protocol).
- the target application can manage scenarios associated with other electronic devices in addition to the scenarios associated with the second electronic device, wherein the other electronic devices may be products of the same manufacturer as the target application, or the other electronic devices may support the target connection protocol.
- the target application can also be used to discover and connect electronic devices, which is not limited in the embodiments of the present application.
- the first interface may also include controls related to other electronic devices.
- the first interface may be a GUI as shown in (b) of FIG. 4 or (b) of FIG. 5, and the first control may be a control 304 corresponding to device 4 as shown in (b) of FIG. 4.
- Other electronic device-related controls may include controls 301 related to device 1, 2 related controls 302, device 3 related controls 303, etc.
- the second control may be the control 305 as shown in (c) of FIG. 4 or (c) of FIG. 5 .
- the first operation may include long pressing, double clicking, and the like, which is not limited in this embodiment of the present application.
- method 400 may further include: in response to detecting a seventh operation of the user on the first control, displaying a third interface including detailed information of the second electronic device.
- the detailed information of the second electronic device may include properties of the second electronic device, the status of the second electronic device, the usage record of the second electronic device, the connection status between the second electronic device and the first electronic device, etc., which is not limited in the embodiments of the present application.
- the attributes of the second electronic device may include the battery level of the second electronic device, the theme mode of the second electronic device, and the like.
- the state of the second electronic device may include that the second electronic device is enabled or disabled.
- the seventh operation may include an operation such as single clicking.
- the second interface includes scene information associated with the second electronic device.
- the scene information may include basic information of the scene (such as the scene name, etc.).
- the scene information may include scene information of each scene of the second electronic device.
- the scene information of each scene of the second electronic device can be presented one by one in the second interface.
- the scene information may include "scene 1" text information, "scene 2" text information, "scene 2" text information, and "scene 4" text information as shown in (d) in Figure 4 or (d) in Figure 5.
- scene information of each scene of the second electronic device can be presented together in the second interface.
- the scene information may include “all scenes” text information as shown in (d) in FIG. 4 or (d) in FIG. 5 .
- the scene information may also include trigger conditions (such as effective period, satisfied conditions, etc.), target operations, etc.
- trigger conditions such as effective period, satisfied conditions, etc.
- the second interface also includes a third control and/or a fourth control, the third control is used to prohibit or unprohibit the second electronic device from performing a first target operation in the first scene associated with the second electronic device, and the fourth control is used to prohibit or unprohibit the second electronic device from performing a target operation corresponding to each scene in each scene associated with the second electronic device.
- the third control may be a prohibition control 3091 corresponding to scene 4 as shown in (d) in FIG. 4 or (d) in FIG. 5.
- the fourth control may be a prohibition control 3101 corresponding to all scenes as shown in (d) in FIG. 4 or (d) in FIG. 5.
- the second interface also includes prohibition controls corresponding to other scenes of the second electronic device.
- the second interface may also include a prohibition control 3061 corresponding to scene 1, a prohibition control 3071 corresponding to scene 2, and a prohibition control 3081 corresponding to scene 3 as shown in (d) in FIG. 4 or (d) in FIG. 5 .
- the second operation may include a single click or other operation, which is not limited in this embodiment of the present application.
- the following describes a scenario A and a scenario B to determine whether the user wants to manage the abnormal behavior of the second electronic device.
- Case A The third control is not selected and the user wants to manage the abnormal behavior of the second electronic device.
- method 400 further includes S440 .
- the third operation may include a single click or other operations, which is not limited in this embodiment of the present application.
- the prohibition control 3091 is in an unselected state.
- the first electronic device responds to detecting a single click operation of the user on the prohibition control 3091, the first electronic device controls the prohibition control 3091 to be in a selected state, as shown in (e) of Figure 4.
- the first electronic device is not a control device, so the first electronic device cannot directly prohibit the second electronic device from performing the first target operation in the first scenario, and the first electronic device needs to use a third electronic device (control device) to prohibit the second electronic device from performing the first target operation in the first scenario.
- the third electronic device and the second electronic device are products of the same manufacturer, or the third electronic device supports the target connection protocol described above.
- the first electronic device is a control device, so the first electronic device can directly prohibit the second electronic device from operating in the first scenario.
- the first target operation is performed.
- the first electronic device and the second electronic device are products of the same manufacturer, or the first electronic device supports the target connection protocol described above.
- control device For the description of the control device, please refer to the relevant description above and will not be repeated here.
- Case 1 The first electronic device is not a control device
- S440 may specifically include:
- S441a The first electronic device sends a first instruction to the third electronic device.
- the third electronic device is used to control whether the second electronic device performs the first target operation in the first scenario, that is, the third electronic device is a control device.
- the first instruction is used to instruct the third electronic device to prohibit the second electronic device from performing the first target operation in the first scenario.
- the third electronic device may further execute S442a.
- S442a The third electronic device prohibits the second electronic device from executing the first target operation in the first scenario according to the first instruction.
- the third electronic device can save the scene settings of each electronic device set by the user through the target application, wherein the scene settings include: in the first scene, when the first trigger condition is met, the third electronic device performs the first target operation.
- the third electronic device receives the first instruction
- the second electronic device in the first scene associated with the second electronic device can be set to a prohibition mark. In this way, when the third electronic device detects that the trigger condition for the second electronic device to perform the first target operation in the first scene is met, the third electronic device will not trigger the second electronic device to perform the first target operation, that is, the third electronic device will not send an instruction to the second electronic device to trigger the second electronic device to perform the first target operation.
- the method 400 may further include:
- the third electronic device sends a first message to the first electronic device.
- the first electronic device receives the first message from the third electronic device.
- the first message is used to indicate that the second electronic device has been prohibited from performing the first target operation in the first scenario.
- the third electronic device may send the first message to the first electronic device through a message push platform (such as a Huawei push cloud server).
- a message push platform such as a Huawei push cloud server
- the third electronic device may send the first message to the target application of the first electronic device through a message push platform (such as a Huawei push cloud server).
- the first electronic device may further execute S444a.
- the first electronic device displays a first message.
- the first electronic device may deliver the first message to a message queue of a target application, and then the target application takes the first message from its message queue and displays the first message.
- the first electronic device may display the first message through a notification bar or a pop-up window.
- the first electronic device displays a text message (an example of a first message) through a pop-up window 311 that reads “Your device 4 is prohibited from executing scene 4, please note!”
- the first electronic device is a control device
- S440 specifically includes:
- S441b The first electronic device prohibits the second electronic device from performing the first target operation in the first scenario.
- the first electronic device can save the scene settings of each electronic device set by the user through the target application.
- the second electronic device in the first scene associated with the second electronic device can be set to a prohibition mark. In this way, when the first electronic device detects that the trigger condition for performing the first target operation in the first scene is met, the first electronic device will not trigger the second electronic device to perform the first target operation, that is, the first electronic device will not send an instruction to the second electronic device to trigger the second electronic device to perform the first target operation.
- the method 400 may further include:
- S442b The first electronic device displays a first prompt message.
- the first prompt message is used to indicate that the second electronic device has been prohibited from performing the first target operation in the first scenario.
- the first electronic device may display the first prompt message through a notification bar or a pop-up window.
- Case B The third control is in a selected state, and the user does not want to manage the abnormal behavior of the second electronic device.
- method 400 further includes S450 .
- S450 In response to detecting a fourth operation of the user on the third control, the first electronic device controls the third control to be in an unselected state, and releases the prohibition of the second electronic device from performing the first target operation in the first scenario.
- the fourth operation may include a single click or other operations, which is not limited in this embodiment of the present application.
- method 400 may include only S440, method 400 may include only S450, or method 400 may include both S440 and S450, which is not limited in the present embodiment.
- S450 may be executed after S440, or S450 may be executed before S440.
- Case C the fourth control is not selected, and the user wants to manage all behaviors of the second electronic device for a period of time
- method 400 further includes S460 .
- the fifth operation may include operations such as single-clicking, which is not limited in this embodiment of the present application.
- the prohibition control 3101 is in an unselected state.
- the first electronic device responds to detecting a single click operation of the user on the prohibition control 3101, the first electronic device controls the prohibition control 3101 to be in a selected state, as shown in (e) of Figure 5.
- the first electronic device is not a control device, so the first electronic device cannot directly prohibit the second electronic device from performing the target operation corresponding to each scene in each scene.
- the first electronic device needs to use a third electronic device (control device) to prohibit the second electronic device from performing the target operation corresponding to each scene in each scene.
- the third electronic device and the second electronic device are products of the same manufacturer, or the third electronic device supports the target connection protocol described above.
- the first electronic device is a control device, so the first electronic device can directly prohibit the second electronic device from performing the target operation corresponding to each scenario in each scenario.
- the first electronic device and the second electronic device are products of the same manufacturer, or the first electronic device supports the target connection protocol described above.
- Case 1 The first electronic device is not a control device
- S460 may specifically include:
- the first electronic device sends a second instruction to the third electronic device.
- the third electronic device is used to control whether the second electronic device performs a target operation corresponding to each scenario in each scenario associated with the second electronic device, that is, the third electronic device is a control device.
- the second instruction is used to instruct the third electronic device to prohibit the second electronic device from performing a target operation corresponding to each scenario in each scenario associated with the second electronic device.
- the third electronic device may further execute S462a.
- S462a The third electronic device prohibits the second electronic device from executing a target operation corresponding to each scenario in each scenario associated with the second electronic device according to the second instruction.
- the third electronic device can save the scene settings of each electronic device set by the user through the target application, wherein the scene settings include that in each scene, when the trigger condition of each scene is met, the third electronic device performs the target operation corresponding to each scene.
- the third electronic device receives the second instruction, the second electronic device in all scenes associated with the second electronic device can be set to a prohibition mark.
- the third electronic device when the third electronic device detects that the trigger condition corresponding to each scene is met for the second electronic device to perform in each scene associated with the second electronic device, the third electronic device will not trigger the second electronic device to perform the target operation corresponding to each scene, that is, the third electronic device will not send an instruction to the second electronic device to trigger the second electronic device to perform the target operation corresponding to each scene in each scene associated with the second electronic device.
- the method 400 may further include:
- S463a The third electronic device sends a second message to the first electronic device.
- the second message of the backup is a third electronic device.
- the second message is used to indicate that the third electronic device has prohibited the second electronic device from performing a target operation corresponding to each scenario in each scenario associated with the second electronic device.
- the third electronic device may send the second message to the first electronic device through a message push platform (such as a Huawei push cloud server).
- a message push platform such as a Huawei push cloud server
- the third electronic device may send the second message to the target application of the first electronic device through a message push platform (such as a Huawei push cloud server).
- the first electronic device may further execute S464a.
- the first electronic device displays the second message.
- the first electronic device may display the second message via a notification bar or a pop-up window.
- the first electronic device displays a text message (an example of a second message) “Your device 4 has been prohibited from executing, please note!” through a pop-up window 312 .
- the first electronic device is a control device
- S460b may specifically include:
- S461b The first electronic device prohibits the second electronic device from executing a target operation corresponding to each scenario in each scenario associated with the second electronic device.
- the first electronic device can save the scene settings of each electronic device set by the user through the target application.
- the second electronic device in each scene associated with the second electronic device can be set to a prohibition mark.
- the first electronic device detects that the trigger condition for the second electronic device to perform the target operation corresponding to each scene in each scene associated with the second electronic device is met, the first electronic device will not trigger the second electronic device to perform the target operation corresponding to each scene in each scene associated with the second electronic device, that is, the first electronic device will not send an instruction to the second electronic device to trigger the second electronic device to perform the target operation corresponding to each scene in each scene managed by the second electronic device.
- the method 400 may further include:
- the first electronic device displays a second prompt message.
- the second prompt message is used to indicate that the second electronic device has been prohibited from executing the target operation corresponding to each scenario in each scenario associated with the second electronic device.
- the first electronic device may display the second prompt message through a notification bar or a pop-up window.
- Case D The fourth control is in a selected state, and the user does not want to manage all behaviors of the second electronic device for a period of time.
- method 400 further includes S470 .
- the first electronic device controls the fourth control to be in an unselected state, and releases the prohibition on the second electronic device from performing the target operation corresponding to each scene in each scene associated with the second electronic device.
- the sixth operation may include a single click or other operations, which is not limited in this embodiment of the present application.
- method 400 may include only S460, method 400 may include only S470, or method 400 may include both S460 and S470, which is not limited in the present embodiment.
- S470 may be executed after S460, or S470 may be executed before S460.
- the user can not only query the scene associated with the second electronic device through the target application of the first electronic device, but the user can also manage the scene of the second electronic device through the control for managing the scene of the second electronic device displayed on the first electronic device, thereby managing the abnormal behavior of the second electronic device or managing all the behaviors of the second electronic device for a period of time, which brings convenience to the user and helps to improve the user experience.
- the second electronic device when the user directly operates the second electronic device, that is, the second electronic device detects the user's operation on the second electronic device, and the second electronic device performs the operation corresponding to the user's operation. At this time, the second electronic device is not restricted by the first electronic device prohibiting the second electronic device from performing the corresponding target operation in its associated scene. In other words, when the user directly operates the second electronic device to control the second electronic device, the second electronic device is not restricted by the first electronic device prohibiting the second electronic device from performing the corresponding target operation in its associated scene. when controlling the second electronic device through the set scene, the second electronic device is restricted by the first electronic device prohibiting the second electronic device from performing the corresponding target operation in its associated scene.
- FIG. 9 is a schematic block diagram of an electronic device provided in an embodiment of the present application.
- the electronic device 500 includes a processing unit 510 , and the processing unit 510 is used for performing data processing.
- the electronic device 500 may further include a transceiver unit 520, which may communicate with the outside, and the transceiver unit 520 may also be referred to as a communication interface or a communication unit.
- the electronic device 500 may further include a storage unit, which may be used to store instructions and/or data, and the processing unit 510 may read the instructions and/or data in the storage unit.
- a storage unit which may be used to store instructions and/or data
- the processing unit 510 may read the instructions and/or data in the storage unit.
- the electronic device 500 can be used to execute the actions executed by the first electronic device in the above method 400.
- the electronic device 500 can be the first electronic device or a component that can be configured in the first electronic device.
- the processing unit 510 is used to execute the processing-related operations on the first electronic device side in the above method 400
- the transceiver unit 520 is used to execute the transceiver-related operations on the first electronic device side in the above method 400.
- FIG. 10 shows a schematic structural diagram of an electronic device 600 provided in an embodiment of the present application.
- the electronic device 600 includes: one or more processors 610, one or more memories 620, and the one or more memories 620 store one or more computer programs, and the one or more computer programs include instructions.
- the electronic device 600 executes the technical solution executed by the first electronic device in the above method 400.
- the embodiment of the present application provides a system, including a first electronic device and a third electronic device, wherein the first electronic device is used to execute the technical solution executed by the first electronic device in the above method 400, and/or the third electronic device is used to execute the technical solution executed by the third electronic device in the above method 400. Its implementation principle and technical effect are similar to those of the above method-related embodiments, and will not be repeated here.
- the embodiment of the present application provides a computer program product, when the computer program product is run on a first electronic device, the first electronic device executes the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above method-related embodiments, and will not be repeated here.
- the embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium contains instructions, and when the instructions are executed on a first electronic device, the first electronic device executes the technical solution of the above embodiment.
- the implementation principle and technical effect thereof are similar and will not be described in detail here.
- the embodiment of the present application provides a chip, the chip is used to execute instructions, when the chip is running, the technical solution in the above embodiment is executed.
- the implementation principle and technical effect are similar, and will not be repeated here.
- the disclosed systems, devices and methods can be implemented in other ways.
- the device embodiments described above are only schematic.
- the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, 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.
- the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.
- the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium. It includes several instructions for making a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present application.
- the aforementioned storage medium includes: 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, and other media that can store program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
本申请实施例提供了一种显示方法及设备。该显示方法包括:显示应用程序的第一界面,第一界面包括与第二设备相关的第一控件,应用程序用于管理第二设备关联的场景;响应于检测到用户对第一控件的操作,在第一界面上显示第二控件;响应于检测到用户对第二控件的操作,显示第二界面,第二界面包括第三控件和第四控件中的至少一项、以及第二电子设备关联的场景信息,第三控件用于禁止或解禁止第二设备的第一场景,第四控件用于禁止或解禁止第二设备的所有场景。这样,用户不仅可以通过第一设备查询第二设备关联的场景,还可以通过第三控件或第四控件,实现第二设备的场景的管理,给用户带来了便利,有助于提高用户体验。
Description
本申请要求于2022年10月12日提交中国专利局、申请号为202211247640.3、申请名称为“显示方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请实施例涉及终端领域,并且更具体地,涉及一种显示方法及电子设备。
目前,智能家居环境涉及大量的电子设备关联的场景配置,如,可以通过网关、云服务器、中枢设备实现电子设备关联的场景配置,也可以通过人工智能(artificial intelligence,AI)脚本实现电子设备关联的场景配置。
在智能家居环境处于多样化的场景配置之下,如果用户想要对某一电子设备的场景进行管理,用户需要从智能家居环境中大量的场景配置中逐个排查,给用户带来了不便,使得用户体验较差。
发明内容
本申请实施例提供一种显示方法及电子设备,用户不仅可以通过第一电子设备查询到第二电子设备所关联的场景,用户还可以通过第一电子设备上显示的用于管理第二电子设备的场景的控件,便可以实现对第二电子设备的场景的管理,给用户带来了便利,有助于提高用户体验。
第一方面提供了一种显示方法,所述显示方法应用于第一电子设备,包括:显示目标应用程序的第一界面,所述第一界面包括与第二电子设备相关的第一控件,所述目标应用程序用于管理所述第二电子设备关联的场景;响应于检测到用户对所述第一控件的第一操作,在所述第一界面上显示第二控件;响应于检测到用户对所述第二控件的第二操作,显示所述目标应用程序的第二界面,所述第二界面包括所述第二电子设备关联的场景信息,所述第二界面还包括第三控件和/或第四控件,所述第三控件用于禁止或解除禁止所述第二电子设备在所述第二电子设备关联的第一场景下执行第一目标操作,所述第四控件用于禁止或解除禁止所述第二电子设备在所述第二电子设备关联的每个场景下执行每个场景对应的目标操作。
在本申请实施例中,一方面,当用户发现第二电子设备存在异常行为时,用户在第一电子设备上不仅可以通过第一电子设备查询该第二电子设备关联的场景信息,还可以通过第三控件对用户怀疑的第二电子设备的第一场景进行禁止,以便用户能够尽快找到第二电子设备存在异常行为的原因,以实现用户对第二电子设备的异常行为的管理。另一方面,当用户需要对第二电子设备的全部行为进行一段时间的管理,如用户需要长时间关闭第二电子设备时,用户在第一电子设备上不仅可以通过第一电子设备查询该第二电子设备关联的场景信息,还可以通过第四控件对第二电子设备的全部场景进行禁止,以便用户尽快关闭第二电子设备,节省第二电子设备的功耗、电能等。这样,用户不需要在第二电子设备复杂的场景中修改第二电子设备的开启规则。进而,在用户对第二电子设备进行管理的过程中,给用户带来了便利,有助于提高用户体验。
结合第一方面,在第一方面的某些实现方式中,所述第三控件处于未被选中的状态,所述显示方法还包括:响应于检测到用户对所述第三控件的第三操作,控制所述第三控件处于被选中的状态,并禁止所述第二电子设备在所述第一场景下执行所述第一目标操作。
结合第一方面,在第一方面的某些实现方式中,所述禁止所述第二电子设备在所述第一场景下执行所述第一目标操作,包括:向第三电子设备发送第一指令,所述第三电子设备用于控制所述第二电子设备是否在所述第一场景下执行所述第一目标操作,所述第一指令用于指示所述第三电子设备禁止所述第二电子设备在所述第一场景下执行所述第一目标操作。
结合第一方面,在第一方面的某些实现方式中,所述显示方法还包括:接收来自所述第三电子设备的第一消息,所述第一消息用于指示已经禁止所述第二电子设备在所述第一场景下执行所述第一目
标操作;显示所述第一消息。
结合第一方面,在第一方面的某些实现方式中,所述禁止所述第二电子设备在所述第一场景下执行所述第一目标操作,包括:检测到满足所述第二电子设备在所述第一场景下执行所述第一目标操作的触发条件时,不触发所述第二电子设备在所述第一场景下执行所述第一目标操作。
结合第一方面,在第一方面的某些实现方式中,所述方法还包括:显示第一提示信息,所述第一提示信息用于指示已经禁止所述第二电子设备在所述第一场景下执行所述第一目标操作。
结合第一方面,在第一方面的某些实现方式中,所述第三控件处于被选中的状态,所述显示方法还包括:响应于检测到用户对所述第三控件的第四操作,控制所述第三控件处于未被选中的状态,并解除禁止所述第二电子设备在所述第一场景下执行所述第一目标操作。
结合第一方面,在第一方面的某些实现方式中,所述第四控件处于未被选中的状态,所述显示方法还包括:响应于检测到用户对所述第四控件的第五操作,控制所述第四控件处于被选中的状态,并禁止所述第二电子设备在所述第二电子设备关联的每个场景下执行每个场景对应的目标操作。
结合第一方面,在第一方面的某些实现方式中,所述禁止所述第二电子设备在所述第二电子设备关联的每个场景下执行每个场景对应的目标操作,包括:向第三电子设备发送第二指令,所述第三电子设备用于控制所述第二电子设备是否在所述第二电子设备关联的每个场景下执行每个场景对应的目标操作,所述第二指令用于指示所述第三电子设备禁止所述第二电子设备在所述第二电子设备关联的每个场景下执行每个场景对应的目标操作。
结合第一方面,在第一方面的某些实现方式中,所述显示方法还包括:接收来自所述第三电子设备的第二消息,所述第二消息用于指示所述第三电子设备已经禁止所述第二电子设备在所述第二电子设备关联的每个场景下执行每个场景对应的目标操作;显示所述第二消息。
结合第一方面,在第一方面的某些实现方式中,所述禁止所述第二电子设备在所述第二电子设备关联的每个场景下执行每个场景对应的目标操作,包括:检测到满足所述第二电子设备在所述第二电子设备关联的每个场景下执行每个场景对应的目标操作的触发条件时,不触发所述第二电子设备在所述第二电子设备关联的每个场景下执行每个场景对应的目标操作。
结合第一方面,在第一方面的某些实现方式中,所述方法还包括:显示第二提示信息,所述第二提示信息用于指示已经禁止所述第二电子设备在所述第二电子设备关联的每个场景下执行每个场景对应的目标操作。
结合第一方面,在第一方面的某些实现方式中,所述第四控件处于被选中的状态,所述显示方法还包括:响应于检测到用户对所述第四控件的第六操作,控制所述第四控件处于未被选中的状态,并解除禁止所述第二电子设备在所述第二电子设备关联的每个场景下执行每个场景对应的目标操作。
第二方面提供了一种电子设备,包括:一个或多个处理器、一个或多个存储器、以及一个或多个计算机程序;上述一个或多个计算机程序被存储在存储器中,当电子设备运行时,该处理器执行该存储器存储的一个或多个计算机程序,以使电子设备执行如上述第一方面以及第一方面中任一项可能的实现方式中所述的显示方法。
第三方面提供一种计算机可读存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行如上述第一方面以及第一方面中任一项可能的实现方式中所述的显示方法。
第四方面提供一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行如上述第一方面以及第一方面中任一项可能的实现方式中所述的显示方法。
第五方面提供一种芯片,包括至少一个处理器和接口电路,所述接口电路用于为所述至少一个处理器提供程序指令或者数据,所述至少一个处理器用于执行所述程序指令,以实现如上述第一方面以及第一方面中任一项可能的实现方式中所述的显示方法。
可以理解地,上述提供电子设备、计算机可读存储介质以及计算机程序产品均用于执行上文所提供的对应的方法,因此,其所能达到的技术效果可参考上文所提供的对应的方法中的技术效果,此处不再赘述。
图1是本申请实施例提供的一种电子设备的硬件结构示意图。
图2是本申请实施例提供的一种电子设备的软件结构框图。
图3是本申请实施例提供的一例GUI。
图4是本申请实施例提供的手机的一组GUI。
图5是本申请实施例提供的手机的另一组GUI。
图6至图8为本申请实施例提供的一例显示方法的示意性流程图。
图9是本申请实施例提供的一例电子设备的示意性框图。
图10是本申请实施例提供的另一例电子设备的示意性框图。
下面将结合附图,对本申请实施例中的技术方案进行描述。
本申请实施例中涉及的电子设备可以指用户设备、接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、终端、无线通信设备、用户代理或用户装置。电子设备还可以是蜂窝电话、无绳电话、会话启动协议电话、个人数字处理、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备(例如蓝牙耳机或智能手表)、家居设备(例如智能门锁、智能灯或智能猫眼),未来5G网络中的设备或者未来演进的公用陆地移动通信网络中的设备等,本申请实施例对此并不限定。
示例性的,图1示出了本申请实施例提供的一例电子设备100的结构示意图。
例如,如图1所示,电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。其中,I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。UART
接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。电源管理模块141用于连接电池142,充电管理模块140与处理器110。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。
在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。耳机接口170D用于连接有线耳机。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。陀螺仪传感器180B可以用于确定电子设备100的运动姿态。气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。距离传感器180F,用于测量距离。指纹传感器180H用于采集指纹。触摸传感器180K,也
称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。
按键190包括开机键,音量键等。马达191可以产生振动提示。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。
图1所述的电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。
本申请实施例对该软件系统不作限定。例如,该软件系统可以为或系统等。
下面结合图2,以分层架构的为例,示例性说明电子设备100的软件结构。
图2是本申请实施例的电子设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层和系统库,以及内核层。应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,禁止屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
图3示出了本申请实施例提供的一例图形用户界面(graphical user interface,GUI)。
如图3所示的GUI为物联网(internet of things,IOT)控制端应用程序如智慧生活应用中场景的显示界面。该智慧生活应用中设置了13个场景,该GUI中示出了8个场景控件,即场景1对应的控件1、场景2对应的控件2、场景3对应的控件3、场景4对应的控件4、场景5对应的控件5、场景6对应的控件6、场景7对应的控件7、以及场景8对应的控件8。用户可以通过在GUI上向上滑动的操作查看剩余的5个场景控件。用户可以通过场景对应的控件(如单击控件)查看该场景的触发条件、目标操作、目标设备,当目标设备满足触发条件时,会执行目标操作。
需要说明的是,图3所示的13个场景设置可以是同一个设备的场景设置,也可以是多个设备的场景设置,本申请实施例对此不作限定。以及,图3所示的场景的数量仅为示例,其不应对本申请构成限制。此外,本申请均以IOT控制端应用程序为智慧生活应用为例进行描述,其不应对本申请构成限制。
在智能家居环境中,存在大量的场景设置,如果用户想到找到哪个电子设备被哪些场景关联了,用户需要从大量的场景设置中一一查询。
当用户想要对某一电子设备的异常行为(如目标电子设备在不明原因的情况下执行目标操作)进行管理的话,用户需要花费大量的时间,从大量的场景设置中逐一查询是哪个场景设置引起了该某一电子设备的异常行为。
例如,用户发现目标电子设备在不明原因的情况下执行目标操作,如用户发现家里某个灯自动打开了,但不知道是什么原因引起的,也不知道是什么时候被打开的。此时,用户需要从智能家居环境中大量的场景配置中逐个排查,找到与该灯自动打开原因相关的场景设置。
此外,当用户想要对某一设备的所有场景进行管理的话,用户也需要花费大量的时间,从大量的场景设置中查询哪些场景是该设备关联的场景。
例如,用户出远门或长时间离家时,用户希望家中的电子设备(如空调)无论在什么场景下都不工作。此时,用户需要从智能家居环境中大量的场景配置中逐个排查,找到与电子设备关联的所有的场景设置。
无论用户是想要对某一电子设备的异常行为进行管理,还是用户想要对某一设备的所有场景进行管理,都需要从智能家居环境中大量的场景配置中逐个排查,给用户带来了不便,使得用户体验较差。
因此,本申请实施例提供了一种显示方法,该显示方法可应用于第一电子设备。通过该显示方法,用户不仅可以通过第一电子设备查询到每个电子设备所关联的场景,用户还可以通过第一电子设备上显示的用于管理第二电子设备的场景的控件,来对第二电子设备的场景进行管理,这样,给用户带来了便利,有助于提高用户体验。
下面结合图4和图5,对本申请实施例提供的手机的一组GUI进行描述。
应理解,图4和图5均以第一电子设备为手机为例进行描述,其不应对本申请构成限制。
若用户发现智能家居环境中的设备4存在异常行为,但是用户不知道该设备4发生异常行为的原因,此时,用户可以通过智慧生活应用来对设备4的异常行为进行管理。例如,用户发现家里的筒灯(设备4的一例)总是在半夜自动开启,但是用户不知道该筒灯半夜自动开启的原因,用户可以通过智慧生活应用来对筒灯半夜自动开启的异常行为进行管理。
下面,结合图4,对用户如何通过智慧生活来对设备4的异常行为进行管理进行描述。
图4为本申请实施例提供的手机的一组GUI。
如图4中的(a)所示,手机显示桌面,手机的桌面上包括多个应用程序的图标,该多个应用程序包括时钟、日历、图库、备忘录、智慧生活以及应用商城等。
当手机检测到用户点击智慧生活应用的图标,手机可以显示如图4中的(b)所示的GUI。
如图4的(b)所示,该GUI为智慧生活应用的主页面,该GUI中示出了智慧生活应用管理的四个设备对应的控件,即设备1对应的控件301、设备2对应的控件302、设备3对应的控件303和设备4对应的控件304。
可选地,该智慧生活的主页面还可以显示智慧生活管理的设备的数量以及场景的数量。如图4的(b)所示,该GUI还可以包括“4个设备”文本信息以及“14个智能场景”文本信息。
当手机检测到用户对设备4对应的控件304的长按操作,手机可以显示如图4中的(c)所示的用于查询设备4的关联场景的控件305。
应理解,如图4中的(c)所示的控件305在GUI中的位置仅为示例其不应对本申请构成限定。
当手机检测到用户对控件305的单击操作,手机可以显示设备4关联场景的详情显示界面,如图4中的(d)所示的GUI。
在一个示例中,该设备4关联场景的详情显示界面可以包括设备4关联的各个场景对应的控件以及单个场景对应的禁止控件。其中,单个场景对应的禁止控件用于禁止或解除禁止设备4在该设备4关联的单个场景下执行的操作。应理解,禁止控件只是一个例子,还可以采用其他名称,不构成对本申请的限制。
在另一个示例中,该设备4关联场景的详情显示界面可以包括设备4关联的全部场景对应的控件以及全部场景对应的禁止控件3101。其中,全部场景对应的禁止控件用于禁止或解除禁止设备4在该设备4关联的每个场景下执行每个场景的操作。
在又一个示例中,该设备4关联场景的详情显示界面不仅包括设备4关联的各个场景对应的控件以及单个场景对应的禁止控件,还包括设备4关联的全部场景对应的控件以及全部场景对应的禁止控件。
例如,如图4中的(d)所示,该GUI包括设备4关联的场景1对应的控件306以及场景1对应的禁止控件3061、设备4关联的场景2对应的控件307以及场景2对应的禁止控件3071、设备4关联的场景3对应的控件308以及场景3对应的禁止控件3081、设备4关联的场景4对应的控件309以及场景4对应的禁止控件3091、设备4关联的全部场景对应的控件310以及全部场景对应的禁止控件3101。
需要说明的是,如图4中的(d)所示禁止控件都是处于关闭状态(未被选中的状态),其不应对本申请构成限制。当场景对应的禁止控件处于关闭状态,可认为该场景未禁止,即当设备满足该场景下设置的触发条件时,会执行该场景下设置的目标操作。当场景对应的禁止控件处于打开状态(被选中的状态),可认为该场景禁止,即当设备满足该场景下设置的触发条件时,不会执行该场景下设置的目标操作。
可选地,在一些实施例中,设备4关联场景的详情显示界面还可以包括设备4的名称和设备4关联的场景数量。如图4中的(d)所示,设备4关联场景的详情显示界面还包括“设备4”文本信息和“4个关联场景”文本信息。
可选地,在一些实施例中,用户可以通过单击每个场景对应的控件,查看该场景的详情信息,例如,查看该场景下的触发条件、执行操作等。
当用户怀疑造成设备4异常行为的场景为场景4,用户可以单击场景4对应的禁止控件3091。当手机检测到用户对控件3091的单击操作,禁止控件3091处于如图4中的(e)所示的打开状态。
当禁止控件3091处于打开状态,手机禁止设备4的场景4,即禁止设备4在满足场景4下设置的触发条件下执行场景4下设置的操作。
通常,手机需要通过家庭场景中的控制设备来禁止设备4执行场景4。例如,手机给家庭场景中的控制设备发送禁止指令,这样,家庭场景中的控制设备在接收到禁止指令后,禁止设备4的场景4,即当满足场景4下设置的触发条件时,家庭场景中的控制设备不会触发设备4执行场景4下设置的操作。
通常,家庭场景中的控制设备是唯一的。
在一个示例中,该控制设备可以是用户设定的。例如,用户通过智慧生活应用设置控制设备。
在另一个示例中,该控制设备可以是家庭场景下组网的设备中默认的。例如,智慧生活应用中默认。
例如,家庭场景中的控制设备可以是提供家庭局域网接口的设备,如路由器,家庭场景中的控制设备还可以是云端、云服务器、家庭本地的网络主机等。本申请对该控制设备的类型不作限定。
可选地,在一些实施例中,当满足场景4下设置的触发条件时,手机还可以显示提示信息,以提示用户设备4执行场景4时被禁止执行。
例如,如图4中的(f)所示,手机可以显示弹窗311,该弹窗311中显示“您的设备4执行场景4时被禁止执行,请注意!”文本信息。
又例如,手机还可以将提示信息投递到智慧生活应用的消息队列中,然后智慧生活应用从其消息队列中取出提示信息并显示。
可选地,当手机不是家庭场景中的控制设备,家庭场景中的控制设备在检测到满足场景4下设置的触发条件时,通过消息推送平台(如华为推送(push)云服务器)向手机发送上文所述的提示信息,
这样,手机在接收到提示信息后,显示该提示信息。
若用户需要对智能家居环境中的设备4的全部行为进行一段时间的管理,如用户需要长时间关闭设备4,但是设备4的开启规则比较复杂,用户不想修改设备4的开启规则,此时,用户可以通过智慧生活应用来对设备4的开启行为进行管理,以实现对设备4进行长时间关闭管理。例如,用户出远门,长时间离家,用户想在离家的这段时间不要触发空调的开启,来节省空调的功耗、电能等,此时,用户可以通过智慧生活应用来对空调在离家的这段时间内自动开启的行为进行管理。
下面,结合图5,对用户如何通过智慧生活应用来对设备4的全部行为进行一段时间管理进行描述。
图5为本申请实施例提供的手机的一组GUI。
其中,图5中的(a)至图5中的(d)的相关描述,可以分别参考图4中的(a)至图4中的(d)的描述,这里不再赘述。
当用户想要需要长时间关闭智能家居环境中的设备4,用户可以单击图5中的(d)所示的全部场景对应的禁止控件3101。当手机检测到用户对控件3101的单击操作,禁止控件3101处于如图5中的(e)所示的打开状态。
当禁止控件3101处于打开状态,手机禁止设备4的全部场景4,即禁止设备4在满足每个场景下设置的触发条件下执行每个场景下设置的操作。
关于该手机禁止设备4的全部场景4的方式可以参考上文图4中的相关描述,这里不再赘述。
可选地,在一些实施例中,当满足设备4的全部场景中的任意一个场景下设置的触发条件时,手机还可以显示提示信息,以提示用户设备4被禁止。
例如,如图5中的(f)所示,手机可以显示弹窗312,该弹窗312中显示“您的设备4已被禁止,请注意!”文本信息。
又例如,手机还可以将提示信息投递到智慧生活应用的消息队列中,然后智慧生活应用从其消息队列中取出提示信息并显示。
下面,结合图6,对本申请实施例提供的显示方法进行描述。该显示方法可以应用于第一电子设备,该第一电子设备可以是上文图1或图2所示的电子设备100,或者,该显该第一电子设备可以是上文图4和图5中所述的手机。
图6示出了本申请实施例提供的显示方法400的示意性流程图。
例如,如图6所示,该方法400包括:
S410,第一电子设备显示目标应用程序的第一界面。
其中,第一界面包括与第二电子设备相关的第一控件。
该第二电子设备和目标应用程序属于同一厂商的产品,或者,该第二电子设备支持目标连接协议,该目标连接协议和目标应用程序属于同一厂商的产品。
目标应用程序用于管理第二电子设备关联的场景。换句话说,用户可通过目标应用程序进行第二电子设备的场景设置。其中,场景设置可以包括场景的基本信息(如场景名称等)、触发条件(如生效时段、满足条件等)、目标操作、关联的第二电子设备。这样,在第二电子设备关联的场景下,当该第二电子设备满足触发条件时,可以控制该第二电子设备执行目标操作。
示例性地,该目标应用程序为IOT控制端应用程序。例如,该目标应用程序可以是华为智慧生活应用,该智慧生活应用可以用于发现、连接和管理华为生产的电子设备或支持华为HiLink协议(目标连接协议的一例)的电子设备。
需要说明的是,第一,目标应用程序除了可以管理第二电子设备关联的场景外,还可以管理其他电子设备关联的场景。其中,其他电子设备可以与目标应用程序属于同一厂商的产品,或者,其他电子设备支持目标连接协议。
第二,目标应用程序除了管理电子设备(第二电子设备或其他电子设备)关联的场景外,还可以用于发现、连接电子设备,本申请实施例对此不作限定。
第三,第一界面除了包括与第二电子设备相关的第一控件外,还可以包括其他电子设备相关的控件。
例如,第一界面可以是如图4中的(b)或如图5中的(b)所示的GUI,第一控件可以是如图4中的(b)所示设备4对应的控件304。其他电子设备相关的控件可以包括设备1相关的控件301、设备
2相关的控件302、设备3相关的控件303等。
S420,第一电子设备响应于检测到用户对第一控件的第一操作,在第一界面上显示第二控件。
例如,第二控件可以是如图4中的(c)或如图5中的(c)所示的控件305。
示例性地,第一操作可以包括长按、双击等操作,本申请实施例对此不作限定。
可选地,在一些实施例中,在S410之后,方法400还可以包括:响应于检测到用户对第一控件的第七操作,显示第三界面,该第三界面包括第二电子设备的详情信息。
示例性地,第二电子设备的详情信息可以包括第二电子设备的属性、第二电子设备的状态、第二电子设备的使用记录、第二电子设备与第一电子设备的连接状态等,本申请实施例对此不作限定。
示例性地,第二电子设备的属性可以包括第二电子设备的电量、第二电子设备的主题模式等。
示例性地,第二电子设备的状态可以包括第二电子设备已启动或已禁止。
示例性地,第七操作可以包括单击等操作。
S430,第一电子设备响应于检测到用户对第二控件的第二操作,显示目标应用程序的第二界面。
其中,第二界面包括第二电子设备关联的场景信息。
示例性地,场景信息可以包括场景的基本信息(如场景名称等)。
该场景信息可以包括第二电子设备的每个场景的场景信息。
在一个示例中,该第二电子设备的每个场景的场景信息可以一一呈现在第二界面中。
例如,场景信息可以包括如图4中的(d)或如图5中的(d)所示的“场景1”文本信息、“场景2”文本信息、“场景2”文本信息、“场景4”文本信息。
在另一个示例中,该第二电子设备的每个场景的场景信息可以一起呈现在第二界面中。
例如,场景信息可以包括如图4中的(d)或如图5中的(d)所示的“全部场景”文本信息。
可选地,在一些实施例中,场景信息还可以包括触发条件(如生效时段、满足条件等)、目标操作等。
第二界面除了包括场景信息外,还包括第三控件和/或第四控件,第三控件用于禁止或解除禁止第二电子设备在第二电子设备关联的第一场景下执行第一目标操作,第四控件用于禁止或解除禁止第二电子设备在第二电子设备关联的每个场景下执行每个场景对应的目标操作
例如,第三控件可以是如图4中的(d)或如图5中的(d)所示的场景4对应的禁止控件3091。第四控件可以是如图4中的(d)或如图5中的(d)所示的全部场景对应的禁止控件3101。
示例性地,若第二电子设备的每个场景的场景信息一一呈现在第二界面时,第二界面还包括第二电子设备的其他场景对应的禁止控件。
例如,第二界面还可以包括如图4中的(d)或如图5中的(d)所示的场景1对应的禁止控件3061、场景2对应的禁止控件3071、和场景3对应的禁止控件3081。
示例性地,第二操作可以包括单击等操作,本申请实施例对此不作限定。
下面,以情况A和情况B,来对用户是否想要对第二电子设备的异常行为进行管理的方案进行描述。
情况A,第三控件处于未被选中的状态,用户想要对第二电子设备的异常行为进行管理
可选地,在一些实施例中,在情况A中,在S430之后,方法400还包括S440。
S440,第一电子设备响应于检测到用户对第三控件的第三操作,控制第三控件处于被选中的状态,并禁止第二电子设备在第一场景下执行第一目标操作。
示例性地,第三操作可以包括单击等操作,本申请实施例对此不作限定。
例如,如图4中的(d)所示,禁止控件3091处于未被选中的状态。当第一电子设备响应于检测到用户对禁止控件3091的单击操作,第一电子设备控制禁止控件3091处于被选中的状态,如图4中的(e)所示。
下面,以情况1和情况2对禁止第二电子设备在第一场景下执行第一目标操作进行说明。
其中,情况1中,第一电子设备不是控制设备,故第一电子设备无法直接禁止第二电子设备在第一场景下执行第一目标操作,第一电子设备需要借助第三电子设备(控制设备),来禁止第二电子设备在第一场景下执行第一目标操作。此时,第三电子设备和第二电子设备属于同一厂商的产品,或者,该第三电子设备支持上文所述的目标连接协议。
情况2中,第一电子设备是控制设备,故第一电子设备可以直接禁止第二电子设备在第一场景下
执行第一目标操作。此时,第一电子设备和第二电子设备属于同一厂商的产品,或者,该第一电子设备支持上文所述的目标连接协议。
关于控制设备的描述可以参见上文的相关描述,这里不再赘述。
情况1,第一电子设备不是控制设备
在情况1中,如图7所示,S440具体可以包括:
S441a,第一电子设备向第三电子设备发送第一指令。
其中,第三电子设备用于控制第二电子设备是否在第一场景下执行第一目标操作,即第三电子设备为控制设备。
第一指令用于指示第三电子设备禁止第二电子设备在第一场景下执行第一目标操作。
第三电子设备在接收到第一指令之后,第三电子设备还可以执行S442a。
S442a,第三电子设备根据第一指令,禁止第二电子设备在第一场景下执行第一目标操作。
示例性地,第三电子设备可以保存用户通过目标应用程序中设置的各个电子设备的场景设置,其中,场景设置包括:在第一场景下,满足第一触发条件时,第三电子设备执行第一目标操作。当第三电子设备接收到第一指令后,可以将第二电子设备关联的第一场景下的第二电子设备设置为禁止标记。这样,当第三电子设备检测到满足第二电子设备在第一场景下执行第一目标操作的触发条件时,第三电子设备不会触发第二电子设备执行第一目标操作,即第三电子设备不会向第二电子设备发送触发第二电子设备执行第一目标操作的指令。
可选地,在S442a之后,当在第一场景满足第一场景的触发条件时,如图7所示,方法400还可以包括:
S443a,第三电子设备向第一电子设备发送第一消息。相应地,第一电子设备接收来自第三电子设备的第一消息。
其中,第一消息用于指示已经禁止第二电子设备在第一场景下执行第一目标操作。
示例性地,第三电子设备可以通过消息推送平台(如华为推送(push)云服务器)向第一电子设备发送第一消息。例如,第三电子设备可以通过消息推送平台(如华为推送(push)云服务器)向第一电子设备的目标应用程序发送第一消息。
可选地,在第一电子设备接收到第一消息之后,如图7所示,第一电子设备还可以执行S444a。
S444a,第一电子设备显示第一消息。
示例性地,第一电子设备在接收到第一消息之后,可以将第一消息投递到目标应用程序的消息队列中,然后目标应用程序从其消息队列中取出第一消息,并显示第一消息。
示例性地,第一电子设备可以通过通知栏、弹窗来显示第一消息。
例如,如图4中的(f)所示,第一电子设备通过弹窗311显示“您的设备4执行场景4时被禁止执行,请注意!”文本信息(第一消息的一例)。
情况2,第一电子设备是控制设备
在情况2中,S440具体包括:
S441b,第一电子设备禁止第二电子设备在第一场景下执行第一目标操作。
示例性地,第一电子设备可以保存用户通过目标应用程序中设置的各个电子设备的场景设置。当第一电子设备检测到用户对第三控件的第三操作后,可以将第二电子设备关联的第一场景下的第二电子设备设置为禁止标记。这样,当第一电子设备检测到满足第一场景下执行第一目标操作的触发条件时,第一电子设备不会触发第二电子设备执行第一目标操作,即第一电子设备不会向第二电子设备发送触发第二电子设备执行第一目标操作的指令。
可选地,在S441b之后,当在第一场景满足第一场景的触发条件时,方法400还可以包括:
S442b,第一电子设备显示第一提示消息。
其中,第一提示消息用于指示已经禁止第二电子设备在第一场景下执行第一目标操作。
示例性地,第一电子设备可以通过通知栏、弹窗来显示第一提示消息。
情况B,第三控件处于被选中的状态,用户不想要对第二电子设备的异常行为进行管理
可选地,在一些实施例中,在情况B中,在S430之后,方法400还包括S450。
S450,第一电子设备响应于检测到用户对第三控件的第四操作,控制第三控件处于未被选中的状态,并解除禁止第二电子设备在第一场景下执行第一目标操作。
示例性地,第四操作可以包括单击等操作,本申请实施例对此不作限定。
关于第一电子设备如何解除禁止第二电子设备在第一场景下执行第一目标操作的方案,只需将上文第一电子设备如何禁止第二电子设备在第一场景下执行第一目标操作的方案中所述的“禁止”替换为“解除禁止”、“不会触发”替换为“会触发”、以及“不会”替换为“会”,其他内容保持不变,这里不再赘述。
需要说明的是,方法400可以仅包括S440,方法400也可以仅包括S450,方法400也可以既包括S440,也包括S450,本申请实施例对此不作限定。当方法400既包括S440也包括S450时,S450可以在S440之后执行,或者,S450也可以在S440之前执行。
下面,以情况C和情况D,来对用户是否想要对第二电子设备的全部行为进行一段时间的管理的方案进行描述。
情况C,第四控件处于未被选中的状态,用户想要对第二电子设备的全部行为进行一段时间的管理
可选地,在一些实施例中,在情况C中,在S430之后,方法400还包括S460。
S460,响应于检测到用户对第四控件的第五操作,控制第四控件处于被选中的状态,并禁止第二电子设备在第二电子设备关联的每个场景下执行每个场景对应的目标操作。
示例性地,第五操作可以包括单击等操作,本申请实施例对此不作限定。
例如,如图5中的(d)所示,禁止控件3101处于未被选中的状态。当第一电子设备响应于检测到用户对禁止控件3101的单击操作,第一电子设备控制禁止控件3101处于被选中的状态,如图5中的(e)所示。
下面,同样以情况1和情况2对禁止第二电子设备在第二电子设备关联的每个场景下执行每个场景对应的目标操作进行说明。
其中,情况1中,第一电子设备不是控制设备,故第一电子设备无法直接禁止第二电子设备在每个场景下执行每个场景对应的目标操作,第一电子设备需要借助第三电子设备(控制设备),来禁止第二电子设备在每个场景下执行每个场景对应的目标操作。此时,第三电子设备和第二电子设备属于同一厂商的产品,或者,该第三电子设备支持上文所述的目标连接协议。
情况2中,第一电子设备是控制设备,故第一电子设备可以直接禁止第二电子设备在每个场景下执行每个场景对应的目标操作。此时,第一电子设备和第二电子设备属于同一厂商的产品,或者,该第一电子设备支持上文所述的目标连接协议。
情况1,第一电子设备不是控制设备
在情况1中,如图8所示,S460具体可以包括:
S461a,第一电子设备向第三电子设备发送第二指令。
其中,第三电子设备用于控制第二电子设备是否在第二电子设备关联的每个场景下执行每个场景对应的目标操作,即第三电子设备为控制设备。
第二指令用于指示第三电子设备禁止第二电子设备在第二电子设备关联的每个场景下执行每个场景对应的目标操作。
第三电子设备在接收到第二指令之后,第三电子设备还可以执行S462a。
S462a,第三电子设备根据第二指令,禁止第二电子设备在第二电子设备关联的每个场景下执行每个场景对应的目标操作。
示例性地,第三电子设备可以保存用户通过目标应用程序中设置的各个电子设备的场景设置,其中,场景设置包括在每个场景下,满足每个场景的触发条件时,第三电子设备执行每个场景对应的目标操作。当第三电子设备接收到第二指令后,可以将涉及第二电子设备关联的全部场景下的第二电子设备设置为禁止标记。这样,当第三电子设备检测到满足第二电子设备在第二电子设备关联的每个场景下执行每个场景对应的触发条件时,第三电子设备不会触发第二电子设备执行每个场景对应的目标操作,即第三电子设备不会向第二电子设备发送触发第二电子设备在第二电子设备关联的每个场景下执行每个场景对应的目标操作的指令。
可选地,在S462a之后,当第二电子设备关联的全部场景中的第二场景(第二电子设备关联的全部场景中的任意一个场景)满足第二场景的触发条件时,如图8所示,方法400还可以包括:
S463a,第三电子设备向第一电子设备发送第二消息。相应地,第一电子设备接收来自第三电子设
备的第二消息。
其中,第二消息用于指示第三电子设备已经禁止第二电子设备在第二电子设备关联的每个场景下执行每个场景对应的目标操作。
示例性地,第三电子设备可以通过消息推送平台(如华为推送(push)云服务器)向第一电子设备发送第二消息。例如,第三电子设备可以通过消息推送平台(如华为推送(push)云服务器)向第一电子设备的目标应用程序发送第二消息。
可选地,在第一电子设备接收到第二消息之后,如图8所示,第一电子设备还可以执行S464a。
S464a,第一电子设备显示第二消息。
示例性地,第一电子设备可以通过通知栏、弹窗来显示第二消息。
例如,如图5中的(f)所示,第一电子设备通过弹窗312显示“您的设备4已被禁止执行,请注意!”文本信息(第二消息的一例)。
情况2,第一电子设备是控制设备
在情况2中,S460b具体可以包括:
S461b,第一电子设备禁止第二电子设备在第二电子设备关联的每个场景下执行每个场景对应的目标操作。
示例性地,第一电子设备可以保存用户通过目标应用程序中设置的各个电子设备的场景设置。当第一电子设备检测到用户对第四控件的第五操作后,可以将第二电子设备关联的每个场景下的第二电子设备设置为禁止标记。这样,当第一电子设备检测到满足第二电子设备在第二电子设备关联的每个场景下执行每个场景对应的目标操作的触发条件时,第一电子设备不会触发第二电子设备在第二电子设备关联的每个场景下执行每个场景对应的目标操作,即第一电子设备不会向第二电子设备发送触发第二电子设备在第二电子设备管理的每个场景下执行每个场景对应的目标操作的指令。
可选地,在S461b之后,当第二电子设备关联的全部场景中的第二场景(第二电子设备关联的全部场景中的任意一个场景)满足第二场景的触发条件时,方法400还可以包括:
S462b,第一电子设备显示第二提示消息。
其中,第二提示消息用于指示已经禁止第二电子设备在第二电子设备关联的每个场景下执行每个场景对应的目标操作。
示例性地,第一电子设备可以通过通知栏、弹窗来显示第二提示消息。
情况D,第四控件处于被选中的状态,用户不想要对第二电子设备的全部行为进行一段时间的管理
可选地,在一些实施例中,在情况D中,在S430之后,方法400还包括S470。
S470,第一电子设备响应于检测到用户对第四控件的第六操作,控制第四控件处于未被选中的状态,并解除禁止第二电子设备在第二电子设备关联的每个场景下执行每个场景对应的目标操作。
示例性地,第六操作可以包括单击等操作,本申请实施例对此不作限定。
关于第一电子设备如何解除禁止第二电子设备在第二电子设备关联的每个场景下执行每个场景对应的目标操作的方案,只需将上文第一电子设备如何禁止第二电子设备在第二电子设备关联的每个场景下执行每个场景对应的目标操作的方案中所述的“禁止”替换为“解除禁止”、“不会触发”替换为“会触发”、以及“不会”替换为“会”,其他内容保持不变,这里不再赘述。
需要说明的是,方法400可以仅包括S460,方法400也可以仅包括S470,方法400也可以既包括S460,也包括S470,本申请实施例对此不作限定。当方法400既包括S460也包括S470时,S470可以在S460之后执行,或者,S470也可以在S460之前执行。
通过方法400,用户通过第一电子设备的目标应用程序,不仅可以查询到第二电子设备所关联的场景,用户还可以通过第一电子设备上显示的用于管理第二电子设备的场景的控件,来对第二电子设备的场景进行管理,进而实现对第二电子设备的异常行为进行管理或对第二电子设备的全部行为进行一段时间的管理,给用户带来了便利,有助于提高用户体验。
需要说明的是,上述方法400中,当用户直接操作第二电子设备时,即第二电子设备检测到用户对第二电子设备的操作,第二电子设备执行用户操作对应的操作。此时,第二电子设备不受第一电子设备禁止第二电子设备在其关联的场景下执行相应的目标操作的限制。也就是说,当用户直接操作第二电子设备来控制第二电子设备时,第二电子设备不受第一电子设备禁止第二电子设备在其关联的场
景下执行相应的目标操作的限制;当通过设置的场景来控制第二电子设备时,第二电子设备受第一电子设备禁止第二电子设备在其关联的场景下执行相应的目标操作的限制。
下面,结合图9至图10,对本申请实施例提供的电子设备进行描述。
图9是本申请实施例提供的电子设备的示意性框图。
例如,如图9所示,该电子设备500包括处理单元510,该处理单元510用于进行数据处理。
可选地,在一些实施例中,该电子设备500还可以包括收发单元520,该收发单元520可以与外部进行通信,收发单元710还可以称为通信接口或通信单元。
可选地,该电子设备500还可以包括存储单元,该存储单元可以用于存储指令或者和/或数据,处理单元510可以读取存储单元中的指令或者和/或数据。
该电子设备500可以用于执行上文方法400中第一电子设备所执行的动作,这时,该电子设备500可以为第一电子设备或者可配置于第一电子设备的部件,处理单元510用于执行上文方法400中第一电子设备侧的处理相关的操作,收发单元520用于执行上文方法400中第一电子设备侧的收发相关的操作。
图10示出了本申请实施例提供的电子设备600的示意性结构图。
如图10所示,该电子设备600包括:一个或多个处理器610,一个或多个存储器620,该一个或多个存储器存储620存储有一个或多个计算机程序,该一个或多个计算机程序包括指令。当该指令被所述一个或多个处理器610运行时,使得电子设备600执行上述方法400中第一电子设备执行的技术方案。
本申请实施例提供了一种系统,包括第一电子设备和第三电子设备,其中,该第一电子设备用于执行上述方法400中第一电子设备执行的技术方案,和/或,第三电子设备用于执行上述方法400中第三电子设备执行的技术方案。其实现原理和技术效果与上述方法相关实施例类似,此处不再赘述。
本申请实施例提供一种计算机程序产品,当所述计算机程序产品在第一电子设备运行时,使得第一电子设备执行上述实施例中的技术方案。其实现原理和技术效果与上述方法相关实施例类似,此处不再赘述。
本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质包含指令,当所述指令在第一电子设备运行时,使得所述第一电子设备执行上述实施例的技术方案。其实现原理和技术效果类似,此处不再赘述。
本申请实施例提供一种芯片,所述芯片用于执行指令,当所述芯片运行时,执行上述实施例中的技术方案。其实现原理和技术效果类似,此处不再赘述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,
包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。
Claims (16)
- 一种显示方法,其特征在于,所述显示方法应用于第一电子设备,包括:显示目标应用程序的第一界面,所述第一界面包括与第二电子设备相关的第一控件,所述目标应用程序用于管理所述第二电子设备关联的场景;响应于检测到用户对所述第一控件的第一操作,在所述第一界面上显示第二控件;响应于检测到用户对所述第二控件的第二操作,显示所述目标应用程序的第二界面,所述第二界面包括所述第二电子设备关联的场景信息,所述第二界面还包括第三控件和/或第四控件,所述第三控件用于禁止或解除禁止所述第二电子设备在所述第二电子设备关联的第一场景下执行第一目标操作,所述第四控件用于禁止或解除禁止所述第二电子设备在所述第二电子设备关联的每个场景下执行每个场景对应的目标操作。
- 根据权利要求1所述的显示方法,其特征在于,所述第三控件处于未被选中的状态,所述显示方法还包括:响应于检测到用户对所述第三控件的第三操作,控制所述第三控件处于被选中的状态,并禁止所述第二电子设备在所述第一场景下执行所述第一目标操作。
- 根据权利要求2所述的显示方法,其特征在于,所述禁止所述第二电子设备在所述第一场景下执行所述第一目标操作,包括:向第三电子设备发送第一指令,所述第三电子设备用于控制所述第二电子设备是否在所述第一场景下执行所述第一目标操作,所述第一指令用于指示所述第三电子设备禁止所述第二电子设备在所述第一场景下执行所述第一目标操作。
- 根据权利要求3所述的显示方法,其特征在于,所述显示方法还包括:接收来自所述第三电子设备的第一消息,所述第一消息用于指示已经禁止所述第二电子设备在所述第一场景下执行所述第一目标操作;显示所述第一消息。
- 根据权利要求2所述的显示方法,其特征在于,所述禁止所述第二电子设备在所述第一场景下执行所述第一目标操作,包括:检测到满足所述第二电子设备在所述第一场景下执行所述第一目标操作的触发条件时,不触发所述第二电子设备在所述第一场景下执行所述第一目标操作。
- 根据权利要求5所述的显示方法,其特征在于,所述方法还包括:显示第一提示信息,所述第一提示信息用于指示已经禁止所述第二电子设备在所述第一场景下执行所述第一目标操作。
- 根据权利要求1至6中任一项所述的显示方法,其特征在于,所述第三控件处于被选中的状态,所述显示方法还包括:响应于检测到用户对所述第三控件的第四操作,控制所述第三控件处于未被选中的状态,并解除禁止所述第二电子设备在所述第一场景下执行所述第一目标操作。
- 根据权利要求1所述的显示方法,其特征在于,所述第四控件处于未被选中的状态,所述显示方法还包括:响应于检测到用户对所述第四控件的第五操作,控制所述第四控件处于被选中的状态,并禁止所述第二电子设备在所述第二电子设备关联的每个场景下执行每个场景对应的目标操作。
- 根据权利要求8所述的显示方法,其特征在于,所述禁止所述第二电子设备在所述第二电子设备关联的每个场景下执行每个场景对应的目标操作,包括:向第三电子设备发送第二指令,所述第三电子设备用于控制所述第二电子设备是否在所述第二电子设备关联的每个场景下执行每个场景对应的目标操作,所述第二指令用于指示所述第三电子设备禁止所述第二电子设备在所述第二电子设备关联的每个场景下执行每个场景对应的目标操作。
- 根据权利要求9所述的显示方法,其特征在于,所述显示方法还包括:接收来自所述第三电子设备的第二消息,所述第二消息用于指示所述第三电子设备已经禁止所述第二电子设备在所述第二电子设备关联的每个场景下执行每个场景对应的目标操作;显示所述第二消息。
- 根据权利要求8所述的显示方法,其特征在于,所述禁止所述第二电子设备在所述第二电子设备关联的每个场景下执行每个场景对应的目标操作,包括:检测到满足所述第二电子设备在所述第二电子设备关联的每个场景下执行每个场景对应的目标操作的触发条件时,不触发所述第二电子设备在所述第二电子设备关联的每个场景下执行每个场景对应的目标操作。
- 根据权利要求11所述的显示方法,其特征在于,所述方法还包括:显示第二提示信息,所述第二提示信息用于指示已经禁止所述第二电子设备在所述第二电子设备关联的每个场景下执行每个场景对应的目标操作。
- 根据权利要求1、8至12中任一项所述的显示方法,其特征在于,所述第四控件处于被选中的状态,所述显示方法还包括:响应于检测到用户对所述第四控件的第六操作,控制所述第四控件处于未被选中的状态,并解除禁止所述第二电子设备在所述第二电子设备关联的每个场景下执行每个场景对应的目标操作。
- 一种电子设备,其特征在于,包括:一个或多个处理器;一个或多个存储器;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述一个或多个存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行如权利要求1至13中任一项所述的显示方法。
- 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1至13中任一项所述的显示方法。
- 一种芯片,其特征在于,包括至少一个处理器和接口电路,所述接口电路用于为所述至少一个处理器提供程序指令或者数据,所述至少一个处理器用于执行所述程序指令,以实现如权利要求1至13中任一项所述的显示方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211247640.3A CN117879981A (zh) | 2022-10-12 | 2022-10-12 | 显示方法及电子设备 |
CN202211247640.3 | 2022-10-12 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024078251A1 true WO2024078251A1 (zh) | 2024-04-18 |
Family
ID=90590569
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/118791 WO2024078251A1 (zh) | 2022-10-12 | 2023-09-14 | 显示方法及电子设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN117879981A (zh) |
WO (1) | WO2024078251A1 (zh) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112147964A (zh) * | 2020-09-30 | 2020-12-29 | 维沃移动通信有限公司 | 设备管理方法、装置、电子设备和介质 |
CN112306364A (zh) * | 2020-11-19 | 2021-02-02 | Oppo广东移动通信有限公司 | IoT设备的控制方法、装置、终端及存储介质 |
CN112334862A (zh) * | 2019-05-31 | 2021-02-05 | 苹果公司 | 用于管理可控外部设备的用户界面 |
US20210243084A1 (en) * | 2020-01-31 | 2021-08-05 | Wyze Labs, Inc. | Systems and methods for creating virtual devices |
-
2022
- 2022-10-12 CN CN202211247640.3A patent/CN117879981A/zh active Pending
-
2023
- 2023-09-14 WO PCT/CN2023/118791 patent/WO2024078251A1/zh unknown
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112334862A (zh) * | 2019-05-31 | 2021-02-05 | 苹果公司 | 用于管理可控外部设备的用户界面 |
US20210243084A1 (en) * | 2020-01-31 | 2021-08-05 | Wyze Labs, Inc. | Systems and methods for creating virtual devices |
CN112147964A (zh) * | 2020-09-30 | 2020-12-29 | 维沃移动通信有限公司 | 设备管理方法、装置、电子设备和介质 |
CN112306364A (zh) * | 2020-11-19 | 2021-02-02 | Oppo广东移动通信有限公司 | IoT设备的控制方法、装置、终端及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN117879981A (zh) | 2024-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021013158A1 (zh) | 显示方法及相关装置 | |
WO2020177622A1 (zh) | Ui组件显示的方法及电子设备 | |
WO2021052263A1 (zh) | 语音助手显示方法及装置 | |
WO2021052147A1 (zh) | 一种数据传输的方法及相关设备 | |
WO2023138305A9 (zh) | 卡片显示方法、电子设备及计算机可读存储介质 | |
WO2020103764A1 (zh) | 一种语音控制方法及电子设备 | |
CN110543289B (zh) | 控制音量的方法和电子设备 | |
WO2020108356A1 (zh) | 一种应用显示方法及电子设备 | |
WO2020062294A1 (zh) | 系统导航栏的显示控制方法、图形用户界面及电子设备 | |
EP4084486B1 (en) | Cross-device content projection method, and electronic device | |
WO2022068483A1 (zh) | 应用启动方法、装置和电子设备 | |
WO2021036770A1 (zh) | 一种分屏处理方法及终端设备 | |
WO2021063237A1 (zh) | 电子设备的控制方法及电子设备 | |
KR102277460B1 (ko) | 화면을 공유하기 위한 방법 및 그 전자 장치 | |
CN111182614B (zh) | 建立网络连接的方法和装置以及电子设备 | |
WO2022017393A1 (zh) | 显示交互系统、显示方法及设备 | |
KR20150025290A (ko) | 전자 장치 및 그 동작 방법 | |
WO2021253975A1 (zh) | 应用程序的权限管理方法、装置和电子设备 | |
KR20150066083A (ko) | 전자 장치의 멀티 태스킹 방법 및 그 전자 장치 | |
WO2020224447A1 (zh) | 一种在联系人中添加智能家居设备的方法及系统 | |
WO2021159746A1 (zh) | 文件共享方法、系统及相关设备 | |
WO2022127661A1 (zh) | 应用共享方法、电子设备和存储介质 | |
WO2021078032A1 (zh) | 用户界面的显示方法及电子设备 | |
CN108605373B (zh) | 用于提供网络共享服务的方法和电子装置 | |
CN112130788A (zh) | 一种内容分享方法及其装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23876456 Country of ref document: EP Kind code of ref document: A1 |