CN112948032A - Function switching method and device, computer readable storage medium and computer equipment - Google Patents

Function switching method and device, computer readable storage medium and computer equipment Download PDF

Info

Publication number
CN112948032A
CN112948032A CN201911268715.4A CN201911268715A CN112948032A CN 112948032 A CN112948032 A CN 112948032A CN 201911268715 A CN201911268715 A CN 201911268715A CN 112948032 A CN112948032 A CN 112948032A
Authority
CN
China
Prior art keywords
function
page
switching
switching operation
note
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.)
Granted
Application number
CN201911268715.4A
Other languages
Chinese (zh)
Other versions
CN112948032B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911268715.4A priority Critical patent/CN112948032B/en
Publication of CN112948032A publication Critical patent/CN112948032A/en
Application granted granted Critical
Publication of CN112948032B publication Critical patent/CN112948032B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Landscapes

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

Abstract

The application relates to a function switching method, a function switching device, a computer readable storage medium and computer equipment, wherein the method comprises the following steps: when function switching operation occurs, storing a first function page pointed by the function switching operation, and displaying a switching note page; determining a function entry triggered by the switching note page; switching to a second function page corresponding to the function entrance for displaying; and when function switching operation returning to the first function occurs, updating the stored second function page corresponding to the function entry, and restoring the second function page to the first function page pointed by the function switching operation for displaying. The scheme provided by the application can improve the page switching effect.

Description

Function switching method and device, computer readable storage medium and computer equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for switching functions, a computer-readable storage medium, and a computer device.
Background
The application runs in the electronic device, and realizes various functions by displaying pages on a screen of the electronic device, or a graphical interface for a user to trigger an operation event. The user may access different functions of the application by switching pages. The page displayed on the screen is switched from one function page to another according to the switching operation of the user, and the switching operation triggered again by the user can be switched back to the original function page.
In the traditional mode, when the function switching requirements of different users can only be met based on the application preset page, the page switching effect is poor.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a function switching method, device, computer-readable storage medium, and computer apparatus for solving the technical problem of poor page switching effect.
A method of function switching, comprising:
responding to a triggered first function switching operation, storing a first function page pointed by the first function switching operation, and displaying a switching note page;
determining a function entry triggered by the switching note page;
switching to a second function page corresponding to the function entrance;
and responding to a triggered second function switching operation returned to the first function page, storing the second function page, and restoring the first function page.
A page switching apparatus, the apparatus comprising:
the note switching module is used for responding to triggered first function switching operation, storing a first function page pointed by the first function switching operation and displaying a note switching page;
the function switching module is used for determining a function entrance triggered by the switching note page; switching to a second function page corresponding to the function entrance;
and the note recovery module is used for responding to a triggered second function switching operation returned to the first function page, storing the second function page and restoring the first function page.
A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to perform the steps of the function switching method.
A computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the function switching method.
According to the function switching method, the function switching device, the computer readable storage medium and the computer equipment, when the function switching operation occurs firstly, the switching note page is provided, and the switching note page can be quickly switched from one function of the application to another function corresponding to any function entry based on the switching note page. In addition, when the first function switching operation occurs, the first function page pointed by the first function switching operation is stored in time, and because the first function page reserves the access record of the user to the function page to be switched away, when the second function switching operation occurs, namely the function is switched back again, the switched page can be rapidly restored and displayed in the access state when the user is switched away last time based on the first function page, so that the user can continue to access the page on the basis of the historical access state.
Drawings
FIG. 1 is a flow chart illustrating a method for switching functions in an embodiment;
FIG. 2A is a schematic diagram illustrating a process of storing a page link in the function switching method according to an embodiment;
FIG. 2B is a schematic diagram illustrating a process of storing a page link in the function switching method according to another embodiment;
FIG. 3 is a schematic interface diagram of a page displayed when a first function switch operation occurs in one embodiment;
FIG. 4 is a schematic interface diagram of a page displayed when a second function switch operation occurs in one embodiment;
FIG. 5 is a schematic interface diagram of a page shown in the function switch and function return process in one embodiment;
FIG. 6 is a schematic diagram of an interface for switching note pages when a note-taking operation occurs in one embodiment;
FIG. 7 is a diagram illustrating an interface of a page displayed when a function entry is to be triggered in one embodiment;
FIG. 8 is a diagram illustrating an embodiment of determining display areas of function pages corresponding to different functions;
FIG. 9 is a schematic interface diagram of a page displayed when a first function switching operation occurs in yet another embodiment;
FIG. 10 is a schematic diagram illustrating a process of storing pages in a function switching method according to another embodiment;
FIG. 11 is a diagram of a multi-way tree used to record user access paths to corresponding functions in one embodiment;
FIG. 12 is a schematic interface diagram of a page displayed when a second function switching operation occurs in another embodiment;
FIG. 13 is a flow diagram illustrating a method for switching functions in an exemplary embodiment;
FIG. 14 is a block diagram showing the structure of a page switching apparatus according to an embodiment;
FIG. 15 is a block diagram showing the construction of a page switching apparatus according to another embodiment;
FIG. 16 is a block diagram showing a configuration of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, a method of function switching is provided. The function switching method is applied to the terminal. The terminal may specifically be a desktop terminal or a mobile terminal, and the mobile terminal may specifically be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. At least one application, such as a social application, a payment application, a game application, etc., is run on the terminal. Each application running on the terminal has multiple functions. For example, the social application may have a conversation function, an article push function, a payment function, and the like at the same time. Each function has a corresponding one or more function pages. For example, in the session function, a buddy list page, a session page with a different buddy, and the like may be displayed.
Referring to fig. 1, the function switching method specifically includes the following steps:
s102, responding to the triggered first function switching operation, storing a first function page pointed by the first function switching operation, and displaying a switching note page.
Here, the function switching operation refers to an operation capable of triggering switching from one function of an application to another function of the application. The function switching operation may specifically be a sliding operation along a specific track, such as a sliding operation along a track route of "L", "Z", or the like, applied to the currently displayed function page. In the embodiment of the present application, the first function switching operation and the second function switching operation mentioned below may be the same type of operation, both being an operation capable of calling out a switch note page. The first function switching operation and the second function switching operation may also be different types of operations, for example, the first function switching operation is an operation capable of calling out a switching note page, and the second function switching operation is an operation capable of triggering a function returning from the current function to the previous access timing without calling out a switching note page. The switching note page is a control center page provided to improve function switching efficiency.
In one embodiment, the function page of the current function is exposed with navigation tags. The first function switching operation and the second function switching operation may specifically be trigger operations acting on the navigation mark. The navigation mark can be displayed on the function page in a floating window mode, and a user can drag the floating window to adjust the display position of the navigation mark in the function page. The navigation mark may also be presented in the function page in the form of a control, which is not limited to this. The trigger operation may specifically be a touch operation, a cursor operation, a key operation, or a voice operation. The touch operation can be touch click operation, touch press operation or touch slide operation, and the touch operation can be single-point touch operation or multi-point touch operation; the cursor operation can be an operation of controlling a cursor to click or an operation of controlling the cursor to press; the key operation may be a virtual key operation or a physical key operation, etc.
For convenience of description, a function accessed by the terminal when the first function switching operation is triggered will be hereinafter referred to as a first function, and a function desired to be switched in, which is specified based on the switch note page, will be hereinafter referred to as a second function. For example, suppose that a user a desires to create a document and share the document to a user B during a session with one or more other users B on a session page based on a social application, the user a needs to trigger the application to switch from a session function to a new document function. At this time, the session function is the first function, and the new document function is the second function. It is understood that the first function and the second function are relative concepts.
The stored first function page records page data (hereinafter referred to as an "initial page") originally pulled from the application server, and also keeps a user access record based on the initial page, such as browsing status, input data, and the like. The browsing state comprises the display position of the initial page in the corresponding function page when the initial page is closed. For example, the initial page is an article, and the browsing status includes a last browsing location of the article by the user when exiting the function page showing the article. The input data refers to data marked based on text, picture, voice, underline, or the like input from the initial page.
In one embodiment, the stored first function page may be a snapshot view corresponding to the first function page. A snapshot view is a fully available copy of a given data set that includes an image of the corresponding data at some point in time (the point in time at which the copy began). The snapshot may be a copy of the data it represents or may be a replica of the data. The page referred to in this embodiment refers to an image of a certain page in an application.
Specifically, the application exposes a first function page, i.e., a function page of the first function. The user can trigger to switch and display different first function pages according to requirements. In other words, when a page switching operation based on the first function occurs, the terminal switches a different function page showing the first function. The page switching operation refers to an operation capable of triggering switching from one function page of a function to another function page of the function. For example, when the user currently accesses the function page a1 of the first function a, when a page switching operation based on the first function is triggered, it is possible to switch from the function page a1 to the function page a2 of the first function a. Assuming that the user sequentially accesses the function pages a1, a2, and A3 of the first function a, the function page of the previous access timing of the function page a2 is a1, and the function page of the subsequent access timing is A3.
The user may also trigger a switch from the function page of the first kinetic energy to the function page of the other function. When the user triggers the first function switching operation, the terminal stores a first function page pointed by the first function switching operation. The first function page pointed by the first function switching operation is a function page of the first function displayed on a terminal display screen when the first function switching operation is triggered. For example, the user accesses the function pages a1, a2, and A3 of the first function a in sequence, and when the user accesses the function page A3, the first function switching operation is triggered, and the first function page to which the first function switching operation is directed is the function page A3. When a user triggers the first function switching operation, the terminal switches the first function page to the switching note page for displaying, or displays the switching note page in a certain page area of the first function page.
In one embodiment, when responding to the triggered first function switching operation, the step of storing the page pointed by the first function switching operation comprises the following steps: monitoring a first function switching operation triggered based on an application by an application view based controller; intercepting a storage instruction of a first function page pointed by a first function switching operation by a system view controller when the function switching operation is monitored; and storing the first function page pointed by the monitored first function switching operation.
The system view controller refers to a view controller provided by an operating system running on the terminal. The system view controller is used for controlling switching between different applications. In some scenarios, the system view controller is also used to control switching between different functions for each application. In the embodiment of the application, in order to keep the access record of the user to the accessed function page, an application view controller is integrated in the application. An application view controller refers to a custom view controller integrated into an application. The application view controller is used for controlling the display of the pages in the application on the terminal, such as controlling the hierarchical relationship between different pages and between different page elements in each page.
Specifically, when one application is controlled to switch between different functions, the system view controller monitors function switching operation triggered by the user based on the application. When the first function switching operation is monitored, the system view controller triggers a storage instruction of a first function page pointed by the first function switching operation, and stores the first function page pointed by the first function switching operation based on the storage instruction. The system view controller controls the storage of the initial page itself. As shown in fig. 2A, when switching from function a to function B, the function page displayed by the function page corresponding to function a is the function page a containing the user access record, and the system view controller only controls the initial page a 'storing function a, and only resumes displaying the initial page a' when switching from function B back to function a.
The application view controller monitors a storage instruction from the system view controller to the first function page pointed by the first function switching operation, and intercepts the storage instruction when the storage instruction is monitored. Or the application view controller monitors the first function switching operation triggered by the user based on the application. When the first function switching operation is monitored, the application view controller intercepts a storage instruction from the system view controller for the first function page pointed by the first function switching operation. After the storage instruction is intercepted, the application view controller stores a first function page pointed by the first function switching operation. As shown in fig. 2B, when switching from function a to function B, the application system view controller function a corresponds to the function page a shown by the function page, and when switching from function B back to function a, the function page a containing the user access record may be recovered.
In one embodiment, when the system view controller is only used to control switching between different applications and is not used as a switch before the application-unusable function, there is no store instruction from the system view controller for the first function page to which the first function switching operation is directed. At this time, the application view controller may control the storage of the first function page directly based on the monitoring result of the first function switching operation.
The preset application view controller can store the first function page to be switched away when function switching occurs each time, and further can keep the access record of the user to the accessed function page.
And S104, determining the function entry triggered by switching the note page.
The function entry is a control which is displayed on the switching note page and used for triggering entry into the corresponding function page. The function portals may be presented in the form of icons of the corresponding functions. As shown in fig. 3, after the user triggers a first function switching operation based on the first function page 302, the first function page 302 is switched to a switching note page 304 for presentation. The switch notes page 304 provides a plurality of functional portals 306 for selection by the user. Each function portal corresponds to a function of the application. The user may specify a second function to be switched in from the first function by selecting a different function entry. Switching notes pages can navigate the user to switch from a first function to any other function. The page shape of the switching note page and the layout of the function inlets can be set according to the requirement, and if the plurality of function inlets are arranged in the switching note page in a fan shape, the switching note page is not limited.
Specifically, the terminal monitors the selection operation of the user on the function entry during switching the note page, and obtains the function identifier of the function corresponding to the selected function entry. The function identification can jump into the link of the corresponding function, etc.
In one embodiment, the application may default to showing the function entry corresponding to each function supported on the switch notes page.
In one embodiment, the application may support user-defined functionality portals added to the switch notes page. For example, in an embodiment, the function switching method further includes: when a service creation operation occurs, determining a service function pointed by the service creation operation; and adding a function entrance corresponding to the service function to the switching note page. In other words, when a user triggers a service creation operation on a function page of a certain function, the application directly adds a function entry corresponding to the function to which the service creation operation is directed to a switching note page, or shows a prompt on the function page according to the service creation operation whether a corresponding function needs to be added to the switching note page, and adds the function entry corresponding to the function to the switching note page after the user confirms the addition.
In one embodiment, the user may add a function entry corresponding to the function identifier to the switching note page by inputting the function identifier or a field related to the function identifier of the corresponding function in the switching note page. The corresponding function entry may be deleted from the switching note page by a drag operation directed to a certain function entry.
And S106, switching to a second function page corresponding to the function entrance.
The application view controller controls and stores the function page pointed by each function switching operation during the current application running period.
For example, after application M is started and run, the user accesses application M in sequence
Function a (function page a1 → function page a2 → function page A3),
function B (function page B1 → function page B2 → function page B3 → function page B2),
function C (function page C1 → function page C2 → function page C3),
function B (function page B2 → function page B4 → function page B5).
The exit application is closed when the access to function page B5 is made. The application starting running comprises a foreground running state when the user uses the application and also comprises a background running state when the user does not use the application temporarily. During this run of application M, function page a3 for function a is stored when switching from function a to function B, function page B2 is stored when switching from function B to function C, and so on.
During the running of the application, the switching from the first function to the second function may be the first time the user accesses the second function, or may be the repeated access of the second function by the user. For example, in the above example, when the application M is executed this time, the function page of the function B is not stored, since the function B is accessed for the first time when the function a is switched to the function B. When the function C is switched to the function B, the function B is accessed for the second time during the current running of the application M, and at this time, the function pages B1, B2 and B3 of the function B stored when the function B is accessed for the first time exist.
Specifically, the terminal determines a function identifier corresponding to the triggered function entry, and determines whether a second function page of the function identifier is stored. When the second function page corresponding to the function identifier is not stored, the second function is currently accessed for the first time, and the terminal acquires the function page of the entry page corresponding to the function identifier. The entry page is the first entry of the guest second function, i.e. the first visited page each time the second function is accessed. And the terminal directly displays the entry page of the second function. As shown in FIG. 4, when the user accesses the new document function for the first time, the terminal presents a second function page 402 showing an entry page corresponding to the new document function. When a page switching operation based on the second function is triggered, a switch may be made from the second function page 402 to the second kinetic energy page 404.
When a second function page with the function identifier is stored, the second function is currently accessed for the second time, the stored second function page is the function page stored when the second function is accessed for the first time, and the terminal directly displays the function page on the second function page, so that the terminal is convenient for starting the current access on the basis of the state of accessing the second function for the previous time. Each page has a corresponding switch timestamp. The switching timestamp records the generation time of the corresponding page. When a plurality of second function pages of the function identifier are stored, the user is indicated to have accessed the second function for a plurality of times during the current running of the application, and the terminal displays the stored second function page of the last access time sequence according to the switching timestamp.
In one embodiment, when the quit application M is closed, the application view controller controls to delete the first function page and the second function page stored in the process of running the application M this time, so as to reduce occupation of memory resources of the terminal.
In one embodiment, when the exiting application M is closed, the application view controller does not immediately delete the first function page and the second function page stored in the process of running the application M this time, but judges whether the end time of the running period is reached. The operation period can be freely set according to requirements, such as 8:00(am) to 10:00 (pm). And if the end time of the running time interval does not reach, restarting the running application M by the user, and continuously storing the first functional page and the second functional page stored in the process of running the application M for the second time by the application view controller. In other words, the application view controller controls to store the first function page to which each function switching operation is directed during one or more times of running the application within the running period. For example, the user runs the application M three times in the running period, and the corresponding first function page and second function page are stored in the above manner when the application M is run each time, so that when the application M is restarted to run for the third time, the user can also obtain the access records of the application M that was run for the previous two times.
In one embodiment, in order to reduce the storage pressure of the terminal, the application view controller may control to store the first function page and the second function page pointed by each function switching operation in the running period to the other computer device, and dynamically acquire the first function page and the second function page from the other computer device when the page restoration presentation is required.
And S108, responding to the triggered second function switching operation returned to the first function page, storing the second function page, and restoring the first function page.
When the first function is separated and the second function is switched into, the application can also be switched back to the first function from the second function. The second function switching operation refers to an operation capable of triggering the first function switching from the second function of the application back to the previous access timing. The second function switching operation may specifically be a sliding operation along a specific trajectory that acts on the second function page. For example, when the first function switching operation is a sliding operation that acts on the first function page in a first direction, the second function switching operation may be a sliding operation that acts on the second function page in a second direction opposite to the first direction.
Specifically, when the second function switching operation occurs, the application view controller stores a second function page to which the second function switching operation is directed. The second function page pointed by the second function switching operation refers to a function page of the second function required to be displayed on the terminal display screen when the function switching operation is triggered. For example, in the above example, after switching from the function B to the function C, the user accesses the function pages C1, C2, and C3 of the second function C in sequence, and when the user triggers the second function switching operation to return to the function B when accessing the function page C3, the second function page to which the second function switching operation is directed is the function page C3.
And the second function page pointed by the second function switching operation and the stored second function page form a function page corresponding to the second function at present, so that the function page with the stored second function is updated. For example, in the above example, the user accesses functions A, B, C and B in sequence during the current running of the application M, and when switching from function B back to function C, the application view controller controls to store the function page B2 of function B, but the function page of function B does not exist before, and the function page of function B is updated. Assuming that the application view controller has controlled the function page B3 storing the function B when switching back from function B to function C, the function page corresponding to the function B at this time includes B3 and B5.
Further, when the user triggers a second function switching operation, the terminal switches the second function page back to the first function page for displaying. When the second function returns to the first function, the terminal can restore and display the last first function page accessed when the first function was accessed last time. And according to the switching timestamp, the terminal acquires a first function page of the last access time sequence corresponding to the stored first function. It can be understood that the stored page of the last access timing sequence corresponding to the first function is the first function page pointed to by the last function switching operation. For example, in the above example, when the user triggers the switch from function C back to function B, the terminal switches from the function page of function C to the function page B2 of the last access timing when function B was accessed last time.
In one embodiment, when the user triggers the second function switching operation, the terminal may also restore the entry page of the second function by default, or another function page specified in advance by the user.
In one embodiment, when the user triggers the second function switching operation, the terminal may also be push information based on the first function transmitted by the server during the access to the second function. The push information based on the first function refers to push information related to the first function, for example, the first function is a paid service function, and the related push information may be resource transfer information, such as coupon push information, red packet push information, and the like. The push information and each function page respectively have corresponding priority. And the terminal judges whether the push information needs to be preferentially displayed or not according to the priority. The priority may be specifically determined according to a matching degree between the content of the push information or the function page and the preset keyword. When the matching degree of the content of the push information and the keyword set by the user is higher, the higher the interest degree of the user in the push information is, the higher the corresponding priority level of the push information is. When the priority level of the push information is higher than that of the returned first function page determined by the method, the terminal is switched to the push information from the second function page for displaying.
In one embodiment, the user may continue to trigger the function switching operation as described above based on the second function page to switch to the application of the other function other than the first function. For example, in the above example, after triggering the switch from function a to function B of application M, the user may trigger the switch from function B back to function a, or may trigger a further switch from function B to function C. It is understood that when switching from function a to function B, function a is the first function and function B is the second function; when switching from function B to function C, function B is the first function and function C is the second function.
In one embodiment, the function page is displayed with a function switching control or a function returning control; the function switching operation comprises a triggering operation based on the function switching control; the second function switching operation includes a trigger operation based on the function return control.
As shown in fig. 4, the second function page shows at least one of a function switching control 406 and a function returning control 408. The toggle based functionality control 406 can trigger a toggle operation. The functionality-based return control 408 may trigger a second functionality switching operation. In one embodiment, the first function page may also exhibit a function switching control or a function returning control.
The multiple function pages corresponding to each function have different page levels, wherein the function page corresponding to the entry page is the function page of the highest level. There may be multiple function pages at the same level. For example, the highest level function page corresponding to function a may be a1, the next highest level function page may be a2 and a6, and the next level function page corresponding to function page a2 may include A3 and a 4. As shown in fig. 4, the user may either drop back the previous level function page from the function page of the current level based on the triggering operation of the "back" control 410 on the second function page, or jump from the current level function page to the next level function page by triggering the page link 412 of the next level function page presented by the second function page. The lower the hierarchy of the function page accessed by the user, the deeper the access depth to the corresponding function.
Specifically, the function page of the second function displayed is switched according to the page switching operation triggered by the user. But whichever function page is always shown with the function toggle control. And when the triggering operation acting on the function switching control occurs, the terminal displays a switching note page. The note page can be switched to any other function by one key based on switching. The second function page is always displayed with the function switching control, so that the function pages of any level can be accurately and quickly triggered to switch different functions without switching step by step, the function switching efficiency is improved, and the terminal data processing resources can be saved due to the reduction of the frequent page switching processing process in the middle.
The user can call up the switching note page through the function switching control displayed by the second function page, and the switching back from the second function to the first function is triggered based on the switching note page. For example, as shown in fig. 5, the function a may be switched from another function based on the switching note page, and the application view controller controls to switch from the switching note page to the function page corresponding to the function a for presentation. When function switching operation based on the function page of the function A occurs, the application view controller controls the function page corresponding to the storage function A and controls switching from the function page of the function A to the switching note page for displaying. And when the triggering operation of the function entrance corresponding to the function B occurs in the switching note page, the application view controller controls the switching note page to be switched to the function page corresponding to the function B for displaying. When function switching operation based on the function page of the function B occurs, the application view controller controls the function page corresponding to the storage function B and controls switching from the function page of the function B to the switching note page for displaying. When the triggering operation of the function entrance corresponding to the function A occurs in the switching note page, the application view controller controls the switching note page to be switched to the function page corresponding to the function A for displaying, and the stored function page of the function A is restored to be displayed.
In another embodiment, the second function page is always exposed with a function return control. Regardless of which function page is presented, the second function page is always presented with a function return control. When the triggering operation acting on the function returning control occurs, the terminal is switched back to the first function page from the second function page without transferring through the switching note page. Because the second function page is always displayed with the function returning control, the function page of which the access level is no matter can be returned to the first function by one key, and the function returning efficiency is improved.
In one embodiment, the page switching operation is an operation capable of triggering presentation of a navigation page corresponding to the function. In other words, when the page switching operation is triggered based on the second function page, the terminal displays a navigation page corresponding to the second function on the display screen. The navigation page is a control center page which is arranged for improving the switching efficiency between different function pages with the same function. That is, a corresponding navigation page is provided for each function. The navigation page provides a plurality of page entries for selection by the user. The page entry is a control which is displayed on the navigation page and used for triggering the display of the corresponding function page on the second function page. Each page entry corresponds to a function page of the function. The user can specify another function page to be switched into from the current function page by selecting a different page entry. It can be understood that switching between any two functional pages of corresponding functions can be realized based on the navigation page, and is not limited by page levels, i.e. functional page switching does not need to be performed step by step, and page switching efficiency is improved.
According to the function switching method, when the first function switching operation occurs, the switching note page is provided, and the switching note page can be quickly switched from one function of the application to another function corresponding to any function entry based on the switching note page. In addition, when the first function switching operation occurs, the first function page pointed by the first function switching operation is stored in time, and because the first function page reserves the access record of the user to the function page to be switched away, when the second function switching operation occurs, namely the function is switched back again, the switched page can be rapidly restored and displayed in the access state when the user is switched away last time based on the first function page, so that the user can continue to access the page on the basis of the historical access state.
In one embodiment, the function switching method further includes: when the remark operation pointing to the function entrance occurs, storing the remark information generated by the remark operation in association with the pointed function entrance; and when the function entry related to the remark information is triggered, displaying the related remark information on a function page corresponding to the function entry.
The remark operation refers to an operation that can trigger addition of remark information for a certain function entry, and specifically may be a touch operation, a click operation, a cursor operation, a key operation, a voice operation, or the like that acts on a corresponding function entry. The remark information is an annotation description set by the user to help the user quickly recall the current access state when the user accesses the corresponding function next time.
Specifically, when a remark operation acting on and switching a certain function entry in the note page occurs, the terminal displays a remark frame in the switched note page, acquires remark information input by a user in the remark frame, and associates the remark information with the function entry pointed by the corresponding remark operation. The remark information can be displayed near the entrance of the associated function or can be hidden. Each function portal may add a corresponding one or more pieces of remark information.
And when the function entry related to the remark information is triggered, displaying the related remark information on a function page corresponding to the function entry. As shown in fig. 6, the "new document" function entry is associated with information of "remark 1". When the function entrance of the 'new document' is triggered, the terminal is switched to the function page of the 'new document' from the switching note page, and the related remark information 'remark 1' is displayed on the function page of the 'new document'. The display position of the remark information on the function page corresponding to the corresponding function entry can be a pre-designated eye-catching position. The display duration of the remark information in the corresponding function entry corresponding to the function page may be always displayed, or may automatically disappear after the display duration in the corresponding function page is preset, for example, 3 seconds, which is not limited to this.
In one embodiment, the function switching method further includes: determining the number of times each function entry is triggered; and adjusting the layout position of a function entrance in the switching note page according to the triggered times.
The layout position of each function portal in the switching note page may be determined according to the number of times that each function portal is triggered during the current running of the application. For example, the more times a function entry is triggered, the earlier in the ranking of the switch note pages. As shown in FIG. 6, a plurality of function entries may be arranged in a row in descending order of the number of triggered times on the switch note page, wherein the function entry of "new document" that is triggered the most times is the first order function entry.
In this embodiment, even when a function page corresponding to a certain function entry is not opened, the user is supported to add remark information to each function entry in the switching note page, and when the corresponding function entry is triggered, the corresponding remark information is automatically displayed, so that the user can be helped to quickly remember the last access state to the function, and an effect of making a function access note for a certain function is achieved.
In one embodiment, determining the functional entry triggered at switching the note page comprises: when the quasi-triggering operation of the function entrance occurs, displaying a page switching chain of the second function corresponding to the function entrance pointed by the quasi-triggering operation on a switching note page; the page switching chain comprises a page index of a second function page corresponding to at least one accessed second function; determining a page index triggered by switching a note page; switching to a second function page corresponding to the function entry for display comprises: and switching to a second functional page corresponding to the triggered page index for displaying.
The page switching chain is a page sequence formed by sequencing all function pages of corresponding functions accessed by a user during the current running of the application according to the switching time stamp. Each function has a corresponding page switch chain. The page switch chain includes page indexes of one or more function pages of the corresponding function. The page index is information capable of uniquely identifying one functional page, and specifically may be a thumbnail corresponding to the functional page, or a title corresponding to the functional page, or the like. And page indexes in the page switching chain are arranged according to the access time sequence of the user to the corresponding functions. For example, as shown in FIG. 7, when the first access to the "new document" function is finished, the page switch chain corresponding to the "new document" function includes page indexes 1, 2, 3 and 4 arranged in sequence.
Specifically, the note switching page is called up for display according to function switching operation or page switching operation triggered by a user. When the note switching page generates a quasi-triggering operation pointing to a certain function inlet, the terminal displays a page switching chain of a second function corresponding to the function inlet pointed by the quasi-triggering operation on the note switching page. The quasi-triggering operation directed to a certain function entry is a critical triggering operation performed before the corresponding function entry is actually triggered, such as stopping a cursor on the corresponding function entry, pressing the corresponding function entry for a long time, and the like. When the operation to be triggered does not occur, the page switching chain corresponding to the corresponding function entry can be hidden and displayed. And the terminal determines the page index selected by the user in the switching note page, and directly switches to the second function page corresponding to the triggered page index for displaying.
In the embodiment, when the function switching is triggered, based on the page switching chain displayed by the switching note page, no matter which level of function page of the corresponding function the user needs to access, the user can switch to any accessed function page of the corresponding function by one key without switching step by step, so that the page switching efficiency is improved, and the terminal data processing resources can be saved due to the reduction of the frequent page switching processing process in the middle.
In one embodiment, the function switching method further includes: displaying a first function page based on a first layer in a display area of a display screen; in an area outside the display area, displaying and switching a note page based on the upper layer of the first layer in a hidden mode; storing a first function page pointed by a first function switching operation, and displaying a switching note page comprises: storing a first function page displayed when a first function switching operation occurs; and moving the switching note page into a display area for displaying.
Here, the display area of the display screen (hereinafter referred to as a home screen area) refers to all or a partial area of the display screen that can be used for page presentation. The region outside the display region (hereinafter referred to as a side screen region) is a region that does not intersect the main screen region. As shown in fig. 8, in the embodiment of the present application, the main screen area 802 may be the entire area of the display screen that can be used for page presentation, and the side screen area 804 is an area adjacent to the main screen area outside the display screen. The side screen region 804 has the same shape of the region boundary line as the main screen region 802. The layers comprise elements such as texts, pictures, tables or plug-ins, and the plurality of layers are stacked together in sequence and combined to form the final effect of the page displayed in the display area by the terminal display screen. The elements displayed in the upper layer can cover the elements displayed in the same area of the current layer.
Specifically, as shown in fig. 9, a first function page 902 is displayed on a first layer of the main screen area, and a switching note page 904 is displayed on a second layer of the side screen area. The second layer is an upper layer of the first layer. When the user triggers the function switching operation based on the first function page 902, the side screen area is completely located outside the display screen, and thus the switching note page is in a hidden display state and invisible to the user. After the first function switching operation is triggered, the terminal keeps the main screen area unchanged relative to the display screen, and controls the side screen area and the main screen area to be overlapped according to a preset layout strategy, namely, the position of the side screen area relative to the main screen area is adjusted. The overlap ratio may be predetermined. As shown in fig. 9, when the overlap ratio is 50%, since the first function page and the switching note page are displayed based on different layers, an effect that half of the display screen displays the first function page and half of the switching note page can be realized. It will be appreciated that switching notes pages may occur directly in the display screen or may be gradually moved into the display screen. When the switching note page is gradually moved into the display screen, the moving-in speed and the moving direction may be preset.
In the embodiment, after the first function switching operation is triggered, the switching note page is moved into the display screen, and part or all of the content displayed on the display screen of the first function page is covered by the switching note page.
In one embodiment, the first function switching operation includes a sliding operation directed to switching a note page; moving the switching note page into the display area for display comprises the following steps: determining a sliding speed and a sliding direction of the sliding operation; and moving the switched note page into a display area for displaying according to the sliding speed and the sliding direction.
The sliding operation directed to the switching note page refers to an operation that can move the switching note page from outside the display screen to inside the display screen for presentation, for example, a sliding operation that takes an edge position of the display screen as a start sliding position. The display screen edge position may be any position within the display area of the display screen that is close to the border line of the display screen.
Specifically, when a sliding operation directed to switching of the note page occurs, the terminal determines a sliding speed and a sliding direction of the sliding operation, and takes the sliding speed as a moving-in speed of the switching of the note page and the sliding direction as a moving-in direction of the switching of the note page. And the terminal moves the switching note page into the main screen area according to the moving-in speed and the moving-in direction, so that the effect of gradually moving the switching note page into the display screen is realized.
In this embodiment, after the first function switching operation is triggered, the switching note page is gradually moved into the display screen, and the content displayed on the display screen by the first function page is gradually covered by the switching note page.
In one embodiment, the function switching method further includes: when page switching operation based on the second function page occurs, switching to other second function pages of the second function pointed by the page switching operation for displaying; and storing the second function page pointed by the page switching operation and the switching time stamp.
Specifically, in addition to controlling to store the second function page pointed to by the function switching operation at the time of the function switching operation, the application view controller is also configured to control to store the second function page pointed to by each page switching operation. The application view controller monitors page switching operation and function switching operation triggered by a user based on an application. When the page switching operation or the function switching operation is monitored, the application view controller intercepts a storage instruction from the system view controller, wherein the storage instruction is pointed to by the page switching operation or the function switching operation. After the storage instruction is intercepted, the application view controller stores a second function page pointed by the page switching operation or the function switching operation.
For example, in the above example, as shown in fig. 10, during the current running of the application M, the entry page of the function a accessed first is shown. Triggering a page switch operation based on the entry page may access a different function page of function a. At this point the application view controller begins to control the storage of the page pointed to by each page switch operation. When switching from the entry page corresponding function page a1 to function page a2, store function page a 1; when switching from function page A2 to function page A3, function page A2 is stored. When a function switching operation based on the function page A3 occurs, the function page A3 is stored.
When switching from function a to function B, the entry page of function B is presented for the first access to function B. When switching from the entry page corresponding function page B1 to the function page B2, store the function page B1; when switching from function page B2 to function page B3, function page B2 is stored. When switching back from function page B3 to function page B2, function page B3 is stored. When a function switching operation based on the function page B2 occurs, the function page B2 is stored. It will be appreciated that the switch timestamps of the function page B2 stored in the first and second times are different, and the access records of the reserved users may also be different.
In this embodiment, the second function page pointed by each page switching operation is stored, so that the access records based on different function pages when the user accesses each second function are more comprehensively retained, and the user can continue to access the page on the basis of the historical access state.
In one embodiment, when responding to a triggered second function switching operation returning to the first function page, the storing the second function page includes: when a second function switching operation returning to the first function page occurs, storing a second function page and a switching timestamp pointed by the second function switching operation; and updating the page switching chain of the second function based on the page switching operation or each second function page and the switching timestamp stored in the second function switching operation when the second function is accessed.
Specifically, the application view controller may form a page switching chain corresponding to a certain function based on a page of the function stored in each page switching operation and the second function switching operation. With the continuous triggering of the page switching operation and the function switching operation, the number of stored pages is continuously increased, and the corresponding page switching chain is continuously prolonged. The access time sequence of each functional page in the page switching chain can be determined according to the switching time stamp ti (i is larger than or equal to 1) corresponding to the functional page.
For example, in the above example, the user accesses the function B twice during the current running of the application M, and when the first access to the function B is performed, the entry page of the function B is displayed. When the function page B1 is switched to the function page B2 from the entry page at time t1, the function page B1 is stored, and the page switching chain corresponding to the function B may be [ (page B1, t1) ]. When switching from the function page B2 to the function page B3 at time t2, the function page B2 is stored, and the page switching chain corresponding to the function B may be [ (page B1, t1), (page B2, t2) ], so that the page switching chain is continuously extended. At the end of the first access to function B, the page switching chain corresponding to function B may be [ (page B1, t1), (page B2, t2), (page B3, t3), (page B2, t4) ].
When accessing function B for the second time, the updating may be continued on the basis of the page switching chain corresponding to function B when the first access to function B is finished. Thus, the page switching chain corresponding to function B at the end of the second access to function B may be [ (page B1, t1), (page B2, t2), (page B3, t3), (page B2, t4), (page B2, t5), (page B4, t6), (page B5, t7) ].
In the embodiment, the page switching chain is constructed, so that the access path of the user to each functional page with different functions can be recorded according to the access time sequence, and the page recovery can be rapidly and accurately performed during page switching.
In one embodiment, the second function page pointed to by the page switch operation is taken as a source page; the second function page and the switching time stamp pointed to by the memory page switching operation include: when the page switching operation based on the second function occurs, storing a second function page and a switching timestamp pointed by the page switching operation; determining a second function page of a previous access time sequence corresponding to the source page in a page switching chain corresponding to the function entry according to the switching timestamp; when the page switching operation is finished, determining a second function page of a next access time sequence corresponding to the source page; and when the page identifications of the second functional page in the previous access time sequence and the second functional page in the next access time sequence corresponding to the source page are consistent, deleting the source page.
The second function page pointed to by the page switching operation can be called as a source page pointed to by the page switching operation. When the page switching operation is completed, a second functional page of a subsequent access timing sequence corresponding to the source page may be determined. For convenience of description, the second functional page of the subsequent access timing corresponding to the source page may be referred to as a target page pointed to by the page switching operation. Similarly, the page pointed by the function switching operation comprises a source page and a target page pointed by the function switching operation. For example, in the above example, when the function page A3 is accessed to trigger the switch to function B, the source page pointed by the function switch operation is the function page A3, and the destination page is the function page B1. For convenience of description, the page switching operation and the function switching operation are collectively referred to as a switching operation, and the page returning operation and the second function switching operation are collectively referred to as a returning operation hereinafter.
Specifically, when the application view controller constructs a page switching chain corresponding to each function, the application view controller filters the function pages added to the page switching chain. The storage time of the function page may be that the switching operation is triggered, that is, once the switching operation occurs, the source page pointed by the switching operation is immediately stored. At this time, the application view controller cannot determine the target page to which the switching operation is directed.
Further, the application view controller judges whether the stored source page should be retained or not, with the user specifying the target page to be switched into by switching the note page or the like. The judging logic may acquire a page identifier of a previous access timing function page of the source page, and judge whether the switching operation belongs to the returning operation by comparing whether the page identifier of the target page is consistent with the page identifier of the previous access timing function page. And when the page identifier of the target page is consistent with the page identifier of the previous access timing function page, indicating that the corresponding switching operation belongs to the return operation, and controlling to delete the stored source page by the application view controller.
For example, in the example above, function page B3 is stored when switching from function page B3 back to function page B2. After determining that the target page to be switched into is the function page B2, it is found that the previous access timing function page of the function page B3 is also B2, the switching operation of the table name from the function page B3 to the function page B2 belongs to the return operation, and the application view controller may control to delete the stored function page B3.
In one embodiment, during one running of an application, if the same functional page is accessed multiple times, multiple functional pages corresponding to the functional page are stored. In order to save the storage space, only the page of the last access time sequence corresponding to the functional page needs to be stored. For example, in the above example, when a function switching operation based on the function page B2 occurs, the function page B2 is stored, whereas a copy of the function page B2 has been stored before the function page B2 is switched to the function page B3, and at this time, the function page with the earlier access timing may be deleted. Thus, when the first access to the function B is completed, the page switching chain corresponding to the function B is [ (page B1, t1), (page B2, t4) ].
In this embodiment, for a source page that returns to a previous access timing function page after accessing a target page, the source page may be considered to be a function page of an intermediate transition that is temporarily accessed due to a malfunction or only needs to acquire some information with a certain degree of confidence. Deleting redundant function pages for transition and reserving the currently accessed main function pages can save storage resources under the condition of reserving main access information. More importantly, the page recovery accuracy can be improved based on the page switching chain with the redundant pages filtered.
In one embodiment, switching the exposed second function page according to a page switching operation includes: when the page switching operation points to the functional page of the target access time sequence in the page switching stream, switching to a second functional page of the target access time sequence for display; and when the page switching operation points to a second functional page in the second functional page, which does not belong to the page switching stream, switching to the second functional page pointed by the page switching operation for displaying.
For ease of understanding, the process of a user accessing different function pages of a function may be understood as a process of multi-way tree building. After the running application is started, the corresponding function is accessed from the entry page of each function, and the function page corresponding to the entry page can be continuously switched to other function pages subsequently. Therefore, by taking the page identifier of each accessed function page as a node and taking the switching relation of different function page time as a directed edge, a multi-branch tree capable of reflecting the access path of the user to the corresponding function can be formed. And the function page corresponding to the entry page is a root node in the multi-branch tree. For example, as shown in fig. 11, in the above example, during the current running of the application M, each node has a shortest path to the root node in the multi-way access path formed by accessing different function pages in the function B. For example, the shortest path from the node corresponding to the function page B2 to the root node is "B1 → B2", and the shortest path from the node corresponding to the function page B3 to the root node is "B1 → B2 → B3". The shortest path between the corresponding node of the currently accessed function page and the root node can be regarded as a main access path of the current time.
And after determining the target page pointed by the switching operation, the application view controller determines whether the shortest path from the node corresponding to the target page to the root node contains the node corresponding to the source page pointed by the switching operation. If not, the application view controller controls the deletion of the stored source page. For example, when switching from function page B3 to function page B2 at time t3, source page B3 is stored, and the shortest path from the node corresponding to destination page B2 to the root node is "B1 → B2", and does not include the node corresponding to source page B3. For function page B3, which is accessed once and then returned to the previous access timing function page B2, it can be considered to some degree of confidence that an intermediate transitional function page is temporarily accessed because of a malfunction or simply the need to obtain some information. The application view controller may control to delete the source page B3 at this time, and when a function switching operation based on the function page B2 occurs at the time t4, a page based on the newly stored function page B2 replaces the function page B2 stored at the time t 2.
It should be noted that, in the actual page switch chain building process, there is no need to rely on a multi-branch tree, that is, there is no step of building the multi-branch tree, and this is only to facilitate those skilled in the art to understand the logic of screening the functional pages added to the page switch chain in the page switch chain building process.
Specifically, the application view controller retains each function page accessed by the user based on the backbone access path in the manner described above. Based on the page switching chain, the user can trigger switching to return to any visited functional page on the main access path, and can also extend the page switching chain by continuing to visit a new functional page. For example, in the above example, the page switching chain corresponding to the function B may be [ (page B1, t1), (page B2, t5), (page B4, t6), (page B5, t7) ] when the second access to the function B is finished, when the third access to the function B is performed, the function page B5 may be switched back to the function page B4, the function page B2 may be further rolled back along the page switching chain, and a new function page (e.g., B6) may be accessed, where the page switching chain is extended.
In this embodiment, based on the page switching chain in which the redundant pages are filtered, the page recovery efficiency and accuracy can be improved.
In one embodiment, switching to the stored second function page corresponding to the function entry for presentation includes: judging whether a page switching chain of a function entry corresponding to a second function is stored; the page switching chain comprises one or more second functional pages with different access time sequences; and if so, switching to a second functional page of the last access time sequence in the page switching chain for displaying.
Specifically, according to a function entry triggered by switching a note page, the terminal judges whether a page switching chain corresponding to the second function of the function entry is stored. And if the corresponding page switching chain is stored, the terminal is switched to a second function page of the last access time sequence in the page switching chain for displaying. For example, in the above example, during the current running of the application M, when the function a is switched to the function B, the function B is accessed for the first time, and at this time, the page switching chain of the function B does not exist yet. And when the function B is switched from the function C to the function B, the function B is accessed for the second time, and at this time, the page switching chain of the function B already exists, and the function page B2 collected at the time t4 can be displayed on the second function page.
In one embodiment, the function switching method further includes: and when the page switching chain does not exist, switching to the entry page of the second function for displaying.
In this embodiment, the page switching chain stores multiple functional pages of corresponding functions according to an access timing sequence, and not only can a functional page based on a last access timing sequence quickly return to an access state when a function is accessed last time and leaves, but also can support a user to quickly restore the access state of each functional page accessed based on the page switching chain.
In one embodiment, restoring the first function page includes: restoring and displaying a first function page pointed by first function switching operation based on a first layer in a display area of a display screen; and according to the second function switching operation, moving a second function page displayed on an upper layer of the first layer out of the display area.
Specifically, as shown in fig. 12, a second function page 1202 is displayed on the second layer of the side screen area, and a first function page 1204 is displayed on the first layer of the main screen area. When the user triggers the second function switching operation based on the second function page 1202, the side screen area is the entire display area of the display screen, and thus the first function page is in a hidden display state and is invisible to the user. After the second function switching operation is triggered, the terminal keeps the main screen area unchanged relative to the display screen, and controls the side screen area to be separated from the main screen area according to a preset layout strategy so as to move the side screen area out of the main screen area. The removal speed and the removal direction may be preset.
In one embodiment, the second function switching operation includes a sliding operation directed to the second function page; moving the second function page out of the display area for display comprises: determining a sliding speed and a sliding direction of the sliding operation; and moving the second function page out of the display area according to the sliding speed and the sliding direction.
As shown in fig. 12, when the overlap ratio between the main screen area and the side screen area is 50%, the first function page and the second function page are displayed based on different layers, so that the effect that half of the display screen displays the first function page and half of the display screen displays the second function page can be realized.
In this embodiment, after the second function switching operation is triggered, the second function page is moved out of the display screen, so that the first function page is gradually restored to be displayed.
In a specific embodiment, referring to fig. 13, the function switching method includes the steps of:
s1302, displaying a first function page based on the first layer in a display area of the display screen.
S1304, in the area outside the display area, the switching note page is hidden and displayed on the basis of the upper layer of the first layer.
S1306, monitoring a first function switching operation triggered based on a first function page based on an application view controller; the first function switching operation includes a slide operation.
S1308, when the first function switching operation is monitored, a storage instruction of the system view controller to the first function page to which the first function switching operation is directed is intercepted.
S1310, storing the first function page pointed by the monitored first function switching operation.
S1312, a sliding speed and a sliding direction of the sliding operation are determined.
And S1314, moving the switching note page into the display area for displaying according to the sliding speed and the sliding direction.
S1316, determining the function entry triggered by switching the note page.
S1318, switching to the function entry to display corresponding to the second function page.
S1320, judging whether a page switching chain of the function entry corresponding to the second function is stored; the page switching chain includes one or more second functional pages having different access timings.
S1322, when there is a page switching chain, switching to the second functional page of the last access timing sequence in the page switching chain for displaying.
S1324, when the page switching operation based on the second function page occurs, switching to other second function pages of the second function pointed by the page switching operation for displaying; the second function page pointed by the page switching operation is used as a source page;
s1326, storing the second function page pointed by the page switching operation and the switching time stamp.
And S1328, determining a second function page of the previous access time sequence corresponding to the source page in the page switching chain corresponding to the function entry according to the switching timestamp.
S1330, when the page switching operation is completed, determining a second functional page of a next access timing corresponding to the source page.
And S1332, deleting the source page when the page identifiers of the second function page in the previous access time sequence and the second function page in the next access time sequence corresponding to the source page are consistent.
And S1334, when responding to the triggered second function switching operation returned to the first function page, storing a second function page and a switching time stamp pointed by the second function switching operation.
And S1336, updating the page switching chain of the second function according to the page switching operation or each second function page and the switching time stamp stored in the second function switching operation when the second function is accessed at this time.
And S1338, restoring and displaying the first function page pointed by the first function switching operation based on the first layer in the display area of the display screen.
And S1340, according to the second function switching operation, moving the second function page displayed in the upper layer of the first layer out of the display area.
According to the function switching method, when the first function switching operation occurs, the switching note page is provided, and the switching note page can be quickly switched from one function of the application to another function corresponding to any function entry based on the switching note page. In addition, when the first function switching operation occurs, the page pointed by the first function switching operation is stored in time, and because the page keeps the access record of the user to the page of the current function to be switched away, when the second function switching operation occurs, namely the function is switched back again, the switched page can be quickly displayed in the access state of the user when the user is switched away last time based on the page, so that the user can continue page access on the basis of the historical access state.
Fig. 1 and 13 are schematic flow charts of a function switching method in one embodiment. It should be understood that although the various steps in the flowcharts of fig. 1 and 13 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1 and 13 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
As shown in FIG. 14, in one embodiment, a function switching apparatus 1400 is provided that includes a switch note module 1402, a function switching module 1404, and a note recovery module 1406.
The switching note module 1402 is configured to, when responding to the triggered second function switching operation, store the first function page pointed by the first function switching operation, and display the switching note page.
A function switching module 1404, configured to determine, by a function, a function entry triggered when a note page is switched; and switching to a second function page corresponding to the function entrance for displaying.
The note restoring module 1406 is configured to, when responding to a triggered second function switching operation returning to the first function page, store the second function page and restore the first function page.
In one embodiment, the switch note module 1402 is further configured to listen for a first function switch operation based on an application trigger based on the application view controller; intercepting a storage instruction of a first function page pointed by a first function switching operation by a system view controller when the first function switching operation is monitored; and storing the first function page pointed by the monitored first function switching operation.
In one embodiment, as shown in fig. 15, the function switching apparatus 1400 further includes a service creation module 1408, configured to determine, when a service creation operation occurs, a service function to which the service creation operation is directed; and adding a function entrance corresponding to the service function to the switching note page.
In one embodiment, as shown in fig. 15, the function switching apparatus 1400 further includes a switching remark module 1410, configured to store remark information generated by remark operation in association with a function entry pointed to when the remark operation pointed to the function entry occurs; and when the function entry related to the remark information is triggered, displaying the related remark information on a function page corresponding to the function entry.
In one embodiment, the function switching module 1404 is configured to, when a quasi-triggering operation of a function entry occurs, show a page switching chain, in which the function entry pointed to by the quasi-triggering operation corresponds to a second function, on a switching note page; the page switching chain comprises a page index of a second function page corresponding to at least one accessed second function; determining a page index triggered by switching a note page; and switching to a second functional page corresponding to the triggered page index for displaying.
In an embodiment, as shown in fig. 15, the function switching apparatus 1400 further includes a page displaying module 1412, configured to display a first function page based on the first layer in the display area of the display screen; in an area outside the display area, displaying and switching a note page based on the upper layer of the first layer in a hidden mode; the note switching module 1402 is further configured to store a first function page displayed when the function switching operation occurs; and moving the switching note page into a display area for displaying.
In one embodiment, the function switching operation includes a sliding operation directed to switching the note page; the switch note module 1402 is further configured to determine a sliding speed and a sliding direction of the sliding operation; and moving the switched note page into a display area for displaying according to the sliding speed and the sliding direction.
In one embodiment, the function switching module 1404 is further configured to determine whether a page switching chain corresponding to the second function is stored in the function entry; the page switching chain comprises one or more second functional pages with different access time sequences; and if so, switching to a second functional page of the last access time sequence in the page switching chain for displaying.
In one embodiment, the second function page is displayed with a function switching control or a function returning control; the function switching operation comprises a triggering operation based on the function switching control; the second function switching operation includes a trigger operation based on the function return control.
In one embodiment, as shown in fig. 15, the function switching apparatus 1400 further includes a page switching module 1414, configured to switch to another second function page of the second function pointed by the page switching operation for presentation when a page switching operation based on the second function page occurs; and storing the second function page pointed by the page switching operation and the switching time stamp.
In one embodiment, the second function page pointed to by the page switch operation is taken as a source page; the page switching module 1414 is further configured to, when a page switching operation based on a second function occurs, store a second function page pointed to by the page switching operation and a switching timestamp; determining a second function page of a previous access time sequence corresponding to the source page in a page switching chain corresponding to the function entry according to the switching timestamp; when the page switching operation is finished, determining a second function page of a next access time sequence corresponding to the source page; and when the page identifications of the second functional page in the previous access time sequence and the second functional page in the next access time sequence corresponding to the source page are consistent, deleting the source page.
In one embodiment, the note recovery module 1406 is further configured to, when a second function switching operation returning to the first function page occurs, store a second function page pointed to by the second function switching operation and a switching timestamp; and updating the page switching chain of the second function based on the page switching operation or each second function page and the switching timestamp stored in the second function switching operation when the second function is accessed.
In one embodiment, the note restoring module 1406 is further configured to restore, in the display area of the display screen, the first function page pointed by the first function switching operation based on the first layer; and according to the second function switching operation, moving a second function page displayed on an upper layer of the first layer out of the display area.
According to the page switching device, when the first function switching operation occurs, the switching note page is provided, and the switching note page can be quickly switched from one application function to another function corresponding to any function entry based on the switching note page. In addition, when the first function switching operation occurs, the first function page pointed by the first function switching operation is stored in time, and because the first function page reserves the access record of the user to the function page to be switched away, when the second function switching operation occurs, namely the function is switched back again, the switched page can be rapidly restored and displayed in the access state when the user is switched away last time based on the first function page, so that the user can continue to access the page on the basis of the historical access state.
FIG. 16 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be a terminal. As shown in fig. 16, the computer apparatus includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the function switching method. The internal memory may also store a computer program, which when executed by the processor, causes the processor to perform the function switching method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 16 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the function switching apparatus provided in the present application may be implemented in a form of a computer program, and the computer program may be executed on a computer device as shown in fig. 16. The memory of the computer device may store therein various program modules constituting the function switching means, such as a switch note module, a function switching module, and a note restoring module shown in fig. 14. The computer program constituted by the respective program modules causes the processor to execute the steps in the function switching method of the respective embodiments of the present application described in the present specification.
For example, the computer apparatus shown in fig. 16 may perform step S102 by switching the note module in the page switching device as shown in fig. 14. The computer device may perform steps S104 and S106 through the function switching module. The computer device may perform step S108 through the note recovery module.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the above-described function switching method. Here, the steps of the function switching method may be steps in the function switching methods of the above-described respective embodiments.
In one embodiment, a computer-readable storage medium is provided, in which a computer program is stored, which, when executed by a processor, causes the processor to perform the steps of the above-described function switching method. Here, the steps of the function switching method may be steps in the function switching methods of the above-described respective embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, and the program can be stored in a non-volatile computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (15)

1. A method of function switching, comprising:
responding to a triggered first function switching operation, storing a first function page pointed by the first function switching operation, and displaying a switching note page;
determining a function entry triggered by the switching note page;
switching to a second function page corresponding to the function entrance;
and responding to a triggered second function switching operation returned to the first function page, storing the second function page, and restoring the first function page.
2. The method of claim 1, wherein the storing the first function page pointed to by the first function switching operation in response to the triggered first function switching operation comprises:
monitoring a first function switching operation triggered based on the application by an application view controller;
intercepting a storage instruction of a first function page pointed by a system view controller to the first function switching operation when monitoring the first function switching operation;
and storing the first function page pointed by the monitored first function switching operation.
3. The method of claim 1, further comprising:
when a service creation operation occurs, determining a service function pointed by the service creation operation;
and adding a function entrance corresponding to the service function to the switching note page.
4. The method of claim 1, further comprising:
when the remark operation pointing to a function entrance occurs, storing the remark information generated by the remark operation in association with the pointed function entrance;
and when the function entry related to the remark information is triggered, displaying the related remark information on a function page corresponding to the function entry.
5. The method of claim 1, wherein the determining the function entry triggered at the switching note page comprises:
when the quasi-triggering operation of a function entrance occurs, displaying a page switching chain of a second function corresponding to the function entrance pointed by the quasi-triggering operation on the switching note page; the page switching chain comprises a page index of at least one accessed second function page corresponding to the second function;
determining a page index triggered by the switching note page;
the switching to the second function page corresponding to the function entry for displaying comprises:
and switching to a second functional page corresponding to the triggered page index for displaying.
6. The method of claim 1, further comprising:
displaying a first function page based on a first layer in a display area of a display screen;
in an area outside the display area, displaying and switching a note page based on the upper layer of the first layer in a hidden mode;
the displaying a switching note page of a first function page to which the storage function switching operation is directed includes:
storing a first function page displayed when function switching operation occurs;
and moving the switching note page into the display area for displaying.
7. The method of claim 1, wherein switching to a stored second function page corresponding to the function portal for presentation comprises:
judging whether a page switching chain of a second function corresponding to the function entry is stored; the page switching chain comprises one or more second functional pages with different access time sequences;
and if so, switching to a second functional page of the last access time sequence in the page switching chain for displaying.
8. The method of claim 1, further comprising:
when page switching operation based on a second function page occurs, switching to other second function pages of the second function pointed by the page switching operation for displaying;
and storing a second function page pointed by the page switching operation and a switching time stamp.
9. The method according to claim 8, wherein the second functional page pointed to by the page switch operation is a source page; the storing the second function page and the switching timestamp pointed to by the page switching operation comprises:
when a page switching operation based on a second function occurs, storing a second function page and a switching timestamp pointed by the page switching operation;
determining a second function page of a previous access time sequence corresponding to the source page in a page switching chain corresponding to the function entry according to the switching timestamp;
when the page switching operation is finished, determining a second function page of a next access time sequence corresponding to the source page;
and when the page identifications of the second functional page in the previous access time sequence and the second functional page in the next access time sequence corresponding to the source page are consistent, deleting the source page.
10. The method of claim 8, wherein storing the second function page in response to a triggered second function switching operation back to the first function page comprises:
when a second function switching operation returning to the first function page occurs, storing a second function page and a switching timestamp pointed by the second function switching operation;
and updating the page switching chain of the second function according to the page switching operation or each second function page and the switching timestamp stored in the second function switching operation when the second function is accessed at this time.
11. The method of claim 6, wherein the restoring the first function page comprises:
restoring and displaying a first function page pointed by the first function switching operation based on a first layer in a display area of a display screen;
and moving a second function page displayed on an upper layer of the first layer out of the display area according to the second function switching operation.
12. The method according to any one of claims 1 to 11, wherein the second function page is displayed with a function switching control or a function returning control; the first function switching operation comprises a triggering operation based on the function switching control; the second function switching operation comprises a triggering operation based on the function returning control.
13. A page switching apparatus, the apparatus comprising:
the note switching module is used for responding to triggered first function switching operation, storing a first function page pointed by the first function switching operation and displaying a note switching page;
the function switching module is used for determining a function entrance triggered by the switching note page by a function; switching to a second function page corresponding to the function entrance for displaying;
and the note recovery module is used for responding to a triggered second function switching operation returned to the first function page, storing the second function page and restoring the first function page.
14. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 12.
15. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method of any one of claims 1 to 12.
CN201911268715.4A 2019-12-11 2019-12-11 Function switching method, device, computer readable storage medium and computer equipment Active CN112948032B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911268715.4A CN112948032B (en) 2019-12-11 2019-12-11 Function switching method, device, computer readable storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911268715.4A CN112948032B (en) 2019-12-11 2019-12-11 Function switching method, device, computer readable storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN112948032A true CN112948032A (en) 2021-06-11
CN112948032B CN112948032B (en) 2024-04-02

Family

ID=76234117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911268715.4A Active CN112948032B (en) 2019-12-11 2019-12-11 Function switching method, device, computer readable storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN112948032B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113934949A (en) * 2021-11-24 2022-01-14 掌阅科技股份有限公司 Information page display method, electronic equipment and computer storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106033372A (en) * 2015-03-19 2016-10-19 阿里巴巴集团控股有限公司 Page switching method and apparatus
CN106155675A (en) * 2015-04-23 2016-11-23 阿里巴巴集团控股有限公司 The page switching method of application program and device
CN108196930A (en) * 2018-01-18 2018-06-22 腾讯科技(深圳)有限公司 Applied program processing method, device, storage medium and computer equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106033372A (en) * 2015-03-19 2016-10-19 阿里巴巴集团控股有限公司 Page switching method and apparatus
CN106155675A (en) * 2015-04-23 2016-11-23 阿里巴巴集团控股有限公司 The page switching method of application program and device
CN108196930A (en) * 2018-01-18 2018-06-22 腾讯科技(深圳)有限公司 Applied program processing method, device, storage medium and computer equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113934949A (en) * 2021-11-24 2022-01-14 掌阅科技股份有限公司 Information page display method, electronic equipment and computer storage medium

Also Published As

Publication number Publication date
CN112948032B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
JP7013466B2 (en) Application data processing methods, equipment, and computer programs
CN112583700B (en) Group creation method, device, equipment and storage medium
US9965559B2 (en) Providing automatic actions for mobile onscreen content
CN112632942B (en) Document processing method, device, equipment and medium
CN107426403B (en) Mobile terminal
CN104216600B (en) A kind of method and intelligent touch screen terminal equipment of the function that application program is provided
CN106909281B (en) Method and device for switching application internal interfaces
US10535005B1 (en) Providing contextual actions for mobile onscreen content
US20150128085A1 (en) Method, Device and Computer Storage Medium for Controlling Desktop
US20160196046A1 (en) User configurable quick groups
WO2014169600A1 (en) Method, device and terminal for processing hidden file folder
TW201504922A (en) Managing workspaces in a user interface
EP2718796A1 (en) Social network interaction
JP7057382B2 (en) Electronic album device and its operation method and operation program
TW201523433A (en) Remote control for displaying application data on dissimilar screens
CN109308337A (en) Page sharing method and device
CN108540848A (en) Video collection method and apparatus
CN105607749A (en) Shortcut operation method, shortcut operation device and terminal
CN111857505B (en) Display method, device and storage medium
CN107291336A (en) Method and device for starting application programs among multiple systems and terminal equipment
CN112948844A (en) Control method and device and electronic equipment
CN114116098B (en) Application icon management method and device, electronic equipment and storage medium
CN112948032B (en) Function switching method, device, computer readable storage medium and computer equipment
CN110275741B (en) Content display method and electronic equipment
WO2015094867A1 (en) Employing presence information in notebook application

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