Interface processing method and device, equipment and medium
By rejecting the interface return operation from the application's main interface and providing a prompt, the problem of repeated user operations caused by the application exiting to the device's main interface is solved, improving the flexibility of the application's interface return handling and the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING CO WHEELS TECH CO LTD
- Filing Date
- 2022-03-29
- Publication Date
- 2026-06-16
Smart Images

Figure CN115437729B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of terminal control technology, and in particular to a method, apparatus, device and medium for processing an interface. Background Technology
[0002] With the advancement of computer technology, applications that meet various user needs have become increasingly diversified. As applications become more widespread, users also have higher requirements for the flexibility of application services.
[0003] In related technologies, each interface of an application provides an interface return interface. If it is detected that the user has performed an interface return operation, the interface return interface is called to return to the previous interface.
[0004] However, in some scenarios, if the current page when performing the interface return operation is the application's main interface, the user will exit the application's home page and return to the device's main interface. When the device's main interface is a blank page or a page unrelated to the user's service scenario, the user still needs to perform the operation of entering the corresponding application, resulting in low service flexibility of the application. Summary of the Invention
[0005] To address the aforementioned technical problems, this disclosure provides a method, apparatus, device, and medium for processing interfaces. For returning from the main interface, it executes a "reject return" operation, preventing users from having to re-enter the application after exiting the main interface. Furthermore, without responding to the interface return request, it prompts the user that it cannot return. This provides a prompt service to the user without exiting the main application interface, avoiding repeated interface return operations, improving the flexibility of application interface return processing, and enhancing the user's operating experience.
[0006] This disclosure provides a method for processing an interface, the method comprising: in response to an interface return operation, determining whether the current interface is the main interface of an application; if it is the main interface of the application, refusing to perform the interface return operation; and sending a prompt indicating the reason for refusing to perform the interface return operation.
[0007] This disclosure also provides an interface processing apparatus, the apparatus comprising: a judgment module, configured to determine whether the current interface is the main interface of an application in response to an interface return operation; a rejection module, configured to reject the interface return operation when it is the main interface of the application; and a prompt processing module, configured to send a prompt indicating the reason for rejecting the interface return operation.
[0008] This disclosure also provides an electronic device, the electronic device comprising: a processor; a memory for storing executable instructions of the processor; the processor being configured to read the executable instructions from the memory and execute the instructions to implement a processing method for an interface as provided in this disclosure.
[0009] This disclosure also provides a computer-readable storage medium storing a computer program for executing a processing method of an interface as provided in this disclosure.
[0010] The technical solution provided in this disclosure has the following advantages compared with the prior art:
[0011] The interface processing scheme provided in this embodiment responds to an interface return operation by determining whether the current interface is the application's main interface. If the current interface is the application's main interface, the interface return operation is refused, and a prompt indicating the reason for refusing the interface return operation is sent. Therefore, for return operations from the main interface, a return refusal operation is executed, avoiding the need for the user to re-enter the corresponding application after exiting the application's main interface. Furthermore, by not responding to the interface return operation and prompting the user that it cannot return, a prompt service is provided to the user without exiting the application's main interface, avoiding the user's repeated execution of the interface return operation, improving the flexibility of application interface return processing, and enhancing the user's operating experience. Attached Figure Description
[0012] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0013] Figure 1 This is a flowchart of an interface processing method according to an embodiment of the present disclosure;
[0014] Figure 2 This is a schematic diagram of a scenario for an interface prompt according to an embodiment of the present disclosure;
[0015] Figure 3 This is a flowchart of a method for processing an interface according to another embodiment of the present disclosure;
[0016] Figure 4 This is a flowchart of a method for processing an interface according to another embodiment of the present disclosure;
[0017] Figure 5 This is a flowchart of a method for processing an interface according to another embodiment of the present disclosure;
[0018] Figure 6 This is a flowchart of a method for processing an interface according to another embodiment of the present disclosure;
[0019] Figure 7 This is a schematic diagram of a scenario for an interface prompt according to another embodiment of the present disclosure;
[0020] Figure 8 This is a schematic diagram of a scenario for an interface prompt according to another embodiment of the present disclosure;
[0021] Figure 9 A schematic diagram of the structure of an interface processing device provided in an embodiment of this disclosure;
[0022] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0023] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0024] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0025] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0026] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0027] As mentioned in the background section above, it is clearly inappropriate for applications that users do not want to exit to still respond to the interface return operation on the application's main screen. For example, for some in-vehicle terminals, a service application is installed on the terminal, so it is obviously meaningless to exit the service application's main screen, as the user would need to re-enter the service application. Similarly, some users with special needs may also require not to exit the relevant application; for instance, code editors do not want to exit the code compilation application while the code is running.
[0028] Therefore, in order to meet the above-mentioned requirement of not exiting the application, an interface processing method is proposed in the embodiments of this disclosure. In this method, if the current interface is the main interface of the application, the interface return operation is not responded to, that is, the return operation is rejected. This avoids the user having to perform the operation of entering the corresponding application again after exiting the main interface of the application. In addition, in order to avoid the user repeatedly performing the return operation, the user is also prompted to reject the return operation, thereby avoiding the user's repeated execution of the interface return operation, so as to improve the flexibility of the service and improve the user's operating experience.
[0029] The interface processing method of this disclosure embodiment will be described below with reference to specific embodiments. The interface processing method in this embodiment can be applied to any electronic device with an application installed, including but not limited to smartphones, in-vehicle devices, and laptops.
[0030] Figure 1 This is a flowchart of an interface processing method according to an embodiment of the present disclosure, such as... Figure 1 As shown, the method includes:
[0031] Step 101: In response to the interface return operation, determine whether the current interface is the application's main interface.
[0032] Specifically, if a user triggers a preset interface return control, such as the "back" control, the interface return operation is obtained; or, if a user performs a preset interface return finger operation, the interface return operation is obtained, and so on. The methods for executing the interface return operation differ in different application scenarios, and will not be listed here.
[0033] In the embodiments of this disclosure, if a screen return operation is received, in order to avoid exiting the corresponding application, it is determined whether the current screen is the application's main screen, which is also the application's home screen. If the screen return operation is responded to on the application's home screen, the corresponding application will exit.
[0034] It should be noted that the method for determining whether the current screen is the main screen of the application differs in different application scenarios. Examples are shown below:
[0035] In some possible embodiments, the main interface identification information of each application is stored in a preset database in advance. The main interface identification information includes the size information of the main interface, interface layout features, interface number and other information that can uniquely identify the main interface of the application.
[0036] In this embodiment, the reference interface identification information of the current interface is identified, such as the layout features of the reference interface of the current interface, and the target application to which the current interface belongs is determined. Then, the main interface identification information corresponding to the target application is obtained by querying the preset database, and it is determined whether the reference interface identification information is consistent with the main interface identification information. If it is consistent with the main interface identification information, the current interface is determined to be the main interface of the application.
[0037] In some other possible embodiments, in response to a screen return operation, the activity class information of the current page distributed by the system is obtained, and it is determined whether the activity class information is the main activity of the application. If so, the current screen is determined to be the main screen of the application.
[0038] Step 102: If it is the main interface of the application, then refuse to perform the interface return operation and determine the prompt method corresponding to the current interface.
[0039] In this embodiment, if the current interface is the application's main interface, then no return operation is responded to, and the interface return operation is not executed. For example, the value of the interface return interface is directly returned as false instead of executing the interface return operation.
[0040] To prevent users from mistakenly believing that the application is not performing the back operation because it has not recognized the interface back operation it sent, and thus repeatedly performing the interface back operation, this embodiment further performs a back rejection prompt operation, so that the user knows that the interface back operation has been recognized, but is not performed because it is the main interface of the application.
[0041] To further enhance the flexibility of prompts, the prompting method corresponding to the current interface can be determined first, so that better reminders can be provided based on the appropriate prompting method. This prompting method includes, but is not limited to, one or more of the following: voice prompts, interface display prompts (such as flashing interface prompts), and pop-up prompts.
[0042] Step 103: Send an instruction to refuse to execute the operation and return a prompt indicating the reason for the operation.
[0043] In this embodiment, a prompt indicating the reason for refusing to perform the interface return operation is sent to intuitively inform the user that the current return operation has been rejected.
[0044] The way prompts appear varies depending on the application scenario.
[0045] In some possible embodiments, a prompting method corresponding to the current interface is determined, and then a prompt indicating the reason for refusing to perform the operation returned by the interface is sent according to the prompting method. The prompting method for indicating the reason for refusing to perform the operation returned by the interface varies in different application scenarios, as illustrated below:
[0046] In one embodiment of this disclosure, it is easy to understand that different prompting methods correspond to different prompting objects. For example, the prompting object corresponding to a voice reminder is a voice message, etc. The prompting object is the subject that makes the reminder. In this embodiment, the prompting object corresponding to the prompting method and the first prompting parameter value corresponding to the prompting object are determined. The value of the first prompting parameter affects the presentation effect of the prompting object. For example, when the prompting object is a voice message, the value of the first prompting parameter can be a volume value, etc. Based on the first prompting parameter value and the prompting object, a rejection return prompt operation is performed so that the user knows that the current interface is the application's main interface and rejects the interface return operation.
[0047] Of course, in some possible embodiments, the user may not notice the "refuse to return" prompt operation. Therefore, if the interface return operation is detected again, the reminder effect is strengthened by changing the first prompt parameter value to obtain a second prompt parameter value. The prompt level of the second prompt parameter value is higher than that of the first prompt parameter value. For example, if the prompt parameter value and the prompt level are directly proportional (such as the prompt parameter value including the prompt volume value), then the value corresponding to the second prompt parameter value is greater than the first prompt parameter value. For example, if the first prompt parameter value corresponds to a volume of 1, then the second parameter value corresponds to a volume of 2. Thus, by performing the "refuse to return" prompt operation through the second prompt parameter value and the prompt object, the prompt effect will be achieved.
[0048] For example, if there's a correspondence between different prompt parameter values and prompt levels (e.g., when prompt parameters include a color parameter, color 'a' has a lower prompt level than color 'b'), then based on this correspondence, a color with a higher prompt level than the color corresponding to the first prompt parameter value is retrieved and used as the second prompt parameter value. For instance, if the first prompt parameter value corresponds to a rendering color of pink, then the second parameter value corresponds to a red color. Since red is more conspicuous than pink, using the second prompt parameter value and the prompt object to perform a rejection and return prompt operation will achieve the desired prompting effect.
[0049] In this embodiment, the magnitude of the change in the first prompt parameter value can be determined based on the number of interface return operations detected within a preset time period, wherein the more times the operation is performed, the larger the magnitude value will be.
[0050] In other possible embodiments, the application scenario may change, and the user may wish to remove the restriction preventing them from exiting the application. In this case, after performing the "refuse to return" prompt operation based on the first prompt parameter value and the prompt object, a prompt message asking whether to cancel the exit restriction can also be displayed on the current interface. This prompt message includes a "cancel control" to cancel the restriction on returning, such as... Figure 2 As shown, a pop-up window can be displayed asking whether to cancel the exit restriction. In response to the user's triggering of the cancel control, the interface can be directly called to exit the application.
[0051] In summary, the interface processing method implemented in this disclosure, in response to an interface return operation, determines whether the current interface is the application's main interface. If the current interface is the application's main interface, the interface return operation is rejected, and a prompt indicating the reason for rejecting the interface return operation is sent. Therefore, for return operations from the main interface, a rejection operation is executed, avoiding the need for the user to re-enter the corresponding application after exiting the application's main interface. Furthermore, by not responding to the interface return operation and prompting the user that it cannot return, a prompt service is provided to the user without exiting the application's main interface, avoiding the user's repeated execution of the interface return operation, improving the flexibility of application interface return processing, and enhancing the user's operating experience.
[0052] Based on the above embodiments, it should be noted that in different application scenarios, when the prompting method corresponding to the current interface is different, the prompting object corresponding to the determined prompting method and the first prompting parameter value corresponding to the prompting object are different. In order to make the processing process of the interface of this disclosure clearer to those skilled in the art, the following is an exemplary description in conjunction with specific embodiments:
[0053] First, the prompting method should be determined differently for the current interface in different application scenarios, as shown in the following example:
[0054] In one embodiment of this disclosure, considering that different device types have different prompting effects for different prompting methods, for example, if the device type is a mobile phone, the prompting method of interface prompting will be relatively better; for example, if the device type is a smart bracelet, since it is inconvenient for the user to view, the prompting method of voice prompting will be relatively better, etc.
[0055] In this embodiment, as Figure 3 As shown, determine the prompting method corresponding to the current interface, including:
[0056] Step 301: Identify the device type of the current interface.
[0057] In this embodiment, the download information of the application corresponding to the current interface can be obtained, the device identifier can be extracted based on the download information, and the device type can be determined based on the device identifier.
[0058] Step 302: Query the preset correspondence to determine the prompt method corresponding to the device type.
[0059] It is understandable that a correspondence between device types and prompt types is pre-built based on experimental data, and the prompt method corresponding to the device type is determined by querying the pre-built correspondence.
[0060] In one embodiment of this disclosure, considering that users' use of the application follows a time pattern and is generally used within a certain time period, if the interface return operation is obtained at other times, it may be a mistake. Therefore, in order to balance disturbing the user and the effectiveness of the reminder, this embodiment determines the prompt method based on the time of the interface return operation.
[0061] In this embodiment, as Figure 4 As shown, determine the prompting method corresponding to the current interface, including:
[0062] Step 401: Obtain the preset running time period of the application corresponding to the current interface. The preset running time period is a time period determined based on the user's historical usage records of the application, where the usage frequency is higher than a preset frequency threshold.
[0063] The preset running time period can be obtained based on the user's usage habits or it can be user-defined. In one embodiment of this disclosure, the preset running time period can be extracted from the user's historical usage records of the application, and the time period with a usage frequency higher than a preset frequency threshold can be used as the preset running time period.
[0064] Step 402: Obtain the operation time point corresponding to the interface return operation.
[0065] In this embodiment, when returning from the interface, the time acquisition interface can be called to obtain the system time as the operation time point.
[0066] Step 403: If the operation time point belongs to the preset running time period, then determine the prompt method corresponding to the current interface as the first preset prompt method.
[0067] If the operation time period falls within a preset operating time period—that is, when the user uses the application during their usual usage time—the operation within this preset operating time period can be considered as the user actively and normally using the application. Therefore, the prompt method corresponding to the current interface is determined as the first preset prompt method. This first preset prompt method can be a high-level prompt method such as a voice prompt.
[0068] Step 404: If the operation time does not belong to the preset running time period, then the prompt method corresponding to the current interface is determined to be the second preset prompt method, wherein the prompt level of the second preset prompt method is lower than the prompt level of the first preset prompt method.
[0069] The prompt level of each preset prompt method can be pre-defined. The higher the prompt level, the stronger the corresponding prompt intensity and the better the prompt effect.
[0070] In this embodiment, if the operation time does not fall within the preset running time period, the current interface return operation may be due to a mistake, as the operation is not within the user's usual operating time period. Therefore, to avoid disturbing the user with the prompt, the prompt method corresponding to the current interface is determined to be the second preset prompt method. The second preset prompt method can be a pop-up reminder or an interface display prompt, which are relatively low-level prompt methods. Thus, while prompting the user, it avoids disturbing the user when the user accidentally triggers the prompt. For example, when the user is in a meeting or driving, a voice reminder would not affect the user.
[0071] Furthermore, after determining the prompting method, the prompting object corresponding to the prompting method and the first prompting parameter value corresponding to the prompting object are determined.
[0072] The following explanation will take voice prompts and UI-rendered prompts as examples.
[0073] In one embodiment of this disclosure, such as Figure 5 As shown, if the prompting method is voice prompting, determine the prompting object corresponding to the prompting method and the first prompting parameter value corresponding to the prompting object, including:
[0074] Step 501: Determine the preset rejection voice message as the prompt object.
[0075] In this embodiment, a preset voice message that refuses to return is determined as the prompt object, such as "Hello, this is the homepage and you cannot go back."
[0076] Step 502: Determine the first prompt parameter value as the playback parameter value corresponding to the preset rejection voice message.
[0077] The playback parameter values include, but are not limited to, one or more of the following: number of playbacks, playback volume, playback speed, and playback timbre.
[0078] In this embodiment, the playback parameters corresponding to the preset rejection voice information are preset by default. Of course, the playback parameters can also be manually selected by the user, which is not restricted here.
[0079] In one embodiment of this disclosure, such as Figure 6 As shown, if the prompt method is the interface rendering prompt method, determine the prompt object corresponding to the prompt method and the first prompt parameter value corresponding to the prompt object, including:
[0080] Step 601: Identify the element type of each candidate element in the current interface.
[0081] In this embodiment, if the prompting method is the interface rendering prompting method, the interface rendering prompting method can be understood as the interface display prompting, which prompts the user by controlling the changes in the display of the interface.
[0082] Identify the element type of each candidate element on the current interface. This can be done by using image recognition algorithms to identify the image features of each element and determining the element type based on those features. Element types include, but are not limited to, background layers, page frames, and page content.
[0083] Step 602: Determine the target candidate element with the preset element type as the prompt object.
[0084] In this embodiment, a preset type is predetermined as the prompt object, such as setting the page frame as a preset type.
[0085] Step 603: Determine the rendering parameter value of the target candidate element as the first prompt parameter value.
[0086] The rendering parameter values include, but are not limited to, rendering color, rendering cycle, rendering frequency, rendering duration, and rendering animation.
[0087] For example, such as Figure 7 As shown, if the target candidate element is a page frame and the rendering parameter values include rendering color and rendering cycle, then the page frame is controlled to display the corresponding color according to the rendering cycle. Thus, the user can know that the current page refuses to return based on the blinking of the page frame (the color change is represented by the change of grayscale value in the figure).
[0088] In one embodiment of this disclosure, if the prompt method is a pop-up reminder, then the pop-up can be displayed on the current interface, such as... Figure 8As shown, a notification of refusal to return is displayed in a pop-up window. In this embodiment, if no user confirmation is obtained within a preset time, it indicates that the user may not have noticed the prompt. Therefore, the prompt method can be switched to voice prompts, etc., to remind the user in a timely manner and avoid the user repeatedly performing the interface return operation.
[0089] In summary, the interface processing method of this disclosure embodiment flexibly selects the prompting method, as well as the prompting object and prompting parameter value corresponding to the prompting method, according to the needs of the scenario, thus balancing the effectiveness of the prompts and the user experience.
[0090] To implement the above embodiments, this disclosure also proposes an interface processing apparatus.
[0091] Figure 9 This is a schematic diagram of the structure of an interface processing device provided in an embodiment of the present disclosure. This device can be implemented by software and / or hardware, and is generally integrated into an electronic device for interface processing. Figure 9 As shown, the device includes: a judgment module 910, a rejection module 920, and a prompt processing module 930, wherein,
[0092] The judgment module 910 is used to determine whether the current interface is the application's main interface in response to the interface return operation;
[0093] The rejection module 920 is used to refuse to perform a screen return operation when the application's main screen is active.
[0094] The prompt processing module 930 is used to send a prompt indicating that the operation is refused and the interface returns the reason.
[0095] In one embodiment of this disclosure, the judgment module 910 identifies the reference interface identification information of the current interface and determines the target application to which the current interface belongs. It queries a preset database to obtain the main interface identification information corresponding to the target application and determines whether the reference interface identification information is consistent with the main interface identification information. If it is consistent with the main interface identification information, it determines that the current interface is the application's main interface.
[0096] In one embodiment of this disclosure, the prompt processing module 930 determines the prompt method corresponding to the current interface, and then sends a prompt indicating the reason for refusing to perform the interface return operation according to the prompt method. In another embodiment of this disclosure, the prompt processing module 930 identifies the device type of the current interface and queries a preset correspondence to determine the prompt method corresponding to the device type.
[0097] In one embodiment of this disclosure, the prompt processing module 930 obtains the preset running time period of the application corresponding to the current interface. The preset running time period is a time period determined based on the user's historical usage records of the application where the usage frequency exceeds a preset frequency threshold. The module obtains the operation time point corresponding to the interface return operation. If the operation time point belongs to the preset running time period, the prompt method corresponding to the current interface is determined to be the first preset prompt method. If the operation time point does not belong to the preset running time period, the prompt method corresponding to the current interface is determined to be the second preset prompt method. The prompt level of the second preset prompt method is lower than that of the first preset prompt method.
[0098] In one embodiment of this disclosure, the prompt processing module 930 determines the prompt object corresponding to the prompt method and the first prompt parameter value corresponding to the prompt object, and performs a rejection return prompt operation based on the first prompt parameter value and the prompt object.
[0099] If the prompt method is voice prompt, the prompt processing module 930 determines the preset rejection return voice message as the prompt object;
[0100] The playback parameter value corresponding to the preset rejection voice message is determined to be the first prompt parameter value.
[0101] In one embodiment of this disclosure, if the prompting method is an interface rendering prompting method, the prompting processing module 930 identifies the element type of each candidate element in the current interface, determines the target candidate element with the element type of the preset type as the prompting object, and determines the rendering parameter value of the target candidate element as the first prompting parameter value.
[0102] In one embodiment of this disclosure, when the prompt processing module 930 detects the interface return operation again, it changes the first prompt parameter value to obtain the second prompt parameter value, and then performs a refuse return prompt operation according to the second prompt parameter value and the prompt object.
[0103] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0104] The interface processing apparatus provided in this disclosure can execute the interface processing method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of executing the method.
[0105] In summary, the interface processing device of this disclosure, in response to an interface return operation, determines whether the current interface is the application's main interface. If the current interface is the application's main interface, it refuses to execute the interface return operation and then sends a prompt indicating the reason for refusing to execute the interface return operation. Therefore, for return operations from the main interface, it executes a refusal to return operation, avoiding the need for the user to re-enter the corresponding application after exiting the application's main interface. Furthermore, by not responding to the interface return operation and prompting the user that it cannot return, it provides a prompt service to the user without exiting the application's main interface, avoiding the user's repeated execution of the interface return operation, improving the flexibility of application interface return processing, and enhancing the user's operating experience.
[0106] To implement the above embodiments, this disclosure also proposes a computer program product, including a computer program / instructions, which, when executed by a processor, implements the interface processing method in the above embodiments.
[0107] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure.
[0108] The following is a detailed reference. Figure 10 The diagram illustrates a structural schematic suitable for implementing the electronic device 1000 in the embodiments of this disclosure. The electronic device 1000 in the embodiments of this disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 10 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0109] like Figure 10 As shown, the electronic device 1000 may include a processor (e.g., a central processing unit, a graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a memory 1008 into a random access memory (RAM) 1003. The RAM 1003 also stores various programs and data required for the operation of the electronic device 1000. The processor 1001, ROM 1002, and RAM 1003 are interconnected via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0110] Typically, the following devices can be connected to the I / O interface 1005: including, for example, a screen according to embodiments of this disclosure. Although Figure 10An electronic device 1000 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0111] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 1009, or installed from memory 1008, or installed from ROM 1002. When the computer program is executed by processor 1001, it performs the functions defined in the methods of embodiments of this disclosure.
[0112] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0113] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0114] The aforementioned computer-readable medium carries one or more programs. When these programs are executed by the electronic device, the electronic device: in response to a screen return operation, determines whether the current screen is the application's main screen. If the current screen is the application's main screen, it refuses to execute the screen return operation and sends a prompt indicating the reason for refusing to execute the screen return operation. Thus, for screen return operations, a refusal to return operation is executed, avoiding the need for the user to re-enter the corresponding application after exiting the application's main screen. Furthermore, by not responding to the screen return operation and prompting the user that it cannot return, a prompt service is provided to the user without exiting the application's main screen, improving the flexibility of application screen return processing, avoiding repeated screen return operations by the user, and enhancing the user's operating experience.
[0115] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0116] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units are not, in some cases, intended to limit the specific unit.
[0117] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0118] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0119] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A method for processing an interface, characterized in that, Includes the following steps: In response to a screen return operation, determine whether the current screen is the application's main screen; If it is the main interface of the application, then the interface return operation will be refused; A prompt indicating the reason for refusing to execute the interface return operation is sent according to the prompt method corresponding to the current interface, wherein the prompt method is determined based on the operation time point corresponding to the interface return operation and / or the device type of the current interface.
2. The method as described in claim 1, characterized in that, The step of determining whether the current interface is the application's main interface includes: Identify the reference interface identifier information of the current interface and determine the target application to which the current interface belongs; Query a preset database to obtain the main interface identifier information corresponding to the target application; Determine whether the reference interface identifier information is consistent with the main interface identifier information. If it is consistent with the main interface identifier information, then determine that the current interface is the application main interface.
3. The method as described in claim 1, characterized in that, The step of sending a prompt indicating the reason for refusing to perform the operation returned by the interface according to the prompt method corresponding to the current interface includes: Determine the prompting method corresponding to the current interface; Send a prompt indicating the reason for the operation rejection on the interface, according to the aforementioned prompting method.
4. The method as described in claim 3, characterized in that, The step of determining the prompt method corresponding to the current interface includes: Identify the device type of the current interface; The system queries a preset correspondence to determine the prompting method corresponding to the device type.
5. The method as described in claim 3, characterized in that, The step of determining the prompt method corresponding to the current interface includes: Obtain the preset running time period of the application corresponding to the current interface, wherein the preset running time period is a time period in which the frequency of use is higher than a preset frequency threshold, determined based on the user's historical usage records of the application; Obtain the operation time point corresponding to the interface return operation; If the operation time point belongs to the preset running time period, then the prompt method corresponding to the current interface is determined to be the first preset prompt method; If the operation time point does not belong to the preset running time period, then the prompt method corresponding to the current interface is determined to be the second preset prompt method, wherein the prompt level of the second preset prompt method is lower than the prompt level of the first preset prompt method.
6. The method as described in claim 3, characterized in that, Sending a prompt indicating the reason for refusing to perform the operation returned by the interface according to the prompting method includes: Determine the prompt object corresponding to the prompt method, and the first prompt parameter value corresponding to the prompt object; Based on the first prompt parameter value and the prompt object, a prompt is sent indicating that the interface should return the reason for the operation rejection.
7. The method as described in claim 6, characterized in that, If the prompting method is a voice prompting method, determining the prompting object corresponding to the prompting method and the first prompting parameter value corresponding to the prompting object includes: The preset rejection voice message is identified as the prompt object; The playback parameter value corresponding to the preset rejection voice message is determined to be the first prompt parameter value.
8. The method as described in claim 6 or 7, characterized in that, If the prompt method is an interface rendering prompt method, determining the prompt object corresponding to the prompt method and the first prompt parameter value corresponding to the prompt object includes: Identify the element type of each candidate element in the current interface; The target candidate element whose element type is a preset type is identified as the prompt object; The rendering parameter value of the target candidate element is determined to be the first prompt parameter value.
9. The method as described in claim 1, characterized in that, After sending the prompt indicating that the interface refused to perform the operation should return a reason, the following is also included: If a screen return operation is detected again, the first prompt parameter value is changed to obtain a second prompt parameter value, wherein the prompt level corresponding to the second prompt parameter value is higher than the prompt level corresponding to the first prompt parameter value; Based on the second prompt parameter value and the prompt object, a prompt indicating the reason for the refusal to execute the operation is sent to the interface.
10. The method as described in claim 1 or 9, characterized in that, Also includes: Display a cancel control that prevents you from going back; If a user triggers the cancel control, the corresponding application will be exited.
11. An interface processing apparatus, characterized in that, include: The judgment module is used to respond to the interface return operation and determine whether the current interface is the application's main interface; The rejection module is used to refuse to perform the interface return operation when the main interface of the application is displayed. The prompt processing module is used to send a prompt indicating the reason for refusing to execute the interface return operation according to the prompt method corresponding to the current interface, wherein the prompt method is determined according to the operation time point corresponding to the interface return operation and / or the device type of the current interface.
12. An electronic device, characterized in that, The electronic device includes: Processor; memory for storing instructions executable by the processor; The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the interface processing method according to any one of claims 1-10.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program for executing the interface processing method described in any one of claims 1-10.