WO2023245526A1 - Desktop element operation method, electronic device and intelligent interaction tablet - Google Patents

Desktop element operation method, electronic device and intelligent interaction tablet Download PDF

Info

Publication number
WO2023245526A1
WO2023245526A1 PCT/CN2022/100601 CN2022100601W WO2023245526A1 WO 2023245526 A1 WO2023245526 A1 WO 2023245526A1 CN 2022100601 W CN2022100601 W CN 2022100601W WO 2023245526 A1 WO2023245526 A1 WO 2023245526A1
Authority
WO
WIPO (PCT)
Prior art keywords
desktop
event
trigger
events
software development
Prior art date
Application number
PCT/CN2022/100601
Other languages
French (fr)
Chinese (zh)
Inventor
王家宇
Original Assignee
广州视源电子科技股份有限公司
广州视源创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州视源电子科技股份有限公司, 广州视源创新科技有限公司 filed Critical 广州视源电子科技股份有限公司
Priority to CN202280006530.XA priority Critical patent/CN116420138A/en
Priority to PCT/CN2022/100601 priority patent/WO2023245526A1/en
Publication of WO2023245526A1 publication Critical patent/WO2023245526A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the invention relates to the field of display technology, and in particular to a desktop element operating method, an electronic device and an intelligent interactive tablet.
  • the intelligent interactive tablet is an integrated device that uses touch technology to control the content displayed on the display tablet and realize human-computer interaction. It is widely used in fields such as education and teaching, corporate meetings, and commercial displays.
  • smart interactive tablets are generally equipped with the Android operating system.
  • the Android operating system provides functional interfaces to developers, allowing third-party applications to register desktop elements to the desktop process and display the registered desktop elements through the desktop.
  • the operation control function for desktop elements is relatively simple.
  • embodiments of the present invention provide a desktop element operating method, an electronic device, an intelligent interactive tablet, and a computer-readable storage medium, and the desktop elements have rich operating control functions.
  • the present invention provides a desktop element operating method and a software development toolkit, which is used to provide functional interfaces in the desktop process; the method includes:
  • Monitor triggering events for desktop elements where the triggering events represent events that trigger the element process corresponding to the desktop element to operate and control the desktop element;
  • the element process corresponding to the desktop element determines the operation control that matches the type of the trigger event, and calls the functional interface to execute the corresponding operation on the desktop element through the desktop process. operational control.
  • the functional interface includes an operation interface
  • the triggering event includes an element triggering event received by the desktop element
  • the element triggering event is monitored by the desktop process
  • the desktop process monitors the element trigger event, it returns a trigger message to the element process.
  • the trigger message includes a trigger type identifier, and the trigger type identifier represents the type of the element trigger event;
  • the element process determines the operation control that matches the trigger type identifier, and calls the operation interface to perform corresponding operation control on the desktop element through the desktop process.
  • the method before the desktop process listens to the element trigger event, the method further includes:
  • the element process registers the element triggering event that needs to be monitored to the desktop process, and the desktop process monitors the registered element triggering event.
  • the functional interface includes a listening interface
  • the element triggering events include at least one of touch events, key events, input events, focus change events, and click events for desktop elements
  • Registering the element-triggered events that need to be monitored to the desktop process includes:
  • the element process calls the listening interface and registers the element triggering event that needs to be monitored in the desktop process;
  • the element process calls the system's native software development tool kit to register the click triggering event in the desktop process.
  • the method before the element process registers the element trigger event that needs to be monitored to the desktop process, the method further includes:
  • the element process calls the system's native software development tool kit to register the desktop element in the desktop process;
  • the functional interface provided by the software development toolkit includes a registration interface.
  • the element process calls the registration interface, and the software development toolkit calls the system's native software development toolkit, and registers everything in the desktop process.
  • Desktop elements The functional interface provided by the software development toolkit.
  • the method when there are multiple desktops and the desktop process listens to the registered element triggering an event, the method further includes:
  • the desktop process determines the desktop identifier of the desktop where the desktop element that receives the element trigger event is located, sets the desktop identifier in the trigger message, and returns it to the element process, so that the element process can
  • the desktop identification determines the operation control matching the trigger type identification for the desktop element of the corresponding desktop.
  • the element process corresponding to the desktop element determines the operation control that matches the type of the trigger event, including:
  • an operation control for adjusting the desktop element from the current element state to the next element state is determined.
  • the present invention also provides an electronic device.
  • the electronic device provides a software development toolkit, and the software development toolkit is used to provide a functional interface in a desktop process; the electronic device includes:
  • the event listening module monitors triggering events for desktop elements, where the triggering event represents an event that triggers the element process corresponding to the desktop element to operate and control the desktop element;
  • Desktop operation module if the trigger event is monitored, the element process corresponding to the desktop element determines the operation control that matches the type of the trigger event, and calls the functional interface to control the operation of the trigger event through the desktop process.
  • Desktop elements perform corresponding operational controls.
  • the functional interface includes an operation interface
  • the triggering event includes an element triggering event received by the desktop element
  • the element triggering event is monitored by the desktop process
  • the event listening module is specifically configured to: if the desktop process monitors the element trigger event, return a trigger message to the element process, where the trigger message includes a trigger type identifier, and the trigger type identifier represents the element trigger. type of event;
  • the desktop operation module is specifically configured to: the element process determine the operation control that matches the trigger type identifier, and call the operation interface to perform corresponding operation control on the desktop element through the desktop process.
  • the event listening module before the desktop process listens to the element trigger event, the event listening module is also used to:
  • the element process registers the element triggering event that needs to be monitored to the desktop process, and the desktop process monitors the registered element triggering event.
  • the functional interface includes a listening interface
  • the element triggering events include at least one of touch events, key events, input events, focus change events, and click events for desktop elements
  • the event monitoring module is specifically used for:
  • the element process calls the listening interface and registers the element triggering event that needs to be monitored in the desktop process;
  • the element process calls the system's native software development tool kit to register the click triggering event in the desktop process.
  • the event listening module is also used to:
  • the element process calls the system's native software development tool kit to register the desktop element in the desktop process;
  • the functional interface provided by the software development toolkit includes a registration interface.
  • the element process calls the registration interface, and the software development toolkit calls the system's native software development toolkit, and registers everything in the desktop process.
  • Desktop elements The functional interface provided by the software development toolkit.
  • the event listening module is also used to:
  • the desktop process determines the desktop identifier of the desktop where the desktop element that receives the element trigger event is located, sets the desktop identifier in the trigger message, and returns it to the element process, so that the element process can
  • the desktop identification determines the operation control matching the trigger type identification for the desktop element of the corresponding desktop.
  • the desktop operation module is specifically used to:
  • an operation control for adjusting the desktop element from the current element state to the next element state is determined.
  • Another aspect of the present invention also provides a computer-readable storage medium.
  • the computer-readable storage medium is used to store a computer program. When the computer program is executed by a processor, the method as described above is implemented.
  • the present invention also provides an intelligent interactive tablet.
  • the intelligent interactive tablet includes a processor and a memory.
  • the memory is used to store a computer program.
  • the computer program is executed by the processor, the above-mentioned functions are implemented. Methods.
  • the element process corresponding to the desktop element determines the operation control that matches the type of the triggering event, and it is possible to trigger the desktop element through a variety of triggering events.
  • Execute operation control, and different types of trigger events can have corresponding operation controls respectively.
  • the operation control functions of desktop elements are richer.
  • Figure 1 shows a schematic diagram of desktop elements on a desktop
  • Figure 2 shows a schematic flow chart of some technologies for operating and controlling desktop elements
  • Figure 3 shows a schematic flowchart of a desktop element operating method provided by an embodiment of the present application
  • Figure 4 shows a schematic flow chart for operating and controlling desktop elements provided by one embodiment of the present application
  • FIG. 5 shows a detailed schematic diagram of the desktop element "Message” in Figure 4.
  • Figure 6 shows a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Figure 7 shows a schematic structural diagram of an intelligent interactive tablet provided by an embodiment of the present application.
  • desktop elements can be content displayed through the desktop, including but not limited to the interface of software tools displayed on the desktop, application startup icons, and application folders composed of several application startup icons. wait.
  • the content displayed as Application 1, Application 2, time and date, information, and buttons can be collectively referred to as desktop elements.
  • the content displayed as application 1 and application 2 can be the startup icon of the application. Click the startup icon to start the corresponding application process.
  • the content displayed as time and date, information, and buttons can be the interface of a software tool displayed on the desktop.
  • desktop processes may provide operational control over desktop elements.
  • the desktop process can control the arrangement position, display color, etc. of desktop elements on the desktop.
  • desktop elements can be divided into two categories.
  • One type may be desktop elements provided by desktop processes, such as application startup icons and application folders composed of several application startup icons.
  • the functionality of this type of desktop element is provided by the desktop process.
  • Desktop processes can actively control this type of desktop elements.
  • launch icons shown as Application 1 and Application 2 may be first type desktop elements.
  • the other type is desktop elements that are registered by other element processes in the desktop process and displayed on the desktop.
  • the functions of such desktop elements are provided by the element process and are not directly related to the desktop process.
  • the desktop process can operate and control desktop elements based on the information provided by the element process.
  • element process 1 can send the blue information to the desktop process, and the desktop process will update the display color of desktop element 1 to blue.
  • the blue information sent by 1 updates the display color of desktop element 1 to blue.
  • the content identified as time and date, buttons and information can be the second type of desktop elements.
  • the desktop elements described in the technical solution of this application are the second type of desktop elements.
  • element processes include, for example, time and date processes, information processes, and key processes.
  • Each element process can call the system's native software development tool kit to register desktop elements in the desktop process to display desktop elements through the desktop.
  • the system-native software development kit refers to the software development kit native to the operating system, which can be called by the element process and interact with the desktop process to realize the registration of desktop elements.
  • the operating system can be the Android operating system, and the system's native software development kit can also be called Android SDK.
  • desktop process displays the desktop elements registered by the element process on the desktop
  • the user can click on the desktop elements on the desktop.
  • Desktop elements can respond accordingly to the user's click operations. For example, taking the desktop element "Information” in Figure 2 as an example, after the user performs a click operation on the desktop element "Information”, the desktop element can refresh the displayed information.
  • the information refresh operation performed by the desktop element "information” is the response made by the desktop element "information” to the user's click operation.
  • the process of the desktop element responding to the user's click operation can be as follows: after the desktop process monitors the user's click operation on the desktop element, the click operation is fed back to the element process, and the element process determines the needs of the desktop element.
  • the system's native software development tool kit is called to send the information required for the desktop element response to the desktop process.
  • the desktop process updates the desktop elements based on the information sent by the element process, thereby responding to the user's click operation. to respond.
  • the desktop process monitors the user's click on the desktop element "Information”, it feeds back the click operation to the information process.
  • the information process determines that the information displayed on the desktop element "Information” needs to be refreshed, and sends the target information to be displayed on the desktop element "Information”
  • the desktop process updates the information currently displayed by the desktop element "information" to the target information. It is understandable that different desktop elements can respond differently to the user's click operation.
  • the display color of the desktop element can be updated.
  • the display color of the desktop element can be updated.
  • the display color of the desktop element can be updated. , which can update the display content of desktop elements.
  • the user can operate and control the desktop elements by clicking on the desktop elements, such as controlling the display content of the desktop elements and controlling the display color of the desktop elements.
  • desktop elements users can only operate and control desktop elements through click operations, and other operations on desktop elements cannot operate and control desktop elements. For example, when performing a sliding operation on a desktop element, the desktop element cannot be operated and controlled.
  • the operation control functions of desktop elements are relatively simple.
  • this application proposes a desktop element operation method.
  • This method provides a customized software development toolkit based on the system's native software development toolkit, which can enrich the operation and control functions of desktop elements.
  • the software development kit is used to provide a functional interface in the desktop process, and the functional interface can be called by the element process.
  • the element process calls this functional interface to interact with the desktop process and operate and control the desktop elements through the desktop process.
  • Figure 3 is a schematic flowchart of a desktop element operating method provided by an embodiment of the present application.
  • Figure 4 is a schematic flowchart of operating and controlling desktop elements according to an embodiment of the present application.
  • the desktop element operation method can be applied to the intelligent interactive tablet, including step S31 and step S32.
  • Step S31 Monitor triggering events for desktop elements, where the triggering event represents an event that triggers an element process corresponding to the desktop element to operate and control the desktop element.
  • the triggering event may refer to an event that triggers the element process to call the system's native software development kit or a customized software development kit to operate and control the desktop element through the desktop process.
  • the operation control performed on the desktop elements may be that the element process responds to the triggering event and operates the display content, position, appearance, etc. of the desktop elements. Detailed explanation is given below.
  • the triggering event may include an element triggering event received by a desktop element.
  • Element trigger events can be operation events for desktop elements.
  • the element triggering event may include at least one of a touch event, a key event, an input event, a focus change event, and a click event for the desktop element.
  • Different operation events can be triggered by elements belonging to different types. By triggering events for different types of elements, different operations can be controlled on desktop elements. Specifically:
  • Touch events can refer to sliding events performed by the user in the area where the desktop element is located.
  • Figure 5 is a detailed schematic diagram of the desktop element "message” in Figure 4.
  • the desktop element “message” may include a sliding area 51 and a message area 52 .
  • there is a sliding block 511 in the sliding area 51 .
  • the user selects the sliding block 511 and slides it in the sliding area 51, which can cause the sliding block 511 to slide up and down in the sliding area 51, and then the message displayed in the message area 52 can be updated.
  • the sliding operation performed by the user in the sliding area 51 can be regarded as a sliding event performed in the area where the desktop element is located.
  • Updating the message displayed in the message area 52 may be an operation control performed on the desktop element in response to a sliding event.
  • the user in addition to sliding in the sliding area, the user can also perform sliding operations in the message area 52 to update the messages in the message area 52 .
  • Key events can refer to events monitored by the desktop process after key operations are performed on these devices when operating and controlling desktop elements through devices such as remote controls. Please continue to refer to FIG. 5 , assuming that the user can control the selected message in the message area 52 by operating the up and down buttons of the remote control.
  • the currently selected message is the first message in the message area 52.
  • the remote controller can send a downward signal to the intelligent interactive tablet, and then the currently selected message in the message area 52 can be adjusted to the message following the first message, for example
  • the currently selected message adjusts the 2nd or 3rd message.
  • the desktop process listens to this downward signal, which can mean that the desktop process listens to the key event. Adjusting the currently selected message in the message area 52 to the message following the first message may be an operational control of the desktop elements in response to a key event.
  • Input events can refer to input operation events performed by the user in the area where the desktop element is located; focus change events can refer to events where the focus of the area where the desktop element is located changes.
  • the desktop element "Message" may also include an input area 53.
  • the user can input query conditions, so that the message area 52 displays messages that satisfy the query conditions.
  • the user's action of inputting query conditions in the input area 53 can represent an input event.
  • the message area 52 displays messages that meet the query conditions, indicating the operation control of the desktop elements in response to the input event.
  • the focus change event can refer to the event that the focus of the area where the desktop element is located changes.
  • the focus can be a selection box located in the area where the desktop element is located.
  • the selection box is located at a certain position, indicating that the content at that position is selected.
  • the focus of the message area 52 is currently located at the first message, which means that the message at this position is selected. If the focus moves to the second message, it means that the second message is selected.
  • different message details can be displayed. For example, when the focus moves to the first message, the area where the first message is located is expanded, and the detailed information of the first message is displayed in the expanded area.
  • the focus moves to the second message
  • the area where the second message is located is expanded, and the detailed information of the second message is displayed in the expanded area.
  • the focus changes before different messages, which can represent a focus change event. Displaying details of the focused message can represent operational controls on desktop elements in response to focus change events.
  • a click event can refer to an event in which the user performs a click operation on the area where the desktop element is located. Please continue to see Figure 5.
  • the user clicks on a certain message in the message area 52 for example, clicks on the second message
  • the detailed information of the message can be displayed in the message area 52 .
  • the user's action of clicking on a certain message in the message area 52 can be a click event.
  • the message area 52 displays the detailed information of the message, indicating the operation control performed on the desktop element in response to the click event.
  • element-triggered events for desktop elements may be listened to by a desktop process.
  • the desktop process can feed back the monitored touch events to the element process.
  • the element process triggers the event based on the element, determines the operation control that needs to be performed on the desktop element, and calls the system's native software development kit or customized software development kit.
  • the functional interface sends information related to operation control to the desktop process, and the desktop process operates and controls the desktop elements based on the received information. For example, see Figure 5 in conjunction.
  • the desktop process can feed back the click operation performed by the user and the message identifier of the message clicked by the user to the information process, and the information process calls the customized software development tool kit
  • the functional interface sends the detailed information of the second message to the desktop process, and updates the content displayed in the message area 52 through the desktop process.
  • the element trigger events that need to be monitored can be specified for each desktop element. For example, for the desktop element "key press", you need to pay attention to the focus change events and key press events received by the desktop element. You can only monitor whether the desktop element receives focus change events and key press events; and for the desktop element "information" For example, if you need to pay attention to the focus change events, touch events, and key events received by the desktop element, you can only monitor whether the desktop element receives focus change events, touch events, and key events.
  • the element process can register the element trigger events that need to be monitored to the desktop process, and the registered element trigger events can be monitored through the desktop process.
  • the functional interface may include a listening interface.
  • the listening interface may include, but is not limited to, a listening interface for touch events, a listening interface for key events, a listening interface for input events, a listening interface for focus change events, and a listening interface for click events.
  • the element process determines the element trigger event that needs to be monitored, it can call the corresponding listening interface and register the element trigger event that needs to be monitored to the desktop process, and the desktop process monitors the corresponding element trigger event.
  • the information process can call the listening interface for focus change events, the listening interface for touch events, and the listening interface for key events respectively, and register the focus change events, touch events, and key events to the desktop process, and the desktop process will "information" the desktop elements.
  • the key process can call the monitoring interface of the focus change event and the listening interface of the key event respectively, register the focus change event and key event to the desktop process, and the desktop process will "key press" the desktop element. "Whether the events are received and monitored. After the desktop process monitors the registered element trigger event, it feeds the element trigger event back to the element process through an interface callback.
  • triggering events may include, but are not limited to, the above element triggering events.
  • trigger events may also include time trigger events.
  • the time-triggered event can be an event monitored by the element process whether the time reaches the preset time. For example, when the element process monitors that the time is 1 a.m. every day, the system's native software development kit or customized software development kit is called to operate and control the desktop elements through the desktop process. Time-triggered events can be different types of trigger events than the above element-triggered events.
  • Step S32 if a trigger event is monitored, the element process corresponding to the desktop element determines the operation control that matches the type of the trigger event, and calls the functional interface to perform corresponding operation control on the desktop element through the desktop process.
  • element processes may have a matching relationship between trigger event types and operation controls.
  • each type of trigger event can have matching operation controls.
  • Table 1 exemplifies the matching relationship between trigger event types and operation controls in the message process.
  • the functional interface includes an operational interface.
  • the operation interface includes but is not limited to the interface for setting the dynamic display of desktop elements and the interface for controlling the display or hiding of desktop elements. After the element process determines the operation control for the desktop element, it calls the corresponding operation interface to perform operation control on the desktop element through the desktop process.
  • different types of element triggering events may have different trigger type identifiers.
  • the trigger type identifies the type of event that the element triggers. If the desktop process listens to the element trigger event, it returns the trigger message to the element process. The trigger message includes the trigger type identifier.
  • the element process determines the operation control that matches the trigger type identifier, and calls the operation interface to perform corresponding operation control on the desktop element through the desktop process. In this way, by carrying the trigger type identifier in the trigger message, the element process can distinguish the type of the element trigger event, and then determine the operation control that matches the type of the element trigger event.
  • the element process corresponding to the desktop element determines the operation control that matches the type of the trigger event. Specifically, it may include: the element process determines the current element state of the desktop element; and based on the current element state, based on the trigger event The type of event that determines the operational control of adjusting a desktop element from the current element state to the next element state.
  • Element status may refer to the display status of desktop elements on the desktop, including but not limited to the display content, display position, display shape, and display color of desktop elements.
  • a trigger event can trigger the adjustment of at least one element state of the desktop element, that is, the adjustment from the current element state to the next element state. For example, adjust the desktop elements from the current placement A to the next placement B.
  • the element process determines the operation control that matches the type of the trigger event, it can determine the next element state of the desktop element according to the type of the trigger event, and then determine the operation control that adjusts the desktop element from the current element state to the next element state. . For example, after the desktop element "message" receives a key event, the desktop process feeds the key event back to the element process. Based on the type of the trigger event, the element process determines that the focus position of the desktop element in the next element state should be below the current focus position. At the message position separated by two messages, the operation control to switch the focus from the current focus position to the next focus position can be determined, and the operation interface is called to send the next focus position to the desktop process, and the desktop element is controlled by the desktop process. The focus switches to the next focus position.
  • the desktop process when there are multiple desktops, the desktop process is also used to determine the desktop ID of the desktop where the desktop element that receives the element trigger event is located, and sets the desktop ID in the trigger message and returns it to the element process. So that the element process determines the operation control matching the trigger type identifier for the desktop element of the corresponding desktop according to the desktop identifier. Specifically, for the same element process, the desktop elements corresponding to different desktops may have different states. Taking the message process as an example, in Desktop 1, the desktop element "Message” may display a message list including the input content, and in Desktop 2, the desktop element "Message” may display the latest message list after refreshing.
  • the desktop element "message” receives a touch event that refreshes the content in the desktop element "message", it is understandable that the refresh content on the two desktops is different. To this end, by carrying the desktop identifier in the trigger message returned by the desktop process to the element process, the solution is more adaptable.
  • the element process corresponding to the desktop element determines the operation control that matches the type of the trigger event, so that multiple trigger events can be used to trigger the execution of operation control on the desktop element. , and different types of trigger events can have corresponding operation controls respectively.
  • the operation control functions of desktop elements are richer.
  • the customized software development kit does not need to develop a listening interface for click events.
  • the element process registers the element-triggered events that need to be monitored to the desktop process, it can register the event according to the following logic:
  • the element process calls the listening interface and registers the element trigger event that needs to be monitored in the desktop process.
  • the element process calls the system's native software development tool kit to register the click trigger event in the desktop process.
  • the desktop can be registered in the desktop process through the following method element:
  • the element process calls the system's native software development kit to register desktop elements in the desktop process; or when the functional interface provided by the custom software development kit includes a registration interface, the element process can call the registration interface, which is controlled by a custom
  • the software development kit calls the system's native software development kit and registers desktop elements in the desktop process.
  • the custom software development kit can directly call the system's native software without the need for related software development.
  • the element process or the customized software development kit can directly call the system's native software. Development toolkit to perform related functions. In this way, the purpose of reducing code development and code redundancy is achieved.
  • FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • the electronic device provides a software development kit, and the software development kit is used to provide functional interfaces in the desktop process.
  • the electronic device includes:
  • the event listening module monitors triggering events for desktop elements, where the triggering event represents an event that triggers the element process corresponding to the desktop element to operate and control the desktop element;
  • Desktop operation module if the trigger event is monitored, the element process corresponding to the desktop element determines the operation control that matches the type of the trigger event, and calls the functional interface to control the operation of the trigger event through the desktop process.
  • Desktop elements perform corresponding operational controls.
  • the functional interface includes an operation interface
  • the triggering event includes an element triggering event received by the desktop element
  • the element triggering event is monitored by the desktop process
  • the event listening module is specifically configured to: if the desktop process monitors the element trigger event, return a trigger message to the element process, where the trigger message includes a trigger type identifier, and the trigger type identifier represents the element trigger. type of event;
  • the desktop operation module is specifically configured to: the element process determine the operation control that matches the trigger type identifier, and call the operation interface to perform corresponding operation control on the desktop element through the desktop process.
  • the event listening module before the desktop process listens to the element trigger event, the event listening module is also used to:
  • the element process registers the element triggering event that needs to be monitored to the desktop process, and the desktop process monitors the registered element triggering event.
  • the functional interface includes a listening interface
  • the element triggering events include at least one of touch events, key events, input events, focus change events, and click events for desktop elements
  • the event monitoring module is specifically used for:
  • the element process calls the listening interface and registers the element triggering event that needs to be monitored in the desktop process;
  • the element process calls the system's native software development tool kit to register the click triggering event in the desktop process.
  • the event listening module is also used to:
  • the element process calls the system's native software development tool kit to register the desktop element in the desktop process;
  • the functional interface provided by the software development toolkit includes a registration interface.
  • the element process calls the registration interface, and the software development toolkit calls the system's native software development toolkit, and registers everything in the desktop process.
  • Desktop elements The functional interface provided by the software development toolkit.
  • the event listening module is also used to:
  • the desktop process determines the desktop identifier of the desktop where the desktop element that receives the element trigger event is located, sets the desktop identifier in the trigger message, and returns it to the element process, so that the element process can
  • the desktop identification determines the operation control matching the trigger type identification for the desktop element of the corresponding desktop.
  • the desktop operation module is specifically used to:
  • an operation control for adjusting the desktop element from the current element state to the next element state is determined.
  • One embodiment of the present application also provides an intelligent interactive tablet.
  • the intelligent interactive tablet includes a processor and a memory.
  • the memory is used to store a computer program.
  • the computer program is executed by the processor, the above desktop element operating method is implemented.
  • the processor may be a central processing unit (Central Processing Unit, CPU).
  • the processor can also be other general-purpose processors, Digital Signal Processor (DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other Chips such as programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of these types of chips.
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • Chips such as programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of these types of chips.
  • the memory can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions/modules corresponding to the methods in the embodiments of the present invention.
  • the processor executes various functional applications and data processing of the processor by running non-transient software programs, instructions and modules stored in the memory, that is, implementing the method in the above method implementation.
  • the memory may include a program storage area and a data storage area, where the program storage area may store an operating system and an application program required for at least one function; the data storage area may store data created by the processor, etc.
  • the memory may include high-speed random access memory and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device.
  • the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the processor through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A desktop element operation method, an electronic device, and an intelligent interaction tablet. The desktop element operation method provides a software development kit, and the software development kit is used for providing a functional interface in a desktop process. The desktop element operation method comprises: monitoring a trigger event for a desktop element (S31), the trigger event representing an event that triggers an element process corresponding to the desktop element to perform operation control on the desktop element; and, if the trigger event is detected, the element process corresponding to the desktop element determining operation control matching the type of the trigger event and calling a functional interface to execute the corresponding operation control on the desktop element by means of a desktop process (S32). In the method, the desktop element has relatively rich operation control functions.

Description

一种桌面元素操作方法、电子设备以及智能交互平板Desktop element operating method, electronic device and intelligent interactive tablet 技术领域Technical field
本发明涉及显示技术领域,具体涉及一种桌面元素操作方法、电子设备以及智能交互平板。The invention relates to the field of display technology, and in particular to a desktop element operating method, an electronic device and an intelligent interactive tablet.
背景技术Background technique
智能交互平板是通过触控技术对显示在显示平板上的内容进行操控和实现人机交互操作的一体化设备,广泛应用于教育教学、企业会议、商业展示等领域。The intelligent interactive tablet is an integrated device that uses touch technology to control the content displayed on the display tablet and realize human-computer interaction. It is widely used in fields such as education and teaching, corporate meetings, and commercial displays.
目前,智能交互平板普遍搭载的是Android操作系统。Android操作系统面向开发者提供功能接口,允许第三方应用向桌面进程注册桌面元素,通过桌面显示注册的桌面元素,但是,针对桌面元素的操作控制功能较为单一。At present, smart interactive tablets are generally equipped with the Android operating system. The Android operating system provides functional interfaces to developers, allowing third-party applications to register desktop elements to the desktop process and display the registered desktop elements through the desktop. However, the operation control function for desktop elements is relatively simple.
发明内容Contents of the invention
有鉴于此,本发明实施方式提供了一种桌面元素操作方法、电子设备、智能交互平板及计算机可读存储介质,桌面元素的操作控制功能较为丰富。In view of this, embodiments of the present invention provide a desktop element operating method, an electronic device, an intelligent interactive tablet, and a computer-readable storage medium, and the desktop elements have rich operating control functions.
本发明一方面提供了一种桌面元素操作方法,提供软件开发工具包,所述软件开发工具包用于在桌面进程中提供功能接口;所述方法包括:In one aspect, the present invention provides a desktop element operating method and a software development toolkit, which is used to provide functional interfaces in the desktop process; the method includes:
监听针对桌面元素的触发事件,其中,所述触发事件表征触发所述桌面元素对应的元素进程对所述桌面元素进行操作控制的事件;Monitor triggering events for desktop elements, where the triggering events represent events that trigger the element process corresponding to the desktop element to operate and control the desktop element;
若监听到所述触发事件,由所述桌面元素对应的元素进程确定与所述触发事件的类型相匹配的操作控制,并调用所述功能接口,通过所述桌面进程对所述桌面元素执行相应的操作控制。If the trigger event is monitored, the element process corresponding to the desktop element determines the operation control that matches the type of the trigger event, and calls the functional interface to execute the corresponding operation on the desktop element through the desktop process. operational control.
在一些实施例中,所述功能接口包括操作接口,所述触发事件包括所述桌面元素接收到的元素触发事件,所述元素触发事件由所述桌面进程进 行监听,其中,In some embodiments, the functional interface includes an operation interface, and the triggering event includes an element triggering event received by the desktop element, and the element triggering event is monitored by the desktop process, wherein,
若所述桌面进程监听到所述元素触发事件,返回触发消息给所述元素进程,所述触发消息包括触发类型标识,所述触发类型标识表征所述元素触发事件的类型;If the desktop process monitors the element trigger event, it returns a trigger message to the element process. The trigger message includes a trigger type identifier, and the trigger type identifier represents the type of the element trigger event;
所述元素进程确定与所述触发类型标识相匹配的操作控制,并调用所述操作接口,通过所述桌面进程对所述桌面元素执行相应的操作控制。The element process determines the operation control that matches the trigger type identifier, and calls the operation interface to perform corresponding operation control on the desktop element through the desktop process.
在一些实施例中,在所述桌面进程监听所述元素触发事件之前,所述方法还包括:In some embodiments, before the desktop process listens to the element trigger event, the method further includes:
由所述元素进程将需要监听的所述元素触发事件注册至所述桌面进程,通过所述桌面进程对注册的所述元素触发事件进行监听。The element process registers the element triggering event that needs to be monitored to the desktop process, and the desktop process monitors the registered element triggering event.
在一些实施例中,所述功能接口包括监听接口,所述元素触发事件包括针对桌面元素的触摸事件、按键事件、输入事件、焦点变化事件以及点击事件中的至少一个;In some embodiments, the functional interface includes a listening interface, and the element triggering events include at least one of touch events, key events, input events, focus change events, and click events for desktop elements;
所述将需要监听的所述元素触发事件注册至所述桌面进程,包括:Registering the element-triggered events that need to be monitored to the desktop process includes:
若所述元素触发事件为触摸事件、按键事件、输入事件、焦点变化事件中的至少一个,所述元素进程调用所述监听接口,在所述桌面进程中注册需要监听的所述元素触发事件;If the element triggering event is at least one of a touch event, a key event, an input event, and a focus change event, the element process calls the listening interface and registers the element triggering event that needs to be monitored in the desktop process;
若所述元素触发事件为点击事件,所述元素进程调用系统原生的软件开发工具包,在所述桌面进程中注册所述点击触发事件。If the element triggering event is a click event, the element process calls the system's native software development tool kit to register the click triggering event in the desktop process.
在一些实施例中,所述元素进程将需要监听的所述元素触发事件注册至所述桌面进程之前,所述方法还包括:In some embodiments, before the element process registers the element trigger event that needs to be monitored to the desktop process, the method further includes:
在所述桌面进程中注册所述桌面元素,以便通过所述桌面进程显示所述桌面元素,其中:Register the desktop element in the desktop process so that the desktop element is displayed by the desktop process, where:
所述元素进程调用系统原生的软件开发工具包,在所述桌面进程中注册所述桌面元素;或The element process calls the system's native software development tool kit to register the desktop element in the desktop process; or
所述软件开发工具包提供的功能接口包括注册接口,所述元素进程调用所述注册接口,由所述软件开发工具包调用所述系统原生的软件开发工 具包,在所述桌面进程中注册所述桌面元素。The functional interface provided by the software development toolkit includes a registration interface. The element process calls the registration interface, and the software development toolkit calls the system's native software development toolkit, and registers everything in the desktop process. Desktop elements.
在一些实施例中,在存在多个桌面的情况下,所述桌面进程监听到注册的所述元素触发事件后,所述方法还包括:In some embodiments, when there are multiple desktops and the desktop process listens to the registered element triggering an event, the method further includes:
所述桌面进程确定接收到所述元素触发事件的桌面元素所在桌面的桌面标识,并将所述桌面标识设置于所述触发消息中,返回给所述元素进程,以使所述元素进程根据所述桌面标识,针对相应桌面的所述桌面元素,确定与所述触发类型标识相匹配的操作控制。The desktop process determines the desktop identifier of the desktop where the desktop element that receives the element trigger event is located, sets the desktop identifier in the trigger message, and returns it to the element process, so that the element process can The desktop identification determines the operation control matching the trigger type identification for the desktop element of the corresponding desktop.
在一些实施例中,所述由所述桌面元素对应的元素进程确定与所述触发事件的类型相匹配的操作控制,包括:In some embodiments, the element process corresponding to the desktop element determines the operation control that matches the type of the trigger event, including:
由所述元素进程确定所述桌面元素的当前元素状态;Determining, by the element process, the current element state of the desktop element;
在所述当前元素状态基础上,基于所述触发事件的类型,确定将所述桌面元素从所述当前元素状态调整至下一元素状态的操作控制。Based on the current element state and based on the type of the triggering event, an operation control for adjusting the desktop element from the current element state to the next element state is determined.
本发明另一方面还提供了一种电子设备,电子设备提供软件开发工具包,所述软件开发工具包用于在桌面进程中提供功能接口;所述电子设备包括:On the other hand, the present invention also provides an electronic device. The electronic device provides a software development toolkit, and the software development toolkit is used to provide a functional interface in a desktop process; the electronic device includes:
事件监听模块,监听针对桌面元素的触发事件,其中,所述触发事件表征触发所述桌面元素对应的元素进程对所述桌面元素进行操作控制的事件;The event listening module monitors triggering events for desktop elements, where the triggering event represents an event that triggers the element process corresponding to the desktop element to operate and control the desktop element;
桌面操作模块,若监听到所述触发事件,由所述桌面元素对应的元素进程确定与所述触发事件的类型相匹配的操作控制,并调用所述功能接口,通过所述桌面进程对所述桌面元素执行相应的操作控制。Desktop operation module, if the trigger event is monitored, the element process corresponding to the desktop element determines the operation control that matches the type of the trigger event, and calls the functional interface to control the operation of the trigger event through the desktop process. Desktop elements perform corresponding operational controls.
在一些实施例中,所述功能接口包括操作接口,所述触发事件包括所述桌面元素接收到的元素触发事件,所述元素触发事件由所述桌面进程进行监听,其中,In some embodiments, the functional interface includes an operation interface, and the triggering event includes an element triggering event received by the desktop element, and the element triggering event is monitored by the desktop process, wherein,
所述事件监听模块具体用于:若所述桌面进程监听到所述元素触发事件,返回触发消息给所述元素进程,所述触发消息包括触发类型标识,所述触发类型标识表征所述元素触发事件的类型;The event listening module is specifically configured to: if the desktop process monitors the element trigger event, return a trigger message to the element process, where the trigger message includes a trigger type identifier, and the trigger type identifier represents the element trigger. type of event;
所述桌面操作模块具体用于:所述元素进程确定与所述触发类型标识相匹配的操作控制,并调用所述操作接口,通过所述桌面进程对所述桌面元素执行相应的操作控制。The desktop operation module is specifically configured to: the element process determine the operation control that matches the trigger type identifier, and call the operation interface to perform corresponding operation control on the desktop element through the desktop process.
在一些实施例中,在所述桌面进程监听所述元素触发事件之前,所述事件监听模块还用于:In some embodiments, before the desktop process listens to the element trigger event, the event listening module is also used to:
由所述元素进程将需要监听的所述元素触发事件注册至所述桌面进程,通过所述桌面进程对注册的所述元素触发事件进行监听。The element process registers the element triggering event that needs to be monitored to the desktop process, and the desktop process monitors the registered element triggering event.
在一些实施例中,所述功能接口包括监听接口,所述元素触发事件包括针对桌面元素的触摸事件、按键事件、输入事件、焦点变化事件以及点击事件中的至少一个;In some embodiments, the functional interface includes a listening interface, and the element triggering events include at least one of touch events, key events, input events, focus change events, and click events for desktop elements;
所述事件监听模块具体用于:The event monitoring module is specifically used for:
若所述元素触发事件为触摸事件、按键事件、输入事件、焦点变化事件中的至少一个,所述元素进程调用所述监听接口,在所述桌面进程中注册需要监听的所述元素触发事件;If the element triggering event is at least one of a touch event, a key event, an input event, and a focus change event, the element process calls the listening interface and registers the element triggering event that needs to be monitored in the desktop process;
若所述元素触发事件为点击事件,所述元素进程调用系统原生的软件开发工具包,在所述桌面进程中注册所述点击触发事件。If the element triggering event is a click event, the element process calls the system's native software development tool kit to register the click triggering event in the desktop process.
在一些实施例中,所述元素进程将需要监听的所述元素触发事件注册至所述桌面进程之前,所述事件监听模块还用于:In some embodiments, before the element process registers the element-triggered event that needs to be monitored to the desktop process, the event listening module is also used to:
在所述桌面进程中注册所述桌面元素,以便通过所述桌面进程显示所述桌面元素,其中:Register the desktop element in the desktop process so that the desktop element is displayed by the desktop process, where:
所述元素进程调用系统原生的软件开发工具包,在所述桌面进程中注册所述桌面元素;或The element process calls the system's native software development tool kit to register the desktop element in the desktop process; or
所述软件开发工具包提供的功能接口包括注册接口,所述元素进程调用所述注册接口,由所述软件开发工具包调用所述系统原生的软件开发工具包,在所述桌面进程中注册所述桌面元素。The functional interface provided by the software development toolkit includes a registration interface. The element process calls the registration interface, and the software development toolkit calls the system's native software development toolkit, and registers everything in the desktop process. Desktop elements.
在一些实施例中,在存在多个桌面的情况下,所述桌面进程监听到注册的所述元素触发事件后,所述事件监听模块还用于:In some embodiments, when there are multiple desktops and the desktop process listens to the registered element triggering an event, the event listening module is also used to:
所述桌面进程确定接收到所述元素触发事件的桌面元素所在桌面的桌面标识,并将所述桌面标识设置于所述触发消息中,返回给所述元素进程,以使所述元素进程根据所述桌面标识,针对相应桌面的所述桌面元素,确定与所述触发类型标识相匹配的操作控制。The desktop process determines the desktop identifier of the desktop where the desktop element that receives the element trigger event is located, sets the desktop identifier in the trigger message, and returns it to the element process, so that the element process can The desktop identification determines the operation control matching the trigger type identification for the desktop element of the corresponding desktop.
在一些实施例中,所述桌面操作模块具体用于:In some embodiments, the desktop operation module is specifically used to:
由所述元素进程确定所述桌面元素的当前元素状态;Determining, by the element process, the current element state of the desktop element;
在所述当前元素状态基础上,基于所述触发事件的类型,确定将所述桌面元素从所述当前元素状态调整至下一元素状态的操作控制。Based on the current element state and based on the type of the triggering event, an operation control for adjusting the desktop element from the current element state to the next element state is determined.
本发明另一方面还提供了一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,所述计算机程序被处理器执行时,实现如上所述的方法。Another aspect of the present invention also provides a computer-readable storage medium. The computer-readable storage medium is used to store a computer program. When the computer program is executed by a processor, the method as described above is implemented.
本发明另一方面还提供了一种智能交互平板,所述智能交互平板包括处理器和存储器,所述存储器用于存储计算机程序,所述计算机程序被所述处理器执行时,实现如上所述的方法。On the other hand, the present invention also provides an intelligent interactive tablet. The intelligent interactive tablet includes a processor and a memory. The memory is used to store a computer program. When the computer program is executed by the processor, the above-mentioned functions are implemented. Methods.
本申请上述各个实施方式提供的技术方案中,通过提供软件开发工具包,由桌面元素对应的元素进程确定与触发事件的类型相匹配的操作控制,可以实现通过多种触发事件来触发对桌面元素执行操作控制,且不同类型的触发事件可以分别有对应的操作控制。桌面元素的操作控制功能更加丰富。In the technical solutions provided by the above embodiments of the present application, by providing a software development toolkit, the element process corresponding to the desktop element determines the operation control that matches the type of the triggering event, and it is possible to trigger the desktop element through a variety of triggering events. Execute operation control, and different types of trigger events can have corresponding operation controls respectively. The operation control functions of desktop elements are richer.
附图说明Description of the drawings
通过参考附图会更加清楚的理解本发明的特征和优点,附图是示意性的而不应理解为对本发明进行任何限制,在附图中:The features and advantages of the present invention will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the invention in any way, in which:
图1示出了一个桌面上的桌面元素示意图;Figure 1 shows a schematic diagram of desktop elements on a desktop;
图2示出了一些技术对桌面元素进行操作控制的流程示意图;Figure 2 shows a schematic flow chart of some technologies for operating and controlling desktop elements;
图3示出了本申请的一个实施例提供的桌面元素操作方法的流程示意图;Figure 3 shows a schematic flowchart of a desktop element operating method provided by an embodiment of the present application;
图4示出了本申请的一个实施例提供的对桌面元素进行操作控制的流 程示意图;Figure 4 shows a schematic flow chart for operating and controlling desktop elements provided by one embodiment of the present application;
图5示出了图4中的桌面元素“消息”的详细示意图;Figure 5 shows a detailed schematic diagram of the desktop element "Message" in Figure 4;
图6示出了本申请的一个实施例提供的电子设备的结构示意图;Figure 6 shows a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图7示出了本申请的一个实施例提供的智能交互平板的结构示意图。Figure 7 shows a schematic structural diagram of an intelligent interactive tablet provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本发明实施方式的目的、技术方案和优点更加清楚,下面将结合本发明实施方式中的附图,对本发明实施方式中的技术方案进行清楚、完整地描述,显然,所描述的实施方式是本发明一部分实施方式,而不是全部的实施方式。基于本发明中的实施方式,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施方式,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the scope of protection of the present invention.
在对本申请的技术方案进行阐释前,先对桌面元素进行说明。请参阅图1,为一个桌面上的桌面元素示意图。总的来说,桌面元素可以是通过桌面进行显示的内容,包括但不限于在桌面上进行显示的软件工具的界面、应用的启动图标、由若干个应用的启动图标组合而成的应用文件夹等。比如在图1中,显示为应用1、应用2、时间日期、信息、按钮的内容,可以统称为桌面元素。其中,显示为应用1、应用2的内容,可以是应用的启动图标。单击启动图标,可以启动对应的应用进程。显示为时间日期、信息、按钮的内容,可以是在桌面上显示的软件工具的界面。通过软件工具的界面,可以在桌面查看时间日期、信息或者执行按键操作。在一些实施例中,桌面进程可以对桌面元素进行操作控制。例如,桌面进程可以对桌面元素在桌面上的排布位置、显示颜色等进行控制。Before explaining the technical solution of this application, desktop elements will be explained first. Please refer to Figure 1, which is a schematic diagram of desktop elements on a desktop. Generally speaking, desktop elements can be content displayed through the desktop, including but not limited to the interface of software tools displayed on the desktop, application startup icons, and application folders composed of several application startup icons. wait. For example, in Figure 1, the content displayed as Application 1, Application 2, time and date, information, and buttons can be collectively referred to as desktop elements. Among them, the content displayed as application 1 and application 2 can be the startup icon of the application. Click the startup icon to start the corresponding application process. The content displayed as time and date, information, and buttons can be the interface of a software tool displayed on the desktop. Through the interface of the software tool, you can view the time, date, information, or perform key operations on the desktop. In some embodiments, desktop processes may provide operational control over desktop elements. For example, the desktop process can control the arrangement position, display color, etc. of desktop elements on the desktop.
通常,桌面元素可以分为两类。其中一类可以是由桌面进程提供的桌面元素,比如应用的启动图标、由若干个应用的启动图标组合而成的应用文件夹。该类桌面元素的功能由桌面进程提供。桌面进程可以主动对该类桌面元素进行操作控制。在图1中,显示为应用1和应用2的启动图标可以是第一类桌面元素。另一类是由其他元素进程在桌面进程注册,并在桌面进行显示的桌面元素。这类桌面元素的功能由元素进程提供,与桌面进 程没有直接关系。桌面进程可以根据元素进程提供的信息,来对桌面元素进行操作控制。比如,假设桌面元素1对应的元素进程为元素进程1,元素进程1需要将桌面元素1的显示颜色更新蓝色,则元素进程1可以将蓝色信息发送给桌面进程,由桌面进程根据元素进程1发送的蓝色信息,将桌面元素1的显示颜色更新为蓝色。在图1中,标识为时间日期、按钮以及信息的内容可以为第二类桌面元素。本申请的技术方案中所述的桌面元素为第二类桌面元素。Generally, desktop elements can be divided into two categories. One type may be desktop elements provided by desktop processes, such as application startup icons and application folders composed of several application startup icons. The functionality of this type of desktop element is provided by the desktop process. Desktop processes can actively control this type of desktop elements. In Figure 1, launch icons shown as Application 1 and Application 2 may be first type desktop elements. The other type is desktop elements that are registered by other element processes in the desktop process and displayed on the desktop. The functions of such desktop elements are provided by the element process and are not directly related to the desktop process. The desktop process can operate and control desktop elements based on the information provided by the element process. For example, assuming that the element process corresponding to desktop element 1 is element process 1, and element process 1 needs to update the display color of desktop element 1 to blue, element process 1 can send the blue information to the desktop process, and the desktop process will update the display color of desktop element 1 to blue. The blue information sent by 1 updates the display color of desktop element 1 to blue. In Figure 1, the content identified as time and date, buttons and information can be the second type of desktop elements. The desktop elements described in the technical solution of this application are the second type of desktop elements.
请参阅图2,为一些技术对桌面元素进行操作控制的流程示意图。图2中,元素进程示例性的包括时间日期进程、信息进程和按键进程。各个元素进程可以分别调用系统原生的软件开发工具包,在桌面进程注册桌面元素,以通过桌面显示桌面元素。其中,系统原生的软件开发工具包指操作系统原生自带的软件开发工具包,其可以被元素进程调用,并与桌面进程进行信息交互,以实现桌面元素的注册。在一些实施例中,操作系统可以为Android操作系统,系统原生的软件开发工具包又可称为Android SDK。Please refer to Figure 2, which is a schematic flowchart of some technologies for operating and controlling desktop elements. In Figure 2, element processes include, for example, time and date processes, information processes, and key processes. Each element process can call the system's native software development tool kit to register desktop elements in the desktop process to display desktop elements through the desktop. Among them, the system-native software development kit refers to the software development kit native to the operating system, which can be called by the element process and interact with the desktop process to realize the registration of desktop elements. In some embodiments, the operating system can be the Android operating system, and the system's native software development kit can also be called Android SDK.
在一些技术中,桌面进程将元素进程注册的桌面元素在桌面进行显示后,用户可以在桌面上对桌面元素执行点击操作。针对用户的点击操作,桌面元素可以做出相应的响应。比如,以图2中的桌面元素“信息”为例,用户对桌面元素“信息”执行一次点击操作后,桌面元素可以对显示的信息进行一次刷新。此处,桌面元素“信息”进行信息刷新的操作,即为桌面元素“信息”针对用户的点击操作所做出的响应。其中,针对用户的点击操作,桌面元素做出响应的过程可以是这样的:桌面进程在监听到用户针对桌面元素的点击操作后,将该点击操作反馈给元素进程,由元素进程确定桌面元素需要做出的响应,并调用系统原生的软件开发工具包,将桌面元素响应所需的信息发送给桌面进程,由桌面进程根据元素进程发送的信息,对桌面元素进行更新,从而对用户的点击操作进行响应。继续以上述图2中的桌面元素“信息”为例。桌面进程监听到用户点击桌面元素“信息”后,将点击操作反馈给信息进程,信息进程确定需要对桌面元素“信 息”显示的信息进行刷新,并将桌面元素“信息”待显示的目标信息发送给桌面进程,由桌面进程将桌面元素“信息”当前显示的信息更新为目标信息。可以理解的是,针对用户的点击操作,不同的桌面元素可以做出不同的响应,比如,用户对桌面元素A进行点击后,可以实现桌面元素的显示颜色更新,用户对桌面元素B进行点击后,可以实现桌面元素的显示内容更新。如此,用户通过点击桌面元素,可以对桌面元素进行操作控制,比如控制桌面元素的显示内容、控制桌面元素的显示颜色。In some technologies, after the desktop process displays the desktop elements registered by the element process on the desktop, the user can click on the desktop elements on the desktop. Desktop elements can respond accordingly to the user's click operations. For example, taking the desktop element "Information" in Figure 2 as an example, after the user performs a click operation on the desktop element "Information", the desktop element can refresh the displayed information. Here, the information refresh operation performed by the desktop element "information" is the response made by the desktop element "information" to the user's click operation. Among them, the process of the desktop element responding to the user's click operation can be as follows: after the desktop process monitors the user's click operation on the desktop element, the click operation is fed back to the element process, and the element process determines the needs of the desktop element. In response, the system's native software development tool kit is called to send the information required for the desktop element response to the desktop process. The desktop process updates the desktop elements based on the information sent by the element process, thereby responding to the user's click operation. to respond. Continue to take the desktop element "information" in Figure 2 above as an example. After the desktop process monitors the user's click on the desktop element "Information", it feeds back the click operation to the information process. The information process determines that the information displayed on the desktop element "Information" needs to be refreshed, and sends the target information to be displayed on the desktop element "Information" To the desktop process, the desktop process updates the information currently displayed by the desktop element "information" to the target information. It is understandable that different desktop elements can respond differently to the user's click operation. For example, after the user clicks on desktop element A, the display color of the desktop element can be updated. After the user clicks on desktop element B, the display color of the desktop element can be updated. , which can update the display content of desktop elements. In this way, the user can operate and control the desktop elements by clicking on the desktop elements, such as controlling the display content of the desktop elements and controlling the display color of the desktop elements.
在这些技术中,只支持用户通过点击操作的方法对桌面元素进行操作控制,其他针对桌面元素的操作无法对桌面元素进行操作控制。比如对桌面元素执行滑动操作时,不能对桌面元素进行操作控制。桌面元素的操作控制功能较为单一。Among these technologies, users can only operate and control desktop elements through click operations, and other operations on desktop elements cannot operate and control desktop elements. For example, when performing a sliding operation on a desktop element, the desktop element cannot be operated and controlled. The operation control functions of desktop elements are relatively simple.
为此,本申请提出一种桌面元素操作方法。该方法在系统原生的软件开发工具包基础上,提供自定义的软件开发工具包,可以使桌面元素的操作控制功能更为丰富。其中,软件开发工具包用于在桌面进程中提供功能接口,该功能接口可以被元素进程调用。元素进程调用该功能接口,可以与桌面进程之间进行信息交互,通过桌面进程对桌面元素进行操作控制。To this end, this application proposes a desktop element operation method. This method provides a customized software development toolkit based on the system's native software development toolkit, which can enrich the operation and control functions of desktop elements. Among them, the software development kit is used to provide a functional interface in the desktop process, and the functional interface can be called by the element process. The element process calls this functional interface to interact with the desktop process and operate and control the desktop elements through the desktop process.
请参阅图3和图4。图3为本申请的一个实施例提供的桌面元素操作方法的流程示意图。图4为本申请的一个实施例提供的对桌面元素进行操作控制的流程示意图。桌面元素操作方法可以应用于智能交互平板,包括步骤S31和步骤S32。See Figure 3 and Figure 4. Figure 3 is a schematic flowchart of a desktop element operating method provided by an embodiment of the present application. Figure 4 is a schematic flowchart of operating and controlling desktop elements according to an embodiment of the present application. The desktop element operation method can be applied to the intelligent interactive tablet, including step S31 and step S32.
步骤S31,监听针对桌面元素的触发事件,其中,触发事件表征触发桌面元素对应的元素进程对桌面元素进行操作控制的事件。Step S31: Monitor triggering events for desktop elements, where the triggering event represents an event that triggers an element process corresponding to the desktop element to operate and control the desktop element.
在一些实施例中,触发事件可以指触发元素进程调用系统原生的软件开发工具包或自定义的软件开发工具包,通过桌面进程对桌面元素进行操作控制的事件。对桌面元素执行操作控制可以是元素进程响应于触发事件,对桌面元素的显示内容、位置、外观等进行操作控制。以下进行详细的说明。In some embodiments, the triggering event may refer to an event that triggers the element process to call the system's native software development kit or a customized software development kit to operate and control the desktop element through the desktop process. The operation control performed on the desktop elements may be that the element process responds to the triggering event and operates the display content, position, appearance, etc. of the desktop elements. Detailed explanation is given below.
在一些实施例中,触发事件可以包括桌面元素接收到的元素触发事件。元素触发事件可以是针对桌面元素的操作事件。元素触发事件可以包括针对桌面元素的触摸事件、按键事件、输入事件、焦点变化事件以及点击事件中的至少一个。不同的操作事件,可以属于不同类型的元素触发事件。针对不同类型的元素触发事件,可以对桌面元素进行不同的操作控制。具体来说:In some embodiments, the triggering event may include an element triggering event received by a desktop element. Element trigger events can be operation events for desktop elements. The element triggering event may include at least one of a touch event, a key event, an input event, a focus change event, and a click event for the desktop element. Different operation events can be triggered by elements belonging to different types. By triggering events for different types of elements, different operations can be controlled on desktop elements. Specifically:
触摸事件可以指用户在桌面元素所在区域执行的滑动事件。具体请参阅图5,为图4中的桌面元素“消息”的详细示意图。图5中,桌面元素“消息”可以包括滑动区51和消息区52。其中,在滑动区51存在滑动块511。用户选中滑动块511并在滑动区51滑动,可以带动滑动块511在滑动区51可以上下滑动,进而可以更新消息区52显示的消息。此处,用户在滑动区51执行的滑动操作,即可以为在桌面元素所在区域执行的滑动事件。对消息区52显示的消息进行更新,可以是响应于滑动事件,对桌面元素执行的操作控制。另外,除在滑动区滑动外,用户也可以在消息区52执行滑动操作,进而对消息区52的消息进行更新。Touch events can refer to sliding events performed by the user in the area where the desktop element is located. For details, please refer to Figure 5, which is a detailed schematic diagram of the desktop element "message" in Figure 4. In FIG. 5 , the desktop element “message” may include a sliding area 51 and a message area 52 . Among them, there is a sliding block 511 in the sliding area 51 . The user selects the sliding block 511 and slides it in the sliding area 51, which can cause the sliding block 511 to slide up and down in the sliding area 51, and then the message displayed in the message area 52 can be updated. Here, the sliding operation performed by the user in the sliding area 51 can be regarded as a sliding event performed in the area where the desktop element is located. Updating the message displayed in the message area 52 may be an operation control performed on the desktop element in response to a sliding event. In addition, in addition to sliding in the sliding area, the user can also perform sliding operations in the message area 52 to update the messages in the message area 52 .
按键事件可以指通过遥控器等设备对桌面元素进行操作控制时,在该些设备上进行按键操作后,由桌面进程监听到的事件。请继续参阅图5,假设用户可以通过操作遥控器的上下按键,来控制消息区52被选中的消息。图5中,当前被选中的消息为消息区52的第1条消息。用户在遥控器上按下向下的按键时,遥控器可以发送向下的信号给智能交互平板,然后可以将消息区52当前被选中的消息调整为第1条消息往下的消息,比如将当前被选中的消息调整第2条消息或第3条消息。此处,桌面进程监听到这个向下的信号,可以表示桌面进程监听到按键事件。将消息区52当前被选中的消息调整为第1条消息往下的消息,可以是响应于按键事件,对桌面元素进行的操作控制。Key events can refer to events monitored by the desktop process after key operations are performed on these devices when operating and controlling desktop elements through devices such as remote controls. Please continue to refer to FIG. 5 , assuming that the user can control the selected message in the message area 52 by operating the up and down buttons of the remote control. In Figure 5, the currently selected message is the first message in the message area 52. When the user presses the downward button on the remote control, the remote controller can send a downward signal to the intelligent interactive tablet, and then the currently selected message in the message area 52 can be adjusted to the message following the first message, for example The currently selected message adjusts the 2nd or 3rd message. Here, the desktop process listens to this downward signal, which can mean that the desktop process listens to the key event. Adjusting the currently selected message in the message area 52 to the message following the first message may be an operational control of the desktop elements in response to a key event.
输入事件可以指用户在桌面元素所在区域执行的输入操作事件;焦点变化事件可以指桌面元素所在区域的焦点发生变化的事件。请继续参阅图 5。图5中,桌面元素“消息”还可以包括输入区53。在输入区53,用户可以输入查询条件,使消息区52显示满足查询条件的消息。此处,用户在输入区53输入查询条件的动作,可以表示一个输入事件。消息区52显示满足查询条件的消息,表示响应于输入事件,对桌面元素进行的操作控制。Input events can refer to input operation events performed by the user in the area where the desktop element is located; focus change events can refer to events where the focus of the area where the desktop element is located changes. Please continue to Figure 5. In Figure 5, the desktop element "Message" may also include an input area 53. In the input area 53, the user can input query conditions, so that the message area 52 displays messages that satisfy the query conditions. Here, the user's action of inputting query conditions in the input area 53 can represent an input event. The message area 52 displays messages that meet the query conditions, indicating the operation control of the desktop elements in response to the input event.
焦点变化事件可以指桌面元素所在区域的焦点发生变化的事件。具体来说,焦点可以是位于桌面元素所在区域的选择框。该选择框位于某个位置,表示该位置的内容被选中。比如图5中,消息区52的焦点当前位于第1条消息处,表示该位置处的消息被选中。若焦点移动至第2条消息,表示第2条消息被选中。根据焦点的变化,可以显示不同消息的详细信息。比如焦点移动到第1条消息时,第1条消息所在区域扩大,并在扩大的区域中显示第1条消息的详细信息。焦点移动到第2条消息时,第2条消息所在区域扩大,并在扩大的区域中显示第2条消息的详细信息。此处,焦点在不同消息之前变化,可以表示一个焦点变化事件。显示焦点所在消息的详细信息,可以表示响应于焦点变化事件,对桌面元素进行的操作控制。The focus change event can refer to the event that the focus of the area where the desktop element is located changes. Specifically, the focus can be a selection box located in the area where the desktop element is located. The selection box is located at a certain position, indicating that the content at that position is selected. For example, in Figure 5, the focus of the message area 52 is currently located at the first message, which means that the message at this position is selected. If the focus moves to the second message, it means that the second message is selected. Depending on the focus change, different message details can be displayed. For example, when the focus moves to the first message, the area where the first message is located is expanded, and the detailed information of the first message is displayed in the expanded area. When the focus moves to the second message, the area where the second message is located is expanded, and the detailed information of the second message is displayed in the expanded area. Here, the focus changes before different messages, which can represent a focus change event. Displaying details of the focused message can represent operational controls on desktop elements in response to focus change events.
点击事件可以指用户在桌面元素所在区域执行点击操作的事件。请继续参阅图5。图5中,假设用户在消息区52点击某一条消息,比如点击第二条消息,可以在消息区52显示该条消息的详细信息。此处,用户在消息区52点击某一条消息的动作,可以为一个点击事件。消息区52显示该条消息的详细信息,表示响应于点击事件,对桌面元素进行的操作控制。A click event can refer to an event in which the user performs a click operation on the area where the desktop element is located. Please continue to see Figure 5. In FIG. 5 , assuming that the user clicks on a certain message in the message area 52 , for example, clicks on the second message, the detailed information of the message can be displayed in the message area 52 . Here, the user's action of clicking on a certain message in the message area 52 can be a click event. The message area 52 displays the detailed information of the message, indicating the operation control performed on the desktop element in response to the click event.
请参阅图4。在一些实施例中,针对桌面元素的元素触发事件可以由桌面进程进行监听。桌面进程可以将监听到的触摸事件反馈给元素进程,由元素进程根据元素触发事件,确定针对桌面元素需要执行的操作控制,并且调用系统原生的软件开发工具包或自定义的软件开发工具包的功能接口,将与操作控制相关的信息发送桌面进程,由桌面进程根据接收到的信息,对桌面元素进行操作控制。比如,结合参阅图5。用户在桌面元素“信息”的消息区52点击第2条消息后,桌面进程可以将用户执行的点击操作以及用户所点击消息的消息标识反馈给信息进程,信息进程调用自定义的 软件开发工具包的功能接口,将第2条消息的详细信息发送给桌面进程,通过桌面进程对消息区52显示的内容进行更新。See Figure 4. In some embodiments, element-triggered events for desktop elements may be listened to by a desktop process. The desktop process can feed back the monitored touch events to the element process. The element process triggers the event based on the element, determines the operation control that needs to be performed on the desktop element, and calls the system's native software development kit or customized software development kit. The functional interface sends information related to operation control to the desktop process, and the desktop process operates and controls the desktop elements based on the received information. For example, see Figure 5 in conjunction. After the user clicks the second message in the message area 52 of the desktop element "Information", the desktop process can feed back the click operation performed by the user and the message identifier of the message clicked by the user to the information process, and the information process calls the customized software development tool kit The functional interface sends the detailed information of the second message to the desktop process, and updates the content displayed in the message area 52 through the desktop process.
在一些实施例中,考虑到不同桌面元素的特点,可以针对每个桌面元素,分别指定需要监听的元素触发事件。比如针对桌面元素“按键”来说,需要关注该桌面元素接收到的焦点变化事件以及按键事件,则可以只监听该桌面元素是否接收到的焦点变化事件以及按键事件;而对于桌面元素“信息”来说,需要关注该桌面元素接收到的焦点变化事件、触摸事件以及按键事件,则可以只监听该桌面元素是否接收到焦点变化事件、触摸事件以及按键事件。针对每个桌面元素需要监听的元素触发事件,可以在桌面进程监听元素触发事件之前,由元素进程将需要监听的元素触发事件注册至桌面进程,通过桌面进程对注册的元素触发事件进行监听。In some embodiments, considering the characteristics of different desktop elements, the element trigger events that need to be monitored can be specified for each desktop element. For example, for the desktop element "key press", you need to pay attention to the focus change events and key press events received by the desktop element. You can only monitor whether the desktop element receives focus change events and key press events; and for the desktop element "information" For example, if you need to pay attention to the focus change events, touch events, and key events received by the desktop element, you can only monitor whether the desktop element receives focus change events, touch events, and key events. For the element trigger events that need to be monitored for each desktop element, before the desktop process monitors the element trigger events, the element process can register the element trigger events that need to be monitored to the desktop process, and the registered element trigger events can be monitored through the desktop process.
具体来说,功能接口可以包括监听接口。监听接口可以包括但不限于针对触摸事件的监听接口、针对按键事件的监听接口、针对输入事件的监听接口、针对焦点变化事件的监听接口以及针对点击事件的监听接口。元素进程确定需要监听的元素触发事件后,可以调用对应的监听接口,将需要监听的元素触发事件注册至桌面进程,由桌面进程对相应的元素触发事件进行监听。比如,信息进程可以分别调用焦点变化事件的监听接口、触摸事件的监听接口、按键事件的监听接口,将焦点变化事件、触摸事件以及按键事件注册到桌面进程,由桌面进程对桌面元素“信息”是否接收到的该些事件进行监听;而按键进程则可以分别调用焦点变化事件的监听接口和按键事件的监听接口,将焦点变化事件和按键事件注册到桌面进程,由桌面进程对桌面元素“按键”是否接收到该些事件进行监听。桌面进程监听到注册的元素触发事件后,通过接口回调的方式,将元素触发事件反馈给元素进程。Specifically, the functional interface may include a listening interface. The listening interface may include, but is not limited to, a listening interface for touch events, a listening interface for key events, a listening interface for input events, a listening interface for focus change events, and a listening interface for click events. After the element process determines the element trigger event that needs to be monitored, it can call the corresponding listening interface and register the element trigger event that needs to be monitored to the desktop process, and the desktop process monitors the corresponding element trigger event. For example, the information process can call the listening interface for focus change events, the listening interface for touch events, and the listening interface for key events respectively, and register the focus change events, touch events, and key events to the desktop process, and the desktop process will "information" the desktop elements. Whether to monitor the received events; and the key process can call the monitoring interface of the focus change event and the listening interface of the key event respectively, register the focus change event and key event to the desktop process, and the desktop process will "key press" the desktop element. "Whether the events are received and monitored. After the desktop process monitors the registered element trigger event, it feeds the element trigger event back to the element process through an interface callback.
可以理解的是,触发事件可以包括但不限于上述元素触发事件。在一些实施例中,触发事件还可以包括时间触发事件。时间触发事件可以是由元素进程监听的时间是否达到预设时间的事件。比如在元素进程监听到时 间为每天的凌晨1点时,调用系统原生的软件开发工具包或自定义的软件开发工具包,通过桌面进程对桌面元素进行操作控制。时间触发事件可以与上述元素触发事件属于不同类型的触发事件。It can be understood that triggering events may include, but are not limited to, the above element triggering events. In some embodiments, trigger events may also include time trigger events. The time-triggered event can be an event monitored by the element process whether the time reaches the preset time. For example, when the element process monitors that the time is 1 a.m. every day, the system's native software development kit or customized software development kit is called to operate and control the desktop elements through the desktop process. Time-triggered events can be different types of trigger events than the above element-triggered events.
步骤S32,若监听到触发事件,由桌面元素对应的元素进程确定与触发事件的类型相匹配的操作控制,并调用功能接口,通过桌面进程对桌面元素执行相应的操作控制。Step S32, if a trigger event is monitored, the element process corresponding to the desktop element determines the operation control that matches the type of the trigger event, and calls the functional interface to perform corresponding operation control on the desktop element through the desktop process.
在一些实施例中,元素进程可以有触发事件类型与操作控制的匹配关系。对于同一元素进程来说,每种类型的触发事件,可以分别存在匹配的操作控制。表格1示例性的列举了消息进程中的触发事件类型与操作控制的匹配关系。In some embodiments, element processes may have a matching relationship between trigger event types and operation controls. For the same element process, each type of trigger event can have matching operation controls. Table 1 exemplifies the matching relationship between trigger event types and operation controls in the message process.
表格1 触发事件类型与操作控制的匹配关系Table 1 Matching relationship between trigger event types and operation controls
Figure PCTCN2022100601-appb-000001
Figure PCTCN2022100601-appb-000001
从表格1可以看出,通过对触发事件进行分类,基于触发事件类型与操作控制的匹配关系,可以通过多种触发事件来触发对桌面元素执行操作控制,且不同类型的触发事件可以分别有对应的操作控制。桌面元素的操作控制功能更加丰富。As can be seen from Table 1, by classifying trigger events and based on the matching relationship between trigger event types and operational controls, multiple trigger events can be used to trigger operational controls on desktop elements, and different types of trigger events can have corresponding operational control. The operation control functions of desktop elements are richer.
在一些实施例中,功能接口包括操作接口。操作接口包括但不限于设置桌面元素动态显示的接口、控制桌面元素显示或隐藏的接口。元素进程确定针对桌面元素的操作控制之后,调用相应的操作接口,通过桌面进程对桌面元素进行操作控制。In some embodiments, the functional interface includes an operational interface. The operation interface includes but is not limited to the interface for setting the dynamic display of desktop elements and the interface for controlling the display or hiding of desktop elements. After the element process determines the operation control for the desktop element, it calls the corresponding operation interface to perform operation control on the desktop element through the desktop process.
在一些实施例中,对于元素触发事件来说,不同类型的元素触发事件可以具有不同的触发类型标识。触发类型标识表征元素触发事件的类型。若桌面进程监听到元素触发事件,返回触发消息给元素进程,触发消息包 括触发类型标识。元素进程确定与触发类型标识相匹配的操作控制,并调用操作接口,通过桌面进程对桌面元素执行相应的操作控制。如此,通过在触发消息中携带触发类型标识,可以使元素进程对元素触发事件的类型进行区分,进而确定与元素触发事件的类型相匹配的操作控制。In some embodiments, for element triggering events, different types of element triggering events may have different trigger type identifiers. The trigger type identifies the type of event that the element triggers. If the desktop process listens to the element trigger event, it returns the trigger message to the element process. The trigger message includes the trigger type identifier. The element process determines the operation control that matches the trigger type identifier, and calls the operation interface to perform corresponding operation control on the desktop element through the desktop process. In this way, by carrying the trigger type identifier in the trigger message, the element process can distinguish the type of the element trigger event, and then determine the operation control that matches the type of the element trigger event.
在一些实施例中,由桌面元素对应的元素进程确定与触发事件的类型相匹配的操作控制,具体可以包括:由元素进程确定桌面元素的当前元素状态;以及在当前元素状态基础上,基于触发事件的类型,确定将桌面元素从当前元素状态调整至下一元素状态的操作控制。元素状态可以指桌面元素在桌面上的展示状态,包括但不限于桌面元素的展示内容、展示位置、展示形状、展示颜色。一个触发事件,可以触发对桌面元素的至少一个元素状态进行调整,即从当前元素状态调整至下一元素状态。比如,将桌面元素从当前展示位置A,调整至下一展示位置B。在元素进程确定与触发事件的类型相匹配的操作控制时,可以根据触发事件的类型,确定桌面元素的下一元素状态,进而确定将桌面元素从当前元素状态调整至下一元素状态的操作控制。比如,桌面元素“消息”接收到一个按键事件后,桌面进程将该按键事件反馈给元素进程,元素进程根据触发事件的类型,确定桌面元素在下一元素状态的焦点位置应该位于当前焦点位置下侧相隔两条消息的消息位置处,则可以确定将焦点从当前焦点位置切换至下一焦点位置的操作控制,并调用操作接口,将下一焦点位置发送给桌面进程,通过桌面进程对桌面元素的焦点切换至下一焦点位置。In some embodiments, the element process corresponding to the desktop element determines the operation control that matches the type of the trigger event. Specifically, it may include: the element process determines the current element state of the desktop element; and based on the current element state, based on the trigger event The type of event that determines the operational control of adjusting a desktop element from the current element state to the next element state. Element status may refer to the display status of desktop elements on the desktop, including but not limited to the display content, display position, display shape, and display color of desktop elements. A trigger event can trigger the adjustment of at least one element state of the desktop element, that is, the adjustment from the current element state to the next element state. For example, adjust the desktop elements from the current placement A to the next placement B. When the element process determines the operation control that matches the type of the trigger event, it can determine the next element state of the desktop element according to the type of the trigger event, and then determine the operation control that adjusts the desktop element from the current element state to the next element state. . For example, after the desktop element "message" receives a key event, the desktop process feeds the key event back to the element process. Based on the type of the trigger event, the element process determines that the focus position of the desktop element in the next element state should be below the current focus position. At the message position separated by two messages, the operation control to switch the focus from the current focus position to the next focus position can be determined, and the operation interface is called to send the next focus position to the desktop process, and the desktop element is controlled by the desktop process. The focus switches to the next focus position.
在一些实施例中,在存在多个桌面的情况下,桌面进程还用于确定接收到元素触发事件的桌面元素所在桌面的桌面标识,并将桌面标识设置于触发消息中,返回给元素进程,以使元素进程根据桌面标识,针对相应桌面的桌面元素,确定与触发类型标识相匹配的操作控制。具体来说,对于同一元素进程,可能在不同桌面所对应的桌面元素具有不同的状态。以消息进程来说,可能在桌面1中,桌面元素“消息”中显示的是包括输入内容的消息列表,在桌面2中,桌面元素“消息”中显示的是刷新后的最新 消息列表。若桌面1和桌面2中,桌面元素“消息”中均接收到对桌面元素“消息”中的内容进行刷新的触摸事件,可以理解的是,在两个桌面的刷新内容是不一样的。为此,通过在桌面进程返回给元素进程的触发消息中携带桌面标识,方案的适应性更好。In some embodiments, when there are multiple desktops, the desktop process is also used to determine the desktop ID of the desktop where the desktop element that receives the element trigger event is located, and sets the desktop ID in the trigger message and returns it to the element process. So that the element process determines the operation control matching the trigger type identifier for the desktop element of the corresponding desktop according to the desktop identifier. Specifically, for the same element process, the desktop elements corresponding to different desktops may have different states. Taking the message process as an example, in Desktop 1, the desktop element "Message" may display a message list including the input content, and in Desktop 2, the desktop element "Message" may display the latest message list after refreshing. If in desktop 1 and desktop 2, the desktop element "message" receives a touch event that refreshes the content in the desktop element "message", it is understandable that the refresh content on the two desktops is different. To this end, by carrying the desktop identifier in the trigger message returned by the desktop process to the element process, the solution is more adaptable.
在本申请的一些实施例中,通过提供软件开发工具包,由桌面元素对应的元素进程确定与触发事件的类型相匹配的操作控制,可以实现通过多种触发事件来触发对桌面元素执行操作控制,且不同类型的触发事件可以分别有对应的操作控制。桌面元素的操作控制功能更加丰富。In some embodiments of the present application, by providing a software development toolkit, the element process corresponding to the desktop element determines the operation control that matches the type of the trigger event, so that multiple trigger events can be used to trigger the execution of operation control on the desktop element. , and different types of trigger events can have corresponding operation controls respectively. The operation control functions of desktop elements are richer.
在一些实施例中,考虑到系统原生的软件开发工具包已经具备将点击事件注册至桌面进程的功能,因此,自定义的软件开发工具包可以无需开发针对点击事件的监听接口。元素进程在将需要监听的元素触发事件注册到桌面进程时,可以按照以下逻辑进行事件注册:In some embodiments, considering that the system's native software development kit already has the function of registering click events to the desktop process, the customized software development kit does not need to develop a listening interface for click events. When the element process registers the element-triggered events that need to be monitored to the desktop process, it can register the event according to the following logic:
若元素触发事件为触摸事件、按键事件、输入事件、焦点变化事件中的至少一个,元素进程调用监听接口,在桌面进程中注册需要监听的元素触发事件。If the element trigger event is at least one of a touch event, a key event, an input event, and a focus change event, the element process calls the listening interface and registers the element trigger event that needs to be monitored in the desktop process.
若元素触发事件为点击事件,元素进程调用系统原生的软件开发工具包,在桌面进程中注册点击触发事件。If the element trigger event is a click event, the element process calls the system's native software development tool kit to register the click trigger event in the desktop process.
类似的,考虑到系统原生的软件开发工具包已经具备在桌面进程中注册桌面元素的功能,在元素进程将需要监听的元素触发事件注册至桌面进程之前,可以通过如下方法在桌面进程中注册桌面元素:Similarly, considering that the system's native software development kit already has the function of registering desktop elements in the desktop process, before the element process registers the element trigger events that need to be monitored to the desktop process, the desktop can be registered in the desktop process through the following method element:
元素进程调用系统原生的软件开发工具包,在桌面进程中注册桌面元素;或在自定义的软件开发工具包提供的功能接口包括注册接口的情况下,元素进程可以调用注册接口,由自定义的软件开发工具包调用系统原生的软件开发工具包,在桌面进程中注册桌面元素。The element process calls the system's native software development kit to register desktop elements in the desktop process; or when the functional interface provided by the custom software development kit includes a registration interface, the element process can call the registration interface, which is controlled by a custom The software development kit calls the system's native software development kit and registers desktop elements in the desktop process.
总的来说,在系统原生的软件开发工具包已经具备的功能,自定义软件开发工具包可以无需再进行相关的软件开发,由元素进程或自定义的软件开发工具包直接调用系统原生的软件开发工具包,执行相关的功能。如 此,达到减少代码开发和代码冗余的目的。In general, for the functions that the system's native software development kit already has, the custom software development kit can directly call the system's native software without the need for related software development. The element process or the customized software development kit can directly call the system's native software. Development toolkit to perform related functions. In this way, the purpose of reducing code development and code redundancy is achieved.
请参见图6,为本申请的一个实施例提供的电子设备的结构示意图。电子设备提供软件开发工具包,软件开发工具包用于在桌面进程中提供功能接口,其中,电子设备包括:Please refer to FIG. 6 , which is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device provides a software development kit, and the software development kit is used to provide functional interfaces in the desktop process. The electronic device includes:
事件监听模块,监听针对桌面元素的触发事件,其中,所述触发事件表征触发所述桌面元素对应的元素进程对所述桌面元素进行操作控制的事件;The event listening module monitors triggering events for desktop elements, where the triggering event represents an event that triggers the element process corresponding to the desktop element to operate and control the desktop element;
桌面操作模块,若监听到所述触发事件,由所述桌面元素对应的元素进程确定与所述触发事件的类型相匹配的操作控制,并调用所述功能接口,通过所述桌面进程对所述桌面元素执行相应的操作控制。Desktop operation module, if the trigger event is monitored, the element process corresponding to the desktop element determines the operation control that matches the type of the trigger event, and calls the functional interface to control the operation of the trigger event through the desktop process. Desktop elements perform corresponding operational controls.
在一些实施例中,所述功能接口包括操作接口,所述触发事件包括所述桌面元素接收到的元素触发事件,所述元素触发事件由所述桌面进程进行监听,其中,In some embodiments, the functional interface includes an operation interface, and the triggering event includes an element triggering event received by the desktop element, and the element triggering event is monitored by the desktop process, wherein,
所述事件监听模块具体用于:若所述桌面进程监听到所述元素触发事件,返回触发消息给所述元素进程,所述触发消息包括触发类型标识,所述触发类型标识表征所述元素触发事件的类型;The event listening module is specifically configured to: if the desktop process monitors the element trigger event, return a trigger message to the element process, where the trigger message includes a trigger type identifier, and the trigger type identifier represents the element trigger. type of event;
所述桌面操作模块具体用于:所述元素进程确定与所述触发类型标识相匹配的操作控制,并调用所述操作接口,通过所述桌面进程对所述桌面元素执行相应的操作控制。The desktop operation module is specifically configured to: the element process determine the operation control that matches the trigger type identifier, and call the operation interface to perform corresponding operation control on the desktop element through the desktop process.
在一些实施例中,在所述桌面进程监听所述元素触发事件之前,所述事件监听模块还用于:In some embodiments, before the desktop process listens to the element trigger event, the event listening module is also used to:
由所述元素进程将需要监听的所述元素触发事件注册至所述桌面进程,通过所述桌面进程对注册的所述元素触发事件进行监听。The element process registers the element triggering event that needs to be monitored to the desktop process, and the desktop process monitors the registered element triggering event.
在一些实施例中,所述功能接口包括监听接口,所述元素触发事件包括针对桌面元素的触摸事件、按键事件、输入事件、焦点变化事件以及点击事件中的至少一个;In some embodiments, the functional interface includes a listening interface, and the element triggering events include at least one of touch events, key events, input events, focus change events, and click events for desktop elements;
所述事件监听模块具体用于:The event monitoring module is specifically used for:
若所述元素触发事件为触摸事件、按键事件、输入事件、焦点变化事件中的至少一个,所述元素进程调用所述监听接口,在所述桌面进程中注册需要监听的所述元素触发事件;If the element triggering event is at least one of a touch event, a key event, an input event, and a focus change event, the element process calls the listening interface and registers the element triggering event that needs to be monitored in the desktop process;
若所述元素触发事件为点击事件,所述元素进程调用系统原生的软件开发工具包,在所述桌面进程中注册所述点击触发事件。If the element triggering event is a click event, the element process calls the system's native software development tool kit to register the click triggering event in the desktop process.
在一些实施例中,所述元素进程将需要监听的所述元素触发事件注册至所述桌面进程之前,所述事件监听模块还用于:In some embodiments, before the element process registers the element-triggered event that needs to be monitored to the desktop process, the event listening module is also used to:
在所述桌面进程中注册所述桌面元素,以便通过所述桌面进程显示所述桌面元素,其中:Register the desktop element in the desktop process so that the desktop element is displayed by the desktop process, where:
所述元素进程调用系统原生的软件开发工具包,在所述桌面进程中注册所述桌面元素;或The element process calls the system's native software development tool kit to register the desktop element in the desktop process; or
所述软件开发工具包提供的功能接口包括注册接口,所述元素进程调用所述注册接口,由所述软件开发工具包调用所述系统原生的软件开发工具包,在所述桌面进程中注册所述桌面元素。The functional interface provided by the software development toolkit includes a registration interface. The element process calls the registration interface, and the software development toolkit calls the system's native software development toolkit, and registers everything in the desktop process. Desktop elements.
在一些实施例中,在存在多个桌面的情况下,所述桌面进程监听到注册的所述元素触发事件后,所述事件监听模块还用于:In some embodiments, when there are multiple desktops and the desktop process listens to the registered element triggering an event, the event listening module is also used to:
所述桌面进程确定接收到所述元素触发事件的桌面元素所在桌面的桌面标识,并将所述桌面标识设置于所述触发消息中,返回给所述元素进程,以使所述元素进程根据所述桌面标识,针对相应桌面的所述桌面元素,确定与所述触发类型标识相匹配的操作控制。The desktop process determines the desktop identifier of the desktop where the desktop element that receives the element trigger event is located, sets the desktop identifier in the trigger message, and returns it to the element process, so that the element process can The desktop identification determines the operation control matching the trigger type identification for the desktop element of the corresponding desktop.
在一些实施例中,所述桌面操作模块具体用于:In some embodiments, the desktop operation module is specifically used to:
由所述元素进程确定所述桌面元素的当前元素状态;Determining, by the element process, the current element state of the desktop element;
在所述当前元素状态基础上,基于所述触发事件的类型,确定将所述桌面元素从所述当前元素状态调整至下一元素状态的操作控制。Based on the current element state and based on the type of the triggering event, an operation control for adjusting the desktop element from the current element state to the next element state is determined.
请参阅图7,本申请一个实施方式还提供一种智能交互平板,智能交互平板包括处理器和存储器,存储器用于存储计算机程序,计算机程序被处理器执行时,实现上述的桌面元素操作方法。Please refer to Figure 7. One embodiment of the present application also provides an intelligent interactive tablet. The intelligent interactive tablet includes a processor and a memory. The memory is used to store a computer program. When the computer program is executed by the processor, the above desktop element operating method is implemented.
其中,处理器可以为中央处理器(Central Processing Unit,CPU)。处理器还可以为其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等芯片,或者上述各类芯片的组合。The processor may be a central processing unit (Central Processing Unit, CPU). The processor can also be other general-purpose processors, Digital Signal Processor (DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other Chips such as programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of these types of chips.
存储器作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态计算机可执行程序以及模块,如本发明实施方式中的方法对应的程序指令/模块。处理器通过运行存储在存储器中的非暂态软件程序、指令以及模块,从而执行处理器的各种功能应用以及数据处理,即实现上述方法实施方式中的方法。As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions/modules corresponding to the methods in the embodiments of the present invention. The processor executes various functional applications and data processing of the processor by running non-transient software programs, instructions and modules stored in the memory, that is, implementing the method in the above method implementation.
存储器可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储处理器所创建的数据等。此外,存储器可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施方式中,存储器可选包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至处理器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory may include a program storage area and a data storage area, where the program storage area may store an operating system and an application program required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include high-speed random access memory and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the processor through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.
虽然结合附图描述了本发明的实施方式,但是本领域技术人员可以在不脱离本发明的精神和范围的情况下作出各种修改和变型,这样的修改和变型均落入由所附权利要求所限定的范围之内。Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention. Such modifications and variations are covered by the appended claims. within the limited scope.

Claims (16)

  1. 一种桌面元素操作方法,其特征在于,提供软件开发工具包,所述软件开发工具包用于在桌面进程中提供功能接口;所述方法包括:A method for operating desktop elements, characterized in that a software development toolkit is provided, and the software development toolkit is used to provide functional interfaces in desktop processes; the method includes:
    监听针对桌面元素的触发事件,其中,所述触发事件表征触发所述桌面元素对应的元素进程对所述桌面元素进行操作控制的事件;Monitor triggering events for desktop elements, where the triggering events represent events that trigger the element process corresponding to the desktop element to operate and control the desktop element;
    若监听到所述触发事件,由所述桌面元素对应的元素进程确定与所述触发事件的类型相匹配的操作控制,并调用所述功能接口,通过所述桌面进程对所述桌面元素执行相应的操作控制。If the trigger event is monitored, the element process corresponding to the desktop element determines the operation control that matches the type of the trigger event, and calls the functional interface to execute the corresponding operation on the desktop element through the desktop process. operational control.
  2. 如权利要求1所述的方法,其特征在于,所述功能接口包括操作接口,所述触发事件包括所述桌面元素接收到的元素触发事件,所述元素触发事件由所述桌面进程进行监听,其中,The method of claim 1, wherein the functional interface includes an operation interface, the triggering event includes an element triggering event received by the desktop element, and the element triggering event is monitored by the desktop process, in,
    若所述桌面进程监听到所述元素触发事件,返回触发消息给所述元素进程,所述触发消息包括触发类型标识,所述触发类型标识表征所述元素触发事件的类型;If the desktop process monitors the element trigger event, it returns a trigger message to the element process. The trigger message includes a trigger type identifier, and the trigger type identifier represents the type of the element trigger event;
    所述元素进程确定与所述触发类型标识相匹配的操作控制,并调用所述操作接口,通过所述桌面进程对所述桌面元素执行相应的操作控制。The element process determines the operation control that matches the trigger type identifier, and calls the operation interface to perform corresponding operation control on the desktop element through the desktop process.
  3. 如权利要求2所述的方法,其特征在于,在所述桌面进程监听所述元素触发事件之前,所述方法还包括:The method of claim 2, wherein before the desktop process listens to the element trigger event, the method further includes:
    由所述元素进程将需要监听的所述元素触发事件注册至所述桌面进程,通过所述桌面进程对注册的所述元素触发事件进行监听。The element process registers the element triggering event that needs to be monitored to the desktop process, and the desktop process monitors the registered element triggering event.
  4. 如权利要求3所述的方法,其特征在于,所述功能接口包括监听接口,所述元素触发事件包括针对桌面元素的触摸事件、按键事件、输入事件、焦点变化事件以及点击事件中的至少一个;The method of claim 3, wherein the functional interface includes a listening interface, and the element triggering event includes at least one of a touch event, a key event, an input event, a focus change event, and a click event for desktop elements. ;
    所述将需要监听的所述元素触发事件注册至所述桌面进程,包括:Registering the element-triggered events that need to be monitored to the desktop process includes:
    若所述元素触发事件为触摸事件、按键事件、输入事件、焦点变化事件中的至少一个,所述元素进程调用所述监听接口,在所述桌面进程中注册需要监听的所述元素触发事件;If the element triggering event is at least one of a touch event, a key event, an input event, and a focus change event, the element process calls the listening interface and registers the element triggering event that needs to be monitored in the desktop process;
    若所述元素触发事件为点击事件,所述元素进程调用系统原生的软件开发工具包,在所述桌面进程中注册所述点击触发事件。If the element triggering event is a click event, the element process calls the system's native software development tool kit to register the click triggering event in the desktop process.
  5. 如权利要求3所述的方法,其特征在于,所述元素进程将需要监听的所述元素触发事件注册至所述桌面进程之前,所述方法还包括:The method of claim 3, wherein before the element process registers the element trigger event that needs to be monitored to the desktop process, the method further includes:
    在所述桌面进程中注册所述桌面元素,以便通过所述桌面进程显示所述桌面元素,其中:Register the desktop element in the desktop process so that the desktop element is displayed by the desktop process, where:
    所述元素进程调用系统原生的软件开发工具包,在所述桌面进程中注册所述桌面元素;或The element process calls the system's native software development tool kit to register the desktop element in the desktop process; or
    所述软件开发工具包提供的功能接口包括注册接口,所述元素进程调用所述注册接口,由所述软件开发工具包调用所述系统原生的软件开发工具包,在所述桌面进程中注册所述桌面元素。The functional interface provided by the software development toolkit includes a registration interface. The element process calls the registration interface, and the software development toolkit calls the system's native software development toolkit, and registers everything in the desktop process. Desktop elements.
  6. 如权利要求2所述的方法,其特征在于,在存在多个桌面的情况下,所述桌面进程监听到注册的所述元素触发事件后,所述方法还包括:The method of claim 2, wherein when there are multiple desktops and the desktop process listens to the registered element trigger event, the method further includes:
    所述桌面进程确定接收到所述元素触发事件的桌面元素所在桌面的桌面标识,并将所述桌面标识设置于所述触发消息中,返回给所述元素进程,以使所述元素进程根据所述桌面标识,针对相应桌面的所述桌面元素,确定与所述触发类型标识相匹配的操作控制。The desktop process determines the desktop identifier of the desktop where the desktop element that receives the element trigger event is located, sets the desktop identifier in the trigger message, and returns it to the element process, so that the element process can The desktop identification determines the operation control matching the trigger type identification for the desktop element of the corresponding desktop.
  7. 如权利要求1所述的方法,其特征在于,所述由所述桌面元素对应的元素进程确定与所述触发事件的类型相匹配的操作控制,包括:The method of claim 1, wherein the element process corresponding to the desktop element determines the operation control that matches the type of the trigger event, including:
    由所述元素进程确定所述桌面元素的当前元素状态;Determining, by the element process, the current element state of the desktop element;
    在所述当前元素状态基础上,基于所述触发事件的类型,确定将所述 桌面元素从所述当前元素状态调整至下一元素状态的操作控制。Based on the current element state, based on the type of the trigger event, the operation control for adjusting the desktop element from the current element state to the next element state is determined.
  8. 一种电子设备,其特征在于,电子设备提供软件开发工具包,所述软件开发工具包用于在桌面进程中提供功能接口;所述电子设备包括:An electronic device, characterized in that the electronic device provides a software development toolkit, and the software development toolkit is used to provide a functional interface in a desktop process; the electronic device includes:
    事件监听模块,监听针对桌面元素的触发事件,其中,所述触发事件表征触发所述桌面元素对应的元素进程对所述桌面元素进行操作控制的事件;The event listening module monitors triggering events for desktop elements, where the triggering event represents an event that triggers the element process corresponding to the desktop element to operate and control the desktop element;
    桌面操作模块,若监听到所述触发事件,由所述桌面元素对应的元素进程确定与所述触发事件的类型相匹配的操作控制,并调用所述功能接口,通过所述桌面进程对所述桌面元素执行相应的操作控制。Desktop operation module, if the trigger event is monitored, the element process corresponding to the desktop element determines the operation control that matches the type of the trigger event, and calls the functional interface to control the operation of the trigger event through the desktop process. Desktop elements perform corresponding operational controls.
  9. 如权利要求8所述的电子设备,其特征在于,所述功能接口包括操作接口,所述触发事件包括所述桌面元素接收到的元素触发事件,所述元素触发事件由所述桌面进程进行监听,其中,The electronic device according to claim 8, wherein the functional interface includes an operation interface, the triggering event includes an element triggering event received by the desktop element, and the element triggering event is monitored by the desktop process. ,in,
    所述事件监听模块具体用于:若所述桌面进程监听到所述元素触发事件,返回触发消息给所述元素进程,所述触发消息包括触发类型标识,所述触发类型标识表征所述元素触发事件的类型;The event listening module is specifically configured to: if the desktop process monitors the element trigger event, return a trigger message to the element process, where the trigger message includes a trigger type identifier, and the trigger type identifier represents the element trigger. type of event;
    所述桌面操作模块具体用于:所述元素进程确定与所述触发类型标识相匹配的操作控制,并调用所述操作接口,通过所述桌面进程对所述桌面元素执行相应的操作控制。The desktop operation module is specifically configured to: the element process determine the operation control that matches the trigger type identifier, and call the operation interface to perform corresponding operation control on the desktop element through the desktop process.
  10. 如权利要求9所述的电子设备,其特征在于,在所述桌面进程监听所述元素触发事件之前,所述事件监听模块还用于:The electronic device according to claim 9, characterized in that, before the desktop process listens to the element triggering event, the event listening module is also used to:
    由所述元素进程将需要监听的所述元素触发事件注册至所述桌面进程,通过所述桌面进程对注册的所述元素触发事件进行监听。The element process registers the element triggering event that needs to be monitored to the desktop process, and the desktop process monitors the registered element triggering event.
  11. 如权利要求10所述的电子设备,其特征在于,所述功能接口包括 监听接口,所述元素触发事件包括针对桌面元素的触摸事件、按键事件、输入事件、焦点变化事件以及点击事件中的至少一个;The electronic device of claim 10, wherein the functional interface includes a listening interface, and the element triggering event includes at least one of touch events, key events, input events, focus change events, and click events for desktop elements. one;
    所述事件监听模块具体用于:The event monitoring module is specifically used for:
    若所述元素触发事件为触摸事件、按键事件、输入事件、焦点变化事件中的至少一个,所述元素进程调用所述监听接口,在所述桌面进程中注册需要监听的所述元素触发事件;If the element triggering event is at least one of a touch event, a key event, an input event, and a focus change event, the element process calls the listening interface and registers the element triggering event that needs to be monitored in the desktop process;
    若所述元素触发事件为点击事件,所述元素进程调用系统原生的软件开发工具包,在所述桌面进程中注册所述点击触发事件。If the element triggering event is a click event, the element process calls the system's native software development tool kit to register the click triggering event in the desktop process.
  12. 如权利要求10所述的电子设备,其特征在于,所述元素进程将需要监听的所述元素触发事件注册至所述桌面进程之前,所述事件监听模块还用于:The electronic device according to claim 10, characterized in that, before the element process registers the element triggering event that needs to be monitored to the desktop process, the event listening module is also used to:
    在所述桌面进程中注册所述桌面元素,以便通过所述桌面进程显示所述桌面元素,其中:Register the desktop element in the desktop process so that the desktop element is displayed by the desktop process, where:
    所述元素进程调用系统原生的软件开发工具包,在所述桌面进程中注册所述桌面元素;或The element process calls the system's native software development tool kit to register the desktop element in the desktop process; or
    所述软件开发工具包提供的功能接口包括注册接口,所述元素进程调用所述注册接口,由所述软件开发工具包调用所述系统原生的软件开发工具包,在所述桌面进程中注册所述桌面元素。The functional interface provided by the software development toolkit includes a registration interface. The element process calls the registration interface, and the software development toolkit calls the system's native software development toolkit, and registers everything in the desktop process. Desktop elements.
  13. 如权利要求9所述的电子设备,其特征在于,在存在多个桌面的情况下,所述桌面进程监听到注册的所述元素触发事件后,所述事件监听模块还用于:The electronic device of claim 9, wherein when there are multiple desktops and the desktop process monitors the registered element triggering an event, the event listening module is further configured to:
    所述桌面进程确定接收到所述元素触发事件的桌面元素所在桌面的桌面标识,并将所述桌面标识设置于所述触发消息中,返回给所述元素进程,以使所述元素进程根据所述桌面标识,针对相应桌面的所述桌面元素,确定与所述触发类型标识相匹配的操作控制。The desktop process determines the desktop identifier of the desktop where the desktop element that receives the element trigger event is located, sets the desktop identifier in the trigger message, and returns it to the element process, so that the element process can The desktop identification determines the operation control matching the trigger type identification for the desktop element of the corresponding desktop.
  14. 如权利要求8所述的电子设备,其特征在于,所述桌面操作模块具体用于:The electronic device according to claim 8, characterized in that the desktop operation module is specifically used for:
    由所述元素进程确定所述桌面元素的当前元素状态;Determining, by the element process, the current element state of the desktop element;
    在所述当前元素状态基础上,基于所述触发事件的类型,确定将所述桌面元素从所述当前元素状态调整至下一元素状态的操作控制。Based on the current element state and based on the type of the triggering event, an operation control for adjusting the desktop element from the current element state to the next element state is determined.
  15. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储计算机程序,所述计算机程序被处理器执行时,实现如权利要求1至7中任一所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium is used to store a computer program. When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
  16. 一种智能交互平板,其特征在于,所述智能交互平板包括处理器和存储器,所述存储器用于存储计算机程序,所述计算机程序被所述处理器执行时,实现如权利要求1至7中任一所述的方法。An intelligent interactive tablet, characterized in that the intelligent interactive tablet includes a processor and a memory, and the memory is used to store a computer program. When the computer program is executed by the processor, it implements claims 1 to 7 any of the methods described.
PCT/CN2022/100601 2022-06-23 2022-06-23 Desktop element operation method, electronic device and intelligent interaction tablet WO2023245526A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202280006530.XA CN116420138A (en) 2022-06-23 2022-06-23 Desktop element operation method, electronic equipment and intelligent interaction panel
PCT/CN2022/100601 WO2023245526A1 (en) 2022-06-23 2022-06-23 Desktop element operation method, electronic device and intelligent interaction tablet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/100601 WO2023245526A1 (en) 2022-06-23 2022-06-23 Desktop element operation method, electronic device and intelligent interaction tablet

Publications (1)

Publication Number Publication Date
WO2023245526A1 true WO2023245526A1 (en) 2023-12-28

Family

ID=87049662

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/100601 WO2023245526A1 (en) 2022-06-23 2022-06-23 Desktop element operation method, electronic device and intelligent interaction tablet

Country Status (2)

Country Link
CN (1) CN116420138A (en)
WO (1) WO2023245526A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491731A (en) * 2018-09-07 2019-03-19 咪咕文化科技有限公司 A kind of control method, device and the storage medium of suspension button
CN111684420A (en) * 2019-06-12 2020-09-18 深圳市大疆创新科技有限公司 Method and device for calling functional module and computer readable storage medium
US20210117251A1 (en) * 2019-10-18 2021-04-22 Splunk Inc. Mobile application for an information technology (it) and security operations application
CN113094123A (en) * 2021-03-23 2021-07-09 北京达佳互联信息技术有限公司 Method and device for realizing functions in application program, electronic equipment and storage medium
CN114510170A (en) * 2021-03-04 2022-05-17 聚好看科技股份有限公司 Component display method and display device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491731A (en) * 2018-09-07 2019-03-19 咪咕文化科技有限公司 A kind of control method, device and the storage medium of suspension button
CN111684420A (en) * 2019-06-12 2020-09-18 深圳市大疆创新科技有限公司 Method and device for calling functional module and computer readable storage medium
US20210117251A1 (en) * 2019-10-18 2021-04-22 Splunk Inc. Mobile application for an information technology (it) and security operations application
CN114510170A (en) * 2021-03-04 2022-05-17 聚好看科技股份有限公司 Component display method and display device
CN113094123A (en) * 2021-03-23 2021-07-09 北京达佳互联信息技术有限公司 Method and device for realizing functions in application program, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN116420138A (en) 2023-07-11

Similar Documents

Publication Publication Date Title
JP6640909B2 (en) Theme display method and related devices
CN109062479B (en) Split screen application switching method and device, storage medium and electronic equipment
CN108205430B (en) Double-screen mobile terminal, corresponding control method and storage medium
CN110515510B (en) Data processing method, device, equipment and storage medium
US20200059444A1 (en) Task management based on instant message
US20170024086A1 (en) System and methods for detection and handling of focus elements
CN110286978B (en) Window hierarchy switching method, device, equipment and storage medium
CN103294335A (en) Apparatus and method for creating a shortcut menu
US20180224997A1 (en) Method and system for one-handed operations of mobile terminal
WO2021238840A1 (en) Information sharing method, information sharing apparatus, and electronic device
US20210191579A1 (en) Window adjustment method, window adjustment device and mobile terminal
WO2019007409A1 (en) Display method, device, smart terminal and computer readable storage medium
WO2021036926A1 (en) Display method and electronic device
WO2023098732A1 (en) Cross-device interaction method and apparatus, electronic device, and storage medium
US20240134503A1 (en) Control method and apparatus for displaying multimedia content, electronic device and medium
CN113051493A (en) Application program display method and device, storage medium and terminal
CN106528284B (en) application program configuration method and device and terminal equipment
WO2019019158A1 (en) Method and device for operating application
US11048409B2 (en) Method and apparatus for executing function of fixed virtual keys of mobile terminal with a single hand, and mobile terminal
CN109683739B (en) Method and device for adjusting operation interface, storage medium and electronic equipment
WO2024099102A1 (en) Control display method and apparatus, electronic device, and readable storage medium
WO2016155518A1 (en) Interface interaction method and device
CN112286611B (en) Icon display method and device and electronic equipment
WO2023245526A1 (en) Desktop element operation method, electronic device and intelligent interaction tablet
CN109064527B (en) Method and device for realizing dynamic configuration animation, storage medium and android terminal

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: 22947301

Country of ref document: EP

Kind code of ref document: A1