CN109144507A - A kind of page switching method and device - Google Patents

A kind of page switching method and device Download PDF

Info

Publication number
CN109144507A
CN109144507A CN201810785322.XA CN201810785322A CN109144507A CN 109144507 A CN109144507 A CN 109144507A CN 201810785322 A CN201810785322 A CN 201810785322A CN 109144507 A CN109144507 A CN 109144507A
Authority
CN
China
Prior art keywords
page
engineering
unity
module
switching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810785322.XA
Other languages
Chinese (zh)
Other versions
CN109144507B (en
Inventor
程晓龙
余飞
孙祥林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201810785322.XA priority Critical patent/CN109144507B/en
Publication of CN109144507A publication Critical patent/CN109144507A/en
Application granted granted Critical
Publication of CN109144507B publication Critical patent/CN109144507B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention provides a kind of page switching method and devices, belong to field of computer technology.Wherein, terminal can be in the application enabled instruction for receiving user's transmission, start target application, and the corresponding Unity engineering of control target application is initialized, further, when receiving page switching instruction, Unity engineering can be directly controlled and generate dynamic page, finally, being the dynamic page of the generation by shown page switching.In the embodiment of the present invention, due in advance during starting target application, complete the initialization to Unity engineering, therefore, when being dynamic page by shown page switching, without carrying out the initialization operation to Unity engineering, Unity engineering can be directly controlled and generate dynamic page, time needed for reducing page switching, improve switching efficiency.

Description

A kind of page switching method and device
Technical field
The invention belongs to field of computer technology, more particularly to a kind of page switching method and device.
Background technique
With the continuous development of computer technology, it in application market using more and more, in order to enrich the function of application, answers It often simultaneously include static page and dynamic page in.In order to reduce development difficulty, guarantees the display effect of the page, opening Hair realizes dynamic page based on Unity engineering in application, generally can realize static page based on system engineering.
In the prior art, when showing dynamic page, need first Unity engineering progress corresponding to dynamic page initial Change, in this way, just will appear handoff delay when the shown page is switched to dynamic page by the static page applied by user It is larger, the lower problem of switching efficiency.
Summary of the invention
The present invention provides a kind of page switching method and device, and handoff delay is larger to solve, the lower problem of efficiency.
According to the present invention in a first aspect, provide a kind of page switching method, be applied to terminal, this method can wrap It includes:
If receive user's transmission applies enabled instruction, start target application, and, control the target application pair The Unity engineering answered is initialized;
If receiving page switching instruction, controls the Unity engineering and generate dynamic page;
It is the dynamic page by shown page switching.
Optionally, the corresponding Unity engineering of the control target application is initialized, comprising:
The initialization module in the Unity engineering is controlled using preset entrance function to be initialized;
Wherein, the preset entrance function is set in advance in the corresponding system engineering of the target application, described pre- If entrance function be the Unity engineering in entrance function subclass.
Optionally, the first triggering function, the first triggering letter are preset in the corresponding system engineering of the target application Several creation modules and rendering module with the Unity engineering are associated with;
The control Unity engineering generates dynamic page, comprising:
The creation module and rendering module generation initial page in the Unity engineering are controlled using the first triggering function Face;
The initial page is carried using View Controller Page Container, obtains dynamic page.
Optionally, it is described by shown page switching be the dynamic page, comprising::
Hold class using being set in advance in the corresponding system engineering of the target application, is directed toward the dynamic page;
It is the dynamic page by shown page switching by preset push/present system switching command.
Optionally, the second triggering function, the second triggering letter are preset in the corresponding system engineering of the target application Number is associated with the refresh module in the Unity engineering;
It is described receive page switching instruction after, the method also includes:
By the second triggering function, the refresh module controlled in the Unity engineering brings into operation.
Second aspect according to the present invention provides a kind of page switching device, is applied to terminal, which can wrap It includes:
Starting module, if the application enabled instruction for receiving user's transmission, starts target application, and, control The corresponding Unity engineering of the target application is initialized;
Generation module, if controlling the Unity engineering for receiving page switching instruction and generating dynamic page;
Switching module, for being the dynamic page by shown page switching.
Optionally, the starting module, is used for:
The initialization module in the Unity engineering is controlled using preset entrance function to be initialized;
Wherein, the preset entrance function is set in advance in the corresponding system engineering of the target application, described pre- If entrance function be the Unity engineering in entrance function subclass.
Optionally, the first triggering function, the first triggering letter are preset in the corresponding system engineering of the target application Several creation modules and rendering module with the Unity engineering are associated with;
The generation module, is used for:
The creation module and rendering module generation initial page in the Unity engineering are controlled using the first triggering function Face;
The initial page is carried using View Controller Page Container, obtains dynamic page.
Optionally, the switching module includes:
It is directed toward submodule, holds class for utilizing to be set in advance in the corresponding system engineering of the target application, refers to To the dynamic page;
Switching submodule is used for by preset push/present system switching command, by shown page switching For the dynamic page.
Optionally, the second triggering function, the second triggering letter are preset in the corresponding system engineering of the target application Number is associated with the refresh module in the Unity engineering;Described device further include:
Control module, for by the second triggering function, the refresh module controlled in the Unity engineering to start to transport Row.
The third aspect according to the present invention provides a kind of mobile terminal, comprising: processor, memory and is stored in institute The page switching program that can be run on memory and on the processor is stated, which is executed by the processor Step of the Shi Shixian in the page switching method as described in first aspect.
Fourth aspect according to the present invention provides a kind of computer readable storage medium, the computer-readable storage It is stored with page switching program on medium, the page as described in first aspect is realized when which is executed by processor The step of face switching method.
For first technology, the present invention has following advantage: terminal can receive referring to using starting for user's transmission When enabling, start target application, and, the corresponding Unity engineering of control target application is initialized, and further, is being received To when page switching instruction, Unity engineering can be directly controlled and generate dynamic page, finally, being by shown page switching The dynamic page of the generation.In the embodiment of the present invention, due to during starting target application, completing in advance to Unity The initialization of engineering, therefore, when being dynamic page by shown page switching, without carrying out to the initial of Unity engineering Change operation, Unity engineering can be directly controlled and generate dynamic page, the time needed for reducing page switching improves switching Efficiency.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is a kind of step flow chart for page switching method that the embodiment of the present invention one provides;
Fig. 2 is the step flow chart of another page switching method provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of block diagram for page switching device that the embodiment of the present invention three provides;
Fig. 4 is a kind of block diagram for page switching device that the embodiment of the present invention four provides.
Specific embodiment
The exemplary embodiment that the present invention will be described in more detail below with reference to accompanying drawings.Although showing the present invention in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the present invention without should be by embodiments set forth here It is limited.It is to be able to thoroughly understand the present invention on the contrary, providing these embodiments, and can be by the scope of the present invention It is fully disclosed to those skilled in the art.
Embodiment one
Fig. 1 is a kind of step flow chart for page switching method that the embodiment of the present invention one provides, and is applied to terminal, such as schemes Shown in 1, this method may include:
If step 101, the application enabled instruction for receiving user's transmission, start target application, and, control the mesh Mark is initialized using corresponding Unity engineering.
In the embodiment of the present invention, this can be user using enabled instruction and is sent by the application startup function of triggering terminal , exemplary, user can be by clicking application icon, and the application startup function of triggering terminal sends instruction starting to terminal The corresponding application of the application icon that user is clicked, correspondingly, terminal can apply enabled instruction according to this, start user institute point The corresponding application of the application icon hit, the corresponding application of the application icon which is clicked is target application.Further, The target application can be the application comprising static page and dynamic page, for example, the target application can be virtual reality class (Virtual Reality, VR) application, certainly, target application may be the application of other classes, the embodiment of the present invention to this not It limits.
In the embodiment of the present invention, developer initialize past by carrying out test discovery, completion Unity engineering in advance Toward 1 second (Second, s) left and right is needed, if occurring the delay more than 1s in page switching and being often easy to be easily noticed by the users, And page switching operation can be made to seem very stiff, be affected to user.And terminal is starting in application, due to needing Execution loads the systemic software development external member (Software Development Kit, SDK) that the application is relied on and this is answered Logical code, so realize starting application, that is, each application require expend the regular hour could complete starting behaviour Make, therefore, if completed in application start-up course to the initialization operation of Unity engineering, user often it is more difficult discover out by During starting application, increases the operation initialized to Unity engineering, starting duration is caused to be extended, into And the influence to user is smaller.Therefore, it in the embodiment of the present invention, completes in target application start-up course to Unity engineering Initialization, can guarantee do not influence user experience in the case where, reduce page switching needed for the time, improve switching efficiency and Transition effect.
If step 102 receives page switching instruction, controls the Unity engineering and generate dynamic page.
In the embodiment of the present invention, the page switching instruction can be user transmission be used to indicate currently displayed page Face is switched to the instruction of dynamic page, and correspondingly, terminal can control in advance after receiving page switching instruction The Unity engineering initialized generates dynamic page.
Step 103, by shown page switching be the dynamic page.
In the embodiment of the present invention, terminal can be by being dynamic page by shown page switching, and then completes the page and cut Change operation.
In conclusion the page switching method that the embodiment of the present invention one provides, terminal can receive user's transmission When using enabled instruction, start target application, and, the corresponding Unity engineering of control target application is initialized, further Ground can directly control Unity engineering and generate dynamic page, finally, by shown page when receiving page switching instruction Face is switched to the dynamic page of the generation.In the embodiment of the present invention, due to during starting target application, completing in advance Initialization to Unity engineering, therefore, when being dynamic page by shown page switching, without carrying out to Unity engineering Initialization operation, can directly control Unity engineering generate dynamic page, the time needed for reducing page switching, improve Switching efficiency.
Embodiment two
Fig. 2 is the step flow chart of another page switching method provided by Embodiment 2 of the present invention, is applied to terminal, such as Shown in Fig. 2, this method may include:
If step 201, the application enabled instruction for receiving user's transmission, start target application, and, control the mesh Mark is initialized using corresponding Unity engineering.
In this step, the initialization module that terminal can use in preset entrance function control Unity engineering is carried out just Beginningization.Wherein, which can be set in advance in the corresponding system engineering of target application, the preset entrance Function can be the subclass of the entrance function in the Unity engineering.
Specifically, can be in the development phase, using the entrance function in Unity engineering as parent, based in Unity engineering Entrance function grammer, write the subclass that can inherit the entrance function in the Unity engineering as the preset entrance letter Number, since the preset entrance function is the entrance function inherited in Unity engineering, can be made based on the entrance function With the function in Unity engineering.Then, which can be added to the corresponding system engineering of target application In, then the preset entrance function is set by the entrance function specified in the principal function main.m of target application.
It should be noted that one can also be arranged in the corresponding system engineering of target application in advance in practical application For the entrance function of debugging system engineering, in order to debug to system engineering, the embodiment of the present invention is not construed as limiting this.
If step 202 receives page switching instruction, controls the Unity engineering and generate dynamic page.
In this step, terminal can be first with the creation module and rendering mould in the first triggering function control Unity engineering Block generates initial page.Wherein, which, which can be, is set in advance in the system work of target application in the development phase In journey, this first triggering function can in Unity engineering creation module and rendering module be associated with, for example, this first touch Number of sending a letter can be hook (hook) function.In the embodiment of the present invention, the triggering when receiving page switching instruction can be set First triggering function, and then realize that creation module and rendering module in control Unity engineering generate initial page.
Specifically, terminal can after receiving page switching instruction, the corresponding system engineering of control target application to Unity engineering sends one can Unity when first, which triggers function, is triggered for triggering the parameter of the first triggering function The creation module and rendering module controlled in engineering generates initial page.Wherein, system engineering sends parameter to Unity engineering When, data can be sent to Unity engineering by MESSAGE POLL mechanism, be counted for example, can be instructed by SendMessage According to transmission.And Unity engineering to system engineering send data when, can by calling system engineering in advance use preset meter Calculation machine programming language, for example, C++, the interface of encapsulation realizes that data are sent.Correspondingly, in specific implementation, it can develop Interface in system engineering is packaged by the stage with C++ in advance, be exposed to Unity engineering come using.
It should be noted that terminal can also directly utilize preset entrance in another alternative embodiment of the invention Function generates initial page to control creation module in Unity engineering and rendering module, and the embodiment of the present invention does not limit this It is fixed.But it since Hook Function more can be triggered accurately when receiving page switching instruction, controls in Unity engineering Creation module and rendering module generate initial page, therefore, in the embodiment of the present invention, controlled using the first triggering function Mode, control Unity engineering that can be more accurate generate initial page when receiving page switching instruction.
Further, terminal can use View Controller Page Container and hold after generating initial page Initial page is carried, dynamic page is obtained.In the embodiment of the present invention, is carried and given birth to using preset ViewController Page Container At dynamic page can be switched over using the switching mode for the primary page of system, and then make so that in subsequent step Transition effect is more natural.Certainly, it in practical application, can also be carried using the window container carried in Unity engineering The dynamic page of generation still using the dynamic page of window container carrying in switching, can only pass through the side of replacement window Formula is more stiff to realize page switching, transition effect.
Further, terminal can also pass through the second triggering function, control after receiving page switching instruction Refresh module in Unity engineering brings into operation.Wherein, which can be used for refreshing dynamic page, to protect The normal viewing for demonstrate,proving user, in first technology, in the initialization of Unity engineering, will bring into operation refresh module, but due to Dynamic page is not shown at this time, and therefore, the refresh module run at this time will cause the unnecessary wasting of resources, and the present invention is real It applies in example, control refresh module after the initialization is completed, just brings into operation, can be to avoid the waste to terminal system resource.
The second triggering function can be in the system engineering that the development phase is set in advance in target application, this second Triggering function can be associated with the refresh module in Unity engineering, for example, the second triggering function can be hook (hook) letter Number.It in the embodiment of the present invention, can be set after receiving page switching instruction, triggering the second triggering function, and then realize Refresh module in control Unity engineering brings into operation.
Specifically, terminal can after receiving page switching instruction, the corresponding system engineering of control target application to Unity engineering sends one for triggering the parameter of the second triggering function, when the second triggering function is triggered, that is, can control Refresh module in Unity engineering brings into operation.Wherein, the implementation for specifically sending parameter can be transmitted across with reference to aforementioned Journey, this will not be repeated here by the present invention.
It should be noted that terminal can also directly utilize preset entrance in another alternative embodiment of the invention Function brings into operation to control the refresh module in Unity engineering, and the embodiment of the present invention is not construed as limiting this.But due to hook Subfunction more can be triggered accurately when receiving page switching instruction, and the refresh module controlled in Unity engineering starts Operation, therefore, in the embodiment of the present invention, using the second triggering function come by the way of controlling, control Unity that can be more accurate After receiving page switching instruction, the refresh module in Unity engineering processed brings into operation engineering.
Further, each function in Unity engineering is realized for the ease of control, therefore, in exploitation Unity engineering When, it can be developed for realizing the code of different function as individual module, to reduce the mould for realizing different function Relevance between block, convenient for control modules.It, can be previously according to for the Unity engineering not according to Development of Module The name of code in Unity engineering, or, being divided by carrying out single-step debug to code in Unity engineering Unity engineering It cuts, detaches each functional module, specifically, a file can will be placed on for realizing the code of the module of different function It is interior.
Step 203, by shown page switching be the dynamic page.
In this step, terminal can hold class first with being set in advance in the corresponding system engineering of target application, refer to To the dynamic page, wherein it can be an overall situation Dan Li being set in advance in system engineering in the development phase that this, which holds class, Class, in this way, can make dynamic page that there is the attribute of the primary page of system, and then can be with by being directed toward the dynamic page The switching of dynamic page is controlled by the switching command for the primary page of system, correspondingly, terminal can be by preset Shown page switching is dynamic page by push/present system switching command.Wherein, preset push/present System switching command is the switching command for the primary page of system, which may be implemented dynamic page in a manner of being pushed into It has been shown that, therefore, compared to the switching mode directly replaced, transition effect is more natural.
If step 204 receives dynamic page exit instruction, the dynamic page is exited, and closes the Unity work Journey, so that the Unity engineering is not in running background.
In practical application, after exiting dynamic page, the corresponding Unity engineering of dynamic page can also in running background, And then unnecessary waste is caused to the system resource of terminal.Therefore, in the embodiment of the present invention, terminal can be moved receiving this It when state page exit instruction, exits dynamic page and closes Unity engineering, so as to state Unity engineering not in running background, in turn It avoids causing unnecessary waste to the system resource of terminal.Specifically, can be operated by executing UnityPause (bool), To close Unity engineering.
In conclusion page switching method provided by Embodiment 2 of the present invention, terminal can receive user's transmission When using enabled instruction, start target application, and, the corresponding Unity engineering of control target application is initialized, further Ground can directly control Unity engineering and generate dynamic page, finally, by shown page when receiving page switching instruction Face is switched to the dynamic page of the generation.In the embodiment of the present invention, due to during starting target application, completing in advance Initialization to Unity engineering, therefore, when being dynamic page by shown page switching, without carrying out to Unity engineering Initialization operation, can directly control Unity engineering generate dynamic page, the time needed for reducing page switching, improve Switching efficiency;Meanwhile also dynamic page can be exited when receiving dynamic page exit instruction, and close Unity engineering, So that Unity engineering is in running background, and then avoid causing unnecessary waste to the system resource of terminal.
Embodiment three
Fig. 3 is a kind of block diagram for page switching device that the embodiment of the present invention three provides, as shown in figure 3, the device 30 can To include:
Starting module 301, if the application enabled instruction for receiving user's transmission, starts target application, and, control The corresponding Unity engineering of the target application is made to be initialized.
Generation module 302, if controlling the Unity engineering for receiving page switching instruction and generating dynamic page.
Switching module 303, for being the dynamic page by shown page switching.
In conclusion the page switching device that the embodiment of the present invention three provides, starting module can receive user's hair When the application enabled instruction sent, start target application, and, the corresponding Unity engineering of control target application is initialized, into One step, generation module can directly control Unity engineering and generate dynamic page when receiving page switching instruction, Finally, shown page switching can be the dynamic page of the generation by switching module.In the embodiment of the present invention, due to preparatory During starting target application, the initialization to Unity engineering is completed, therefore, is being by shown page switching When dynamic page, without carrying out the initialization operation to Unity engineering, Unity engineering can be directly controlled and generate dynamic page, Time needed for reducing page switching, improve switching efficiency.
Example IV
Fig. 4 is a kind of block diagram for page switching device that the embodiment of the present invention four provides, as shown in figure 4, the device 40 can To include:
Starting module 401, if the application enabled instruction for receiving user's transmission, starts target application, and, control The corresponding Unity engineering of the target application is made to be initialized.
Generation module 402, if controlling the Unity engineering for receiving page switching instruction and generating dynamic page.
Switching module 403, for being the dynamic page by shown page switching.
Optionally, the starting module 401, is used for:
The initialization module in the Unity engineering is controlled using preset entrance function to be initialized.
Wherein, the preset entrance function is set in advance in the corresponding system engineering of the target application, described pre- If entrance function be the Unity engineering in entrance function subclass.
Optionally, the first triggering function, the first triggering function and the Unity work are preset in the system engineering Creation module and rendering module association in journey.
The generation module 402, is used for:
The creation module and rendering module generation initial page in the Unity engineering are controlled using the first triggering function Face;
The initial page is carried using View Controller Page Container, obtains dynamic page.
Optionally, the switching module 403 includes:
It is directed toward submodule, holds class for utilizing to be set in advance in the corresponding system engineering of the target application, refers to To the dynamic page
Switching submodule is used for by preset push/present system switching command, by shown page switching For the dynamic page.
Optionally, described device 40 further include:
Closedown module, if exiting the dynamic page, and described in closing for receiving dynamic page exit instruction Unity engineering, so that the Unity engineering is not in running background.
Optionally, the second triggering function, the second triggering function and the Unity work are preset in the system engineering Refresh module association in journey.
Described device 40 further include:
Control module 404, for by the second triggering function, the refresh module controlled in the Unity engineering to be opened Begin to run.
In conclusion the page switching device that the embodiment of the present invention four provides, starting module can receive user's hair When the application enabled instruction sent, start target application, and, the corresponding Unity engineering of control target application is initialized, into One step, generation module can directly control Unity engineering and generate dynamic page when receiving page switching instruction, Finally, shown page switching can be the dynamic page of the generation by switching module.In the embodiment of the present invention, due to preparatory During starting target application, the initialization to Unity engineering is completed, therefore, is being by shown page switching When dynamic page, without carrying out the initialization operation to Unity engineering, Unity engineering can be directly controlled and generate dynamic page, Time needed for reducing page switching, improve switching efficiency;Meanwhile closedown module can also be exited receiving dynamic page When instruction, dynamic page is exited, and closes Unity engineering, so that Unity engineering is in running background, and then is avoided to terminal System resource cause unnecessary waste.
For above-mentioned apparatus embodiment, since it is basically similar to the method embodiment, so be described relatively simple, The relevent part can refer to the partial explaination of embodiments of method.
Further, according to one embodiment of present invention, a kind of mobile terminal is provided, comprising: processor, memory And it is stored in the page switching program that can be run on the memory and on the processor, the page switching program is by institute State the page switching method that previous embodiment is realized when processor executes.
According to one embodiment of present invention, a kind of computer readable storage medium is additionally provided, it is described computer-readable It is stored with page switching program on storage medium, the page of previous embodiment is realized when the page switching program is executed by processor Face switching method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It would have readily occurred to a person skilled in the art that: any combination application of above-mentioned each embodiment is all feasible, therefore Any combination between above-mentioned each embodiment is all embodiment of the present invention, but this specification exists as space is limited, This is not just detailed one by one.
Provided herein page switching method not with any certain computer, virtual system or the intrinsic phase of other equipment It closes.Various general-purpose systems can also be used together with teachings based herein.As described above, construction has present invention side Structure required by the system of case is obvious.In addition, the present invention is also not directed to any particular programming language.It should be bright It is white, it can use various programming languages and realize summary of the invention described herein, and retouched above to what language-specific was done State is in order to disclose the best mode of carrying out the invention.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the present invention and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, such as right As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool Thus claims of body embodiment are expressly incorporated in the specific embodiment, wherein each claim conduct itself Separate embodiments of the invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) come realize some in page switching method according to an embodiment of the present invention or The some or all functions of person's whole component.The present invention is also implemented as one for executing method as described herein Point or whole device or device programs (for example, computer program and computer program product).Such this hair of realization Bright program can store on a computer-readable medium, or may be in the form of one or more signals.It is such Signal can be downloaded from an internet website to obtain, and is perhaps provided on the carrier signal or is provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.

Claims (10)

1. a kind of page switching method, which is characterized in that be applied to terminal, which comprises
If receive user's transmission applies enabled instruction, start target application, and, it is corresponding to control the target application Unity engineering is initialized;
If receiving page switching instruction, controls the Unity engineering and generate dynamic page;
It is the dynamic page by shown page switching.
2. the method according to claim 1, wherein the corresponding Unity engineering of the control target application It is initialized, comprising:
The initialization module in the Unity engineering is controlled using preset entrance function to be initialized;
Wherein, the preset entrance function is set in advance in the corresponding system engineering of the target application, described preset Entrance function is the subclass of entrance function in the Unity engineering.
3. the method according to claim 1, wherein being preset in the corresponding system engineering of the target application One triggering function, it is described first triggering function in the Unity engineering creation module and rendering module be associated with;
The control Unity engineering generates dynamic page, comprising:
The creation module and rendering module generation initial page in the Unity engineering are controlled using the first triggering function;
The initial page is carried using View Controller Page Container, obtains dynamic page.
4. according to the method described in claim 3, it is characterized in that, it is described by shown page switching be the dynamic page Face, comprising:
Hold class using being set in advance in the corresponding system engineering of the target application, is directed toward the dynamic page;
It is the dynamic page by shown page switching by preset push/present system switching command.
5. the method according to claim 1, wherein being preset in the corresponding system engineering of the target application Two triggering functions, the second triggering function are associated with the refresh module in the Unity engineering;
It is described receive page switching instruction after, the method also includes:
By the second triggering function, the refresh module controlled in the Unity engineering brings into operation.
6. a kind of page switching device, which is characterized in that be applied to terminal, described device includes:
Starting module, if the application enabled instruction for receiving user's transmission, starts target application, and, described in control The corresponding Unity engineering of target application is initialized;
Generation module, if controlling the Unity engineering for receiving page switching instruction and generating dynamic page;
Switching module, for being the dynamic page by shown page switching.
7. device according to claim 6, which is characterized in that the starting module is used for:
The initialization module in the Unity engineering is controlled using preset entrance function to be initialized;
Wherein, the preset entrance function is set in advance in the corresponding system engineering of the target application, described preset Entrance function is the subclass of entrance function in the Unity engineering.
8. device according to claim 6, which is characterized in that be preset in the corresponding system engineering of the target application One triggering function, it is described first triggering function in the Unity engineering creation module and rendering module be associated with;
The generation module, is used for:
The creation module and rendering module generation initial page in the Unity engineering are controlled using the first triggering function;
The initial page is carried using View Controller Page Container, obtains dynamic page.
9. device according to claim 8, which is characterized in that the switching module includes:
It is directed toward submodule, for being directed toward institute using the class of holding being set in advance in the corresponding system engineering of the target application State dynamic page;
Switching submodule, for being institute by shown page switching by preset push/present system switching command State dynamic page.
10. device according to claim 6, which is characterized in that be preset in the corresponding system engineering of the target application Second triggering function, the second triggering function are associated with the refresh module in the Unity engineering;
Described device further include:
Control module, for by the second triggering function, the refresh module controlled in the Unity engineering to bring into operation.
CN201810785322.XA 2018-07-17 2018-07-17 Page switching method and device Active CN109144507B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810785322.XA CN109144507B (en) 2018-07-17 2018-07-17 Page switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810785322.XA CN109144507B (en) 2018-07-17 2018-07-17 Page switching method and device

Publications (2)

Publication Number Publication Date
CN109144507A true CN109144507A (en) 2019-01-04
CN109144507B CN109144507B (en) 2022-02-08

Family

ID=64800896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810785322.XA Active CN109144507B (en) 2018-07-17 2018-07-17 Page switching method and device

Country Status (1)

Country Link
CN (1) CN109144507B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114416234A (en) * 2021-12-28 2022-04-29 网易(杭州)网络有限公司 Page switching method and device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110819A (en) * 2007-08-03 2008-01-23 中国网络通信集团公司 Method for improving switching speed when browsing pages
US20130073606A1 (en) * 2011-09-15 2013-03-21 Citicorp Development Center, Inc. Methods and Systems for Dynamically Generating and Reusing Dynamic Web Content
CN103809864A (en) * 2012-11-07 2014-05-21 阿里巴巴集团控股有限公司 Method and device for switching interfaces dynamically
CN104267968A (en) * 2014-10-16 2015-01-07 福建星网视易信息系统有限公司 Interface switching method and device
CN106980503A (en) * 2017-03-27 2017-07-25 网易(杭州)网络有限公司 Page processing method, device and equipment
CN107679281A (en) * 2017-09-05 2018-02-09 国家电网公司 Intelligent station three-dimensional scenic analogue system and implementation method based on Unity dynamic generations

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110819A (en) * 2007-08-03 2008-01-23 中国网络通信集团公司 Method for improving switching speed when browsing pages
US20130073606A1 (en) * 2011-09-15 2013-03-21 Citicorp Development Center, Inc. Methods and Systems for Dynamically Generating and Reusing Dynamic Web Content
CN103809864A (en) * 2012-11-07 2014-05-21 阿里巴巴集团控股有限公司 Method and device for switching interfaces dynamically
CN104267968A (en) * 2014-10-16 2015-01-07 福建星网视易信息系统有限公司 Interface switching method and device
CN106980503A (en) * 2017-03-27 2017-07-25 网易(杭州)网络有限公司 Page processing method, device and equipment
CN107679281A (en) * 2017-09-05 2018-02-09 国家电网公司 Intelligent station three-dimensional scenic analogue system and implementation method based on Unity dynamic generations

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114416234A (en) * 2021-12-28 2022-04-29 网易(杭州)网络有限公司 Page switching method and device, computer equipment and storage medium
CN114416234B (en) * 2021-12-28 2023-09-12 网易(杭州)网络有限公司 Page switching method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN109144507B (en) 2022-02-08

Similar Documents

Publication Publication Date Title
CN110046101B (en) Page automatic testing method and device and computer storage medium
US10185556B2 (en) Interactive software development kit documentation tool
US9122798B2 (en) Debugger with method restart capability
CN105630543A (en) Application cold start acceleration method and apparatus
US20180173503A1 (en) System and method for graphical programming
US20160232071A1 (en) System level testing of multi-threading functionality
US10169193B2 (en) Common debug scripting framework for driving hybrid applications consisting of compiled languages and interpreted languages
US9703905B2 (en) Method and system for simulating multiple processors in parallel and scheduler
CN109144507A (en) A kind of page switching method and device
US20160300000A1 (en) System construction support apparatus
JP2008123559A (en) Plc simulator device, program for simulation, and recording medium with the program recorded thereon
EP2853969A1 (en) An alarm management system and a method therefor
CN112346613A (en) Icon display effect control method, terminal and computer-readable storage medium
US20090271770A1 (en) Method, system, and computer program product for generating unit testing scripts
Krejcar et al. Evaluation of aJile aJ-80 Real-Time embedded platform for RT-Java parameters
US8914274B1 (en) Method and system for instruction set simulation with concurrent attachment of multiple debuggers
Sinkkonen Asymmetric multiprocessing of Linux and hard real-time systems
Buck et al. An interactive, graphical CPU scheduling simulator for teaching operating systems
KR101197245B1 (en) Framework system for controlling robot motion and control method using the same
Ganea et al. Specification and Validation of a Real-Time Simple Parallel Kernel for Dependable Distributed Systems
Rodríguez-Cayetano Design and development of a cpu scheduler simulator for educational purposes using sdl
Grelle et al. Neutron Source Facility Simulator (NSFS)
Hidayat et al. Software verification of a virtual development environment for embedded software
JP4192380B2 (en) PLC simulator apparatus, simulation program, and recording medium on which the program is recorded
CN115794603A (en) Resource processing method, device, equipment and storage medium

Legal Events

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