CN112416234B - Application program interface switching method and device, terminal and storage medium - Google Patents

Application program interface switching method and device, terminal and storage medium Download PDF

Info

Publication number
CN112416234B
CN112416234B CN201910769502.3A CN201910769502A CN112416234B CN 112416234 B CN112416234 B CN 112416234B CN 201910769502 A CN201910769502 A CN 201910769502A CN 112416234 B CN112416234 B CN 112416234B
Authority
CN
China
Prior art keywords
interface
icon
designated
marker
switching
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.)
Active
Application number
CN201910769502.3A
Other languages
Chinese (zh)
Other versions
CN112416234A (en
Inventor
郭少伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201910769502.3A priority Critical patent/CN112416234B/en
Publication of CN112416234A publication Critical patent/CN112416234A/en
Application granted granted Critical
Publication of CN112416234B publication Critical patent/CN112416234B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The disclosure provides a method, a device, a terminal and a storage medium for switching application program interfaces, and belongs to the technical field of internet. The method comprises the following steps: displaying a first current interface of a first application program; in the process of displaying a first current interface, when a first gesture operation for triggering interface switching is received, switching from the first current interface to a first appointed interface, acquiring an interface identifier of the first current interface, and generating a first marker icon according to the interface identifier; and displaying a first marker icon on the first designated interface, wherein the first marker icon is used for switching to the first current interface based on the interface identification when the first marker icon is triggered. According to the method and the device, the user can trigger generation of the first mark icon and switch to the first appointed interface by directly executing the first gesture operation, so that the method and the device can be realized by only executing one first gesture operation, the operation is simple, and the switching efficiency is improved. Moreover, the method is applicable to all application programs on the terminal.

Description

Application program interface switching method and device, terminal and storage medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for switching an application interface.
Background
The application program on the terminal occupies an important position in daily life of people, and people can enter the sub-interface of the main interface from the main interface of the application program or enter the sub-interface of the sub-level interface from the sub-interface of the main interface in the process of using the application program. When people want to return to the main interface after browsing the sub-interface, the main interface can be returned only by performing multiple return operations; when a user wants to browse another sub-interface under the main interface after browsing the multi-level sub-interfaces, the user needs to perform multiple return operations to return to the main interface and enter the sub-interface to be browsed; if the user wants to return to the previously browsed sub-interface, the user can only return to the main interface for multiple times, and then go to the first-level and the second-level to search for the previously browsed sub-interface, so that the whole process has more steps and is more complicated to operate.
In the related art, a menu button is displayed in a designated interface of an application program, and a drop-down list corresponding to the menu button includes a return main interface button. When the user wants to return to the main interface, the user can click the menu button. When the menu button is triggered, a drop-down list is displayed, and when a return main interface button in the drop-down list is triggered, the terminal is switched to the main interface from the specified interface.
Disclosure of Invention
The embodiment of the disclosure provides a method, a device, a terminal and a storage medium for switching application program interfaces, which can solve the problem of low switching efficiency. The technical scheme is as follows:
according to an aspect of the embodiments of the present disclosure, a method for switching an application program interface is provided, where the method includes:
displaying a first current interface of a first application program;
in the process of displaying the first current interface, when a first gesture operation for triggering interface switching is received, switching from the first current interface to a first appointed interface, acquiring an interface identifier of the first current interface, and generating a first marker icon according to the interface identifier;
displaying the first marker icon on the first designated interface, wherein the first marker icon is used for switching to the first current interface based on the interface identifier when the first marker icon is triggered.
In an embodiment of the present disclosure, a first current interface of a first application is displayed; in the process of displaying a first current interface, when a first gesture operation for triggering interface switching is received, switching from the first current interface to a first appointed interface, acquiring an interface identifier of the first current interface, and generating a first marker icon according to the interface identifier; and displaying a first marker icon on the first designated interface, wherein the first marker icon is used for switching to a first current interface based on the interface identification when the first marker icon is triggered. In the embodiment of the disclosure, when a user wants to mark a first current interface and switch to a first designated interface, the user directly executes a first gesture operation to trigger generation of a first mark icon and switch to the first designated interface, so that marking and switching of an application program interface can be realized only by executing one first gesture operation, the operation is simple, and the switching efficiency is improved. In addition, the switching method provided by the embodiment of the disclosure does not depend on a specific application program, and is effective for all application programs installed on the terminal.
In one possible implementation, the method further includes:
and in the process of displaying the first current interface, when a second gesture operation for triggering interface switching is received, switching from the first current interface to a second appointed interface.
In an embodiment of the present disclosure, a first current interface of a first application is displayed; and in the process of displaying the first current interface, when a second gesture operation for triggering interface switching is received, switching from the first current interface to a second appointed interface. In the embodiment of the disclosure, when the user wants to switch to the second designated interface, the user can trigger to switch to the second designated interface by directly executing the second gesture operation, so that the application program interface can be quickly switched by only executing one second gesture operation, the operation is simple, and the switching efficiency is improved. In addition, the switching method provided by the embodiment of the disclosure does not depend on a specific application program, and is effective for all application programs installed on the terminal.
In another possible implementation manner, the method further includes:
in the process of displaying the first current interface, when a third gesture operation for triggering interface switching is received, acquiring an interface identifier of the first current interface, and generating a first mark icon according to the interface identifier;
when receiving a switching operation for switching from the first current interface to a second current interface, switching from the first current interface to the second current interface, and displaying the first marker icon on the second current interface.
In an embodiment of the present disclosure, a first current interface of a first application is displayed; in the process of displaying the first current interface, when a third gesture operation for triggering interface switching is received, acquiring an interface identifier of the first current interface, and generating a first mark icon according to the interface identifier; and when receiving a switching operation for switching from the first current interface to the second current interface, and displaying the first mark icon on the second current interface. The first mark icon is used for switching to a first current interface based on the interface identification when the first mark icon is triggered. In the embodiment of the disclosure, when the user wants to mark the first current interface, the user can directly execute the third gesture operation to trigger generation of the first mark icon, so that only one third gesture operation is executed, the operation is simple, and the switching efficiency is improved. In addition, the switching method provided by the embodiment of the disclosure does not depend on a specific application program, and is effective for all application programs installed on the terminal.
In another possible implementation manner, the generating a first marker icon according to the interface identifier includes:
extracting keywords from the first current interface;
and generating the first marker icon according to the interface identifier and the keywords, wherein the first marker icon comprises the keywords.
In the embodiment of the disclosure, a first marker icon is generated according to the interface marker and the keyword, and the first marker icon includes the keyword, so that a user can know the interface corresponding to the first marker icon according to the keyword in the marker icon. The keywords are displayed on the mark icons, so that the method is visual, is convenient for a user to check and operate, and improves the viscosity of the user.
In another possible implementation manner, the displaying the first marker icon on the first designated interface includes:
when a displayed second marker icon exists on the first designated interface, determining a first display position of the first marker icon on the designated interface according to a second display position of the second marker icon, and displaying the first marker icon at the first display position.
The display position behind the second display position can be used as the first display position, or the second display position is used as the first display position, and the second mark icon is moved backwards, so that the first mark icon is displayed according to the sequence of the generation time.
In another possible implementation manner, the displaying the first marker icon on the first designated interface includes:
when the displayed second marker icons exist on the first designated interface and the number of the second marker icons reaches a designated number, the first marker icons and the second marker icons are displayed in an icon list, icon buttons are displayed on the first designated interface, and the icon buttons are used for displaying the icon list when the icon buttons are triggered.
In the embodiment of the disclosure, when the number of the second marker icons reaches the designated number, the first marker icons and the second marker icons may be displayed in the icon list, and the icon buttons are displayed on the first designated interface, so that the display area occupied by the marker icons is reduced, and the shielding of the marker icons on the content of the first designated interface is avoided.
In another possible implementation manner, the displaying the first marker icon on the first designated interface includes:
determining a designated area from the first designated interface, and displaying the first mark icon in the designated area.
In the embodiment of the disclosure, the first mark icon may be displayed in a designated area, and the designated area may be an edge area or a blank area, so that the first mark icon is prevented from blocking the first designated interface content.
In another possible implementation manner, the method further includes:
and when a deleting operation of the first mark icon is received, deleting the first mark icon from the first appointed interface.
In the embodiment of the disclosure, the user can delete the first mark icon manually according to the self requirement, so that the operation of the user is facilitated, and the viscosity of the user is improved.
In another possible implementation manner, when the display duration of the first marker icon on the first designated interface reaches a first designated duration and the first marker icon is triggered within the first designated duration, the first marker icon is deleted from the first designated interface.
In the embodiment of the disclosure, the mark icon can be automatically deleted, and the user can delete the mark icon without manual operation, so that the user viscosity is provided.
In another possible implementation manner, the method further includes:
and when the first application program is quitted and a third current interface of a second application program is displayed, acquiring at least one third mark icon generated within a preset time length nearest to the current time, and displaying the at least one third mark icon on the third current interface.
In the embodiment of the disclosure, when the first application program exits and the third current interface of the second application program is displayed, the mark icons of other application programs can be displayed on the third current interface, and the mark icons are quickly switched to the interfaces of other application programs, so that quick switching between the two application program interfaces is realized, and the switching efficiency is improved.
According to another aspect of the embodiments of the present disclosure, there is provided an apparatus for switching an application program interface, the apparatus including:
a display module configured to display a first current interface of a first application;
the switching module is configured to switch from the first current interface to a first designated interface when receiving a first gesture operation for triggering interface switching in the process of displaying the first current interface;
the generating module is configured to acquire an interface identifier of the first current interface and generate a first marker icon according to the interface identifier;
the display module is further configured to display the first marker icon on the first designated interface, where the first marker icon is used to switch to the first current interface based on the interface identifier when the first marker icon is triggered.
In one possible implementation, the apparatus further includes:
the switching module is further configured to switch from the first current interface to a second specified interface when a second gesture operation for triggering interface switching is received in the process of displaying the first current interface.
In another possible implementation manner, the apparatus further includes:
the generating module is further configured to, in a process of displaying the first current interface, obtain an interface identifier of the first current interface when a third gesture operation for triggering interface switching is received, and generate a first marker icon according to the interface identifier;
the switching module is further configured to switch from the first current interface to a second current interface when a switching operation for switching from the first current interface to the second current interface is received;
the display module is further configured to display the first marker icon on the second current interface.
In another possible implementation manner, the generating module is further configured to extract keywords from the first current interface; and generating the first marker icon according to the interface identifier and the keywords, wherein the first marker icon comprises the keywords.
In another possible implementation manner, the display module is further configured to, when there is a second marker icon already displayed on the first designated interface, determine a first display position of the first marker icon on the designated interface according to a second display position of the second marker icon, and display the first marker icon at the first display position.
In another possible implementation manner, the display module is further configured to, when there are displayed second marker icons on the first designated interface and the number of the second marker icons reaches a designated number, display the first marker icon and the second marker icon in an icon list, and display an icon button on the first designated interface, where the icon button is used to display the icon list when the icon button is triggered.
In another possible implementation manner, the display module is further configured to determine a designated area from the first designated interface, and display the first marker icon in the designated area.
In another possible implementation manner, the apparatus further includes:
the deleting module is configured to delete the first mark icon from the first designated interface when a deleting operation of the first mark icon is received;
or the deleting module is configured to delete the first marker icon from the first specified interface when the display duration of the first marker icon on the first specified interface reaches a first specified duration and the first marker icon is triggered within the first specified duration.
In another possible implementation manner, the apparatus further includes:
the display module is further configured to, when exiting the first application program and displaying a third current interface of a second application program, acquire at least one third marker icon generated within a preset time period closest to the current time, and display the at least one third marker icon on the third current interface.
According to another aspect of the embodiments of the present disclosure, there is provided a terminal, including:
one or more processors;
volatile or non-volatile memory for storing the one or more processor-executable instructions;
wherein the one or more processors are configured to:
displaying a first current interface of a first application program;
in the process of displaying the first current interface, when a first gesture operation for triggering interface switching is received, switching to a first appointed interface of the application program from the first current interface, acquiring an interface identifier of the first current interface, and generating a first marker icon according to the interface identifier;
displaying the first marker icon on the first designated interface, wherein the first marker icon is used for switching to the first current interface based on the interface identifier when the first marker icon is triggered.
According to another aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of a terminal, enable the terminal to perform the method for switching application program interfaces described in any one of the above possible implementations.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment provided by embodiments of the present disclosure;
FIG. 2 is a flowchart of a method for switching an application interface according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of a method for switching application program interfaces according to an embodiment of the present disclosure;
FIG. 4 is a flowchart of a method for switching application program interfaces according to an embodiment of the present disclosure;
FIG. 5 is a block diagram of an apparatus for application interface switching according to an embodiment of the present disclosure;
fig. 6 is a block diagram of a terminal according to an embodiment of the disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
FIG. 1 is a schematic diagram of an implementation environment provided by embodiments of the present disclosure. Referring to fig. 1, the implementation environment includes a terminal 101 and a server 102; the terminal 101 and the server 102 are connected via a wireless or wired network. Moreover, a client that the server 102 provides services may be installed on the terminal 101, and a user corresponding to the terminal 101 may implement functions such as data transmission and message interaction through the client.
The terminal 101 may be a computer, a mobile phone, a tablet computer or other electronic devices. The client may be any client installed on the terminal 101; the client may be a client in the operating system of the terminal 101, or may be a client provided by a third party. For example, the client may be a shopping application, a social application, a browser, an information browsing application, or a short video application, among others. The information browsing application may be a news application or a reading application, etc. The server 102 may be a background server 102 corresponding to the client. Accordingly, server 102 may be a shopping server, a social application server, a browser server, an information browsing application server, or a short video application server.
The terminal 101 may obtain the application interface from the server 102, and switch between different application interfaces based on the defined gesture operation. In the embodiment of the present disclosure, three gesture operations may be defined, which are a first gesture operation, a second gesture operation, and a third gesture operation.
The first gesture operation is used for triggering the terminal 101 to generate a first mark icon of the first current interface, returning to the first designated interface, and displaying the first mark icon on the first designated interface. The first designated interface can be any interface of the client; for example, the first designated interface may be the primary interface of the client, the messaging interface, or the interface immediately preceding the first current interface. The first designated interface may also be an interface of a designated client, which may be a desktop application.
The first gesture operation may be a first slide operation of the first designated pattern, a second slide operation of the multi-touch point, or a first click operation, etc. The first designated pattern may be any pattern of circles, triangles, rectangles, designated numbers, or the like. The second slide operation may be a slide operation of a double contact (for example, a slide operation of a double finger), a slide operation of a three contact (for example, a slide operation of a three finger), or a slide operation of a four contact (for example, a slide operation of a four finger), or the like. The first connecting operation may be a double-click operation, a three-click operation, or a four-click operation.
The second gesture operation is used to trigger the terminal 101 to return directly to the second designated interface. The second designated interface may be the same as or different from the first designated interface. This is not particularly limited in the embodiments of the present disclosure, and the second designated interface is the same as the first designated interface. The second gesture operation is different from the first gesture operation, and the second gesture operation may be a third slide operation for drawing a second designated pattern, a fourth slide operation for a multi-touch, a second continuous click operation, or the like. The second designated pattern may be any pattern of circles, triangles, rectangles, designated numbers, or the like. The fourth sliding operation may be a sliding operation of a double contact (for example, a sliding operation of a double finger), a sliding operation of a three contact (for example, a sliding operation of a three finger), or a sliding operation of a four contact (for example, a sliding operation of a four finger), or the like. The second continuous-click operation may be a double-click operation, a three-click operation, or a four-click operation.
The third gesture operation is used to trigger the terminal 101 to generate the first marker icon of the first current interface. The third gesture operation is different from both the first gesture operation and the second gesture operation, and the third gesture operation may be a fifth slide operation for drawing a third designated pattern, a sixth slide operation for multiple contacts, a third continuous click operation, or the like. The third designated pattern may be any pattern of circles, triangles, rectangles, designated numbers, or the like. The sixth sliding operation may be a sliding operation of a double contact (for example, a sliding operation of a double finger), a sliding operation of a three contact (for example, a sliding operation of a three finger), or a sliding operation of a four contact (for example, a sliding operation of a four finger), or the like. The third continuous click operation may be a double click operation, a three click operation, or a four click operation.
The point to be described is that the first gesture operation, the second gesture operation and the third gesture operation can be set by the user, so that the user can customize the gesture operations according to own habits, the user viscosity can be improved, and the switching efficiency can be improved.
Fig. 2 is a flowchart of a method for switching an application program interface according to an embodiment of the present disclosure. In the embodiment of the present disclosure, an example is given in which a user triggers, through a first gesture operation, a terminal to generate a first marker icon of a first current interface and returns to a first designated interface, and the first marker icon is displayed on the first designated interface. As shown in fig. 2, the method for switching the application program interface includes the following steps:
in step S201, the terminal displays a first current interface of the first application.
The first application may be any application currently running on the terminal. The first current interface is an interface currently displayed by the first application program; and, the first current interface may be any interface of the first application; for example, the first current interface may be a multi-level interface, such as a level one interface, a level two interface, a level three interface, etc., of the first application.
In step S202, in the process of displaying the first current interface, when receiving a first gesture operation for triggering interface switching, the terminal switches from the first current interface to a first designated interface of the application program.
In the process that the terminal displays the first current interface, when the user wants to trigger the terminal to mark the current interface and return to the first designated interface, the user can execute a first gesture operation. The first designated interface may be a designated interface of the first application. For example, the first designated interface may be a primary interface of the first application, a messaging interface, or an interface previous to the first current interface. The first designated interface may also be an interface of a designated application. The designated application may be a desktop application or the last application running. When the designated application program is the desktop application program, the first designated interface can be a main interface of the desktop application program; when the designated application is the running previous application, the first designated interface may be an interface displayed by the exiting previous application.
In a possible implementation manner, as long as the user performs the first gesture operation on the first current interface, the terminal is triggered to mark the first current interface, and the first specified interface is returned. Correspondingly, when the first gesture operation is received, the terminal is switched to a first designated interface of the application program from a first current interface.
It should be noted that, as long as the user performs the first gesture operation on the first current interface, the terminal may be triggered to mark the first current interface, and return to the first designated interface, where the first gesture operation should be different from the gesture operation that triggers another instruction in the first current interface. For example, the user may trigger a screenshot instruction in the first current interface, and the first gesture operation and the screenshot instruction correspond to different gesture operations, so that the terminal may perform different operations based on the gesture operations.
In the embodiment of the disclosure, the application program interface switching instruction and other instructions are distinguished through different gesture operations, and the terminal can execute corresponding operations after receiving the gesture operation of the trigger instruction, without acquiring an operation area for executing the gesture operation, so that the efficiency is high.
In another possible implementation manner, the user can trigger the terminal to mark the first current interface and return to the first specified interface only by performing the first gesture operation in the specified area of the first current interface. Correspondingly, when the first gesture operation is received, the terminal acquires an operation area for executing the first gesture operation; when the operation area is in the designated area, the terminal is switched to the first designated interface of the application program from the first current interface. When the operation area is not in the designated area, the terminal may not perform the switching operation, and may further output first prompt information, where the first prompt information is used to prompt the user to trigger the first gesture operation in the designated area, and the terminal may further execute an instruction corresponding to the first gesture operation in the non-designated area. The non-designated area may be an area other than the designated area in the first designated interface. For example, when a first gesture operation is performed in a non-designated area, the terminal may be triggered to capture a screenshot; when the user designates the first gesture operation in the non-designated area, the terminal captures a first current interface.
Another point to be described is that, when the user only executes the first gesture operation in the designated area of the first current interface to trigger the terminal to mark the first current interface and return to the first designated interface, the first gesture operation and the gesture operation triggering other instructions in the first current interface may be the same or different. The first gesture operation is the same as the gesture operation for triggering other instructions in the first current interface, for example, when the first gesture operation is the same as the gesture operation for triggering the screenshot instruction in the first current interface; when the user performs the first gesture operation in the designated area of the first current interface, the terminal switches from the first current interface to the first designated interface of the application program. And when the user executes a first gesture operation in the non-designated area of the first current interface, the terminal captures the first current interface based on the screenshot instruction.
In the embodiment of the disclosure, the same gesture operation is executed in different designated areas, so that different effects are achieved, the number of different gesture operations set for distinguishing different instructions can be reduced, the storage space is saved, and the user viscosity is improved.
In step S203, the terminal obtains an interface identifier of the first current interface, and generates a first marker icon according to the interface identifier.
The interface identification may be an interface link to the first current interface. The first mark icon is used for triggering the terminal to return to the first current interface through the first mark icon. In one possible implementation, the terminal associates the interface identifier with the first marker icon. Correspondingly, the step of generating the first marker icon by the terminal according to the interface identifier may be: and the terminal stores the interface identifier in a fixed storage space to generate a first marker icon, and the first marker icon is associated with the interface identifier.
In another possible implementation manner, the terminal not only associates the interface identifier and the first labeled icon, but also adds the keyword of the first current interface to the first labeled icon. Correspondingly, the step of generating the first marker icon by the terminal according to the interface identifier may be: and the terminal extracts keywords from the first current interface and generates a first mark icon according to the interface identifier and the keywords, wherein the first mark icon comprises the keywords extracted from the first current interface.
It should be noted that step S202 and step S203 do not have a strict chronological order; step S202 may be executed first, and then step S203 may be executed; step S203 may be executed first, and then step S202 may be executed; steps S202 and S203 may also be performed simultaneously; in the embodiment of the present disclosure, the execution order of step S202 and step S203 is not particularly limited.
In step S204, the terminal displays a first marker icon on the first designation interface.
In a first possible implementation manner, the terminal may display the first marker icon in a designated area of the first designated interface, and accordingly, this step may be: the terminal determines a designated area of the first designated interface and displays the first marker icon in the designated area. The designated area of the first designated interface may be a certain area in the first designated interface, which is close to the left edge, the right edge, the upper edge, or the lower edge, the designated area of the first designated interface may also be a certain area centered on the termination position of the first gesture operation, and the designated position of the first designated interface may also be a blank area in the first designated interface, where no content is displayed.
It should be noted that the first marker icon may be displayed in the designated area all the time, or may be dynamically displayed in the first designated interface. Correspondingly, the step of dynamically displaying the first marker icon in the first designated interface may be: the terminal displays the first mark icon in the designated area of the first designated interface, and dynamically displays the first mark icon in the browsing process of the first designated interface. For example, in the process that a first designated interface is browsed, the terminal may convert the first tagged icon into the minimum state, stop at the edge of the first designated interface, and convert the first tagged icon into the initial state when receiving a triggering operation on the minimum state of the first tagged icon; the terminal can also determine a blank area of the first designated interface, wherein the blank area does not display the content, and the position of the first mark icon changes along with the change of the position of the blank area of the first designated interface in the browsing process.
In the embodiment of the disclosure, the mark icon is displayed in the designated area of the application program interface, so that the user can quickly find the mark icon, the mark icon is dynamically displayed in the application program interface, the content in the application program interface is not shielded, the interface of the application program browsed by the user is not influenced, and the user viscosity can be improved.
In a second possible implementation manner, when the displayed second marker icon exists on the first designated interface, the terminal may display the first marker icon on the first designated interface according to the display position of the second marker icon. Correspondingly, the step of displaying the first marker icon on the first designated interface by the terminal may be: and the terminal determines a first display position of the first marker icon in the first designated interface according to the second display position of the second marker icon, and displays the first marker icon at the first display position.
The step of determining, by the terminal, the first display position of the first marker icon according to the second display position of the second marker icon may be: the terminal may determine other positions in the first designated interface than the second display position, and regard the other positions as the first display position. The terminal may further set a position after the second display position within the designated area as the first display position. The terminal can also take the second display position of the second mark icon as the first display position of the first mark icon, and move the second mark icon backwards.
In the embodiment of the disclosure, the position of another marker icon is determined according to the position of the displayed marker icon in the application program interface, the interface is attractive, and the user viscosity can be improved.
In a third possible implementation manner, when at least one displayed second marker icon exists on the first designated interface, the terminal may display the first marker icon and the at least one second marker icon in an icon list, and display an icon button in the first designated interface. Correspondingly, the step of displaying the first marker icon on the first designated interface by the terminal may be: when the displayed second marker icons exist on the first designated interface and the number of the second marker icons reaches a designated number, the terminal may display the first marker icons and the second marker icons in an icon list, display an icon button on the first designated interface, and display the icon list when a trigger operation on the icon button is received. And when the displayed second marker icons exist on the first designated interface and the quantity of the second marker icons does not reach the designated quantity, the terminal directly displays the first marker icons on the first designated interface.
It should be noted that, when the second marker icon already displayed exists on the first designated interface and the number of the second marker icons does not reach the designated number, after the terminal displays the first marker icon on the first designated interface, the user may also manually merge the plurality of marker icons, so as to display the icon button on the first designated interface. The process may be: when the terminal receives merging operation on any two displayed marker icons, the any two marker icons are displayed in an icon list, an icon button is displayed on a first designated interface, and when triggering operation on the icon button is received, the icon list is displayed.
It should be noted that the non-merged markup icon may also continue to be displayed in the first designated interface. For example, a mark icon A and a mark icon B are already displayed on the first designated interface, and a mark icon C is displayed in the first designated interface by the terminal; when the terminal receives the position dragging the marker icon C to the marker icon B, the terminal determines that the merging operation of the marker icon B and the marker icon C is received, displays the marker icon B and the marker icon C in an icon list, displays an icon button on a first designated interface, and continues to display the marker icon A on the first designated interface. When a trigger operation for the icon button is received, the icon list is displayed.
In the embodiment of the disclosure, the icon buttons are displayed in the application program interface, and only one icon button can be displayed when the number of the marked icons is large, so that the application program interface is simple and attractive, the user browsing interface is not influenced, and the user viscosity can be improved.
Another point to be noted is that when there is already a mark icon displayed in the current interface and the user triggers an instruction for interface switching, the terminal switches from the current interface to another interface, and at the same time, the existing mark icon is displayed on another interface. The other interface may be any interface of any application program on the terminal, for example, the other interface may be a main interface and each level sub-interface of the application program where the current interface is located, or may be a main interface and each level sub-interface of any other application program. Therefore, the mark icon can be displayed on any interface of any application program in the terminal, and a user can realize interface switching among different application programs through starting operation of the mark icon.
In a fourth possible implementation manner, when the terminal exits from the first application program and displays a third current interface of the second application program, the terminal may further display the first marker icon in the first application program in the third current interface. Accordingly, the process may be: and when the terminal exits from the first application program and displays a third current interface of the second application program, acquiring at least one third marker icon generated within a preset time length nearest to the current time, and displaying the third marker icon on the third current interface.
When the user wants to quit the first application program and open the third current interface of the second application program, the terminal quits the first application program and displays the third current interface of the second application program, at this time, the terminal can acquire at least one third marker icon generated within the preset time nearest to the current time, and the third marker icon is displayed on the third current interface.
In the embodiment of the disclosure, the third mark icon of the exited application program can be displayed in the third current interface of the second application program, so that the current interface corresponding to the third mark icon can be quickly switched to in the third current interface of the second application program based on the third mark icon, thereby realizing quick switching between different interfaces of the two application programs and improving switching efficiency. In addition, only the mark icons generated in the preset time length nearest to the current time are displayed in the third current interface of the second application program, so that the number of the mark icons in the interface can be reduced, and a user can conveniently and quickly find the application program interface marked in the nearest time. And the marker icon generated in the preset time length nearest to the current time may be the marker icon that the user wants to view, so that the user demand can be met by only displaying the marker icon generated in the preset time length nearest to the current time in the third current interface of the second application program, and the viscosity of the user is further improved.
It should be noted that, in the foregoing possible implementation manner, the position where the markup icon is displayed on the application program interface may be a default initial position of the system, and the user may also drag the markup icon to another position in the application program interface according to the need of the user.
Another point to be explained is that the terminal includes an interrupt handler; triggering interruption when a user executes a first gesture operation in a first current interface; and when the interrupt processing program receives the first gesture operation, switching from the first current interface to a first appointed interface of the application program, generating a first mark icon, and displaying the first mark icon on the first appointed interface.
The first marker icon may have any form, and the first marker icon may have various forms such as a circle, a triangle, a rectangle, or a flower. Moreover, the mark icons corresponding to the interfaces marked in different application programs can be in the same form; the mark icons corresponding to the interfaces marked in different application programs can also be in different forms so as to distinguish the mark icons of different application programs. The mark icons corresponding to the interfaces of different types can be in the same form, and the mark icons corresponding to the interfaces of different types can also be in different forms so as to distinguish the interfaces of different types. In addition, the form of the first mark icon can be default to a system, and can also be set by a user in a self-defined mode, so that the user can define the form of the first mark icon according to the aesthetic interest of the user, different interfaces can be distinguished through the form of the mark icon, and the user viscosity is improved.
In step S205, when the first marker icon is triggered, the terminal switches to the first current interface based on the interface identifier.
When the first marker icon is triggered, the terminal acquires an interface identifier associated with the first marker icon from a fixed storage space according to the first marker icon, and switches from the first designated interface to the first current interface based on the interface identifier.
In a possible implementation manner, interface data of the first current interface may be cached in the terminal; correspondingly, the step of switching to the first current interface by the terminal based on the interface identifier may be: and the terminal acquires the interface data of the first current interface based on the interface identifier, and renders the interface data of the first current interface to obtain the first current interface.
In the embodiment of the disclosure, the terminal caches the interface data of the first current interface, and when an instruction for switching to the first current interface is received, the interface data is directly obtained from the storage space of the cached interface data, and a request does not need to be sent to the server, so that the interface switching efficiency can be improved.
In another possible implementation manner, the terminal may obtain the interface data of the first current interface from the server without caching the interface data of the first current interface. Correspondingly, the step of switching to the first current interface by the terminal based on the interface identifier may be: and the terminal sends an interface display request to the server, wherein the interface display request carries the interface identifier. And the server receives the interface display request, acquires the interface data of the first current interface according to the interface identifier, and returns the interface data of the first current interface to the terminal. And the terminal receives the interface data of the first current interface, and renders based on the interface data of the first current interface to obtain the first current interface.
In the embodiment of the disclosure, the terminal does not need to cache the interface data of the first current interface, so that the space for caching the interface data can be saved, and the latest interface data of the first current interface is obtained from the server, so that the real-time information of the application program interface can be obtained.
After the terminal displays the first marker icon on the first designated interface, the terminal can delete the first marker icon. In one possible implementation, the user may manually delete the first marker icon. Correspondingly, the steps can be as follows: and the user triggers the deletion operation of the first marker icon, and the terminal deletes the first marker icon from the designated interface when receiving the deletion operation of the first marker icon. The user can delete the first marker icon by pressing the first marker icon for a long time, the deletion mark is displayed, the user clicks the deletion mark, and the terminal deletes the first marker icon from the first designated interface; the user can delete the first marker icon by dragging the first marker icon to a designated position, and the terminal deletes the first marker icon from the first designated interface.
In another possible implementation manner, the terminal may automatically delete the first marker icon. Correspondingly, the steps can be as follows: and when the display time of the first marker icon on the first appointed interface reaches a first appointed time and the first marker icon is triggered within the first appointed time, deleting the first marker icon from the first appointed interface. The terminal can start timing when the first mark icon is triggered, and delete the first mark icon from the first designated interface when the timing time reaches a second designated time; the terminal can also start timing when the first mark icon is displayed, and when the timing time reaches a third designated time, the first mark icon is triggered, and the first mark icon is deleted from the first designated interface.
In another possible implementation manner, when an icon button is displayed in the first designated interface, the icon button is deleted from the designated interface when a deletion operation of the icon button is received. Correspondingly, the steps can be as follows: and the user triggers the deletion operation of the icon button, and the icon button is deleted from the specified interface when the terminal receives the deletion operation of the icon button. The deleting operation of the icon button by the user can be that the icon button is pressed for a long time, a deleting mark is displayed, the user clicks the deleting mark, and the icon button is deleted from the first specified interface by the terminal; the user can delete the icon button by dragging the icon button to a specified position, and the terminal deletes the icon button from the first specified interface.
In the embodiment of the disclosure, the user can delete the marker icon according to the own requirement, and the terminal can also automatically delete the marker icon according to the trigger operation and the trigger time of the marker icon, so that the operation mode is flexible and convenient, and the viscosity of the user can be improved.
In an embodiment of the present disclosure, a first current interface of a first application is displayed; in the process of displaying a first current interface, when a first gesture operation for triggering interface switching is received, switching from the first current interface to a first appointed interface, acquiring an interface identifier of the first current interface, and generating a first marker icon according to the interface identifier; and displaying a first marker icon on the first designated interface, wherein the first marker icon is used for switching to a first current interface based on the interface identification when the first marker icon is triggered. In the embodiment of the disclosure, when the user wants to mark the first current interface and switch to the first designated interface, the user can directly execute the first gesture operation to trigger generation of the first mark icon and switch to the first designated interface, so that only one first gesture operation is executed, the operation is simple, and the switching efficiency is improved. In addition, the switching method provided by the embodiment of the disclosure does not depend on a specific application program, and is effective for all application programs installed on the terminal.
Fig. 3 is a flowchart of a method for switching an application program interface according to an embodiment of the present disclosure. In the embodiment of the present disclosure, an example is given in which a user triggers the terminal to switch to the second designated interface through the second gesture operation. As shown in fig. 3, the method for switching the application program interface includes the following steps:
in step S301, the terminal displays a first current interface of the first application.
This step is the same as step S201, and is not described herein again.
In step S302, in the process of displaying the first current interface, when receiving a second gesture operation for triggering interface switching, the terminal switches from the first current interface to a second designated interface of the application program.
And in the process that the terminal displays the first current interface, when the user wants to trigger the terminal to switch to the second designated interface, the user can execute a second gesture operation. The second designated interface may be a designated interface of the first application. For example, the second designated interface may be a host interface of the first application, a messaging interface, or a previous interface to the first current interface. The second designated surface may also be an interface of a designated application. The designated application may be a desktop application or the last application running. When the designated application program is the desktop application program, the second designated boundary surface can be a main interface of the desktop application program; when the designated application is the last application running, the second designated interface may be an interface displayed by the last application exiting.
In a possible implementation manner, the terminal can be triggered to switch to the second designated interface as long as the user performs the second gesture operation on the first current interface. Correspondingly, when the second gesture operation is received, the terminal is switched to a second designated interface of the application program from the first current interface.
It should be noted that the terminal may be triggered to switch to the second designated boundary surface as long as the user performs the second gesture operation on the first current interface, and the second gesture operation should be different from the gesture operation that triggers another instruction in the first current interface. For example, the user may trigger the screenshot instruction in the first current interface, and the gesture operations corresponding to the second gesture operation and the screenshot instruction are different, so that the terminal may perform different operations based on the gesture operations.
In the embodiment of the disclosure, the application program interface switching instruction and other instructions are distinguished through different gesture operations, and the terminal can execute corresponding operations after receiving the gesture operation of the trigger instruction, without acquiring an operation area for executing the gesture operation, so that the efficiency is high.
In another possible implementation manner, the user can trigger the terminal to switch to the second designated interface only by performing the second gesture operation in the designated area of the first current interface. Correspondingly, when receiving the second gesture operation, the terminal acquires an operation area for executing the second gesture operation; when the operation area is in the designated area, the terminal is switched from the first current interface to the second designated interface of the application program. When the operation area is not in the designated area, the terminal may not perform the switching operation, and may further output second prompt information, where the second prompt information is used to prompt the user to trigger a second gesture operation in the designated area, and the terminal may further execute an instruction corresponding to the second gesture operation in the non-designated area. The non-designated area may be an area other than the designated area in the second designated interface. For example, when a second gesture operation is performed in a non-designated area, the terminal may be triggered to perform screenshot; and when the user designates the second gesture operation in the non-designated area, the terminal captures the first current interface.
Another point to be described is that the user can trigger the terminal to switch to the second designated interface only by performing the second gesture operation in the designated area of the first current interface, and the second gesture operation and the gesture operation for triggering other instructions in the first current interface may be the same or different. When the second gesture operation is the same as the gesture operation for triggering other instructions in the first current interface, for example, when the second gesture operation is the same as the gesture operation for triggering the screenshot instruction in the first current interface; when the user performs the second gesture operation in the designated area of the first current interface, the terminal switches from the first current interface to a second designated interface of the application program. And when the user executes a second gesture operation in the non-designated area of the first current interface, the terminal captures the first current interface based on the screenshot instruction.
In the embodiment of the disclosure, the same gesture operation is executed in different designated areas, so that different effects are achieved, the number of different gesture operations set for distinguishing different instructions can be reduced, the storage space is saved, and the user viscosity is improved.
One point to be noted is that the terminal includes an interrupt handler; triggering interruption when the user executes a second gesture operation in the first current interface; and when the interrupt processing program receives the second gesture operation, switching from the first current interface to a second appointed interface of the application program.
In the embodiment of the disclosure, a first current interface of a first application program is displayed; and in the process of displaying the first current interface, when a second gesture operation for triggering interface switching is received, switching from the first current interface to a second appointed interface. In the embodiment of the disclosure, when the user wants to switch to the second designated interface, the user can directly execute the second gesture operation to trigger the switch to the second designated interface, so that the switch can be realized only by executing one second gesture operation, the operation is simple, and the switching efficiency is improved. In addition, the switching method provided by the embodiment of the disclosure does not depend on a specific application program, and is effective for all application programs installed on the terminal.
Fig. 4 is a flowchart of a method for switching an application program interface according to an embodiment of the present disclosure. As shown in fig. 4, the method for switching the application program interface includes the following steps:
in step S401, the terminal displays a first current interface of the first application.
This step is the same as step S201, and is not described herein again.
In step S402, in the process of displaying the first current interface, when receiving a third gesture operation for triggering interface switching, the terminal marks the first current interface.
And in the process that the terminal displays the first current interface, when the user wants to trigger the terminal to mark the current interface, the user can execute a third gesture operation.
In a possible implementation manner, the terminal may be triggered to mark the first current interface as long as the user performs the third gesture operation on the first current interface. Correspondingly, when the third gesture operation is received, the terminal marks the current interface.
It should be noted that the terminal may be triggered to mark the first current interface as long as the user performs a third gesture operation on the first current interface, where the third gesture operation should be different from the gesture operation that triggers another instruction in the first current interface. For example, the user may trigger the screenshot instruction in the first current interface, and then the gesture operations corresponding to the third gesture operation and the screenshot instruction are different, so that the terminal may perform different operations based on the gesture operations.
In the embodiment of the disclosure, the application program interface switching instruction and other instructions are distinguished through different gesture operations, and the terminal can execute corresponding operations after receiving the gesture operation of the trigger instruction, without acquiring an operation area for executing the gesture operation, so that the efficiency is high.
In another possible implementation manner, the user can trigger the terminal to mark the first current interface only by performing the third gesture operation on the designated area of the first current interface. Correspondingly, when the third gesture operation is received, the terminal acquires an operation area for executing the third gesture operation; when the operation area is in the designated area, the terminal marks the current interface. When the operation area is not in the designated area, the terminal may not perform the marking operation, and may further output third prompt information, where the third prompt information is used to prompt the user to trigger a third gesture operation in the designated area, and the terminal may further execute an instruction corresponding to the third gesture operation in the non-designated area. The non-designated area may be an area other than the designated area in the first designated interface. For example, when a third gesture operation is performed in a non-designated area, the terminal may be triggered to capture a screenshot; when the user designates a third gesture operation in the non-designated area, the terminal captures a screenshot of the first current interface.
Another point to be described is that the user can trigger the terminal to mark the first current interface only by executing a third gesture operation in the designated area of the first current interface, and the third gesture operation may be the same as or different from the gesture operation for triggering other instructions in the first current interface. The third gesture operation is the same as the gesture operation for triggering other instructions in the first current interface, for example, the third gesture operation is the same as the gesture operation for triggering the screenshot instruction in the first current interface, and when the user performs the third gesture operation in the designated area of the first current interface, the terminal marks the first current interface. And when the user executes a third gesture operation in the non-designated area of the first current interface, the terminal captures the first current interface based on the screenshot instruction.
In the embodiment of the disclosure, the same gesture operation is executed in different designated areas, so that different effects are achieved, the number of different gesture operations set for distinguishing different instructions can be reduced, the storage space is saved, and the user viscosity is improved.
In step S403, the terminal obtains an interface identifier of the first current interface, and generates a first marker icon according to the interface identifier.
It should be noted that this step is the same as step S203, and is not described herein again.
Another point to be explained is that after the terminal generates the first marker icon, the first marker icon may also be displayed in the first current interface; the process of displaying the first marker icon in the first current interface by the terminal is similar to the process of displaying the first marker icon in the first designated interface by the terminal, and is not repeated here.
In step S404, when a switching operation for switching from the first current interface to the second current interface is received, the terminal switches from the first current interface to the second current interface, and displays the first marker icon on the second current interface.
The second current interface may be a next interface of the first application program entered by the user through a click operation, or may be a designated interface to which the user switches through the marker icon. It should be noted that a process of displaying the first marker icon on the second current interface by the terminal is similar to a process of displaying the first marker icon on the first designated interface by the terminal, and details are not repeated herein.
In step S405, when the first marker icon is triggered, the terminal switches to the first current interface based on the interface identifier.
It should be noted that this step is the same as step S205, and is not described herein again.
Another point to be explained is that the terminal includes an interrupt handler; triggering interruption when the user executes a third gesture operation in the first current interface; and when receiving a switching operation for switching from the first current interface to the second current interface, the terminal switches from the first current interface to the second current interface, and displays the first mark icon on the second current interface.
In an embodiment of the present disclosure, a first current interface of a first application is displayed; in the process of displaying the first current interface, when a third gesture operation for triggering interface switching is received, the terminal marks the first current interface; acquiring an interface identifier of a first current interface, and generating a first marker icon according to the interface identifier; when receiving a switching operation for switching from the first current interface to the second current interface, the terminal switches from the first current interface to the second current interface, and displays the first mark icon on the second current interface. In the embodiment of the disclosure, when the user wants to mark the first current interface, the user may directly perform the third gesture operation, that is, may trigger to generate the first mark icon, and continue to browse the first current interface; therefore, only one third gesture operation is executed, the operation is simple, and the marking efficiency is improved. And when the first current interface is switched to the second current interface, the first mark icon is displayed in the second current interface, so that a user can quickly switch to the first current interface based on the first mark icon displayed in the second current interface, and the switching efficiency is improved. In addition, the switching method provided by the embodiment of the disclosure does not depend on a specific application program, and is effective for all application programs installed on the terminal.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
Fig. 5 is a block diagram of an apparatus for switching an application program interface according to an embodiment of the present disclosure. As shown in fig. 5, the apparatus includes:
a display module 501 configured to display a first current interface of a first application;
the switching module 502 is configured to switch from a first current interface to a first designated interface when a first gesture operation for triggering interface switching is received in the process of displaying the first current interface;
a generating module 503, configured to obtain an interface identifier of the first current interface, and generate a first marker icon according to the interface identifier;
the display module 501 is further configured to display a first marker icon on the first designated interface, where the first marker icon is used to switch to the first current interface based on the interface identifier when the first marker icon is triggered.
In one possible implementation, the apparatus further includes:
the switching module 502 is further configured to switch from the first current interface to a second specified interface when a second gesture operation for triggering interface switching is received in the process of displaying the first current interface.
In another possible implementation manner, the apparatus further includes:
the generating module 503 is further configured to, in the process of displaying the first current interface, when a third gesture operation for triggering interface switching is received, obtain the interface identifier of the first current interface, and generate a first marker icon according to the interface identifier;
a switching module 502 further configured to switch from the first current interface to the second current interface when a switching operation for switching from the first current interface to the second current interface is received;
the display module 501 is further configured to display the first markup icon on the second current interface.
In another possible implementation manner, the generating module 503 is further configured to extract keywords from the first current interface; and generating a first mark icon according to the interface identifier and the keywords, wherein the first mark icon comprises the keywords.
In another possible implementation manner, the display module 501 is further configured to, when there is a displayed second markup icon on the first designated interface, determine a first display position of the first markup icon on the designated interface according to a second display position of the second markup icon, and display the first markup icon at the first display position.
In another possible implementation manner, the display module 501 is further configured to display the first marker icon and the second marker icon in an icon list when the displayed second marker icon exists on the first designated interface and the number of the second marker icons reaches a designated number, and display an icon button on the first designated interface, where the icon button is used to display the icon list when the icon button is triggered.
In another possible implementation manner, the display module 501 is further configured to determine a designated area from the first designated interface, and display the first marker icon in the designated area.
In another possible implementation manner, the apparatus further includes:
the deleting module is configured to delete the first mark icon from the first designated interface when a deleting operation of the first mark icon is received;
or the deleting module is configured to delete the first marker icon from the first specified interface when the display duration of the first marker icon on the first specified interface reaches a first specified duration and the first marker icon is triggered within the first specified duration.
In another possible implementation manner, the apparatus further includes:
the display module 501 is further configured to, when the first application program exits and a third current interface of the second application program is displayed, obtain at least one third marker icon generated within a preset time period closest to the current time, and display the at least one third marker icon on the third current interface.
In an embodiment of the present disclosure, a first current interface of a first application is displayed; in the process of displaying a first current interface, when a first gesture operation for triggering interface switching is received, switching from the first current interface to a first appointed interface, acquiring an interface identifier of the first current interface, and generating a first marker icon according to the interface identifier; and displaying a first marker icon on the first designated interface, wherein the first marker icon is used for switching to a first current interface based on the interface identifier when the first marker icon is triggered. In the embodiment of the disclosure, when the user wants to mark the first current interface and switch to the first designated interface, the user can directly execute the first gesture operation to trigger generation of the first mark icon and switch to the first designated interface, so that only one first gesture operation is executed, the operation is simple, and the switching efficiency is improved.
It should be noted that: the device for switching application program interfaces provided in the above embodiments is exemplified by only the division of the above functional modules when the application program interfaces are switched, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the terminal is divided into different functional modules to complete all or part of the above described functions. In addition, the apparatus for switching the application program interface and the method for switching the application program interface provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments and are not described herein again.
Fig. 6 is a block diagram illustrating a terminal 600 according to an example embodiment. For example, the terminal 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and so forth.
Referring to fig. 6, terminal 600 may include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and communication component 616.
The processing component 602 generally controls overall operation of the terminal 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the method for application interface switching described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the terminal 600. Examples of such data include instructions for any application or method operating on terminal 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply component 606 provides power to the various components of terminal 600. The power components 606 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the terminal 600.
The multimedia component 608 comprises a screen providing an output interface between the terminal 600 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the terminal 600 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive external audio signals when the terminal 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing various aspects of status assessment for the terminal 600. For example, sensor component 614 can detect an open/closed state of terminal 600, relative positioning of components, such as a display and keypad of terminal 600, change in position of terminal 600 or a component of terminal 600, presence or absence of user contact with terminal 600, orientation or acceleration/deceleration of terminal 600, and temperature change of terminal 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the terminal 600 and other devices in a wired or wireless manner. The terminal 600 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications.
In an exemplary embodiment, the terminal 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described method of application program interface switching.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the terminal 600 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a terminal, enable the terminal to perform a method of application program interface switching. Among others, the storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present disclosure and is not intended to limit the present disclosure, so that any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (18)

1. A method for switching application program interfaces, the method comprising:
displaying a first current interface of a first application program, wherein the first application program is any application program currently operated by a terminal;
in the process of displaying the first current interface, when a first gesture operation for triggering interface switching is received, switching from the first current interface to a first appointed interface, acquiring an interface identifier of the first current interface, and generating a first marker icon according to the interface identifier, wherein the first appointed interface is an appointed interface of the first application program;
displaying the first marker icon on the first designated interface, wherein the first marker icon is used for switching to the first current interface based on the interface identifier when the first marker icon is triggered;
in the process of displaying the first current interface, when a second gesture operation for triggering interface switching is received, switching from the first current interface to a second appointed interface, wherein the second appointed interface is an appointed interface of the first application program.
2. The method of claim 1, further comprising:
in the process of displaying the first current interface, when a third gesture operation for triggering interface switching is received, acquiring an interface identifier of the first current interface, and generating a first mark icon according to the interface identifier;
when receiving a switching operation for switching from the first current interface to a second current interface, switching from the first current interface to the second current interface, and displaying the first marker icon on the second current interface.
3. The method of claim 1, wherein generating a first marker icon according to the interface identifier comprises:
extracting keywords from the first current interface;
and generating the first marker icon according to the interface identifier and the keywords, wherein the first marker icon comprises the keywords.
4. The method of claim 1, wherein said displaying the first marker icon on the first designated interface comprises:
when a displayed second marker icon exists on the first designated interface, determining a first display position of the first marker icon on the designated interface according to a second display position of the second marker icon, and displaying the first marker icon at the first display position.
5. The method of claim 1, wherein said displaying the first marker icon on the first designated interface comprises:
when the displayed second marker icons exist on the first designated interface and the number of the second marker icons reaches a designated number, the first marker icons and the second marker icons are displayed in an icon list, icon buttons are displayed on the first designated interface, and the icon buttons are used for displaying the icon list when the icon buttons are triggered.
6. The method of claim 1, wherein said displaying the first marker icon on the first designated interface comprises:
determining a designated area from the first designated interface, and displaying the first mark icon in the designated area.
7. The method according to any one of claims 1-6, further comprising:
when a deleting operation of the first marked icon is received, deleting the first marked icon from the first designated interface;
or, when the display duration of the first marker icon on the first designated interface reaches a first designated duration and the first marker icon is triggered within the first designated duration, deleting the first marker icon from the first designated interface.
8. The method of claim 1, further comprising:
and when the first application program is quitted and a third current interface of a second application program is displayed, acquiring at least one third mark icon generated within a preset time length nearest to the current time, and displaying the at least one third mark icon on the third current interface.
9. An apparatus for application interface switching, the apparatus comprising:
the terminal comprises a display module, a display module and a display module, wherein the display module is configured to display a first current interface of a first application program, and the first application program is any application program currently operated by the terminal;
the switching module is configured to switch to a first designated interface from the first current interface when a first gesture operation for triggering interface switching is received in the process of displaying the first current interface, wherein the first designated interface is a designated interface of the first application program;
the generating module is configured to acquire an interface identifier of the first current interface and generate a first marker icon according to the interface identifier;
the display module is further configured to display the first marker icon on the first designated interface, wherein the first marker icon is used for switching to the first current interface based on the interface identifier when the first marker icon is triggered;
the switching module is further configured to switch from the first current interface to a second designated interface when a second gesture operation for triggering interface switching is received in the process of displaying the first current interface, wherein the second designated interface is a designated interface of the first application program.
10. The apparatus of claim 9, further comprising:
the generating module is further configured to, in a process of displaying the first current interface, obtain an interface identifier of the first current interface when a third gesture operation for triggering interface switching is received, and generate a first marker icon according to the interface identifier;
the switching module is further configured to switch from the first current interface to a second current interface when a switching operation for switching from the first current interface to the second current interface is received;
the display module is further configured to display the first marker icon on the second current interface.
11. The apparatus of claim 9, wherein the generating module is further configured to extract keywords from the first current interface; and generating the first marker icon according to the interface identifier and the keywords, wherein the first marker icon comprises the keywords.
12. The apparatus of claim 9, wherein the display module is further configured to determine a first display position of the first marker icon on the designated interface according to a second display position of the second marker icon when the displayed second marker icon exists on the first designated interface, and display the first marker icon at the first display position.
13. The apparatus of claim 9, wherein the display module is further configured to display the first marker icon and the second marker icon in an icon list when there are displayed second marker icons on the first designated interface and the number of second marker icons reaches a designated number, and display an icon button on the first designated interface, the icon button being configured to display the icon list when the icon button is activated.
14. The apparatus of claim 9, wherein the display module is further configured to determine a designated area from the first designated interface, and display the first marker icon in the designated area.
15. The apparatus according to any one of claims 9-14, further comprising:
the deleting module is configured to delete the first mark icon from the first designated interface when a deleting operation of the first mark icon is received;
or, the deleting module is configured to delete the first marker icon from the first specified interface when the display duration of the first marker icon on the first specified interface reaches a first specified duration and the first marker icon is triggered within the first specified duration.
16. The apparatus of claim 9, further comprising:
the display module is further configured to, when exiting the first application program and displaying a third current interface of a second application program, acquire at least one third marker icon generated within a preset time period closest to the current time, and display the at least one third marker icon on the third current interface.
17. A terminal, characterized in that the terminal comprises:
one or more processors;
volatile or non-volatile memory for storing the one or more processor-executable instructions;
wherein the one or more processors are configured to:
displaying a first current interface of a first application program, wherein the first application program is any application program currently operated by a terminal;
in the process of displaying the first current interface, when a first gesture operation for triggering interface switching is received, switching to a first appointed interface of the application program from the first current interface, acquiring an interface identifier of the first current interface, and generating a first marker icon according to the interface identifier, wherein the first appointed interface is an appointed interface of the first application program;
displaying the first marker icon on the first designated interface, wherein the first marker icon is used for switching to the first current interface based on the interface identifier when the first marker icon is triggered;
in the process of displaying the first current interface, when a second gesture operation for triggering interface switching is received, switching from the first current interface to a second appointed interface, wherein the second appointed interface is an appointed interface of the first application program.
18. A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of a terminal, enable the terminal to perform the method of application program interface switching of any of claims 1-8.
CN201910769502.3A 2019-08-20 2019-08-20 Application program interface switching method and device, terminal and storage medium Active CN112416234B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910769502.3A CN112416234B (en) 2019-08-20 2019-08-20 Application program interface switching method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910769502.3A CN112416234B (en) 2019-08-20 2019-08-20 Application program interface switching method and device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112416234A CN112416234A (en) 2021-02-26
CN112416234B true CN112416234B (en) 2022-05-17

Family

ID=74779510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910769502.3A Active CN112416234B (en) 2019-08-20 2019-08-20 Application program interface switching method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112416234B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014142916A (en) * 2012-12-26 2014-08-07 Canon Marketing Japan Inc Information processor, information processing method and program
CN104516676A (en) * 2015-01-09 2015-04-15 深圳市创凯电子有限公司 Method and device for quickly switching pages
CN106406995A (en) * 2016-09-07 2017-02-15 珠海市魅族科技有限公司 Application page task switching method and device and mobile terminal
CN107390968A (en) * 2017-06-14 2017-11-24 努比亚技术有限公司 Method, terminal and the computer-readable recording medium that application interface exchanges
CN107656793A (en) * 2017-10-31 2018-02-02 维沃移动通信有限公司 A kind of Application Program Interface switching method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014142916A (en) * 2012-12-26 2014-08-07 Canon Marketing Japan Inc Information processor, information processing method and program
CN104516676A (en) * 2015-01-09 2015-04-15 深圳市创凯电子有限公司 Method and device for quickly switching pages
CN106406995A (en) * 2016-09-07 2017-02-15 珠海市魅族科技有限公司 Application page task switching method and device and mobile terminal
CN107390968A (en) * 2017-06-14 2017-11-24 努比亚技术有限公司 Method, terminal and the computer-readable recording medium that application interface exchanges
CN107656793A (en) * 2017-10-31 2018-02-02 维沃移动通信有限公司 A kind of Application Program Interface switching method and mobile terminal

Also Published As

Publication number Publication date
CN112416234A (en) 2021-02-26

Similar Documents

Publication Publication Date Title
CN109683714B (en) Multimedia resource management method, device and storage medium
CN107329743B (en) Application page display method and device and storage medium
CN105955607B (en) Content sharing method and device
CN107908351B (en) Application interface display method and device and storage medium
CN106469054B (en) Notification message control method and device and terminal
CN111381739B (en) Application icon display method and device, electronic equipment and storage medium
US20200007944A1 (en) Method and apparatus for displaying interactive attributes during multimedia playback
CN111783001A (en) Page display method and device, electronic equipment and storage medium
CN109976861B (en) Interactive interface display method and device and storage medium
CN109918001B (en) Interface display method, device and storage medium
CN110968364B (en) Method and device for adding shortcut plugins and intelligent device
CN111651104A (en) Method and device for displaying application page and storage medium
US11836342B2 (en) Method for acquiring historical information, storage medium, and system
CN107729098B (en) User interface display method and device
CN110413169B (en) Information display method, device and medium
CN111381738B (en) Interface display method and device, electronic equipment and storage medium
CN113986083A (en) File processing method and electronic equipment
CN111368329B (en) Message display method and device, electronic equipment and storage medium
CN110244889B (en) Picture scaling method, device, terminal and storage medium
CN112286611A (en) Icon display method and device and electronic equipment
CN112416234B (en) Application program interface switching method and device, terminal and storage medium
WO2023097981A1 (en) Object display method and electronic device
US11284127B2 (en) Method and apparatus for pushing information in live broadcast room
CN112667852B (en) Video-based searching method and device, electronic equipment and storage medium
CN110688181B (en) Content display method and device in notification bar and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant