WO2024193371A1 - 程序处理方法、装置及电子设备 - Google Patents
程序处理方法、装置及电子设备 Download PDFInfo
- Publication number
- WO2024193371A1 WO2024193371A1 PCT/CN2024/080888 CN2024080888W WO2024193371A1 WO 2024193371 A1 WO2024193371 A1 WO 2024193371A1 CN 2024080888 W CN2024080888 W CN 2024080888W WO 2024193371 A1 WO2024193371 A1 WO 2024193371A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- program
- target
- interface
- control
- processing
- Prior art date
- Legal status (The legal status 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 status listed.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/44—Browsing; Visualisation therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/48—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
Definitions
- the present application belongs to the field of electronic technology, and specifically relates to a program processing method, device and electronic equipment.
- Electronic devices With the rapid development of electronic technology, electronic devices have been widely used. Electronic devices usually have various programs installed, and users often use various programs when using electronic devices.
- a program switching operation to trigger the electronic device to switch the program interface of the other program to the foreground for display and operation.
- the network status of the electronic device is relatively poor, so that the video cannot be loaded.
- the user can only give up watching the current video and use other programs.
- the user needs to perform a program switching operation to switch the electronic device to the video player program for the user to watch the video, or switch to the audio player program for the user to start the audio player control.
- the purpose of the embodiments of the present application is to provide a program processing method, device and electronic device.
- an embodiment of the present application provides a program processing method, the method comprising:
- the target processing is determined according to the first program event.
- an embodiment of the present application provides a program processing device, the device comprising:
- a display module used for displaying a first interface of a first program
- a processing module configured to execute a target process on a second program when a first program event occurs on the first interface
- the target processing is determined according to the first program event.
- an embodiment of the present application provides an electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the program processing method described in the first aspect.
- an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored.
- the program or instruction is executed by a processor, the steps of the program processing method described in the first aspect are implemented.
- an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps of the program processing method described in the first aspect.
- the first interface of the first program is displayed; when the first program event occurs on the first interface, the target processing is performed on the second program.
- the target processing is performed on the second program, and there is no need to manually switch between programs to process the second program, thereby simplifying the operation of program processing and improving the efficiency of program use.
- FIG1 is a flowchart of a program processing method provided by some embodiments of the present application.
- FIG. 2( a ) is a schematic diagram of an interface in which a first program event occurs in a conversation interface provided by some embodiments of the present application;
- FIG2( b ) is a schematic diagram of an interface switched to be displayed when a first program event occurs in a conversation interface provided by some embodiments of the present application;
- FIG. 2( c ) is a schematic diagram of a process interface of a user-defined program event provided in some embodiments of the present application;
- FIG3 is a schematic diagram of an interface in which a first program event occurs in a novel reading interface provided by some embodiments of the present application;
- FIG4( a ) is a schematic diagram of an interface in which a first program event occurs in a setting interface provided by some embodiments of the present application;
- FIG4( b ) is a schematic diagram of an interface switched to be displayed when a first program event occurs in a setting interface provided in some embodiments of the present application;
- FIG. 5 is a schematic diagram of a display interface in which data loading of a playback interface is in a target loading state provided by some embodiments of the present application;
- FIG6 is a schematic diagram of an application scenario interface of a video viewing process provided by some embodiments of the present application.
- FIG7 is a schematic diagram of a trigger display interface for program event options provided in some embodiments of the present application.
- FIG8 is a schematic diagram of an interface for associating program events and program processing provided by some embodiments of the present application.
- FIG9 is a schematic diagram of an interface for associating program events and program processing provided by some embodiments of the present application.
- FIG10 is a schematic diagram of a trigger display interface for program event options provided in some embodiments of the present application.
- FIG11 is a schematic diagram of an interface for associating program events and program processing provided by some embodiments of the present application.
- FIG12 is a schematic diagram of a process interface for setting a one-to-many event subscription distribution mode provided by some embodiments of the present application.
- FIG. 13 is a process interface of program processing in a one-to-many event subscription distribution mode provided by some embodiments of the present application.
- FIG14 is a structural diagram of a program processing device provided in some embodiments of the present application.
- FIG15 is a structural diagram of an electronic device provided in some embodiments of the present application.
- FIG16 is a schematic diagram of the hardware structure of an electronic device provided to implement some embodiments of the present application.
- first, second, etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first”, “second”, etc. are generally of one type, and the number of objects is not limited.
- the first object can be one or more.
- “and/or” in the specification and claims represents at least one of the connected objects, and the character “/" generally indicates that the objects associated with each other are in an "or” relationship.
- the application scenario of the program processing method can be a multi-program usage scenario, that is, the electronic device can be installed with multiple programs, and the user needs to use between multiple programs.
- the electronic device in the embodiment of the present application has an operating system.
- the operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
- FIG. 1 is a flow chart of a program processing method provided in an embodiment of the present application, as shown in FIG. 1 , comprising the following steps:
- Step 101 display a first interface of a first program.
- the display interface may be an interface of the electronic device, which may generally display the main interface of the operating system of the electronic device, and the main interface may display program icons of various programs installed on the electronic device.
- the main interface may display program icons of an instant messaging program, a multimedia player program, and a setting program.
- a first interface of the first program can be displayed on the display interface.
- the first program can be any program installed in the electronic device, such as an instant messaging program, a multimedia player program, a setting program, etc.
- the first interface can be any program interface of the first program, the main interface of the first program, or a specific running interface of the first program, such as a conversation interface with a target contact in an instant messaging program, or a target multimedia player interface in a multimedia player program.
- the user can click on the program icon of the first program in the main interface of the operating system of the electronic device, and accordingly, the first interface of the first program can be displayed on the display interface of the electronic device.
- the user can switch between different programs by inputting the first program, such as swiping up to call up the program interface running in the background, and accordingly, the display interface of the electronic device The first interface of the first program can be displayed on the interface.
- Step 102 when the first program event occurs on the first interface, target processing is performed on the second program; in this way, when the first program event is detected to occur on the first interface of the first program, target processing is automatically performed on the second program without manual triggering by the user.
- the target processing is determined according to the first program event.
- program events refer to events that occur in the interface of the program when the program is running. For example, information is displayed in the program controls of the program interface when the program is running, program controls in the program interface are triggered, the control states of program controls change, the data loading state of the interface changes, etc. Any type of event that occurs in the interface of the program when the program is running can be called a program event.
- the first program event in the embodiment of the present application is an event that occurs in the first interface when the first program is running, which may be preset by the user or the system.
- the first program event preset by the user or the system includes at least one of the following:
- the program control in the first interface receives a control input
- the control state of the program control in the first interface is updated to the target control state
- the data loading state of the target data in the first interface is a target loading state, wherein in the target loading state, the loading speed of the target data is less than a speed threshold.
- the program processing device in the embodiment of the present application can store the relevant data of the first program event, for example, the program control related to the first program event in the interface can be stored, the display information related to the first program event in the program control, the control state of the program control related to the first program event, or the data in the interface related to the first program event. Data loading state.
- the program processing device in the embodiment of the present application can store the relevant data of the first program event, for example, the program control related to the first program event in the interface can be stored, the display information related to the first program event in the program control, the control state of the program control related to the first program event, or the data in the interface related to the first program event. Data loading state.
- the program event occurring on the first interface it can be determined based on the relevant data whether the program event occurring on the first interface is the first program event.
- the program processing device can monitor the program event occurring on the interface in real time or at every preset period, for example, monitor the program event occurring on the interface every 1 minute.
- the first program event may be displaying the target information in the program control in the first interface.
- the first interface is a conversation interface with contact 1 in an instant messaging program, and the conversation interface may include a message input box, and the first program event may be displaying the target information in the input box, such as displaying "information input", digital characters "888888", etc.
- the program processing device may detect that the first program event has occurred in the conversation interface, and then automatically switch the conversation interface to the playback interface of the video playback program as shown in FIG2(b).
- the first interface is a conversation interface with contact 2 in an instant messaging program
- the conversation interface may include a control for displaying conversation messages, such as a control including a conversation message sent by contact 2, and the first program event may be displaying the target information in the control.
- the target information may be system preset information or user set information.
- the user may set a program event, and the target information may be customized by the user during the setting of the program event.
- the method further includes:
- the program processing device can also provide the user with the setting of the program event, and the user can set the program event by the sixth input of the second target program control in the first interface of the first program. Accordingly, the program processing device can determine the target information including the first target keyword displayed in the second target program control as the second program event in response to the sixth input, and add the program event option of the second program event to the at least two program event options.
- the sixth input is used for the user to customize the target information displayed in the program control to set the program event, and the sixth input can be a sixth operation.
- the sixth input can be: text input by the user in the input control.
- the second target program control can be a control for inputting information, a control for displaying information, or other program controls, which are not specifically limited here.
- the program processing device currently displays a conversation interface with contact 1 in an instant messaging program, and the user can call out a program event option list 202 through operation, and the program event option list 202 can set a second program event based on a control 203 of a "custom state".
- the sixth input can include touching the "custom state" control, and entering key information in an input box 204 displayed after touching the control.
- the program processing device can respond to the sixth input, obtain the first target keyword indicated by the sixth input, and determine the program event with the target information displayed in the second target program control as the second program event, and the target information can include the first target keyword.
- the user can also customize the program event option of the second program event and add it to the program event option list 202.
- the program processing device can store the target information related to the second program event. Accordingly, when the session interface of the instant messaging program is displayed, the program processing device can monitor the program events occurring in the session interface in real time or at preset intervals. For example, the program events occurring in the session interface are monitored every 1 minute, and based on the stored target information related to the second program event, it is determined whether the program event occurring in the session interface is the first program event. When the information displayed by the program control in the session interface includes the target information, it is determined that the first program event has been monitored to have occurred in the session interface, and the target processing can be automatically performed on the second program.
- the user when the program processing device displays the reading interface of the novel reading program, the user can set the program event by setting the target information displayed by the text control in the reading interface.
- the text control is used to display the novel text information.
- the target information can be a second target keyword.
- the user can set the second target keyword to "finish".
- the program processing device can detect that the program control in the reading interface of the novel reading program displays the second target keyword.
- the target processing can be automatically performed on the second program without manual triggering by the user.
- the electronic device can determine the target information including the target keyword input by the user as a program event, thereby enabling the user to customize the program event and improving the flexibility of setting the program event.
- the first program includes an instant messaging program; the first interface includes a conversation interface with a target contact; optionally, when a first program event occurs on the first interface, executing a target process on the second program includes:
- first information is displayed in a first control in the conversation interface, executing target processing on the second program, wherein the first control is a control for inputting information;
- target processing is performed on the second program, wherein the second control is a control for displaying a conversation message sent by the target contact.
- the first information and the second information may be system default information or user set information.
- the first information and the second information may be system default or user set target information including the first target keyword.
- the target processing in the embodiment of the present application can be to display the interface of the second program, that is, to perform a jump process between programs. Specifically, the interface between the two programs can be switched.
- the target processing can also be the background triggering the input of the control in the interface of the second program, or other processing, which is not specifically limited here.
- the second program can be any program, the first program and the second program are two different programs, the second program can be set by the user, or the system can be set according to the user's usage habits.
- the first program can be an instant messaging program
- the second program can be a multimedia player program
- the first program can also be a video player program
- the second program can also be an audio player program or a novel reading program.
- the display interface of the program processing device currently displays the conversation interface of the instant messaging program with the target contact, and the user is entering information in the input box of the current conversation interface, and the first information is entered.
- the first information entered is a string of digital characters "888888".
- the program processing device can monitor that the first information is displayed in the input box of the current conversation interface.
- the conversation interface currently displayed on the display interface can be switched to the playback interface of video A running in the background in the video playback program.
- the display interface of the program processing device currently displays a conversation interface of the instant messaging program with the target contact, the current user is chatting with the target contact, and the program processing device currently receives a message sent by the target contact and displays it in the second control.
- the message includes second information such as a string of digital characters "888888".
- the program processing device can monitor that the second information is displayed in the second control of the current conversation interface.
- the conversation interface currently displayed on the display interface can be switched to the playback interface of video A running in the background in the video playback program.
- the target processing can be automatically performed on the second program without manually switching to the interface of the second program for program processing, thereby simplifying the program processing operation and improving the efficiency of program use.
- the first interface is a reading interface of a novel reading program
- the reading interface may include a Text control
- the first program event can be the display of target information in the text control in the reading interface.
- the target information can include system default or user-set keywords.
- the target information includes the keyword "complete" set by the user. As shown in FIG3 , when the display control 301 of the novel text information is monitored to display the word "complete", it is determined that the first program event has occurred in the reading interface.
- the first program includes a multimedia playback program;
- the first interface includes a playback interface of target multimedia, and the target multimedia includes text, audio, or video;
- performing target processing on the second program includes:
- target processing is performed on the second program, wherein the fifth control is a control for displaying text information of the target multimedia.
- the fifth control when the target multimedia is an e-book, the fifth control is a control for displaying the book content of the e-book; when the target multimedia is news information, the fifth control is a control for displaying the information content; when the target multimedia is audio, the fifth control is a control for displaying the text information of the audio; when the target multimedia is a video, the fifth control is a control for displaying the subtitles or barrage of the video.
- the second target keyword may be a system default keyword or a user-set keyword.
- the second target keyword may be “finished” or “ahhh...” or other keywords.
- the target processing may be to display the interface of the second program, that is, to perform jump processing between programs, or the target processing may be to trigger input of controls in the interface of the second program in the background, or other processing, which is not specifically limited here.
- the second program may be an instant messaging program, a setting program, etc.
- the target multimedia may be video, audio or novel text, etc.
- the text information of the target multimedia may be subtitle information of the video, lyrics information of the audio, text information of the novel text, text information of news information, etc.
- the application scenario is illustrated by taking the target processing as the jump processing between programs as an example.
- the second program is an instant messaging program
- the second target keyword can be "ah ah ah"
- the display interface of the program processing device currently displays the audio playback interface of the audio playback program
- the user is using the audio playback program to listen to songs
- the fifth control of the current audio playback interface displays the lyrics information of the song.
- the program processing device can monitor the lyrics information displayed in the fifth control of the audio playback interface in real time or at preset intervals.
- the lyrics information displayed in the fifth control of the audio playback interface is monitored every 5 seconds, and based on the target information related to the program event pre-stored by the program processing device, it is determined whether the program event occurring on the audio playback interface is the first program event, wherein the target information includes the second target keyword.
- the program processing device can detect that the second target keyword is displayed in the fifth control. At this time, the program processing device can determine that the first program event has occurred in the audio playback interface, and determine that the user has ended listening to the audio.
- the target processing can be performed on the second program, specifically, the audio playback interface currently displayed on the display interface can be switched to the conversation interface running in the background of the instant messaging program.
- the program processing device determines that the user has ended listening to the audio, it can automatically switch to the interface of the instant messaging program for display, without any interruption. Manual switching is not required, which simplifies the operation of program processing.
- the first program is a novel reading program
- the second program is a video playback program
- the second target keyword is "finished”
- the display interface of the program processing device currently displays the reading interface of the novel reading program
- the user is browsing the novel in the reading interface
- the fifth control of the current reading interface displays the novel text information.
- the program processing device can monitor the novel text information displayed in the fifth control of the reading interface in real time or at preset intervals, for example, monitor the novel text information displayed in the fifth control of the reading interface every 1 minute, and determine whether the program event occurring in the novel text information is a first program event based on the target information related to the program event pre-stored by the program processing device, wherein the target information includes the second target keyword.
- the program processing device can detect that the second target keyword is displayed in the fifth control. At this time, the program processing device can determine that the first program event has occurred on the reading interface, and determine that the user has finished reading the novel.
- the target processing can be performed on the second program accordingly.
- the reading interface currently displayed on the display interface can be switched to the interface of the video playback program.
- the electronic device will automatically switch the conversation interface to the video playback interface shown in Figure 2 (b). In this way, when the user finishes reading the novel, the electronic device can automatically switch the reading interface of the novel reading program to the interface of the video playback program for display. In this way, there is no need for manual switching, thereby simplifying the operation of program processing.
- the first program is a multimedia player program
- the second program is a web browsing program
- the second target keyword can be a rare character with more strokes set by the system or by the user.
- the electronic device can automatically switch the first interface of the multimedia player program to the web page interface of the web browsing program for display, so that the user can browse and search. In this way, there is no need for manual switching, thereby simplifying the operation of program processing.
- the first program event may be that the program control in the first interface receives a control input, which may be a voice input, a gesture input, or a touch input, which is not specifically limited here.
- a control input which may be a voice input, a gesture input, or a touch input, which is not specifically limited here.
- a voice input control in a conversation interface of an instant messaging program receives a control input indicating that the voice input is complete.
- a send control in a conversation interface of an instant messaging program receives a control input.
- a video capture control in an image capture program receives a control input indicating that the video capture is complete.
- executing target processing on the second program includes:
- the third control is a control for processing messages or files.
- the third control includes but is not limited to controls for sending messages, copying messages, deleting messages, forwarding messages, saving files, and copying files.
- the control input can be gesture input, voice input, or touch input, etc., which is not specifically limited here.
- the first program is an instant messaging program
- the second program is a video playback program
- the third control is a control for sending messages in the conversation interface of the instant messaging program.
- the conversation interface of the instant messaging program is currently displayed on the display interface of the program processing device.
- the user can send the conversation message input in the input box by inputting the message sending control in the conversation interface.
- the program processing device detects the user's control input to the message sending control, it can switch the conversation interface currently displayed on the display interface to the playback interface of the video B running in the background in the video playback program. In this way, there is no need for manual switching, thereby simplifying the operation of program processing.
- the first program is an image shooting program
- the second program is a short video program
- the third control is a control for saving image files.
- the shooting interface of the image shooting program is displayed on the display interface of the program processing device
- the user can shoot images based on the shooting interface.
- the user can save the image file by inputting into the third control.
- the program processing device monitors the user's control input to the third control, it can switch the shooting interface currently displayed on the display interface to the interface for making short videos in the short video program for display. Specifically, it can be to cancel the display of the shooting interface or close the shooting interface, open the interface for making short videos in the short video program, or display the interface for making short videos in the short video program. In this way, the user can make short videos based on the captured images. In this way, there is no need for manual switching, thereby simplifying the program processing operation.
- the first program is a setting program
- the second program is an audio playback program
- the third control may be a Bluetooth connection control.
- the Bluetooth connection control may receive the control input.
- the program processing device may establish a connection with the Bluetooth headset indicated by the Bluetooth connection control, and switch the setting interface currently displayed on the display interface to the playback interface of the audio playback program, so that the user can listen to music through the Bluetooth headset in the playback interface of the audio playback program.
- FIG4(a) when the Bluetooth connection control 401 of the setting interface receives the control input 402, the electronic device will automatically switch the setting interface to the audio playback interface shown in FIG4(b). In this way, there is no need for manual switching, thereby simplifying the operation of program processing.
- the first program event can be that the program control in the first interface is updated to the target control state.
- the progress indicator on the playback control in the multimedia playback program is updated to a state indicating the target progress, and the progress indicator can be a progress bar.
- the target progress can be 90%, 100% or other progress, which is not specifically limited here, such as the target progress can be 98%.
- the program processing device can monitor the progress bar in real time or periodically, and determine the progress indicated by the progress bar. When the progress indicated by the video playback progress bar is updated to a progress state of 98%, it is determined that the first program event has occurred in the playback interface.
- the input box in the conversation interface of the instant messaging program is updated to a state in use
- the state in use can be a state in which the input box is in the process of inputting information.
- the function setting control in the setting interface of the setting program is updated to a control disabled state, that is, updated to a grayed-out state.
- executing target processing on the second program includes:
- the target control state includes at least one of the following: the progress indicator on the control indicates the state of the target progress; The state of the control being disabled; the state of the control being in use; the state of the control being completely or partially hidden; the state of the control being in target display mode.
- the first program is a video playback program
- the second program is an instant messaging program
- the first interface is a video playback interface
- the fourth control may be a playback control.
- the progress bar on the playback control indicates a state greater than 90% progress, it indicates that the video has been played. Accordingly, when it is monitored that the playback control in the video playback interface is updated to a state in which the progress bar indicates a target progress, it can automatically switch to the instant messaging program. In this way, there is no need for manual switching, thereby simplifying program processing operations.
- the state of the target control may be a state in which the control is in use, and the state in which the control is in use includes but is not limited to a state in which the control is in a state of inputting information, a state in which the control is selected, etc.
- the first program is an instant messaging program
- the second program is a video player program
- the first interface is a conversation interface
- the conversation interface may include an input control.
- the input control is in a state in which information is being input.
- the program processing device detects that the input control in the conversation interface is in a state in which information is being input, it can automatically jump to the video player program to watch the video, so that there is no need for manual switching, thereby simplifying the operation of program processing.
- the first program is an instant messaging program
- the second program is a video playback program
- the first interface is a conversation interface
- the fourth control may be an input control.
- the control state of the input control may change.
- the input control may not display a message, that is, it may be updated to a state where no information is displayed.
- the input control may be updated to a fully or partially hidden state.
- the program processing device detects that the input control in the conversation interface is updated to a state where no information is displayed, or a fully hidden state, or a partially hidden state, it may automatically jump to the video playback program to watch the video. In this way, there is no need for the user to manually switch, thereby simplifying the user's program processing control operations.
- the first program is a setting program
- the second program is a game program
- the fourth control may be a function setting control.
- the control state of the function setting control may change, for example, updated to a control disabled state.
- the program processing device detects that the function setting control is updated to a control disabled state, it may automatically jump to the game program to perform game operations based on the set function. In this way, there is no need for manual switching, thereby simplifying the program processing operation.
- the control state of the control is updated to the control disabled state, indicating that the control is updated from the normal, highlighted or selected state to the disabled state.
- the first program is a setting program
- the second program is a game program
- the fourth control It can be a function setting control.
- the display mode of the function setting control can be updated to the target display mode, and the target display mode indicates that the function setting control is displayed in the form of a floating ball.
- the program processing device detects that the display mode of the function setting control is updated to the target display mode, it can automatically jump to the game program to facilitate the user to operate the game. In this way, there is no need for manual switching, thereby simplifying the operation of program processing.
- the first program event may be that the data loading state of the target data in the first interface is the target loading state, wherein in the target loading state, the loading speed of the target data is less than the speed threshold.
- the loading speed of the screen data in the playback interface of the multimedia playback program is less than the speed threshold.
- the user is watching a video on the playback interface of the video playback program. There should actually be three characters displayed in the screen of the playback interface. However, due to the poor network status of the electronic device, its data loading speed is relatively slow, resulting in the inability to display all the characters in the screen of the playback interface, and only loading the screens of two characters. At this time, it can be determined that the first program event has occurred in the playback interface. For example, the loading speed of the game screen data in the game program is less than the speed threshold.
- the speed threshold can be set according to actual conditions. When the data loading speed is lower than the speed threshold, it means that the data loading speed in the interface of the first program is relatively slow, so that the interface cannot fully display the screen information.
- the value range of the speed threshold can be 10 kilobytes (kB) to 200 kB.
- the speed thresholds can be set differently for different programs. For example, a video player requires a faster data loading speed than an audio player to achieve better user experience. For the video player, the speed threshold can be set to 200Kb, and for the audio player, the speed threshold can be set to 50kB. Therefore, the speed threshold for the loading speed of screen data in the interface of the video player can be set larger than the speed threshold for the loading speed of audio data in the interface of the audio player.
- the program processing device can easily monitor the first program event according to the loading speed of the program controls or data in the first interface.
- the target processing of the embodiment of the present application can be program processing, which refers to the processing of the second program.
- the target processing when the first program event occurs on the first interface, the target processing can be automatically performed on the second program. In this way, during the use of the first program, if the first program event is detected to occur on the first interface, the electronic device can automatically perform the target processing on the second program, without the user manually switching between programs to process the second program, thereby simplifying the operation of program processing and improving the efficiency of program use.
- the program processing device can store the association relationship between the program event and the program processing, and based on the association relationship, the second program and the target processing associated with the first program event can be determined.
- the target processing before the target processing is performed on the second program, it can also include: determining the target processing associated with the first program event according to the association relationship between the program event and the program processing.
- the program processing device can store the association relationship between program events and program processing, for example, it can store the association relationship between the program event of the program control in the interface of the first program receiving the control input and the program processing of displaying the interface of the second program.
- the association relationship between the program event of updating the program control in the interface of the first program to the target control state and the program processing of triggering the input of the control of the second program can be stored.
- the association relationship between program events and program processing may be stored in the form of a table, such as a mapping relationship table as shown in Table 1 below.
- the target process associated with the first program event can be queried from the stored association relationship.
- the target process can be determined and the program process mode can be enriched.
- the association relationship between the program event and the program processing can be determined by user settings.
- the method further includes: displaying at least two program icons and at least two program event options; receiving a first input from a user for a target program icon among the at least two program icons and a target program event option among the at least two program event options; in response to the first input, establishing an association relationship between the program event indicated by the target program event option and the target program processing.
- the target program icon is the program icon of the second program; the target program processing is determined according to the running state of the second program or is set by the user.
- the program event options correspond to the program events, which may be a one-to-one correspondence, and the program event options may indicate the program events.
- the program icons in the embodiment of the present application may be application icons, which may be application icons of various applications installed by the program processing device, or application icons frequently used by the user, and the at least two program icons may include a program icon of the second program.
- an input to an interface of a first program may be received, and in response to the input, at least two program icons and at least two program event options may be displayed simultaneously.
- a first input from a user to a target program icon among the at least two program icons and a target program event option among the at least two program event options may be received, and in response to the first input, an association relationship between a program event indicated by the target program event option and a target program process is established.
- the first input may be an input to the target program event option and the target program process simultaneously or successively.
- the first input is used to establish an association relationship between a program event and a program process, and the first input may be a first operation.
- the first input includes but is not limited to: a user's touch input of a program icon and a program event through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible input, which may be determined according to actual use requirements. Please do not limit the embodiments.
- the specific gesture in the embodiments of the present application may be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, and a double-click gesture;
- the click input in the embodiments of the present application may be a single-click input, a double-click input, or any number of click inputs, etc., and may also be a long-press input or a short-press input.
- the first input mentioned above may be: a user's click input of a target program icon among at least two program icons displayed on the interface of the first program and a target program event option among at least two program event options.
- an input to the interface of the first program may be received, and in response to the input, at least two program event options are first displayed, and in the case of receiving a first sub-input of a target program event option among the at least two program event options, at least two program icons are displayed, and a second sub-input of a target program icon among the at least two program icons is received from the user, and in response to the second sub-input, an association relationship between the program event indicated by the target program event option and the target program processing is established.
- the first input may include a first sub-input and a second sub-input, and the first sub-input may be a first sub-operation, and the first sub-input may be a click input, a voice input, or a gesture input, etc., and the first sub-input is used to select the target program icon among the at least two program icons displayed on the interface of the first program, and the second sub-input may be a second sub-operation, and the second sub-input may be a click input, a voice input, or a gesture input, etc., and the second sub-input is used to select the target program event option among the at least two program event options.
- users need to use between two or more different programs.
- the electronic device needs to perform corresponding processing of program B according to the program event occurring in the interface of program A. For example, jumping from program A to program B to switch the interface display, for example, triggering the program control in the interface of program B, at this time, an association relationship between the first program event in the interface of program A indicated by the target program event option and the target program processing of program B can be established.
- the user is currently chatting with a friend in a full-screen chat program.
- the user needs to perform a program switching operation so that the program processing device switches the interface of the instant messaging program to the interface of the video player program for display, so that the user can watch the video on the interface of the video player program.
- the association between the program event occurring in the interface of the instant messaging program and the program processing of the video player program can be set.
- the input information of the control may be a high-frequency behavior, for example, as shown in FIG6, the user is watching a video in the video player program. At this time, contact 1 sends a new message.
- the message keywords sent by contact 1 can be displayed on the playback interface, or it can be displayed that contact 1 has sent a new message, and the user needs to chat with contact 1. After the chat is over, the user needs to perform a program switching operation again so that the program processing device switches the session interface to the interface of the video player program for display. This switching back and forth is cumbersome. If the program event occurring in the interface of the instant messaging program can be associated with the video player program, the program processing device will automatically switch the display between the interface of the instant messaging program and the interface of the video player program when the first program event occurs in the interface of the instant messaging program is detected.
- program A may be an instant messaging program, and the program processing device currently displays the conversation interface of the instant messaging program, and the user can call up the program event option based on the conversation interface.
- the user can use gesture operation 700 to operate the conversation interface of program A, generate a shortcut icon 701 for the currently displayed conversation interface, and drag the shortcut icon 701 to the send control 702 area of the input control.
- the gesture operation 700 may be a double-click operation, and the specific gesture operation is not limited here, and it is sufficient to avoid conflicts with gestures set by the system.
- program event options may be displayed above the send control, and the program event options may be displayed in the session interface in a list form, that is, a program event option list 202 is displayed in the session interface.
- the program event option list 202 may include program event options of “start input”, “information input in progress”, and “information input completed”.
- the user can select the target program event option of "Information input completed" based on the program event option list 202.
- the target program event option at least two program icons are displayed in the interface of program A.
- multiple program icons can be displayed in area 801 of the session interface of the instant messaging program.
- the user can select the program icon of program B, such as clicking the program icon 802 of the video playback program.
- an association relationship can be established between the program event occurring in the interface of program A indicated by the target program event option and the target program processing of program B, and the association relationship is stored in the association relationship table between program events and program processing, wherein the target program processing can be a jump between the instant messaging program and the video playback program.
- the program processing device can receive the input and, in response to the input, determine that a program event of the program event option "information input completed" has occurred on the conversation interface. Afterwards, it can be determined whether there is a program event of the program event option "information input completed" in the association table. If so, it is determined that a first program event has occurred on the conversation interface, and accordingly the conversation interface of the instant messaging program can be switched to the playback interface of the video playback program for display.
- the setting method for calling out the program event option list 202 can also be the following methods, but is not limited to these: the user's own avatar can be long pressed, the user's avatar can be dragged to the send control, and the program event option list 202 can also be called out in the target interface; the user gesture can be long pressed on the input control 703, and the program event option list 202 can also be called out in the session interface.
- the program event options may also include displaying target information in an input box, displaying target information with keywords in a control for displaying a conversation message sent by a contact, that is, the contact sent target information including keywords, etc., which are not specifically limited here.
- program A may be a setting program
- the program processing device currently displays the Bluetooth setting interface of the setting program
- the Bluetooth setting interface may include a Bluetooth setting control 901.
- the user may call up the program event options and program icons based on the Bluetooth setting control, such as by long pressing the control.
- two program event options are displayed in area 902 of the Bluetooth setting interface, namely, Bluetooth connection and Bluetooth disconnection
- area 903 displays two Bluetooth-related program icons, namely, a communication audio program and a media audio program.
- the user may select the program event option of the Bluetooth connection and the program icon of the media audio program, and accordingly, an association relationship may be established between the program event of the Bluetooth connection and the program processing that automatically jumps to the interface of the media audio program for display, and the association relationship is stored in the association relationship table between the program event and the program processing.
- the program processing device can receive the input and, in response to the input, determine that a program event of the program event option "Bluetooth connection” has occurred in the Bluetooth setting interface. Afterwards, it can be determined whether there is a program event of the program event option "Bluetooth connection” in the association table. If so, it is determined that the first program event has occurred in the Bluetooth setting interface, and accordingly the Bluetooth setting interface of the setting program can be switched to the playback interface of the media audio program for display.
- program C There are two programs, namely program C and program D.
- Program D needs to perform corresponding processing based on the data loading status of the data in the interface of program C, for example, jumping from program C to program D to switch the display interface.
- program C is a video playback program.
- the user watches the video in the playback interface of program C.
- the user can input the playback interface.
- the program processing device can respond to the input to display at least two program icons and at least two program event options.
- the at least two program event options may include a target loading status.
- the display interface currently displays the playback interface of the video playback program, and the playback interface is currently playing video A.
- the user can call out the global "jump setting" entry icon 1001 by inputting the playback interface, and then the user clicks the entry icon 1001.
- the program processing device can respond to the user's click input and display the setting options.
- the setting options may include a program event option 1002 such as "bad network, can't load out", and may also include a program icon 1003.
- the program event indicated by the target program event option is the program event to be associated, and the target program icon corresponding to the novel reading program is determined as the program processed by the target program, and the association relationship between the program event indicated by the target program event option and the target program processing is established accordingly.
- the program event indicated by the "bad network, can't load out" program event option can be the data loading state of the target data in the first interface as the target loading state.
- the program processing device can determine that a program event of the program event option "bad network, cannot be loaded” has occurred on the playback interface, and can determine whether there is a program event of the program event option "bad network, cannot be loaded” in the association table. If so, it is determined that the first program event has occurred on the playback interface, and the playback interface of the video playback program can be switched to the reading interface of the novel reading program accordingly.
- multiple program icons and multiple program event options can be displayed to allow the user to select the program and program event that need to be associated with the program processing, thereby facilitating the establishment of an association relationship between the program event and the program processing.
- the target processing on the second program includes at least one of the following:
- Target interface is an interface determined according to the running state of the second program or an interface set by the user
- first target program control is a preset control or a control set by a user
- a target process is executed on the second program, the target process being a preset process or a process set by a user.
- the target interface of a second program when a first program event occurs on a first interface, can be automatically displayed.
- the playback interface of a video playback program running in the background can be displayed, or the user-set interface in the video playback program can be displayed, such as a video playback interface that displays the historical playback records in the video playback program.
- a reading interface of a novel reading program may be displayed, or a conversation interface with a specific contact set by the user in an instant messaging program may be displayed.
- the target interface may be determined according to the running status of the program selected from at least two program icons during the process of establishing the association relationship between the program event and the program processing.
- the method further includes:
- determining a second interface displaying the second program as a target program process, wherein the second interface is a main program interface of the second program; performing the target process on the second program includes: displaying the second interface of the second program;
- the third interface of the second program is determined as the target program processing, wherein the third interface is the interface displayed when the second program is running in the background; executing the target processing on the second program includes: displaying the third interface of the second program.
- the first program may be an instant messaging program
- the second program may be a video playback program.
- the current interface displays a conversation interface with contact 1 in the instant messaging program.
- the main interface of the video playback program can be determined as the target program processing, and an association relationship between the program event and the target program processing can be established. Accordingly, when a first program event occurs in the interface of the instant messaging program, such as when a send control in the interface receives a program control input, the main interface of the video playback program can be displayed.
- the playback interface of video A running in the background of the video playback program can be determined as the target program processing, and an association relationship between the program event and the target program processing can be established. Accordingly, when the first program event occurs in the interface of the instant messaging program, such as when the sending control in the interface receives the program control input, the playback interface of video A in the video playback program can be displayed.
- the first program may be a video playback program
- the second program may be a novel reading program.
- the current interface displays the playback interface of video A.
- the main interface of the displayed novel reading program can be determined as the target program processing, and an association relationship between program events and target program processing can be established. Accordingly, when the first program event occurs in the interface of the video playback program, such as when the data loading status in the interface is the target loading status, the main interface of the novel reading program can be displayed.
- the reading interface of novel B running in the background of the novel reading program can be determined as the target program processing, and an association relationship between the program event and the target program processing can be established. Accordingly, when the first program event occurs in the interface of the video playback program, such as when the data loading status in the interface is the target loading status, the reading interface of novel B in the novel reading program can be displayed.
- the interface of the second program to be displayed during target program processing can be determined according to the running state of the second program, thereby flexibly establishing an association relationship between program events and program processing, simplifying the process of setting the association relationship.
- the target interface may be an interface set by a user, and the user may set the target program processing to switch the fourth interface to display the setting.
- the target program event is established. Before the association between the program event indicated by the option and the target program processing, it also includes:
- the performing target processing on the second program includes:
- the fourth interface of the second program is displayed.
- the second input and the first input can be two different inputs, and the second input is used to determine the fourth interface to be displayed to determine the target program processing, and the second input can be a second operation.
- the second input includes but is not limited to: the user's touch input of the target program icon through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiment of the present application is not limited.
- the specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture;
- the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input.
- the second input can be: the user's click input on the target program icon.
- the user may make a second input to the target program icon, and the program processing device may receive the second input and display a fourth interface of the second program in response to the second input.
- the program processing device currently displays a conversation interface with contact 1, and the program processing device runs a video player program in the background.
- the video A is currently being played and is in a playback pause state.
- the user can call out program event options including "start input”, "information input in progress” and "information input completed” and a program icon including the video player program through gestures.
- the program processing device can display the playback interface 1101 of the video player program when receiving the second input, and the playback interface 1101 is the playback interface of video A. If the user continues to click on the playback interface 1101, the program processing device can determine the display of the playback interface 1101 as the target program processing, and store the association relationship between the program event of the program event option "information input completed" and the program processing of displaying the video A playback interface of the video player program in the association relationship table.
- the program processing device can receive the program control input, determine that the first program event has occurred in the conversation interface, and accordingly switch the conversation interface with contact 1 to the playback interface of video A for display.
- the Input to the first target program control of the second program when a first program event occurs on the first interface, the Input to the first target program control of the second program.
- the audio playback control when a first program event occurs in the conversation interface of the instant messaging program, an audio playback control of an audio playback program running in the background may be triggered, and the audio playback control may be a preset control.
- a wireless connection function setting control of a setting program may be triggered, and the wireless connection function setting control may be a preset control.
- the wireless connection function setting control of the setting program may be automatically triggered to turn on the wireless connection function to connect to a nearby wireless hotspot for video playback.
- the first target program control in the embodiment of the present application may also be a control set by the user.
- the user may set the target program processing to automatically trigger the input of the first target program control.
- the method further includes:
- the performing target processing on the second program includes:
- the fourth input and the fifth input in the embodiment of the present application can be gesture input, voice input or touch input, etc., which are not specifically limited here.
- the first input and the fourth input can be two different inputs.
- the fourth input is used to call up the fifth interface of the second program to determine the target program processing, and the first input is used to establish an association relationship between the program event indicated by the target program event option and the target program processing.
- the fourth input and the first input are two different inputs, and the fifth input and the first input are also two different inputs.
- the fourth input is used to call up the fifth interface of the second program, and the fifth input is used to determine the target program processing based on the control in the fifth interface.
- the fourth input can be a fourth operation, and the fifth input can be a fifth operation.
- the fourth input includes but is not limited to: the user's touch input of the target program icon through a touch device such as a finger or a stylus
- the fifth input includes but is not limited to: the user's touch input of the control in the fifth interface through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiment of the present application is not limited.
- the specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture;
- the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input.
- the fourth input may be: a double-click input of the target program icon by the user
- the fifth input may be: a short-press input of the control in the fifth interface by the user.
- the user can double-click the target program icon to enter the selected second program and call up the program including the first target program.
- the fifth interface of the first program control Accordingly, the program processing device can display the fifth interface in the form of a window in the interface of the first program.
- the user can make a fifth input to the first target program control in the fifth interface, such as clicking the first target program control.
- the program processing device can respond to the fifth input, determine the triggering input to the first target program control as target program processing, and store the control path of the first target program control, wherein the control path can indicate the position of the first target program control in the program interface. In this way, when the first program event occurs in the first interface, the input to the first target program control can be automatically triggered based on the control path of the first target program control to realize the processing of the second program.
- the program processing device currently displays a conversation interface with contact 1 in an instant messaging program, and the program processing device runs an audio playback program in the background.
- the current audio playback program is playing audio A and is in a playback pause state.
- the user can select the program event of the program event option of "information input completed" through corresponding settings, and select the target program processing program as the audio playback program.
- the user can make a fourth input to the program icon of the audio playback program, and the program processing device can respond to the fourth input to display the playback interface of audio A in the audio playback program, and the user can click the audio playback control in the playback interface.
- the program processing device can respond to the click input to establish an association relationship between the program event of the program event option "Information input completed" in the conversation interface and the program processing of the input of the audio playback control in the playback interface of audio A.
- the program processing device can record the trigger path of the audio playback control during the user setting process, for example, the trigger path of the audio playback control can be audio playback program->audio A playback interface->audio playback control, and the program processing device can determine and store the control path of the first target program control based on the trigger path, for example, the control path can be audio playback program->audio A playback interface->the position of the audio playback control in the playback interface of audio A.
- the program processing device can automatically trigger the input of the audio playback control in the playback interface of audio A of the audio playback program based on the control path, such as automatically triggering a click input on the audio playback control to put audio A in a playing state. In this way, the input of controls in other programs can be triggered without manual switching between program interfaces.
- the program processing device currently displays the playback interface of video A in the video playback program, which is in a playback pause state, and the setting for wireless data in the current setting program is "wireless LAN", and the current network data of the program processing device is cellular data.
- the user can select the program event of the program event option of "play start state” through corresponding settings, and select the program processed by the target program as the setting program.
- the user can make a fourth input to the program icon of the setting program, and the program processing device can respond to the fourth input to display the setting interface for wireless data in the setting program, and the user can click the "wireless LAN and cellular data" control in the setting interface.
- the program processing device can respond to the click input to establish an association relationship between the program event of the program event option of "play start state" in the video playback interface and the program processing of the input of the control of "wireless LAN and cellular data" in the setting interface of the triggering setting program.
- the program processing device can record the trigger path of the "wireless LAN and cellular data" control during the user setting process.
- the trigger path of the "wireless LAN and cellular data" control can be the setting program -> the wireless data setting interface of the video playback program -> the "wireless LAN and cellular data” control.
- the program processing device can determine and store the first target based on the trigger path.
- the control path of the program control for example, the control path can be the setting program -> the setting interface of the wireless data of the video playback program -> the location of the "wireless LAN and cellular data" control in the setting interface.
- the program processing device can automatically trigger the input of the "wireless LAN and cellular data" control in the setting interface based on the control path, such as automatically triggering the click input of the "wireless LAN and cellular data” control, so that the wireless data of the video playback program can be set to wireless LAN and cellular data, so that the user does not need to manually switch between program interfaces, and the input of controls in other programs can be triggered.
- the fifth interface in the program is displayed and the user's input to the first target program control in the fifth interface is received.
- the user can set the controls he needs to use to achieve the setting of target program processing.
- the program processing device can automatically trigger the input of the first target program control in the fifth interface, thereby improving the flexibility of program processing and saving the user's operation time.
- a preset process or a process set by a user may be executed on a second program, wherein the preset process may be a process preset by an electronic device system, and the preset process may be a jump from program A to program B, i.e., the interface of program A is switched to the interface of program B, for example, when a first program event occurs on a conversation interface of an instant messaging program, the conversation interface is switched to the playback interface of a video playback program.
- the preset process may also be to start a second program, for example, when a first program event occurs on the playback interface of a video playback program, a traffic monitoring program may be started to automatically monitor the traffic generated by the playback interface.
- the processing set by the user can be a user-defined processing.
- the processing set by the user can be a jump from program A to program C.
- the session interface is switched to the playback interface of the novel reading program.
- the processing set by the user can also be a trigger for inputting controls in the interface of program D running in the background.
- the inputting of audio playback controls in the interface of the audio playback program running in the background is triggered.
- a user may set a target program process to perform the process set by the user.
- the process further includes:
- the performing target processing on the second program includes:
- a program process corresponding to the process content is executed on the second program.
- the third input and the first input may be two different inputs.
- the third input is used to determine the processing content required for program processing to determine the target program processing.
- the third input may be a third operation.
- the third input includes but is not limited to: the user's touch input of the target program icon through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs.
- the specific input may be determined according to actual usage requirements and is not limited in the embodiments of the present application.
- the specific gestures in the embodiments of the present application may be
- the click input in the embodiment of the present application may be a single-click input, a double-click input, or any number of click inputs, and may also be a long-press input or a short-press input.
- the third input mentioned above may be: a long-press input of the target program icon by the user.
- the user can make a third input to the target program icon, and the program processing device can determine the processing content of the program processing in response to the third input, and determine the program processing corresponding to the determined processing content as the target program processing, so as to establish an association relationship between the program event indicated by the program event option and the target program processing.
- the program processing device when the program processing device displays the playback interface of video A, the user can use gestures on the playback interface to call out program icons, such as program icons of a traffic monitoring program and a virus scanning program.
- the user can make a third input to the program icon of the traffic monitoring program, and the program processing device can receive the third input, and in response to the third input, display options for processing content, such as starting the traffic monitoring program and shutting down the traffic monitoring program.
- the user can choose the option to start the traffic monitoring program, and the program processing device can determine the background startup of the traffic monitoring program as the processing content of the program processing, and determine the processing of starting the traffic monitoring program in the background as the target program processing, and accordingly establish an association relationship between the program event of displaying the playback interface of video A and the processing of starting the traffic monitoring program in the background. Afterwards, when the playback interface of video A of the video playback program is displayed, the traffic monitoring program can be automatically started in the background.
- the program processing device when the program processing device displays the conversation interface of the instant messaging program, the user can select the program event option of "information input completed" through corresponding settings, and the program processed by the program is a novel reading program.
- the user can make a third input to the program icon of the novel reading program, and the program processing device can receive the third input, and in response to the third input, display the options for processing content, for example, displaying the novel reading interface downloaded offline and displaying the novel reading interface online.
- the user can select the option to display the novel reading interface downloaded offline, and the program processing device can determine the novel reading interface downloaded offline as the processing content of the program processing, and correspondingly establish the program event of the program event option of "information input completed” and the program processing of displaying the novel reading interface downloaded offline.
- the novel reading interface downloaded offline can be automatically displayed.
- the program processing device can process the second program when detecting that the first program event occurs on the first interface.
- the method when the user sets the association relationship between a program event and a program process, there may be at least two programs selected for association, that is, a "one-to-many" event subscription distribution mode is formed. Accordingly, there may be an association relationship between a first program event and multiple program processes, each program process corresponds to a program, and the user may select a second program that needs to perform program processing.
- the method before executing the target process on the second program, the method further includes:
- program identifiers of at least two programs wherein the program identifiers include program icons or interface identifiers, and the interface identifiers are used to indicate any program interface of a program;
- the program corresponding to the target program identifier is determined as a second program.
- the seventh input may be gesture input, voice input, touch input, etc., which is not specifically limited here.
- a notification message of the occurrence of the first program event can be distributed to the associated programs, and program identifiers of at least two programs are displayed at the same time.
- the program interface is displayed in the form of a window, and if the program is not opened in the background, the program icon is displayed in the form of a list.
- the session interface displays a list of program event options 202
- the user can select program event options and program icons by inputting program event options and program icons.
- the user can select multiple program icons to establish an association relationship between the program event indicated by the program event option and multiple programs.
- the selected multiple program icons are respectively the programs of program icon 1201, program icon 1202 and program icon 802. In this way, after the first program event indicated by the program event option occurs, the interface windows of multiple programs can be opened.
- interface windows 1301 of program A and 1302 of program B respectively, for the user to select the second program to be processed.
- the user selects program A as the second program to be processed by inputting 1303 into the interface window 1301 of program A.
- the notification message of the event can be distributed to multiple programs.
- the program processing device can automatically switch the first interface to the interface of program A for display, or process the internal logical behavior of program A, such as automatically triggering the input of controls in the interface of program A.
- the program processing method provided in the embodiment of the present application can be executed by a program processing device or a control module in the program processing device for executing the program processing method.
- the program processing device provided in the embodiment of the present application is described by taking the program processing method executed by the program processing device as an example.
- FIG. 14 is a structural diagram of a program processing device provided in an embodiment of the present application.
- the program processing device 1400 includes:
- Display module 1401 used to display a first interface of a first program
- a processing module 1402 configured to execute a target process on a second program when a first program event occurs on the first interface
- the target processing is determined according to the first program event.
- the first program event includes at least one of the following:
- the program control in the first interface receives a control input
- the control state of the program control in the first interface is updated to the target control state
- the data loading state of the target data in the first interface is a target loading state, wherein in the target loading state, the loading speed of the target data is less than a speed threshold.
- processing module 1402 is further configured to perform at least one of the following:
- Target interface is an interface determined according to the running state of the second program or an interface set by the user
- first target program control is a preset control or a control set by a user
- a target process is executed on the second program, the target process being a preset process or a process set by a user.
- the processing module 1402 is further configured to determine a target process associated with the first program event according to an association relationship between a program event and a program process.
- the display module 1401 is further used to display at least two program icons and at least two program event options;
- the device further includes: a user input module 1403, configured to receive a first input from a user on a target program icon among the at least two program icons and a target program event option among the at least two program event options;
- the processing module 1402 is further configured to establish, in response to the first input, an association relationship between the program event indicated by the target program event option and the target program processing;
- the target program icon is a program icon of the second program; and the target program processing is determined according to the running state of the second program or is set by the user.
- the processing module 1402 is further used to: determine the second interface displaying the second program as the target program for processing, wherein the second interface is the main program interface of the second program; the processing module 1402 is specifically used to: display the second interface of the second program;
- the processing module 1402 is also used to: determine the third interface displaying the second program as the target program for processing, wherein the third interface is the interface displayed when the second program is running in the background; the processing module 1402 is specifically used to: display the third interface of the second program.
- the user input module 1403 is further configured to receive a second input from a user on the target program icon;
- the processing module 1402 is further configured to determine, in response to the second input, a fourth interface of the second program; and display the fourth interface as a target program for processing;
- the processing module 1402 is specifically configured to display a fourth interface of the second program.
- the user input module 1403 is further configured to receive a third input from a user on the target program icon;
- the processing module 1402 is further used to determine the processing content of the program processing in response to the third input;
- the program processing corresponding to the processing content is determined as the target program processing;
- the processing module 1402 is specifically used to: execute program processing corresponding to the processing content on the second program.
- the user input module 1403 is further configured to receive a fourth input from a user on the target program icon;
- the display module 1401 is further configured to display a fifth interface of the second program in response to the fourth input, wherein the fifth interface includes a first target program control;
- the user input module 1403 is further used to receive a fifth input from the user to the first target program control
- the processing module 1402 is further configured to, in response to the fifth input, determine the input that triggers the first target program control as target program processing, and store the control path of the first target program control;
- the processing module 1402 is further configured to trigger input to the first target program control based on the control path of the first target program control.
- the user input module 1403 is further configured to receive a sixth input from the user to a second target program control in the first interface of the first program;
- the processing module 1402 is further configured to, in response to the sixth input, determine the target information including the first target keyword displayed in the second target program control as a second program event, wherein the first target keyword is the keyword input by the sixth input;
- the processing module 1402 is further configured to add a program event option corresponding to the second program event to the at least two program event options.
- the display module 1401 is further used to display program identifiers of at least two programs, wherein the program identifiers include program icons or interface identifiers, and the interface identifiers are used to indicate any program interface of the program;
- the user input module 1403 is used to receive a seventh input of a target program identifier among the program identifiers of the at least two programs from a user;
- the processing module 1402 is further configured to, in response to the seventh input, determine the program corresponding to the target program identifier as a second program.
- the first program includes an instant messaging program;
- the first interface includes a conversation interface with the target contact;
- the display module 1401 is further configured to display first information in a first control in the conversation interface
- the processing module 1402 is further configured to perform target processing on the second program when the first information is displayed in the first control in the conversation interface, wherein the first control is a control for inputting information;
- the display module 1401 is further configured to display second information in a second control in the conversation interface
- the processing module 1402 is further configured to execute target processing on a second program when second information is displayed in a second control in the conversation interface, wherein the second control is a control for displaying a conversation message sent by a target contact.
- a user input module 1403 is used for a third control in the first interface to receive a control input from a user;
- the processing module 1402 is further configured to receive a control input from a user in the third control of the first interface. In the case of input, the target processing is performed on the second program;
- the third control is a control for processing messages or files.
- processing module 1402 is further configured to:
- the target control state includes at least one of the following:
- the progress indicator on the control indicates the status of the target progress
- the control is fully or partially hidden
- the first program includes a multimedia player program;
- the first interface includes a target multimedia player interface, and the target multimedia includes text, audio or video;
- the display module 1401 is further configured to display the second target keyword in a fifth control in the playback interface
- the processing module 1402 is further configured to perform target processing on the second program when a second target keyword is displayed in a fifth control in the playback interface; wherein the fifth control is a control for displaying text information of the target multimedia.
- the first interface of the first program is displayed; when the first program event occurs on the first interface, the target processing is performed on the second program.
- the target processing is performed on the second program, and there is no need to manually switch between programs to process the second program, thereby simplifying the operation of program processing and improving the efficiency of program use.
- the program processing device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in an electronic device.
- the device can be a mobile electronic device or a non-mobile electronic device.
- the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc.
- the non-mobile electronic device can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
- Network Attached Storage Network Attached Storage
- the program processing device in the embodiment of the present application may be a device having an operating system.
- the operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
- the program processing device provided in the embodiment of the present application can implement each process implemented by the method embodiment of Figure 1. To avoid repetition, it will not be repeated here.
- the embodiment of the present application further provides an electronic device 1500, including a processor 1501, a memory 1502, and a program or instruction stored in the memory 1502 and executable on the processor 1501.
- an electronic device 1500 including a processor 1501, a memory 1502, and a program or instruction stored in the memory 1502 and executable on the processor 1501.
- the program or instruction is executed by the processor 1501
- each process of the above-mentioned program processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
- the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
- FIG16 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
- the electronic device 1600 includes but is not limited to: a radio frequency unit 1601, a network module 1602, an audio output unit 1603, an input unit 1604, a sensor 1605, a display unit 1606, a user input unit 1607, an interface unit 1608, a memory 1609, and a processor 1610 and other components.
- the electronic device 1600 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1610 through a power management system, so that the power management system can manage charging, discharging, and power consumption management.
- a power source such as a battery
- the electronic device structure shown in FIG16 does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange components differently, which will not be described in detail here.
- Processor 1610 configured to execute target processing on a second program when a first program event occurs on the first interface
- the target processing is determined according to the first program event.
- the first interface of the first program is displayed; when the first program event occurs on the first interface, the target processing is performed on the second program.
- the target processing is performed on the second program, and there is no need to manually switch between programs to process the second program, thereby simplifying the operation of program processing and improving the efficiency of program use.
- the first program event includes at least one of the following:
- the program control in the first interface receives a control input
- the control state of the program control in the first interface is updated to the target control state
- the data loading state of the target data in the first interface is a target loading state, wherein in the target loading state, the loading speed of the target data is less than a speed threshold.
- processor 1610 is further configured to perform at least one of the following:
- Target interface is an interface determined according to the running state of the second program or an interface set by the user
- first target program control is a preset control or a control set by a user
- a target process is executed on the second program, the target process being a preset process or a process set by a user.
- the processor 1610 is further configured to determine a target process associated with the first program event according to an association relationship between a program event and a program process.
- the display unit 1606 is further configured to display at least two program icons and at least two program event options;
- the user input unit 1607 is used to receive a first input from a user on a target program icon among the at least two program icons and a target program event option among the at least two program event options;
- the processor 1610 is further configured to establish, in response to the first input, an association relationship between the program event indicated by the target program event option and the target program processing;
- the target program icon is a program icon of the second program; and the target program processing is determined according to the running state of the second program or is set by the user.
- the processor 1610 is further configured to: determine the second interface displaying the second program as the target program for processing, wherein the second interface is the main program interface of the second program; the processor 1610 is specifically configured to: display the second interface of the second program;
- the processor 1610 When the second program is running in the background, the processor 1610 is also used to: determine the third interface displaying the second program as the target program for processing, wherein the third interface is the interface displayed when the second program is running in the background; the processor 1610 is specifically used to: display the third interface of the second program.
- the user input unit 1607 is further configured to receive a second input from a user on the target program icon;
- the processor 1610 is further configured to determine, in response to the second input, a fourth interface of the second program; and determine the fourth interface to be displayed as a target program for processing;
- the processor 1610 is specifically configured to display a fourth interface of the second program.
- the user input unit 1607 is further configured to receive a third input from a user on the target program icon;
- the processor 1610 is further configured to determine the processing content of the program processing in response to the third input; and determine the program processing corresponding to the processing content as the target program processing;
- the processor 1610 is specifically configured to execute program processing corresponding to the processing content on the second program.
- the user input unit 1607 is further configured to receive a fourth input from a user on the target program icon;
- the display unit 1606 is further configured to display a fifth interface of the second program in response to the fourth input, wherein the fifth interface includes a first target program control;
- the user input unit 1607 is further used to receive a fifth input from the user to the first target program control
- the processor 1610 is further configured to, in response to the fifth input, determine the input triggering the first target program control as a target program process, and store a control path of the first target program control;
- the processor 1610 is further configured to trigger an input to the first target program control based on the control path of the first target program control.
- the user input unit 1607 is further configured to receive a sixth input from the user to a second target program control in the first interface of the first program;
- the processor 1610 is further configured to, in response to the sixth input, determine the target information including the first target keyword displayed in the second target program control as a second program event, wherein the first target keyword is the keyword input by the sixth input;
- the processor 1610 is further configured to add a program event option corresponding to the second program event to the at least two Program event options.
- the display unit 1606 is further configured to display program identifiers of at least two programs, wherein the program identifiers include program icons or interface identifiers, and the interface identifiers are used to indicate any program interface of the program;
- the user input unit 1607 is further used to receive a seventh input of a target program identifier among the program identifiers of the at least two programs from a user;
- the processor 1610 is further configured to, in response to the seventh input, determine the program corresponding to the target program identifier as a second program.
- the first program includes an instant messaging program;
- the first interface includes a conversation interface with the target contact;
- the display unit 1606 is further configured to display the first information in the first control in the conversation interface
- the processor 1610 is further configured to, when first information is displayed in a first control in the conversation interface, execute target processing on the second program, wherein the first control is a control for inputting information;
- the display unit 1606 is further configured to display second information in a second control in the conversation interface
- the processor 1610 is further configured to execute target processing on the second program when second information is displayed in a second control in the conversation interface, wherein the second control is a control for displaying a conversation message sent by a target contact.
- the user input unit 1607 is further used for the third control in the first interface to receive a control control input from the user;
- the processor 1610 is further configured to execute target processing on the second program when the third control in the first interface receives a control input from the user;
- the third control is a control for processing messages or files.
- processor 1610 is further configured to:
- the target control state includes at least one of the following:
- the progress indicator on the control indicates the status of the target progress
- the control is fully or partially hidden
- the first program includes a multimedia player program;
- the first interface includes a target multimedia player interface, and the target multimedia includes text, audio or video;
- the display unit 1606 is further configured to display the second target keyword in a fifth control in the playback interface
- the processor 1610 is further configured to execute target processing on the second program when a second target keyword is displayed in a fifth control in the playback interface; wherein the fifth control is a control for displaying text information of the target multimedia.
- the input unit 1604 may include a graphics processing unit (GPU) 16041 and a microphone 16042, and the graphics processor 16041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode.
- the display unit 1606 may include a display panel 16061, and the display panel 16061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc.
- the user input unit 1607 includes a touch panel 16071 and other input devices 16072.
- the touch panel 16071 is also called a touch screen.
- the touch panel 16071 may include two parts: a touch detection device and a touch controller.
- Other input devices 16072 may include but are not limited to a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
- the memory 1609 can be used to store software programs and various data, including but not limited to application programs and operating systems.
- the processor 1610 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1610.
- An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored.
- a program or instruction is stored.
- the various processes of the above-mentioned program processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
- the processor is a processor in the electronic device described in the above embodiment.
- the readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
- An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned program processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
- the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
- the disclosed part may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), and includes a number of instructions for enabling an electronic device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present application.
- a storage medium such as ROM/RAM, magnetic disk, optical disk
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Library & Information Science (AREA)
- Stored Programmes (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本申请公开了一种程序处理方法、装置及电子设备,属于电子技术领域,该方法包括:显示第一程序的第一界面;在所述第一界面发生第一程序事件的情况下,对第二程序执行目标处理;其中,所述目标处理是根据所述第一程序事件确定的。
Description
相关申请的交叉引用
本申请主张在2023年03月17日在中国提交的中国专利申请No.202310259422.X的优先权,其全部内容通过引用包含于此。
本申请属于电子技术领域,具体涉及一种程序处理方法、装置及电子设备。
随着电子技术的高速发展,电子设备得到了广泛的应用。电子设备通常会安装各种各样的程序,且用户在使用电子设备的过程中,经常会使用各种不同的程序。
目前,在用户使用一个程序的过程中,若用户需要使用另外一个程序,此时,需要用户进行程序切换操作,以触发电子设备将另外一个程序的程序界面切换至前台显示运行。如用户在使用视频播放程序观看视频时,电子设备的网络状态比较差,使得该视频无法加载,此时用户只能放弃当前视频的观看,使用其他程序。又如用户在即时通讯程序上结束聊天时,此时用户需要进行程序切换操作,以使电子设备切换至视频播放程序供用户观看视频,或者切换到音频播放程序,以供用户启动音频播放控件。
目前,在程序使用过程中,若用户需要使用其他程序,通常需要用户手动在多个程序之间来回切换,操作繁琐且费时。
发明内容
本申请实施例的目的是提供一种程序处理方法、装置及电子设备,在第一程序的第一界面发生第一程序事件的情况下,就对第二程序执行目标处理,无需手动进行程序之间的切换,以处理第二程序,从而可以简化程序处理的操作,提高程序的使用效率。
第一方面,本申请实施例提供了一种程序处理方法,该方法包括:
显示第一程序的第一界面;
在所述第一界面发生第一程序事件的情况下,对第二程序执行目标处理;
其中,所述目标处理是根据所述第一程序事件确定的。
第二方面,本申请实施例提供了一种程序处理装置,该装置包括:
显示模块,用于显示第一程序的第一界面;
处理模块,用于在所述第一界面发生第一程序事件的情况下,对第二程序执行目标处理;
其中,所述目标处理是根据所述第一程序事件确定的。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的程序处理方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的程序处理方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的程序处理方法的步骤。
在本申请实施例中,通过显示第一程序的第一界面;在第一界面发生第一程序事件的情况下,对第二程序执行目标处理。如此,在使用第一程序的过程中,当第一程序的第一界面发生第一程序事件时,就对第二程序执行目标处理,无需手动进行程序之间的切换,以处理第二程序,从而可以简化程序处理的操作,提高程序的使用效率。
图1是本申请的一些实施例提供的程序处理方法的流程图;
图2(a)是本申请的一些实施例提供的会话界面发生了第一程序事件的界面示意图;
图2(b)是本申请的一些实施例提供的会话界面发生了第一程序事件时所切换显示的界面示意图;
图2(c)是本申请的一些实施例提供的用户自定义程序事件的过程界面示意图;
图3是本申请的一些实施例提供的小说阅读界面发生了第一程序事件的界面示意图;
图4(a)是本申请的一些实施例提供的设置界面发生了第一程序事件的界面示意图;
图4(b)是本申请的一些实施例提供的设置界面发生了第一程序事件时所切换显示的界面示意图;
图5是本申请的一些实施例提供的播放界面的数据加载处于目标加载状态的显示界面示意图;
图6是本申请的一些实施例提供的视频观看过程的应用场景界面示意图;
图7是本申请的一些实施例提供的程序事件选项的触发显示界面示意图;
图8是本申请的一些实施例提供的程序事件与程序处理的关联界面示意图;
图9是本申请的一些实施例提供的程序事件与程序处理的关联界面示意图;
图10是本申请的一些实施例提供的程序事件选项的触发显示界面示意图;
图11是本申请的一些实施例提供的程序事件与程序处理的关联界面示意图;
图12是本申请的一些实施例提供的一对多的事件订阅分发模式设置的过程界面示意图;
图13是本申请的一些实施例提供的一对多的事件订阅分发模式下程序处理的过程界
面示意图;
图14是本申请的一些实施例提供的程序处理装置的结构图;
图15是本申请的一些实施例提供的电子设备的结构图;
图16为实现本申请的一些实施例提供的电子设备的硬件结构示意图。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的程序处理方法进行详细地说明,其中,程序处理方法的应用场景可以为多程序的使用场景,即电子设备可以安装有多个程序,且用户需要在多个程序之间使用。
其中,本申请实施例中的电子设备具有操作系统。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
图1是本申请实施例提供的程序处理方法的流程图,如图1所示,包括以下步骤:
步骤101,显示第一程序的第一界面。
该步骤中,显示界面可以为电子设备的界面,该显示界面通常可以显示电子设备的操作系统的主界面,该主界面可以显示该电子设备所安装的各个程序的程序图标。例如,主界面可以显示即时通讯程序、多媒体播放程序、设置程序的程序图标。
在程序运行的情况下,如第一程序运行的情况下,显示界面上可以显示第一程序的第一界面。其中,第一程序可以为电子设备所安装的程序中任一个程序,如即时通讯程序、多媒体播放程序、设置程序等,第一界面可以为第一程序的任意程序界面,可以为第一程序的主界面,也可以为第一程序的具体运行界面,如即时通讯程序中与目标联系人的会话界面,多媒体播放程序中目标多媒体的播放界面。
在本申请的一些实施方式中,用户可以点击电子设备的操作系统的主界面中第一程序的程序图标,相应地,电子设备的显示界面上可以显示第一程序的第一界面。在本申请的另一些实施方式中,若第一程序处于后台运行状态,用户可以通过对第一程序的输入,进行不同程序之间的切换,如向上滑动调出后台运行的程序界面,相应地,电子设备的显示
界面上可以显示第一程序的第一界面。
步骤102,在所述第一界面发生第一程序事件的情况下,对第二程序执行目标处理;这样在监测到第一程序的第一界面发生第一程序事件的情况下,就自动对第二程序执行目标处理,不需要用户的手动触发。
其中,所述目标处理是根据所述第一程序事件确定的。
该步骤中,程序事件指的是程序运行时该程序的界面中发生的事件,例如,程序运行时该程序界面的程序控件中显示了信息,该程序的界面中程序控件发生了触发、程序控件的控件状态发生了变化、界面的数据加载状态发生了变化等,这些在程序运行时该程序的界面中发生的任何类型的事件均可以称之为程序事件。
本申请实施例中的第一程序事件是在第一程序运行时第一界面中发生的事件,其可以是由用户预先设置或者系统预设的,可选地,由用户预先设置或者系统预设的第一程序事件包括以下至少一项:
所述第一界面中的程序控件中显示目标信息;
所述第一界面中的程序控件接收到控件控制输入;
所述第一界面中的程序控件的控件状态更新为目标控件状态;
所述第一界面中目标数据的数据加载状态为目标加载状态,其中,在所述目标加载状态下,所述目标数据的加载速度小于速度阈值。
需要说明的是,在对第二程序执行目标处理之前,且在显示第一界面的过程中,可以监测第一界面所发生的程序事件,以确定第一界面是否发生了第一程序事件。在本申请的一些实施方式中,本申请实施例中的程序处理装置可以存储第一程序事件的相关数据,例如,可以存储界面中与第一程序事件相关的程序控件,程序控件中与第一程序事件相关的显示信息,与第一程序事件相关的程序控件的控件状态,或者界面中的数据与第一程序事件相关的数据加载状态。相应可以通过监测第一界面所发生的程序事件,基于该相关数据确定第一界面所发生的程序事件是否为第一程序事件,若第一界面所发生的程序事件为第一程序事件,则监测到第一界面发生了第一程序事件。程序处理装置可以实时或每隔预设周期对界面所发生的程序事件进行监测,例如,每隔1分钟对界面所发生的程序事件进行监测。
在本申请的一些实施方式中,第一程序事件可以为第一界面中的程序控件中显示目标信息。例如,第一界面为即时通讯程序中与联系人1的会话界面,该会话界面可以包括消息的输入框,第一程序事件可以为在输入框中显示目标信息,如显示“信息输入中”、数字字符“888888”等。如图2(a)所示,当用户在输入框201中输入数字“888888”的情况下,程序处理装置则可以监测到该会话界面发生了第一程序事件,之后会将会话界面自动切换至如图2(b)显示的视频播放程序的播放界面。例如,第一界面为即时通讯程序中与联系人2的会话界面,该会话界面可以包括用于显示会话消息的控件,如包括联系人2发送过来的会话消息的控件,第一程序事件可以为在该控件中显示目标信息。
其中,目标信息可以为系统预设信息或用户设置的信息,在本申请的一些实施方式中,用户可以进行程序事件的设置,目标信息可以是在程序事件的设置过程中由用户自定义得到的,可选地,所述方法还包括:
接收用户对第一程序的第一界面中的第二目标程序控件的第六输入;
响应于所述第六输入,将所述第二目标程序控件中显示包括第一目标关键词的目标信息确定为第二程序事件,其中,所述第一目标关键词为所述第六输入所输入的关键词;
将所述第二程序事件对应的程序事件选项添加至所述至少两个程序事件选项中。
如果系统提供的程序事件或者对程序事件预设的信息不符合用户需求,程序处理装置也可以提供给用户进行程序事件的设置,用户可以通过对第一程序的第一界面中第二目标程序控件的第六输入,进行程序事件的设置。相应地,程序处理装置可以响应于第六输入,将第二目标程序控件中显示的包括第一目标关键词的目标信息确定为第二程序事件,并将第二程序事件的程序事件选项添加到至少两个程序事件选项中。
其中,上述第六输入用于用户自定义程序控件中显示的目标信息,以进行程序事件的设置,第六输入可以为第六操作。上述的第六输入可以为:用户在输入控件中的文本输入。第二目标程序控件可以为输入信息的控件,也可以为显示信息的控件,亦或是其他程序控件,这里也不进行具体限定。
在本申请的一些应用场景中,如图2(c)所示,程序处理装置当前显示即时通讯程序中与联系人1的会话界面,用户可以通过操作调出程序事件选项列表202,程序事件选项列表202内可以基于“自定义状态”的控件203,来设置第二程序事件。其中,第六输入可以包括触控该“自定义状态”控件,并在触控该控件后所显示的输入框204内,输入关键信息。相应地,程序处理装置可以响应于第六输入,获取第六输入指示的第一目标关键词,并将第二目标程序控件中显示有目标信息的程序事件确定为第二程序事件,目标信息可以包括第一目标关键词。用户还可以对第二程序事件的程序事件选项进行自定义命名,将其添加至程序事件选项列表202中。之后,若将程序事件选项列表202中第二程序事件设置为需要监测的程序事件,程序处理装置可以将第二程序事件相关的目标信息进行存储,相应地,在显示即时通讯程序的会话界面的情况下,程序处理装置可以实时或每隔预设周期对该会话界面所发生的程序事件进行监测,例如,每隔1分钟对会话界面所发生的程序事件进行监测,并基于所存储的第二程序事件相关的目标信息,确定该会话界面所发生的程序事件是否为第一程序事件,在该会话界面中程序控件显示的信息包括目标信息的情况下,则确定监测到该会话界面发生了第一程序事件,可以自动对第二程序执行目标处理。
在本申请的一些应用场景中,在程序处理装置显示小说阅读程序的阅读界面的情况下,用户可以通过设置阅读界面中文本控件显示的目标信息,来进行程序事件的设置,该文本控件用于显示小说文本信息,该目标信息可以为第二目标关键词,如用户可以设置第二目标关键词为“完结”,这样,若将文本控件中显示第二目标关键词的程序事件设置为第一程序事件,程序处理装置可以在监测到小说阅读程序的阅读界面中程序控件显示了第二目
标关键词的情况下,可以自动对第二程序执行目标处理,不需要用户的手动触发。
如此,用户通过在第一程序的界面中的第二目标程序控件中,输入目标关键词,电子设备可以将用户输入的包括目标关键词的目标信息确定为程序事件,从而可以实现用户对程序事件的自定义,提高了程序事件的设置灵活性。
在本申请的一些实施方式中,所述第一程序包括即时通讯程序;所述第一界面包括与目标联系人的会话界面;可选地,所述在所述第一界面发生第一程序事件的情况下,对第二程序执行目标处理,包括:
在所述会话界面中的第一控件中显示第一信息的情况下,对第二程序执行目标处理,其中,所述第一控件为用于输入信息的控件;
或者,在所述会话界面中的第二控件中显示第二信息的情况下,对第二程序执行目标处理,其中,所述第二控件为用于显示目标联系人发送的会话消息的控件。
本实施方式中,第一信息和第二信息可以为系统默认的信息或者用户设置的信息。例如,第一信息和第二信息可以为系统默认的或者用户设置的包括第一目标关键词的目标信息。
本申请实施例中的目标处理可以为显示第二程序的界面,即进行程序之间的跳转处理,具体可以进行两个程序之间界面的切换,目标处理也可以为后台触发对第二程序的界面中控件的输入,亦或是其他处理,这里不进行具体限定。其中,第二程序可以为任一个程序,第一程序和第二程序是两个不同的程序,第二程序可以是用户设置的,或者系统根据用户的使用习惯设置的。例如,第一程序可以为即时通讯程序,第二程序可以为多媒体播放程序,第一程序也可以为视频播放程序,第二程序也可以为音频播放程序或小说阅读程序。
以目标处理为进行程序之间的跳转处理,第二程序为视频播放程序为例进行该应用场景的举例说明,程序处理装置的显示界面上当前显示即时通讯程序的与目标联系人的会话界面,且用户正在当前会话界面的输入框中输入信息,且输入了第一信息,如输入的第一信息为一串数字字符“888888”,相应地,程序处理装置可以监测到当前会话界面的输入框中显示第一信息,此时,可以将显示界面当前显示的会话界面切换为视频播放程序中正在后台运行的视频A的播放界面。
或者,程序处理装置的显示界面上当前显示即时通讯程序的与目标联系人的会话界面,当前用户正在与目标联系人聊天,且程序处理装置当前接收到了目标联系人发送了的一条消息,将其显示在第二控件中,该消息包括第二信息如一串数字字符“888888”,相应地,程序处理装置可以监测到当前会话界面的第二控件中显示第二信息,此时,可以将显示界面当前显示的会话界面切换为视频播放程序中正在后台运行的视频A的播放界面。
如此,在即时通讯程序的会话界面显示的输入控件中输入目标信息,或者在显示控件中显示目标信息的情况下,可以自动对第二程序执行目标处理,无需手动切换到第二程序的界面再进行程序处理,从而可以简化程序处理的操作,提高程序的使用效率。
例如,第一界面为小说阅读程序的阅读界面,阅读界面可以包括用于显示小说内容的
文本控件,第一程序事件可以为阅读界面中的文本控件中显示目标信息。该目标信息可以包括系统默认或用户设置的关键词,如该目标信息包括用户所设置的关键词为“完结”,如图3所示,在监测到小说文本信息的显示控件301显示“完结”两字的情况下,确定该阅读界面发生了第一程序事件。
在本申请的一些实施方式中,所述第一程序包括多媒体播放程序;所述第一界面包括目标多媒体的播放界面,所述目标多媒体包括文本、音频或视频;可选地,所述在所述第一界面发生第一程序事件的情况下,对第二程序执行目标处理,包括:
在所述播放界面中的第五控件中显示第二目标关键词的情况下,对第二程序执行目标处理,其中,所述第五控件为用于显示所述目标多媒体的文本信息的控件。
本实施方式中,在所述目标多媒体为电子书的情况下,所述第五控件为显示所述电子书的书籍内容的控件;在所述目标多媒体为新闻资讯的情况下,所述第五控件为显示资讯内容的控件;在所述目标多媒体为音频的情况下,所述第五控件为显示所述音频的文本信息的控件,在所述目标多媒体为视频的情况下,所述第五控件为显示所述视频的字幕或弹幕的控件。
第二目标关键词可以为系统默认的关键词或者用户设置的关键词,例如,第二目标关键词可以为“完结”,或“啊啊啊…”等关键词。
目标处理可以为显示第二程序的界面,即进行程序之间的跳转处理,目标处理也可以为后台触发对第二程序的界面中控件的输入,亦或是其他处理,这里不进行具体限定。第二程序可以为即时通讯程序、设置程序等。
目标多媒体可以为视频、音频或小说文本等,目标多媒体的文本信息可以为视频的字幕信息、音频的歌词信息、小说文本的文本信息、新闻资讯的文本信息等。
以目标处理为进行程序之间的跳转处理为例进行该应用场景的举例说明,在本申请的一些应用场景中,第二程序为即时通讯程序,第二目标关键词可以为“啊啊啊..”,程序处理装置的显示界面当前显示音频播放程序的音频播放界面,用户正在使用音频播放程序收听歌曲,且当前音频播放界面的第五控件中显示有歌曲的歌词信息,程序处理装置可以实时或每隔预设周期对该音频播放界面的第五控件中显示的歌词信息进行监测,例如,每隔5秒对音频播放界面的第五控件中显示的歌词信息进行监测,并基于程序处理装置预先存储的程序事件相关的目标信息,确定该音频播放界面所发生的程序事件是否为第一程序事件,其中,该目标信息包括第二目标关键词,在监测到该音频播放界面的第五控件中显示的信息包括第二目标关键词的情况下,则确定该音频播放界面发生了第一程序事件。也即当收听至歌词信息包括“啊啊啊..”的音频时,程序处理装置可以监测到第五控件中显示了第二目标关键词,此时,程序处理装置可以确定该音频播放界面发生了第一程序事件,并判定用户结束了音频的收听,相应可以对第二程序执行目标处理,具体可以将显示界面当前显示的音频播放界面切换为即时通讯程序中正在后台运行的会话界面。如此,可以在程序处理装置判定用户结束音频的收听时,自动切换为即时通讯程序的界面进行显示,无
需手动切换,从而简化了程序处理的操作。
在本申请的一些应用场景中,第一程序为小说阅读程序,第二程序为视频播放程序,第二目标关键词为“完结”,程序处理装置的显示界面当前显示小说阅读程序的阅读界面,用户正在该阅读界面浏览小说,且当前阅读界面的第五控件中显示有小说文本信息。程序处理装置可以实时或每隔预设周期对阅读界面的第五控件中显示的小说文本信息进行监测,例如,每隔1分钟对阅读界面的第五控件中显示的小说文本信息进行监测,并基于程序处理装置预先存储的程序事件相关的目标信息,确定该小说文本信息所发生的程序事件是否为第一程序事件,其中,该目标信息包括第二目标关键词。在监测到该小说文本信息的第五控件中显示的信息包括第二目标关键词的情况下,则确定该阅读界面发生了第一程序事件。也即当阅读界面显示的文本信息中包括“完结”时,程序处理装置可以监测到第五控件中显示了第二目标关键词,此时,程序处理装置可以确定该阅读界面发生了第一程序事件,并判定用户结束了小说的阅读,相应可以对第二程序执行目标处理,具体可以将显示界面当前显示的阅读界面切换为视频播放程序的界面。如图3所示,在阅读界面的显示控件301内显示文本信息“完结”时,电子设备会将会话界面自动切换为如图2(b)显示的视频播放界面。如此,可以在用户小说阅读完结时,电子设备自动将小说阅读程序的阅读界面切换为视频播放程序的界面进行显示。如此无需手动切换,从而简化了程序处理的操作。
在本申请的一些应用场景中,第一程序为多媒体播放程序,第二程序为网页浏览程序,第二目标关键词可以为系统默认的或用户设置的笔画比较多的生僻字,当多媒体播放程序的第一界面的第五控件中显示第二目标关键词时,电子设备可以自动将多媒体播放程序的第一界面切换为网页浏览程序的网页界面进行显示,以供用户进行浏览查找。如此无需手动切换,从而简化了程序处理的操作。
在本申请的一些实施方式中,第一程序事件可以为第一界面中的程序控件接收到控件控制输入。该控件控制输入可以为语音输入、手势输入或触控输入,这里不进行具体限定。
例如,即时通讯程序的会话界面中语音输入控件接收到用于指示语音输入完成的控件控制输入。例如,即时通讯程序的会话界面中发送控件接收到控件控制输入。例如,图像拍摄程序中视频拍摄控件接收到用于表征视频拍摄完成的控件控制输入。
可选地,所述在所述第一界面发生第一程序事件的情况下,对第二程序执行目标处理,包括:
在所述第一界面中的第三控件接收到用户的控件控制输入的情况下,对第二程序执行目标处理;
其中,所述第三控件为用于处理消息或文件的控件。
本实施方式中,第三控件包括但不限于用于发送消息、复制消息、删除消息、转发消息、保存文件、复制文件的控件。控件控制输入可以为手势输入、语音输入、或触控输入等,这里不进行具体限定。
在本申请的一些应用场景中,第一程序为即时通讯程序,第二程序为视频播放程序,第三控件为即时通讯程序的会话界面中用于发送消息的控件,程序处理装置的显示界面上当前显示即时通讯程序的会话界面,用户可以通过对该会话界面中消息发送控件的输入,以将输入框中输入的会话消息进行发送,相应地,程序处理装置在监测到用户对消息发送控件的控件控制输入的情况下,可以将显示界面当前显示的会话界面切换为视频播放程序中正在后台运行的视频B的播放界面进行显示。如此无需手动切换,从而简化了程序处理的操作。
在本申请的一些应用场景中,第一程序为图像拍摄程序,第二程序为短视频程序,第三控件为用于保存图像文件的控件,在程序处理装置的显示界面上显示图像拍摄程序的拍摄界面的情况下,用户可以基于该拍摄界面拍摄图像,当拍摄完成时,用户可以通过对第三控件的输入,以保存图像文件,相应地,程序处理装置在监测到用户对第三控件的控件控制输入的情况下,可以将显示界面当前显示的拍摄界面切换为短视频程序中制作短视频的界面进行显示,具体地,可以是取消拍摄界面的显示或者关闭拍摄界面,打开短视频程序中制作短视频的界面或者显示短视频程序中制作短视频的界面,这样用户可以基于所拍摄图像进行短视频的制作,如此,无需手动切换,从而简化了程序处理的操作。
在本申请的一些应用场景中,第一程序为设置程序,第二程序为音频播放程序,第三控件可以为蓝牙连接控件,当用户对蓝牙连接控件进行输入时,蓝牙连接控件可以接收到控件控制输入,此时,程序处理装置可以与蓝牙连接控件指示的蓝牙耳机建立连接,并将显示界面当前显示的设置界面切换为音频播放程序的播放界面,这样用户就可以通过蓝牙耳机在音频播放程序的播放界面收听音乐,如图4(a)所示,在设置界面的蓝牙连接控件401接收到控件控制输入402时,电子设备会将设置界面自动切换为如图4(b)显示的音频播放界面。如此,无需手动切换,从而简化了程序处理的操作。
在本申请的一些实施方式中,第一程序事件可以为第一界面中的程序控件更新为目标控件状态。例如,多媒体播放程序中的播放控件上进度标识更新为指示目标进度的状态,进度标识可以为进度条,目标进度可以为90%、100%或其他进度,这里不进行具体限定,如目标进度可以为98%。程序处理装置可以实时或周期监测进度条,并确定进度条所指示的进度,当视频播放进度条所指示的进度更新为98%的进度状态的情况下,确定该播放界面发生了第一程序事件。例如,即时通讯程序的会话界面中输入框更新为被使用中的状态,被使用中的状态可以为该输入框处于正在输入信息的状态。例如,设置程序的设置界面中功能设置控件更新为控件禁用状态,也即更新为置灰状态。
可选地,所述在所述第一界面发生第一程序事件的情况下,对第二程序执行目标处理,包括:
在所述第一界面中的第四控件更新为目标控件状态的情况下,对第二程序执行目标处理;
其中,目标控件状态包括以下至少一项:控件上的进度标识指示目标进度的状态;控
件禁用状态;控件被使用中的状态;控件完全或部分隐藏状态;控件处于目标显示模式的状态。
在本申请的一些应用场景中,第一程序为视频播放程序,第二程序为即时通讯程序,第一界面为视频播放界面,第四控件可以为播放控件,当播放控件上的进度条指示为大于90%进度的状态时,指示视频已经播放完毕,相应地,在监测到视频播放界面中的播放控件更新为进度条指示为目标进度的状态的情况下,可以自动切换为即时通讯程序,如此,无需手动切换,从而可以简化程序处理的操作。
在本申请的一些应用场景中,目标控件状态可以为控件被使用中的状态,控件被使用中的状态包括但不限于控件处于正在输入信息的状态,被选择的状态等。例如,第一程序为即时通讯程序,第二程序为视频播放程序,第一界面为会话界面,该会话界面可以包括输入控件,当用户在输入控件中进行输入时,输入控件是处于被使用中的状态,即正在信息输入的状态。此时,程序处理装置在监测到会话界面中的输入控件处于正在信息输入的状态的情况下,可以自动跳转至视频播放程序,以观看视频,如此,无需手动切换,从而可以简化程序处理的操作。
在本申请的一些应用场景中,第一程序为即时通讯程序,第二程序为视频播放程序,第一界面为会话界面,第四控件可以为输入控件,当用户在会话界面的输入控件中信息输入完成的情况下,输入控件的控件状态可以发生变化,例如,输入控件不会显示消息,即更新为未显示信息的状态,例如,输入控件会更新为完全或部分隐藏的状态,此时,程序处理装置在监测到会话界面中的输入控件更新为未显示信息的状态、或者、完全隐藏的状态、或者部分隐藏的状态的情况下,可以自动跳转至视频播放程序,以观看视频,如此,无需用户手动切换,从而可以简化用户的程序处理控制操作。
在本申请的一些应用场景中,第一程序为设置程序,第二程序为游戏程序,第四控件可以为功能设置控件,当用户在当前显示的设置程序的设置界面中基于功能设置控件进行功能设置完成的情况下,功能设置控件的控件状态可以发生变化,例如,更新为控件禁用状态,此时,程序处理装置在监测到功能设置控件更新为控制禁用状态的情况下,可以自动跳转至游戏程序,以基于所设置的功能进行游戏操作,如此,无需手动切换,从而可以简化程序处理的操作。
其中,常规的控件状态有以下几种:
1.正常(normal),表示控件处于活动状态,但是当前并未使用。
2.突出显示(highlighted),表示控件正被按住或正被使用。
3.禁用(disabled),表示按钮未启用且无法使用。
4.已选中(selected),仅特定控件具有该状态,表示控件当前已被选中。
而控件的控件状态更新为控件禁用状态标示控件从正常、突出显示或已选中的状态更新至禁用状态。
在本申请的一些应用场景中,第一程序为设置程序,第二程序为游戏程序,第四控件
可以为功能设置控件,当用户通过对设置程序的设置界面的输入,以调出功能设置控件的悬浮球,或者展开该悬浮球显示悬浮球里面的控件的情况下,该功能设置控件的显示模式可以更新为目标显示模式,该目标显示模式指示功能设置控件以悬浮球的形式进行显示。此时,程序处理装置在监测到功能设置控件的显示模式更新为目标显示模式的情况下,可以自动跳转至游戏程序,以方便用户进行游戏操作,如此,无需手动切换,从而可以简化程序处理的操作。
在本申请的一些实施方式中,第一程序事件可以为第一界面中目标数据的数据加载状态为目标加载状态,其中,在目标加载状态下,目标数据的加载速度小于速度阈值。例如,多媒体播放程序中的播放界面中画面数据的加载速度小于速度阈值,如图5所示,用户正在视频播放程序的播放界面上观看视频,该播放界面的画面中实际应该显示有三个人物,但是由于电子设备的网络状态比较差,其数据加载速度比较慢,导致无法全部显示播放界面的画面中所有人物,而仅加载出两个人物的画面,此时可以确定该播放界面发生了第一程序事件。例如,游戏程序中游戏画面数据的加载速度小于速度阈值。
其中,速度阈值可以根据实际情况进行设置,数据加载速度低于速度阈值时,说明第一程序的界面中数据加载速度比较慢,使得界面无法完整显示画面信息。例如,速度阈值的取值范围可以为10千字节(Kilobyte,kB)~200kB。
并且,程序不同,其速度阈值可以设置的不同,例如,视频播放程序相对于音频播放程序,在用户流畅度体感上所需要的数据加载速度更大,对于视频播放程序,其速度阈值可以设置为200Kb,对于音频播放程序,其速度阈值可以设置为50kB,因此,视频播放程序的界面中画面数据的加载速度的速度阈值可以设置的比音频播放程序的界面中音频数据的加载速度的速度阈值大。
本申请实施例中,通过限定第一程序事件的具体内容,使得程序处理装置可以很容易地根据第一界面中程序控件或数据的加载速度,实现对第一程序事件的监测。
本申请实施例的目标处理可以为程序处理,指的是对第二程序的处理。在本申请的一些实施方式中,第一界面发生第一程序事件的情况下,可以自动对第二程序执行目标处理。如此,在使用第一程序的过程中,若监测到第一界面发生第一程序事件,可以实现电子设备自动对第二程序执行目标处理,无需用户手动进行程序之间的切换,以处理第二程序,从而可以简化程序处理的操作,提高程序的使用效率。
在本申请的一些实施方式中,程序处理装置可以存储程序事件与程序处理的关联关系,基于该关联关系,可以确定第一程序事件所关联的第二程序以及目标处理。可选地,所述对第二程序执行目标处理之前,还可以包括:根据程序事件与程序处理之间的关联关系,确定所述第一程序事件关联的目标处理。
本实施方式中,程序处理装置可以存储程序事件与程序处理的关联关系,例如,可以存储第一程序的界面中的程序控件接收到控件控制输入的程序事件与显示第二程序的界面的程序处理的关联关系。例如,可以存储第一程序的界面中目标数据的数据加载状态为
目标加载状态的程序事件与显示第二程序的界面的程序处理的关联关系。例如,可以存储第一程序的界面中的程序控件更新为目标控件状态的程序事件与触发对第二程序的控件的输入的程序处理的关联关系。
其中,程序事件与程序处理之间的关联关系可以通过表的形式进行存储,如映射关系表可以为如下表1所示。
表1程序事件与程序处理之间的映射关系表
相应地,可以从存储的该关联关系中查询得到第一程序事件所关联的目标处理。如此,可以实现目标处理的确定,丰富程序处理的方式。
需要说明的是,程序事件与程序处理之间的关联关系可以通过用户设置确定。可选地,所述方法还包括:显示至少两个程序图标和至少两个程序事件选项;接收用户对所述至少两个程序图标中的目标程序图标和至少两个程序事件选项中的目标程序事件选项的第一输入;响应于所述第一输入,建立所述目标程序事件选项指示的程序事件与目标程序处理之间的关联关系。其中,所述目标程序图标为所述第二程序的程序图标;所述目标程序处理是根据所述第二程序的运行状态确定的或者用户设置的。
本实施方式中,程序事件选项与程序事件对应,其可以是一一对应的关系,程序事件选项可以指示程序事件。
本申请实施例中的程序图标可以为应用图标,其可以为程序处理装置所安装的各个应用的应用图标,或者用户经常使用的应用图标,至少两个程序图标可以包括第二程序的程序图标。
在本申请的一些实施方式中,可以接收对第一程序的界面的输入,响应于该输入,同时显示至少两个程序图标和至少两个程序事件选项。之后,可以接收用户对至少两个程序图标中的目标程序图标和至少两个程序事件选项中的目标程序事件选项的第一输入,响应于第一输入,建立目标程序事件选项指示的程序事件与目标程序处理之间的关联关系。其中,第一输入可以为同时或分别先后对目标程序事件选项和目标程序处理的输入。
在本申请实施例中,上述第一输入用于建立程序事件与程序处理之间的关联关系,第一输入可以为第一操作。示例性的地,上述第一输入包括但不限于:用户通过手指或者手写笔等触控装置对程序图标和程序事件的触控输入,或者为用户输入的语音指令,或者为用户输入的特定手势,或者为其他可行性输入,具体的可以根据实际使用需求确定,本申
请实施例不作限定。本申请实施例中的特定手势可以为单击手势、滑动手势、拖动手势、压力识别手势、长按手势、面积变化手势、双按手势、双击手势中的任意一种;本申请实施例中的点击输入可以为单击输入、双击输入或任意次数的点击输入等,还可以为长按输入或短按输入。例如,上述的第一输入可以为:用户对第一程序的界面上显示的至少两个程序图标中的目标程序图标和至少两个程序事件选项中的目标程序事件选项的点击输入。
在本申请的一些实施方式中,可以接收对第一程序的界面的输入,响应于该输入,先显示至少两个程序事件选项,在接收到至少两个程序事件选项中目标程序事件选项的第一子输入的情况下,再显示至少两个程序图标,接收用户对至少两个程序图标中的目标程序图标的第二子输入,响应于第二子输入,建立目标程序事件选项指示的程序事件与目标程序处理之间的关联关系。其中,第一输入可以包括第一子输入和第二子输入,第一子输入可以为第一子操作,第一子输入可以为点击输入、语音输入或手势输入等,第一子输入用于选择第一程序的界面上显示的至少两个程序图标中的目标程序图标,第二子输入可以为第二子操作,第二子输入可以为点击输入、语音输入或手势输入等,第二子输入用于选择至少两个程序事件选项中的目标程序事件选项。
在一些应用场景中,用户需要在两个或者多个不同的程序之间使用,设有两个程序,分别为程序A和程序B,电子设备需要根据程序A的界面发生的程序事件进行程序B的相应处理。例如,从程序A跳转到程序B进行界面切换显示,例如,触发程序B的界面中程序控件,此时,可以建立目标程序事件选项指示的程序A的界面中第一程序事件与程序B的目标程序处理之间的关联关系。
例如,用户当前在即时通讯程序中和好友进行全屏聊天,聊天信息发送出去之后,用户需要进行程序切换操作,以使程序处理装置将即时通讯程序的界面切换到视频播放程序的界面进行显示,这样用户就可以在视频播放程序的界面上观看视频。在该种应用场景下,可以进行即时通讯程序的界面发生的程序事件和视频播放程序的程序处理之间关联的设置,考虑到控件的输入信息可能是一个高频行为,例如,如图6所示,用户在视频播放程序内看视频,此时联系人1发了一条新消息,可以在播放界面上显示联系人1发来的消息关键词,或者显示联系人1发了一条新消息,用户需要与联系人1进行聊天。聊天结束之后,又需要用户进行程序切换操作,以使程序处理装置将会话界面切换到视频播放程序的界面进行显示,这样来回切换比较繁琐,如果可以将即时通讯程序的界面发生的程序事件和视频播放程序进行关联,程序处理装置在监测到即时通讯程序的界面发生了第一程序事件的情况下,就会自动进行即时通讯程序到视频播放程序的界面之间的切换显示。
举例来说,程序A可以为即时通讯程序,程序处理装置当前显示即时通讯程序的会话界面,用户可以基于该会话界面调起程序事件选项。如图7所示,用户可以通过手势操作700程序A的会话界面,将当前显示的会话界面生成一个快捷图标701,将该快捷图标701拖动到输入控件的发送控件702区域。其中,手势操作700可以为双击操作,这里不限定具体手势操作,避免和系统设置的手势冲突即可。
相应地,可以在发送控件上方显示程序事件选项,该程序事件选项可以以列表形式在该会话界面内显示,即在该会话界面内显示程序事件选项列表202。如图7所示,程序事件选项列表202可以包括“开始输入”、“信息输入中”、“信息输入完成”的程序事件选项。
用户可以基于程序事件选项列表202中选择“信息输入完成”的目标程序事件选项,用户选择目标程序事件选项后,在程序A的界面内显示至少两个程序图标,如图8所示,在即时通讯程序的会话界面的区域801内可以显示多个程序图标,用户可以选择程序B的程序图标,如可以点击视频播放程序的程序图标802,这样可以建立目标程序事件选项指示的程序A的界面发生的程序事件与程序B的目标程序处理之间的关联关系,将其关联关系存储至程序事件与程序处理之间的关联关系表中,其中,目标程序处理可以为进行即时通讯程序至视频播放程序之间的跳转。
之后,若用户对会话界面中的发送控件进行输入,则程序处理装置可以接收到该输入,并响应于该输入,确定该会话界面发生了“信息输入完成”的程序事件选项的程序事件,之后可以确定关联关系表中是否存在“信息输入完成”的程序事件选项的程序事件,若存在,则确定该会话界面发生了第一程序事件,相应可以将即时通讯程序的会话界面切换为视频播放程序的播放界面进行显示。
需要说明的是,在该应用场景中,调出程序事件选项列表202的设置方式还可以为以下方式,但不限于这些:可以长按用户自己的头像,将用户的头像拖动到发送控件上,也可以在目标界面内调出程序事件选项列表202;用户手势对输入控件703进行长按,也可以在会话界面中调出程序事件选项列表202。
在该应用场景中,程序事件选项还可以包括输入框内显示目标信息、用于显示联系人发送的会话消息的控件中显示带有关键词的目标信息,也即联系人发送了包括关键词的目标信息等,这里不进行具体限定。
在本申请的一些应用场景中,程序A可以为设置程序,程序处理装置当前显示设置程序的蓝牙设置界面,该蓝牙设置界面可以包括蓝牙设置控件901,用户可以基于该蓝牙设置控件如长按该控件,以调起程序事件选项和程序图标,如图9所示,蓝牙设置界面的区域902中显示了两个程序事件选项,分别为蓝牙连接和蓝牙断开,以及区域903显示了两个与蓝牙相关的程序图标,分别为通信音频程序和媒体音频程序。用户可以选择蓝牙连接的程序事件选项以及媒体音频程序的程序图标,相应可以建立蓝牙连接的程序事件和自动跳转至媒体音频程序的界面进行显示的程序处理之间的关联关系,将其关联关系存储至程序事件与程序处理之间的关联关系表中。
之后,若用户对蓝牙设置界面中的蓝牙连接控件进行输入,则程序处理装置可以接收到该输入,并响应于该输入,确定该蓝牙设置界面发生了“蓝牙连接”的程序事件选项的程序事件,之后可以确定关联关系表中是否存在“蓝牙连接”的程序事件选项的程序事件,若存在,则确定该蓝牙设置界面发生了第一程序事件,相应可以将设置程序的蓝牙设置界面切换为媒体音频程序的播放界面进行显示。
在本申请的一些应用场景中,用户需要在两个或者多个不同的程序之间切换使用,设有两个程序,分别为程序C和程序D,程序D需要根据程序C的界面中数据的数据加载状态进行相应处理,例如,从程序C跳转到程序D进行界面切换显示。
举例来说,程序C为视频播放程序,用户在程序C的播放界面内观看视频,用户可以对播放界面进行输入,程序处理装置可以响应于该输入,显示至少两个程序图标和至少两个程序事件选项,该至少两个程序事件选项可以包括目标加载状态。
如图10所示,显示界面当前显示视频播放程序的播放界面,该播放界面当前正在播放视频A,用户可以通过对该播放界面的输入,调出全局的“跳转设置”的入口图标1001,之后用户可以点击入口图标1001,相应地,程序处理装置可以响应于用户的点击输入,显示设置选项,设置选项中可以包括程序事件选项1002如“网络不好,加载不出来”,还可以包括程序图标1003,在接收到用户对至少两个程序图标中的小说阅读程序和至少两个程序事件选项中的目标程序事件选项1002的输入的情况下,可以确定目标程序事件选项指示的程序事件为所需要关联的程序事件,以及确定目标程序图标对应小说阅读程序为目标程序处理的程序,相应建立目标程序事件选项指示的程序事件与目标程序处理之间的关联关系。其中,“网络不好,加载不出来”程序事件选项所指示的程序事件可以为第一界面中目标数据的数据加载状态为目标加载状态。
之后,若程序处理装置监测到视频播放程序中播放视频A的播放界面的数据加载状态为目标加载状态,则程序处理装置可以确定该播放界面发生了“网络不好,加载不出来”的程序事件选项的程序事件,可以确定关联关系表中是否存在“网络不好,加载不出来”的程序事件选项的程序事件,若存在,则确定该播放界面发生了第一程序事件,相应可以将视频播放程序的播放界面切换为小说阅读程序的阅读界面。
如此,可以通过显示多个程序图标和多个程序事件选项,供用户选择所需要关联的程序处理的程序和程序事件,从而可以方便建立程序事件与程序处理之间的关联关系。
在用户选择所需要关联的程序处理的程序的同时,还需要确定程序处理的具体内容,以实现对第二程序执行目标处理。可选地,所述对第二程序执行目标处理,包括以下至少一项:
显示第二程序的目标界面,所述目标界面为根据所述第二程序的运行状态确定的界面或用户设置的界面;
触发对第二程序的第一目标程序控件的输入,所述第一目标程序控件为预设的控件或用户设置的控件;
对所述第二程序执行目标处理,所述目标处理为预设的处理或用户设置的处理。
在本申请的一些实施方式中,在第一界面发生第一程序事件的情况下,可以自动显示第二程序的目标界面。例如,在即时通讯程序的会话界面发生第一程序事件的情况下,可以显示视频播放程序后台运行的播放界面,或者,显示视频播放程序中用户设置的界面,如显示视频播放程序中历史播放记录的视频播放界面。例如,在视频播放程序的播放界面
发生第一程序事件的情况下,可以显示小说阅读程序的阅读界面,或者,显示即时通讯程序中用户设置的与特定联系人的会话界面。
在本申请的一些实施方式中,目标界面可以是在程序事件与程序处理的关联关系的建立过程中根据至少两个程序图标中所选择的程序的运行状态确定的。可选地,所述建立所述目标程序事件选项指示的程序事件与目标程序处理之间的关联关系之前,还包括:
在所述第二程序未运行的情况下,将显示所述第二程序的第二界面确定为目标程序处理,其中,所述第二界面为所述第二程序的程序主界面;所述对第二程序执行目标处理,包括:显示所述第二程序的第二界面;
在所述第二程序在后台运行的情况下,将显示所述第二程序的第三界面确定为目标程序处理,其中,所述第三界面为所述第二程序在后台运行状态下所显示的界面;所述对第二程序执行目标处理,包括:显示所述第二程序的第三界面。
在一些应用场景中,第一程序可以为即时通讯程序,第二程序可以为视频播放程序,当前界面显示即时通讯程序中与联系人1的会话界面,在第一程序的界面中程序事件与第二程序的程序处理的关联关系的建立过程中,当视频播放程序未运行的情况下,可以将显示视频播放程序的主界面确定为目标程序处理,并建立程序事件与目标程序处理的关联关系,相应地,在即时通讯程序的界面中发生第一程序事件的情况下,如界面中发送控件接收到程序控件输入的情况下,可以显示视频播放程序的主界面。
而当视频播放程序在后台运行的情况下,可以将显示视频播放程序中后台运行的视频A播放界面确定为目标程序处理,并建立程序事件与目标程序处理的关联关系,相应地,在即时通讯程序的界面中发生第一程序事件的情况下,如界面中发送控件接收到程序控件输入的情况下,可以显示视频播放程序中视频A的播放界面。
第一程序可以为视频播放程序,第二程序可以为小说阅读程序,当前界面显示视频A的播放界面,在第一程序的界面中程序事件与第二程序的程序处理的关联关系的建立过程中,当小说阅读程序未运行的情况下,可以将显示小说阅读程序的主界面确定为目标程序处理,并建立程序事件与目标程序处理的关联关系,相应地,在视频播放程序的界面中发生第一程序事件的情况下,如界面中数据加载状态为目标加载状态的情况下,可以显示小说阅读程序的主界面。
而当小说阅读程序在后台运行的情况下,可以将显示小说阅读程序中后台运行的小说B的阅读界面确定为目标程序处理,并建立程序事件与目标程序处理的关联关系,相应地,在视频播放程序的界面中发生第一程序事件的情况下,如界面中数据加载状态为目标加载状态的情况下,可以显示小说阅读程序中小说B的阅读界面。
如此,可以根据第二程序的运行状态确定目标程序处理中所需要显示的第二程序的界面,从而可以灵活地建立程序事件与程序处理之间的关联关系,简化关联关系的设置过程。
在本申请的一些实施方式中,目标界面可以为用户设置的界面,用户可以进行目标程序处理的设置,以进行设置的第四界面的切换显示,可选地,所述建立所述目标程序事件
选项指示的程序事件与目标程序处理之间的关联关系之前,还包括:
接收用户对所述目标程序图标的第二输入;
响应于所述第二输入,确定所述第二程序的第四界面;
将显示所述第四界面确定为目标程序处理;
所述对第二程序执行目标处理,包括:
显示所述第二程序的第四界面。
本实施方式中,上述第二输入与第一输入可以为不同的两次输入,第二输入用于确定所需要跳转显示的第四界面,以确定目标程序处理,第二输入可以为第二操作。示例性的地,上述第二输入包括但不限于:用户通过手指或者手写笔等触控装置对目标程序图标的触控输入,或者为用户输入的语音指令,或者为用户输入的特定手势,或者为其他可行性输入,具体的可以根据实际使用需求确定,本申请实施例不作限定。本申请实施例中的特定手势可以为单击手势、滑动手势、拖动手势、压力识别手势、长按手势、面积变化手势、双按手势、双击手势中的任意一种;本申请实施例中的点击输入可以为单击输入、双击输入或任意次数的点击输入等,还可以为长按输入或短按输入。例如,上述的第二输入可以为:用户对目标程序图标的点击输入。
用户可以对目标程序图标进行第二输入,程序处理装置可以接收该第二输入,并响应于第二输入,显示第二程序的第四界面。
如图11所示,在当前运行的是即时通讯程序,用户正在和联系人1聊天的应用场景下,程序处理装置当前显示与联系人1的会话界面,程序处理装置后台运行了视频播放程序,当前播放的是视频A,处于播放暂停状态,用户可以通过手势调出包括“开始输入”、“信息输入中”和“信息输入完成”的程序事件选项和包括视频播放程序的程序图标。当用户选择了“信息输入完成”的程序事件选项和视频播放程序的程序图标时,进一步点击视频播放程序的程序图标802的输入,程序处理装置在接收到第二输入的情况下,可以显示视频播放程序的播放界面1101,该播放界面1101为视频A的播放界面。用户若继续点击播放界面1101,程序处理装置可以将显示该播放界面1101确定为目标程序处理,并将“信息输入完成”的程序事件选项的程序事件和显示视频播放程序的视频A播放界面的程序处理的关联关系存储至关联关系表中。
之后,若用户对会话界面的发送控件进行输入,程序处理装置则可以接收到该程序控制输入,确定该会话界面中发生了第一程序事件,相应可以将与联系人1的会话界面切换为视频A的播放界面进行显示。
本实施方式中,在设置程序处理的程序情况下,通过显示程序中的第四界面,并将该第四界面确定为目标程序处理,建立第一程序的程序事件与目标程序处理的关联关系,从而可以在第一程序发生程序事件的情况下,第二程序中第四界面的自动显示,从而节省了用户的操作时间。
在本申请的一些实施方式中,在第一界面发生第一程序事件的情况下,可以自动触发
对第二程序的第一目标程序控件的输入。例如,在即时通讯程序的会话界面发生第一程序事件的情况下,可以触发后台运行的音频播放程序的音频播放控件,音频播放控件可以为预设的控件。
例如,在视频播放程序的播放界面发生第一程序事件的情况下,可以触发设置程序的无线连接功能设置控件,无线连接功能设置控件可以为预设的控件。在一些应用场景中,若用户点击了视频播放程序的播放界面中视频播放控件,可以自动触发设置程序的无线连接功能设置控件,以打开无线连接功能连接附近的无线热点,用于进行视频播放。
本申请实施例中的第一目标程序控件也可以为用户设置的控件,在本申请的一些实施方式中,用户可以进行目标程序处理的设置,以自动触发对第一目标程序控件的输入,可选地,所述建立所述目标程序事件选项指示的程序事件与目标程序处理之间的关联关系之前,还包括:
接收用户对所述目标程序图标的第四输入;
响应于所述第四输入,显示所述第二程序的第五界面,所述第五界面包括第一目标程序控件;
接收用户对所述第一目标程序控件的第五输入;
响应于所述第五输入,将触发对所述第一目标程序控件的输入确定为目标程序处理,并存储所述第一目标程序控件的控件路径;
所述对第二程序执行目标处理,包括:
基于所述第一目标程序控件的控件路径,触发对所述第一目标程序控件的输入。
本申请实施例中的第四输入和第五输入可以为手势输入、语音输入或触控输入等,这里不进行具体限定。第一输入和第四输入可以为不同的两次输入。第四输入用于调出第二程序的第五界面,以确定目标程序处理,第一输入用于建立目标程序事件选项指示的程序事件与目标程序处理之间的关联关系。
上述第四输入与第一输入为不同的两次输入,第五输入与第一输入也为不同的两次输入,第四输入用于调出第二程序的第五界面,第五输入用于基于第五界面中控件确定目标程序处理,第四输入可以为第四操作,第五输入可以为第五操作。示例性的地,上述第四输入包括但不限于:用户通过手指或者手写笔等触控装置对目标程序图标的触控输入,第五输入包括但不限于:用户通过手指或者手写笔等触控装置对第五界面中控件的触控输入,或者为用户输入的语音指令,或者为用户输入的特定手势,或者为其他可行性输入,具体的可以根据实际使用需求确定,本申请实施例不作限定。本申请实施例中的特定手势可以为单击手势、滑动手势、拖动手势、压力识别手势、长按手势、面积变化手势、双按手势、双击手势中的任意一种;本申请实施例中的点击输入可以为单击输入、双击输入或任意次数的点击输入等,还可以为长按输入或短按输入。例如,上述的第四输入可以为:用户对目标程序图标的双击输入,第五输入可以为:用户对第五界面中控件的短按输入。
用户可以双击目标程序图标,以进入到所选定的第二程序内部,调出包括第一目标程
序控件的第五界面。相应地,程序处理装置可以在第一程序的界面内以窗口形式悬浮显示第五界面。用户可以对第五界面中第一目标程序控件进行第五输入,如点击第一目标程序控件,程序处理装置可以响应于第五输入,将触发对第一目标程序控件的输入确定为目标程序处理,并存储第一目标程序控件的控件路径,其中,控件路径可以指示第一目标程序控件在程序界面中的位置。这样,在第一界面发生了第一程序事件的情况下,可以基于第一目标程序控件的控件路径,自动触发对第一目标程序控件的输入,以实现对第二程序的处理。
在本申请的一些应用场景中,程序处理装置当前显示的是即时通讯程序中与联系人1的会话界面,该程序处理装置后台运行了音频播放程序,当前音频播放程序正在播放音频A,处于播放暂停状态。在该种应用场景下,用户可以通过相应设置,以选择“信息输入完成”的程序事件选项的程序事件,且选择目标程序处理的程序为音频播放程序。
之后,用户可以对音频播放程序的程序图标进行第四输入,程序处理装置可以响应于第四输入,显示音频播放程序中音频A的播放界面,用户可以点击播放界面中的音频播放控件,相应地,程序处理装置可以响应于该点击输入,建立会话界面中“信息输入完成”的程序事件选项的程序事件与触发音频A的播放界面中音频播放控件的输入的程序处理的关联关系。同时,程序处理装置可以记录用户设置过程中该音频播放控件的触发路径,例如,该音频播放控件的触发路径可以为音频播放程序->音频A的播放界面->音频播放控件,程序处理装置即可以基于该触发路径,确定并存储第一目标程序控件的控件路径,例如,控件路径可以为音频播放程序->音频A的播放界面->音频播放控件在音频A的播放界面中的位置。之后,在会话界面发生了第一程序事件的情况下,程序处理装置可以基于该控件路径自动触发对音频播放程序的音频A的播放界面中音频播放控件的输入,如自动触发对音频播放控件的点击输入,使音频A处于播放状态,这样无需进行程序界面之间的手动切换,即可触发对其他程序中控件的输入。
在本申请的一些应用场景中,程序处理装置当前显示的是视频播放程序中视频A的播放界面,处于播放暂停状态,当前设置程序中对于无线数据的设置为“无线局域网”,而程序处理装置当前的网络数据为蜂窝数据。在该种应用场景下,用户可以通过相应设置,以选择“播放开始状态”的程序事件选项的程序事件,且选择目标程序处理的程序为设置程序。之后,用户可以对设置程序的程序图标进行第四输入,程序处理装置可以响应于第四输入,显示设置程序中对于无线数据的设置界面,用户可以点击设置界面中的“无线局域网和蜂窝数据”的控件,相应地,程序处理装置可以响应于该点击输入,建立视频播放界面中“播放开始状态”的程序事件选项的程序事件与触发设置程序的设置界面中“无线局域网和蜂窝数据”的控件的输入的程序处理的关联关系。同时,程序处理装置可以记录用户设置过程中“无线局域网和蜂窝数据”的控件的触发路径,例如,“无线局域网和蜂窝数据”的控件的触发路径可以为设置程序->视频播放程序的无线数据的设置界面->无线局域网和蜂窝数据”的控件,程序处理装置即可以基于该触发路径,确定并存储第一目标
程序控件的控件路径,例如,控件路径可以为设置程序->视频播放程序的无线数据的设置界面->“无线局域网和蜂窝数据”的控件在该设置界面中的位置。之后,在视频播放程序的播放界面发生了第一程序事件的情况下,程序处理装置可以基于该控件路径自动触发对设置界面中“无线局域网和蜂窝数据”的控件的输入,如自动触发对“无线局域网和蜂窝数据”的控件的点击输入,使视频播放程序的无线数据可以设置为无线局域网和蜂窝数据,这样无需用户进行程序界面之间的手动切换,即可触发对其他程序中控件的输入。
在设置好进行程序处理的程序情况下,通过显示程序中的第五界面,并接收用户对第五界面中第一目标程序控件的输入,这样用户可以通过设置自己需要使用的控件,实现目标程序处理的设置,如此在第一程序的第一界面发生第一程序事件的情况下,程序处理装置就可以自动触发第五界面中第一目标程序控件的输入,提高了程序处理的灵活性,节省了用户的操作时间。
在本申请的一些实施方式中,在第一界面发生第一程序事件的情况下,可以对第二程序执行预设的处理或用户设置的处理,其中,预设的处理可以为电子设备系统预设的处理,预设的处理可以为程序A至程序B的跳转,即程序A的界面切换为程序B的界面,例如,在即时通讯程序的会话界面发生第一程序事件的情况下,将会话界面切换为视频播放程序的播放界面。预设的处理也可以为启动第二程序,例如,在视频播放程序的播放界面发生第一程序事件的情况下,可以启动流量监控程序,以自动监控播放界面所产生的流量。
用户设置的处理可以为用户自定义的处理,用户设置的处理可以为程序A至程序C的跳转,例如,在即时通讯程序的会话界面发生第一程序事件的情况下,将会话界面切换为小说阅读程序的播放界面,用户设置的处理也可以为触发对后台运行的程序D的界面中控件的输入,例如,在即时通讯程序的会话界面发生第一程序事件的情况下,触发对后台运行的音频播放程序的界面中音频播放控件的输入。
在本申请的一些实施方式中,用户可以进行目标程序处理的设置,以进行用户设置的处理,可选地,所述建立所述目标程序事件选项指示的程序事件与目标程序处理之间的关联关系之前,还包括:
接收用户对所述目标程序图标的第三输入;
响应于所述第三输入,确定程序处理的处理内容;
将所述处理内容对应的程序处理确定为目标程序处理;
所述对第二程序执行目标处理,包括:
对所述第二程序执行所述处理内容对应的程序处理。
上述第三输入与第一输入可以为不同的两次输入,第三输入用于确定所需要进行程序处理的处理内容,以确定目标程序处理,第三输入可以为第三操作。示例性的地,上述第三输入包括但不限于:用户通过手指或者手写笔等触控装置对目标程序图标的触控输入,或者为用户输入的语音指令,或者为用户输入的特定手势,或者为其他可行性输入,具体的可以根据实际使用需求确定,本申请实施例不作限定。本申请实施例中的特定手势可以
为单击手势、滑动手势、拖动手势、压力识别手势、长按手势、面积变化手势、双按手势、双击手势中的任意一种;本申请实施例中的点击输入可以为单击输入、双击输入或任意次数的点击输入等,还可以为长按输入或短按输入。例如,上述的第三输入可以为:用户对目标程序图标的长按输入。
用户可以对目标程序图标进行第三输入,程序处理装置可以响应于第三输入,确定程序处理的处理内容,并将确定的处理内容对应的程序处理确定为目标程序处理,以建立程序事件选项指示的程序事件与目标程序处理之间的关联关系。
在本申请的一些应用场景中,在程序处理装置显示视频A的播放界面的情况下,用户可以通过对播放界面的手势操作,以调出程序图标,如流量监控程序和病毒扫描程序等的程序图标。用户可以对流量监控程序的程序图标进行第三输入,程序处理装置可以接收第三输入,并响应于第三输入,显示处理内容的选项,例如,启动流量监控程序和关闭流量监控程序。用户可以选择启动流量监控程序的选项,程序处理装置则可以将后台启动流量监控程序确定为程序处理的处理内容,并将后台启动流量监控程序的处理确定为目标程序处理,相应建立显示视频A的播放界面的程序事件与后台启动流量监控程序的处理的关联关系。之后,在显示视频播放程序的视频A的播放界面的情况下,自动可以后台启动流量监控程序。
在本申请的一些应用场景中,在程序处理装置显示即时通讯程序的会话界面的情况下,用户可以通过相应设置,以选择“信息输入完成”的程序事件选项,以及程序处理的程序为小说阅读程序。用户可以对小说阅读程序的程序图标进行第三输入,程序处理装置可以接收第三输入,并响应于第三输入,显示处理内容的选项,例如,显示线下下载的小说阅读界面和显示线上的小说阅读界面。用户可以选择显示线下下载的小说阅读界面的选项,程序处理装置则可以将显示线下下载的小说阅读界面确定为程序处理的处理内容,相应建立“信息输入完成”的程序事件选项的程序事件与显示线下下载的小说阅读界面的程序处理的关联关系。之后,在会话界面发生了指示“信息输入完成”的第一程序事件的情况下,自动可以显示线下下载的小说阅读界面。
本实施方式中,在设置程序处理的程序情况下,通过确定程序处理的处理内容,并将处理内容对应的程序处理确定为目标程序处理,建立第一程序的程序事件与目标程序处理的关联关系,使得程序处理的设置更加灵活。
本实施方式中,通过限定目标处理的具体内容,使得程序处理装置可以在监测到第一界面发生第一程序事件的情况下,实现对第二程序的处理。
在本申请的一些实施方式中,用户在进行程序事件和程序处理的关联关系设置时,所选择关联的程序可以存在至少两个,即形成了“一对多”的事件订阅分发模式,相应地,第一程序事件可以与多个程序处理之间存在关联关系,每个程序处理对应一个程序,可以由用户选择所需要进行程序处理的第二程序,可选地,所述对第二程序执行目标处理之前,还包括:
显示至少两个程序的程序标识,所述程序标识包括程序图标或界面标识,所述界面标识用于指示程序的任一个程序界面;
接收用户对所述至少两个程序的程序标识中的目标程序标识的第七输入;
响应于所述第七输入,将所述目标程序标识对应的程序确定为第二程序。
该实施方式中,第七输入可以为手势输入、语音输入、触控输入等,这里不进行具体限定。
当第一界面发生了第一程序事件时,可以将该第一程序事件的发生通知消息分发给所关联的程序,同时显示至少两个少两个程序的程序标识,若程序在后台已经打开,则以窗口形式显示程序界面,若程序在后台未打开,则以列表形式显示程序图标。如图12所示,在该会话界面显示有程序事件选项列表202的情况下,用户可以通过对程序事件选项和程序图标的输入,以选择程序事件选项和程序图标,用户可以选择多个程序图标,以建立程序事件选项所指示的程序事件与多个程序之间的关联关系,所选择的多个程序图标分别为程序图标1201、程序图标1202和程序图标802的程序,这样程序事件选项所指示的第一程序事件发生后,可以打开多个程序的界面窗口。
如图13所示,分别为程序A的界面窗口1301和程序B的界面窗口1302,让用户进行选择所需要程序处理的第二程序。在接收用户对至少两个程序的程序标识中的目标程序标识的第七输入的情况下,如图13所示,用户通过对程序A的界面窗口1301的输入1303,以选择程序A作为目标处理的第二程序。
也就是说,在第一界面发生第一程序事件的情况下,可以将事件发生的通知消息分发给多个程序,而当用户选择所需要程序处理的程序如程序A时,则程序处理装置可以自动将第一界面切换至程序A的界面进行显示,或者,进行程序A的内部逻辑行为的处理,如自动触发程序A的界面中控件的输入。
另外,如果要取消这些事件订阅涉及的程序,可以按照关联设置的相同方式,取消程序事件与程序处理的关联。
如此,在程序事件与多个程序处理存在关联关系的情况下,通过将多个程序处理涉及的程序标识如多个可跳转的程序标识显示出来,用户可以自由选择想跳转的第二程序,从而提高了程序处理的灵活性。
需要说明的是,本申请实施例提供的程序处理方法,执行主体可以为程序处理装置,或者程序处理装置中的用于执行程序处理方法的控制模块。本申请实施例中以程序处理装置执行程序处理方法为例,说明本申请实施例提供的程序处理装置。
参见图14,图14是本申请实施例提供的程序处理装置的结构图,如图14所示,程序处理装置1400包括:
显示模块1401,用于显示第一程序的第一界面;
处理模块1402,用于在所述第一界面发生第一程序事件的情况下,对第二程序执行目标处理;
其中,所述目标处理是根据所述第一程序事件确定的。
可选地,所述第一程序事件包括以下至少一项:
所述第一界面中的程序控件中显示目标信息;
所述第一界面中的程序控件接收到控件控制输入;
所述第一界面中的程序控件的控件状态更新为目标控件状态;
所述第一界面中目标数据的数据加载状态为目标加载状态,其中,在所述目标加载状态下,所述目标数据的加载速度小于速度阈值。
可选地,所述处理模块1402还用于执行以下至少一项:
显示第二程序的目标界面,所述目标界面为根据所述第二程序的运行状态确定的界面或用户设置的界面;
触发对第二程序的第一目标程序控件的输入,所述第一目标程序控件为预设的控件或用户设置的控件;
对所述第二程序执行目标处理,所述目标处理为预设的处理或用户设置的处理。
可选地,所述处理模块1402,还用于根据程序事件与程序处理之间的关联关系,确定所述第一程序事件关联的目标处理。
可选地,所述显示模块1401,还用于显示至少两个程序图标和至少两个程序事件选项;
所述装置还包括:用户输入模块1403,用于接收用户对所述至少两个程序图标中的目标程序图标和至少两个程序事件选项中的目标程序事件选项的第一输入;
所述处理模块1402,还用于响应于所述第一输入,建立所述目标程序事件选项指示的程序事件与目标程序处理之间的关联关系;
其中,所述目标程序图标为所述第二程序的程序图标;所述目标程序处理是根据所述第二程序的运行状态确定的或者用户设置的。
可选地,在所述第二程序未运行的情况下,所述处理模块1402,还用于:将显示所述第二程序的第二界面确定为目标程序处理,其中,所述第二界面为所述第二程序的程序主界面;所述处理模块1402具体用于:显示所述第二程序的第二界面;
在所述第二程序在后台运行的情况下,所述处理模块1402,还用于:将显示所述第二程序的第三界面确定为目标程序处理,其中,所述第三界面为所述第二程序在后台运行状态下所显示的界面;所述处理模块1402具体用于:显示所述第二程序的第三界面。
可选地,所述用户输入模块1403,还用于接收用户对所述目标程序图标的第二输入;
所述处理模块1402,还用于响应于所述第二输入,确定所述第二程序的第四界面;将显示所述第四界面确定为目标程序处理;
所述处理模块1402具体用于:显示所述第二程序的第四界面。
可选地,所述用户输入模块1403,还用于接收用户对所述目标程序图标的第三输入;
所述处理模块1402,还用于响应于所述第三输入,确定程序处理的处理内容;将所
述处理内容对应的程序处理确定为目标程序处理;
所述处理模块1402具体用于:对所述第二程序执行所述处理内容对应的程序处理。
可选地,所述用户输入模块1403,还用于接收用户对所述目标程序图标的第四输入;
所述显示模块1401,还用于响应于所述第四输入,显示所述第二程序的第五界面,所述第五界面包括第一目标程序控件;
所述用户输入模块1403,还用于接收用户对所述第一目标程序控件的第五输入;
所述处理模块1402,还用于响应于所述第五输入,将触发对所述第一目标程序控件的输入确定为目标程序处理,并存储所述第一目标程序控件的控件路径;
所述处理模块1402,还用于基于所述第一目标程序控件的控件路径,触发对所述第一目标程序控件的输入。
可选地,所述用户输入模块1403,还用于接收用户对第一程序的第一界面中的第二目标程序控件的第六输入;
所述处理模块1402,还用于响应于所述第六输入,将所述第二目标程序控件中显示包括第一目标关键词的目标信息确定为第二程序事件,其中,所述第一目标关键词为所述第六输入所输入的关键词;
所述处理模块1402,还用于将所述第二程序事件对应的程序事件选项添加至所述至少两个程序事件选项中。
可选地,所述显示模块1401,还用于显示至少两个程序的程序标识,所述程序标识包括程序图标或界面标识,所述界面标识用于指示程序的任一个程序界面;
用户输入模块1403,用于接收用户对所述至少两个程序的程序标识中的目标程序标识的第七输入;
所述处理模块1402,还用于响应于所述第七输入,将所述目标程序标识对应的程序确定为第二程序。
可选地,所述第一程序包括即时通讯程序;所述第一界面包括与目标联系人的会话界面;
所述显示模块1401,还用于在所述会话界面中的第一控件中显示第一信息;
所述处理模块1402,还用于在所述会话界面中的第一控件中显示第一信息的情况下,对第二程序执行目标处理,其中,所述第一控件为用于输入信息的控件;
所述显示模块1401,还用于在所述会话界面中的第二控件中显示第二信息;
所述处理模块1402,还用于在所述会话界面中的第二控件中显示第二信息的情况下,对第二程序执行目标处理,其中,所述第二控件为用于显示目标联系人发送的会话消息的控件。
可选地,用户输入模块1403,用于所述第一界面中的第三控件接收用户的控件控制输入;
所述处理模块1402,还用于在所述第一界面中的第三控件接收到用户的控件控制输
入的情况下,对第二程序执行目标处理;
其中,所述第三控件为用于处理消息或文件的控件。
可选地,所述处理模块1402,还用于:
在所述第一界面中的第四控件更新为目标控件状态的情况下,对第二程序执行目标处理;
其中,目标控件状态包括以下至少一项:
控件上的进度标识指示目标进度的状态;
控件禁用状态;
控件被使用中的状态;
控件完全或部分隐藏状态;
控件处于目标显示模式的状态。
可选地,所述第一程序包括多媒体播放程序;所述第一界面包括目标多媒体的播放界面,所述目标多媒体包括文本、音频或视频;
所述显示模块1401,还用于在所述播放界面中的第五控件中显示第二目标关键词;
所述处理模块1402,还用于在所述播放界面中的第五控件中显示第二目标关键词的情况下,对第二程序执行目标处理;其中,所述第五控件为用于显示所述目标多媒体的文本信息的控件。
本实施例中,通过显示第一程序的第一界面;在第一界面发生第一程序事件的情况下,对第二程序执行目标处理。如此,在使用第一程序的过程中,当第一程序的第一界面发生第一程序事件时,就对第二程序执行目标处理,无需手动进行程序之间的切换,以处理第二程序,从而可以简化程序处理的操作,提高程序的使用效率。
本申请实施例中的程序处理装置可以是装置,也可以是电子设备中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的程序处理装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的程序处理装置能够实现图1的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选地,如图15所示,本申请实施例还提供一种电子设备1500,包括处理器1501,存储器1502,存储在存储器1502上并可在所述处理器1501上运行的程序或指令,该程
序或指令被处理器1501执行时实现上述程序处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图16为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备1600包括但不限于:射频单元1601、网络模块1602、音频输出单元1603、输入单元1604、传感器1605、显示单元1606、用户输入单元1607、接口单元1608、存储器1609、以及处理器1610等部件。
本领域技术人员可以理解,电子设备1600还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图16中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
显示单元1606,用于显示第一程序的第一界面;
处理器1610,用于在所述第一界面发生第一程序事件的情况下,对第二程序执行目标处理;
其中,所述目标处理是根据所述第一程序事件确定的。
本实施例中,通过显示第一程序的第一界面;在第一界面发生第一程序事件的情况下,对第二程序执行目标处理。如此,在使用第一程序的过程中,当第一程序的第一界面发生第一程序事件时,就对第二程序执行目标处理,无需手动进行程序之间的切换,以处理第二程序,从而可以简化程序处理的操作,提高程序的使用效率。
可选地,所述第一程序事件包括以下至少一项:
所述第一界面中的程序控件中显示目标信息;
所述第一界面中的程序控件接收到控件控制输入;
所述第一界面中的程序控件的控件状态更新为目标控件状态;
所述第一界面中目标数据的数据加载状态为目标加载状态,其中,在所述目标加载状态下,所述目标数据的加载速度小于速度阈值。
可选地,处理器1610还用于执行以下至少一项::
显示第二程序的目标界面,所述目标界面为根据所述第二程序的运行状态确定的界面或用户设置的界面;
触发对第二程序的第一目标程序控件的输入,所述第一目标程序控件为预设的控件或用户设置的控件;
对所述第二程序执行目标处理,所述目标处理为预设的处理或用户设置的处理。
可选地,处理器1610,还用于根据程序事件与程序处理之间的关联关系,确定所述第一程序事件关联的目标处理。
可选地,显示单元1606,还用于显示至少两个程序图标和至少两个程序事件选项;
用户输入单元1607,用于接收用户对所述至少两个程序图标中的目标程序图标和至少两个程序事件选项中的目标程序事件选项的第一输入;
处理器1610,还用于响应于所述第一输入,建立所述目标程序事件选项指示的程序事件与目标程序处理之间的关联关系;
其中,所述目标程序图标为所述第二程序的程序图标;所述目标程序处理是根据所述第二程序的运行状态确定的或者用户设置的。
可选地,在所述第二程序未运行的情况下,处理器1610,还用于:将显示所述第二程序的第二界面确定为目标程序处理,其中,所述第二界面为所述第二程序的程序主界面;处理器1610具体用于:显示所述第二程序的第二界面;
在所述第二程序在后台运行的情况下,处理器1610,还用于:将显示所述第二程序的第三界面确定为目标程序处理,其中,所述第三界面为所述第二程序在后台运行状态下所显示的界面;处理器1610具体用于:显示所述第二程序的第三界面。
可选地,用户输入单元1607,还用于接收用户对所述目标程序图标的第二输入;
处理器1610,还用于响应于所述第二输入,确定所述第二程序的第四界面;将显示所述第四界面确定为目标程序处理;
处理器1610具体用于:显示所述第二程序的第四界面。
可选地,用户输入单元1607,还用于接收用户对所述目标程序图标的第三输入;
处理器1610,还用于响应于所述第三输入,确定程序处理的处理内容;将所述处理内容对应的程序处理确定为目标程序处理;
处理器1610具体用于,对所述第二程序执行所述处理内容对应的程序处理。
可选地,用户输入单元1607,还用于接收用户对所述目标程序图标的第四输入;
显示单元1606,还用于响应于所述第四输入,显示所述第二程序的第五界面,所述第五界面包括第一目标程序控件;
用户输入单元1607,还用于接收用户对所述第一目标程序控件的第五输入;
处理器1610,还用于响应于所述第五输入,将触发对所述第一目标程序控件的输入确定为目标程序处理,并存储所述第一目标程序控件的控件路径;
处理器1610,还用于基于所述第一目标程序控件的控件路径,触发对所述第一目标程序控件的输入。
可选地,用户输入单元1607,还用于接收用户对第一程序的第一界面中的第二目标程序控件的第六输入;
处理器1610,还用于响应于所述第六输入,将所述第二目标程序控件中显示包括第一目标关键词的目标信息确定为第二程序事件,其中,所述第一目标关键词为所述第六输入所输入的关键词;
处理器1610,还用于将所述第二程序事件对应的程序事件选项添加至所述至少两个
程序事件选项中。
可选地,显示单元1606,还用于显示至少两个程序的程序标识,所述程序标识包括程序图标或界面标识,所述界面标识用于指示程序的任一个程序界面;
用户输入单元1607,还用于接收用户对所述至少两个程序的程序标识中的目标程序标识的第七输入;
处理器1610,还用于响应于所述第七输入,将所述目标程序标识对应的程序确定为第二程序。
可选地,所述第一程序包括即时通讯程序;所述第一界面包括与目标联系人的会话界面;
显示单元1606,还用于在所述会话界面中的第一控件中显示第一信息;
处理器1610,还用于在所述会话界面中的第一控件中显示第一信息的情况下,对第二程序执行目标处理,其中,所述第一控件为用于输入信息的控件;
显示单元1606,还用于在所述会话界面中的第二控件中显示第二信息;
处理器1610,还用于在所述会话界面中的第二控件中显示第二信息的情况下,对第二程序执行目标处理,其中,所述第二控件为用于显示目标联系人发送的会话消息的控件。
可选地,用户输入单元1607,还用于所述第一界面中的第三控件接收用户的控件控制输入;
处理器1610,还用于在所述第一界面中的第三控件接收到用户的控件控制输入的情况下,对第二程序执行目标处理;
其中,所述第三控件为用于处理消息或文件的控件。
可选地,处理器1610,还用于:
在所述第一界面中的第四控件更新为目标控件状态的情况下,对第二程序执行目标处理;
其中,目标控件状态包括以下至少一项:
控件上的进度标识指示目标进度的状态;
控件禁用状态;
控件被使用中的状态;
控件完全或部分隐藏状态;
控件处于目标显示模式的状态。
可选地,所述第一程序包括多媒体播放程序;所述第一界面包括目标多媒体的播放界面,所述目标多媒体包括文本、音频或视频;
显示单元1606,还用于在所述播放界面中的第五控件中显示第二目标关键词;
处理器1610,还用于在所述播放界面中的第五控件中显示第二目标关键词的情况下,对第二程序执行目标处理;其中,所述第五控件为用于显示所述目标多媒体的文本信息的控件。
应理解的是,本申请实施例中,输入单元1604可以包括图形处理器(Graphics Processing Unit,GPU)16041和麦克风16042,图形处理器16041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1606可包括显示面板16061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板16061。用户输入单元1607包括触控面板16071以及其他输入设备16072。触控面板16071,也称为触摸屏。触控面板16071可包括触摸检测装置和触摸控制器两个部分。其他输入设备16072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器1609可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器1610可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1610中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述程序处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述程序处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡
献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。
Claims (31)
- 一种程序处理方法,所述方法包括:显示第一程序的第一界面;在所述第一界面发生第一程序事件的情况下,对第二程序执行目标处理;其中,所述目标处理是根据所述第一程序事件确定的。
- 根据权利要求1所述的方法,其中,所述第一程序事件包括以下至少一项:所述第一界面中的程序控件中显示目标信息;所述第一界面中的程序控件接收到控件控制输入;所述第一界面中的程序控件的控件状态更新为目标控件状态;所述第一界面中目标数据的数据加载状态为目标加载状态,其中,在所述目标加载状态下,所述目标数据的加载速度小于速度阈值。
- 根据权利要求1所述的方法,其中,所述对第二程序执行目标处理,包括以下至少一项:显示第二程序的目标界面,所述目标界面为根据所述第二程序的运行状态确定的界面或用户设置的界面;触发对第二程序的第一目标程序控件的输入,所述第一目标程序控件为预设的控件或用户设置的控件;对所述第二程序执行目标处理,所述目标处理为预设的处理或用户设置的处理。
- 根据权利要求1所述的方法,其中,所述对第二程序执行目标处理之前,还包括:根据程序事件与程序处理之间的关联关系,确定所述第一程序事件关联的目标处理。
- 根据权利要求1所述的方法,其中,所述方法还包括:显示至少两个程序图标和至少两个程序事件选项;接收用户对所述至少两个程序图标中的目标程序图标和至少两个程序事件选项中的目标程序事件选项的第一输入;响应于所述第一输入,建立所述目标程序事件选项指示的程序事件与目标程序处理之间的关联关系;其中,所述目标程序图标为所述第二程序的程序图标;所述目标程序处理是根据所述第二程序的运行状态确定的或者用户设置的。
- 根据权利要求5所述的方法,其中,所述建立所述目标程序事件选项指示的程序事件与目标程序处理之间的关联关系之前,还包括:在所述第二程序未运行的情况下,将显示所述第二程序的第二界面确定为目标程序处理,其中,所述第二界面为所述第二程序的程序主界面;所述对第二程序执行目标处理,包括:显示所述第二程序的第二界面;在所述第二程序在后台运行的情况下,将显示所述第二程序的第三界面确定为目标程 序处理,其中,所述第三界面为所述第二程序在后台运行状态下所显示的界面;所述对第二程序执行目标处理,包括:显示所述第二程序的第三界面。
- 根据权利要求5所述的方法,其中,所述建立所述目标程序事件选项指示的程序事件与目标程序处理之间的关联关系之前,还包括:接收用户对所述目标程序图标的第二输入;响应于所述第二输入,确定所述第二程序的第四界面;将显示所述第四界面确定为目标程序处理;所述对第二程序执行目标处理,包括:显示所述第二程序的第四界面。
- 根据权利要求5所述的方法,其中,所述建立所述目标程序事件选项指示的程序事件与目标程序处理之间的关联关系之前,还包括:接收用户对所述目标程序图标的第三输入;响应于所述第三输入,确定程序处理的处理内容;将所述处理内容对应的程序处理确定为目标程序处理;所述对第二程序执行目标处理,包括:对所述第二程序执行所述处理内容对应的程序处理。
- 根据权利要求5所述的方法,其中,所述建立所述目标程序事件选项指示的程序事件与目标程序处理之间的关联关系之前,还包括:接收用户对所述目标程序图标的第四输入;响应于所述第四输入,显示所述第二程序的第五界面,所述第五界面包括第一目标程序控件;接收用户对所述第一目标程序控件的第五输入;响应于所述第五输入,将触发对所述第一目标程序控件的输入确定为目标程序处理,并存储所述第一目标程序控件的控件路径;所述对第二程序执行目标处理,包括:基于所述第一目标程序控件的控件路径,触发对所述第一目标程序控件的输入。
- 根据权利要求5所述的方法,其中,所述方法还包括:接收用户对第一程序的第一界面中的第二目标程序控件的第六输入;响应于所述第六输入,将所述第二目标程序控件中显示包括第一目标关键词的目标信息确定为第二程序事件,其中,所述第一目标关键词为所述第六输入所输入的关键词;将所述第二程序事件对应的程序事件选项添加至所述至少两个程序事件选项中。
- 根据权利要求1所述的方法,其中,所述对第二程序执行目标处理之前,还包括:显示至少两个程序的程序标识,所述程序标识包括程序图标或界面标识,所述界面标识用于指示程序的任一个程序界面;接收用户对所述至少两个程序的程序标识中的目标程序标识的第七输入;响应于所述第七输入,将所述目标程序标识对应的程序确定为第二程序。
- 根据权利要求1所述的方法,其中,所述第一程序包括即时通讯程序;所述第一界面包括与目标联系人的会话界面;所述在所述第一界面发生第一程序事件的情况下,对第二程序执行目标处理,包括:在所述会话界面中的第一控件中显示第一信息的情况下,对第二程序执行目标处理,其中,所述第一控件为用于输入信息的控件;或者,在所述会话界面中的第二控件中显示第二信息的情况下,对第二程序执行目标处理,其中,所述第二控件为用于显示目标联系人发送的会话消息的控件。
- 根据权利要求1所述的方法,其中,所述在所述第一界面发生第一程序事件的情况下,对第二程序执行目标处理,包括:在所述第一界面中的第三控件接收到用户的控件控制输入的情况下,对第二程序执行目标处理;其中,所述第三控件为用于处理消息或文件的控件。
- 根据权利要求1所述的方法,其中,所述在所述第一界面发生第一程序事件的情况下,对第二程序执行目标处理,包括:在所述第一界面中的第四控件更新为目标控件状态的情况下,对第二程序执行目标处理;其中,目标控件状态包括以下至少一项:控件上的进度标识指示目标进度的状态;控件禁用状态;控件被使用中的状态;控件完全或部分隐藏状态;控件处于目标显示模式的状态。
- 根据权利要求1所述的方法,其中,所述第一程序包括多媒体播放程序;所述第一界面包括目标多媒体的播放界面,所述目标多媒体包括文本、音频或视频;所述在所述第一界面发生第一程序事件的情况下,对第二程序执行目标处理,包括:在所述播放界面中的第五控件中显示第二目标关键词的情况下,对第二程序执行目标处理;其中,所述第五控件为用于显示所述目标多媒体的文本信息的控件。
- 一种程序处理装置,所述装置包括:显示模块,用于显示第一程序的第一界面;处理模块,用于在所述第一界面发生第一程序事件的情况下,对第二程序执行目标处理;其中,所述目标处理是根据所述第一程序事件确定的。
- 根据权利要求16所述的装置,其中,所述第一程序事件包括以下至少一项:所述第一界面中的程序控件中显示目标信息;所述第一界面中的程序控件接收到控件控制输入;所述第一界面中的程序控件的控件状态更新为目标控件状态;所述第一界面中目标数据的数据加载状态为目标加载状态,其中,在所述目标加载状态下,所述目标数据的加载速度小于速度阈值。
- 根据权利要求16所述的装置,其中,所述处理模块还用于执行以下至少一项:显示第二程序的目标界面,所述目标界面为根据所述第二程序的运行状态确定的界面或用户设置的界面;触发对第二程序的第一目标程序控件的输入,所述第一目标程序控件为预设的控件或用户设置的控件;对所述第二程序执行目标处理,所述目标处理为预设的处理或用户设置的处理。
- 根据权利要求16所述的装置,其中,所述处理模块,还用于根据程序事件与程序处理之间的关联关系,确定所述第一程序事件关联的目标处理。
- 根据权利要求16所述的装置,其中,所述显示模块,还用于显示至少两个程序图标和至少两个程序事件选项;所述装置还包括:用户输入模块,用于接收用户对所述至少两个程序图标中的目标程序图标和至少两个程序事件选项中的目标程序事件选项的第一输入;所述处理模块,还用于响应于所述第一输入,建立所述目标程序事件选项指示的程序事件与目标程序处理之间的关联关系;其中,所述目标程序图标为所述第二程序的程序图标;所述目标程序处理是根据所述第二程序的运行状态确定的或者用户设置的。
- 根据权利要求20所述的装置,其中,在所述第二程序未运行的情况下,所述处理模块,还用于:将显示所述第二程序的第二界面确定为目标程序处理,其中,所述第二界面为所述第二程序的程序主界面;所述处理模块具体用于:显示所述第二程序的第二界面;在所述第二程序在后台运行的情况下,所述处理模块,还用于:将显示所述第二程序的第三界面确定为目标程序处理,其中,所述第三界面为所述第二程序在后台运行状态下所显示的界面;所述处理模块具体用于:显示所述第二程序的第三界面。
- 根据权利要求21所述的装置,其中,所述用户输入模块,还用于接收用户对所述目标程序图标的第二输入;所述处理模块,还用于响应于所述第二输入,确定所述第二程序的第四界面;将显示所述第四界面确定为目标程序处理;所述处理模块具体用于:显示所述第二程序的第四界面。
- 根据权利要求20所述的装置,其中,所述用户输入模块,还用于接收用户对所述目标程序图标的第三输入;所述处理模块,还用于响应于所述第三输入,确定程序处理的处理内容;将所述处理 内容对应的程序处理确定为目标程序处理;所述处理模块具体用于:对所述第二程序执行所述处理内容对应的程序处理。
- 根据权利要求21所述的装置,其中,所述用户输入模块,还用于接收用户对所述目标程序图标的第四输入;所述显示模块,还用于响应于所述第四输入,显示所述第二程序的第五界面,所述第五界面包括第一目标程序控件;所述用户输入模块,还用于接收用户对所述第一目标程序控件的第五输入;所述处理模块,还用于响应于所述第五输入,将触发对所述第一目标程序控件的输入确定为目标程序处理,并存储所述第一目标程序控件的控件路径;所述处理模块,还用于基于所述第一目标程序控件的控件路径,触发对所述第一目标程序控件的输入。
- 根据权利要求20所述的装置,其中,所述用户输入模块,还用于接收用户对第一程序的第一界面中的第二目标程序控件的第六输入;所述处理模块,还用于响应于所述第六输入,将所述第二目标程序控件中显示包括第一目标关键词的目标信息确定为第二程序事件,其中,所述第一目标关键词为所述第六输入所输入的关键词;所述处理模块,还用于将所述第二程序事件对应的程序事件选项添加至所述至少两个程序事件选项中。
- 根据权利要求16所述的装置,其中,所述显示模块,还用于显示至少两个程序的程序标识,所述程序标识包括程序图标或界面标识,所述界面标识用于指示程序的任一个程序界面;用户输入模块,用于接收用户对所述至少两个程序的程序标识中的目标程序标识的第七输入;所述处理模块,还用于响应于所述第七输入,将所述目标程序标识对应的程序确定为第二程序。
- 根据权利要求16所述的装置,其中,所述第一程序包括即时通讯程序;所述第一界面包括与目标联系人的会话界面;所述显示模块,还用于在所述会话界面中的第一控件中显示第一信息;所述处理模块,还用于在所述会话界面中的第一控件中显示第一信息的情况下,对第二程序执行目标处理,其中,所述第一控件为用于输入信息的控件;所述显示模块,还用于在所述会话界面中的第二控件中显示第二信息;所述处理模块,还用于在所述会话界面中的第二控件中显示第二信息的情况下,对第二程序执行目标处理,其中,所述第二控件为用于显示目标联系人发送的会话消息的控件。
- 根据权利要求16所述的装置,其中,用户输入模块,用于所述第一界面中的第三控件接收用户的控件控制输入;所述处理模块,还用于在所述第一界面中的第三控件接收到用户的控件控制输入的情况下,对第二程序执行目标处理;其中,所述第三控件为用于处理消息或文件的控件。
- 根据权利要求16所述的装置,其中,所述处理模块,还用于:在所述第一界面中的第四控件更新为目标控件状态的情况下,对第二程序执行目标处理;其中,目标控件状态包括以下至少一项:控件上的进度标识指示目标进度的状态;控件禁用状态;控件被使用中的状态;控件完全或部分隐藏状态;控件处于目标显示模式的状态。
- 根据权利要求16所述的装置,其中,所述第一程序包括多媒体播放程序;所述第一界面包括目标多媒体的播放界面,所述目标多媒体包括文本、音频或视频;所述显示模块,还用于在所述播放界面中的第五控件中显示第二目标关键词;所述处理模块,还用于在所述播放界面中的第五控件中显示第二目标关键词的情况下,对第二程序执行目标处理;其中,所述第五控件为用于显示所述目标多媒体的文本信息的控件。
- 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-15任一项所述的程序处理方法的步骤。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310259422.X | 2023-03-17 | ||
| CN202310259422.XA CN116244031A (zh) | 2023-03-17 | 2023-03-17 | 程序处理方法、装置及电子设备 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2024193371A1 true WO2024193371A1 (zh) | 2024-09-26 |
Family
ID=86629552
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2024/080888 Ceased WO2024193371A1 (zh) | 2023-03-17 | 2024-03-11 | 程序处理方法、装置及电子设备 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN116244031A (zh) |
| WO (1) | WO2024193371A1 (zh) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116244031A (zh) * | 2023-03-17 | 2023-06-09 | 维沃移动通信有限公司 | 程序处理方法、装置及电子设备 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112148178A (zh) * | 2020-09-30 | 2020-12-29 | 维沃移动通信有限公司 | 应用切换方法、装置、电子设备及可读存储介质 |
| WO2022012664A1 (zh) * | 2020-07-17 | 2022-01-20 | 维沃移动通信有限公司 | 后台程序控制方法、装置和电子设备 |
| CN114296596A (zh) * | 2021-12-31 | 2022-04-08 | 维沃移动通信有限公司 | 信息处理方法、装置、电子设备及介质 |
| CN116244031A (zh) * | 2023-03-17 | 2023-06-09 | 维沃移动通信有限公司 | 程序处理方法、装置及电子设备 |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100435103C (zh) * | 2005-12-30 | 2008-11-19 | 英业达股份有限公司 | 电子通讯装置的应用程序切换系统及方法 |
| KR20160097393A (ko) * | 2013-06-07 | 2016-08-18 | 삼성전자주식회사 | 프로그램 호출 방법 및 그 전자 장치 |
| CN112905278A (zh) * | 2021-02-02 | 2021-06-04 | 展讯通信(天津)有限公司 | 一种应用程序切换方法及装置 |
-
2023
- 2023-03-17 CN CN202310259422.XA patent/CN116244031A/zh active Pending
-
2024
- 2024-03-11 WO PCT/CN2024/080888 patent/WO2024193371A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2022012664A1 (zh) * | 2020-07-17 | 2022-01-20 | 维沃移动通信有限公司 | 后台程序控制方法、装置和电子设备 |
| CN112148178A (zh) * | 2020-09-30 | 2020-12-29 | 维沃移动通信有限公司 | 应用切换方法、装置、电子设备及可读存储介质 |
| CN114296596A (zh) * | 2021-12-31 | 2022-04-08 | 维沃移动通信有限公司 | 信息处理方法、装置、电子设备及介质 |
| CN116244031A (zh) * | 2023-03-17 | 2023-06-09 | 维沃移动通信有限公司 | 程序处理方法、装置及电子设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116244031A (zh) | 2023-06-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP2172837B1 (en) | Touch input device and method for portable device | |
| CN113360238A (zh) | 消息处理方法、装置、电子设备和存储介质 | |
| JP2023527229A (ja) | 情報送信方法、装置及び電子機器 | |
| CN112540821B (zh) | 信息发送方法和电子设备 | |
| WO2022048633A1 (zh) | 显示方法、装置和电子设备 | |
| CN113835583A (zh) | 显示方法、装置及电子设备 | |
| CN115051965B (zh) | 一种控制视频播放的方法、装置、计算设备及存储介质 | |
| WO2022161431A1 (zh) | 显示方法、装置及电子设备 | |
| CN108614655B (zh) | 分屏显示方法、装置、存储介质及电子设备 | |
| CN111984130B (zh) | 快捷操作方法、装置及电子设备 | |
| WO2022156668A1 (zh) | 信息处理方法和电子设备 | |
| US12363227B2 (en) | Video call method and apparatus | |
| CN112083854A (zh) | 应用程序的运行方法及装置 | |
| CN111694490A (zh) | 设置方法、装置及电子设备 | |
| WO2022089481A1 (zh) | 信息处理方法、装置及电子设备 | |
| WO2024193371A1 (zh) | 程序处理方法、装置及电子设备 | |
| CN111324262B (zh) | 一种应用界面控制方法、装置、终端及介质 | |
| CN112764862A (zh) | 应用程序的控制方法、装置及电子设备 | |
| WO2023040845A1 (zh) | 消息发送方法、装置及电子设备 | |
| WO2023030130A1 (zh) | 会话处理方法、装置及电子设备 | |
| WO2022253182A1 (zh) | 通信方法、装置、电子设备以及可读存储介质 | |
| CN104866356B (zh) | 一种实现快速启动app的方法 | |
| CN112764628B (zh) | 内容显示方法、装置、电子设备和存储介质 | |
| CN117406906A (zh) | 屏幕处理方法、装置、电子设备及计算机可读存储介质 | |
| WO2023109831A1 (zh) | 消息处理方法、装置和电子设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 24773938 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |