CN111078348B - Interface management method, device, equipment and storage medium - Google Patents

Interface management method, device, equipment and storage medium Download PDF

Info

Publication number
CN111078348B
CN111078348B CN201911356075.2A CN201911356075A CN111078348B CN 111078348 B CN111078348 B CN 111078348B CN 201911356075 A CN201911356075 A CN 201911356075A CN 111078348 B CN111078348 B CN 111078348B
Authority
CN
China
Prior art keywords
control
fragment
interface
layer
layer control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911356075.2A
Other languages
Chinese (zh)
Other versions
CN111078348A (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.)
Bigo Technology Pte Ltd
Original Assignee
Guangzhou Baiguoyuan Information 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 Guangzhou Baiguoyuan Information Technology Co Ltd filed Critical Guangzhou Baiguoyuan Information Technology Co Ltd
Priority to CN201911356075.2A priority Critical patent/CN111078348B/en
Publication of CN111078348A publication Critical patent/CN111078348A/en
Application granted granted Critical
Publication of CN111078348B publication Critical patent/CN111078348B/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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

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

Abstract

The invention discloses an interface management method, device, equipment and storage medium, wherein the method comprises the following steps: monitoring a trigger event in an interface through a fragment control, and realizing response of the trigger event based on a layer control, wherein the interface comprises at least one layer control, and the layer control comprises at least one fragment control; and monitoring a service scene through the layer control, and controlling the fragment control to generate a corresponding display effect according to the service scene. According to the technical scheme, the fragment controls are uniformly managed through the layer controls in the interface, so that processing resources are saved, the coupling degree between the controls is reduced, and the maintenance cost can be reduced.

Description

Interface management method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of automatic control, in particular to an interface management method, an interface management device, interface management equipment and a storage medium.
Background
With the continuous development of the android mobile terminal, more and more services can be realized by the android application, the android application interface becomes more and more complex, and under different service scenes, the android application interface needs to be continuously changed along with the scenes, a unified interface management mechanism is lacking, the coupling degree between components in the android application interface is high, and a great deal of maintenance cost is required.
Aiming at the problems, the android interface is split into components and is realized through a View component, however, the components realized through the View have no life cycle related to the main interface, and when the components are transformed in a service scene, the components can only be transformed in a hiding or displaying mode, and the components are not really released, so that the resource waste is caused; in addition, the components implemented through the View require coupling between the components, which still requires significant maintenance costs.
Disclosure of Invention
The invention provides an interface management method, an interface management device, interface management equipment and a storage medium, which are used for realizing unified management of components in an interface, reducing the resource occupancy rate, reducing the coupling degree among the components and reducing the maintenance cost of the interface.
In a first aspect, an embodiment of the present invention provides an interface management method, where the method includes:
monitoring a trigger event in an interface through a fragment control, and realizing response of the trigger event based on a layer control, wherein the interface comprises at least one layer control, and the layer control comprises at least one fragment control;
and monitoring a service scene through the layer control, and controlling the fragment control to generate a corresponding display effect according to the service scene.
In a second aspect, an embodiment of the present invention further provides an interface management apparatus, where the apparatus includes:
the event processing module is used for monitoring a trigger event in the interface through the fragment control and realizing the response of the trigger event based on the layer control;
the scene processing module is used for monitoring a service scene through the layer control, and controlling the fragment control to generate a corresponding display effect according to the service scene;
the interface comprises at least one layer control, and the layer control comprises at least one fragment control.
In a third aspect, an embodiment of the present invention further provides an apparatus, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the interface management method according to any one of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention further provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements an interface management method according to any of the embodiments of the present invention.
According to the technical scheme provided by the embodiment of the invention, the triggering event in the interface is monitored through the fragment control, the response of the triggering event is realized according to the layer control, the service scene is monitored through the layer control, and the fragment control is controlled according to the service scene to generate the display effect, wherein the layer control in the interface comprises at least one fragment control, and the fragment control is uniformly managed through the layer control, so that the uniform management of the control in the interface is realized, the resource occupancy rate is reduced, the coupling degree of each component in the interface is reduced, and the maintenance cost is reduced.
Drawings
FIG. 1 is a flowchart of an interface management method according to a first embodiment of the present invention;
FIG. 2 is an exemplary diagram of an interface provided in accordance with one embodiment of the present invention;
FIG. 3 is a flowchart of an interface management method according to a second embodiment of the present invention;
fig. 4 is an exemplary diagram of a service scenario switching provided in the second embodiment of the present invention;
fig. 5 is an exemplary diagram of a fragment control display effect update according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of an interface management device according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings, and furthermore, embodiments of the present invention and features in the embodiments may be combined with each other without conflict.
Example 1
Fig. 1 is a flowchart of an interface management method provided in an embodiment of the present invention, where the embodiment of the present invention is applicable to a case of managing interface controls in android software, and the method may be performed by an interface management device, where the device may be implemented in a hardware and/or software manner, and referring to fig. 1, the method provided in the embodiment of the present invention includes the following steps:
and 101, monitoring a trigger event in an interface through a fragment control, and realizing the response of the trigger event based on a layer control, wherein the interface comprises at least one layer control, and the layer control comprises at least one fragment control.
The Fragment control can be a control embedded into the layer control, display elements in the interface can be realized through a plurality of Fragment controls, the Fragment control can have life cycle functions, survival of the Fragment control in the interface can be controlled, management of other interface controls is not needed, the coupling degree between the Fragment controls is low, and the Fragment control can be a Fragment control in the android control. The layer control can be a screen used for showing in an android interface and can be used as a visual interface for interacting with a user, the layer control is a shell frame of the whole interface, business logic can not be processed, and the layer control can be an Activity control in the android control.
Specifically, the trigger event may be a to-be-responded event triggered in the interface, which may include a click event, a sliding event, etc. of the user, and the trigger event may act on the fragment control therebetween, so as to trigger the service logic. Fig. 2 is an exemplary diagram of an interface provided by the first embodiment of the present invention, referring to fig. 2, the interface in the embodiment of the present invention may be composed of a layer control 1 and a fragment control 2, where the layer control 1 may be a container carrying the fragment control 2, and the fragment control 2 may be a display window such as a live video stream, a notification of entering a room, a public screen, applying for a microphone, and a chat toolbar. The triggering event may be triggered in the presentation window in fig. 2, in particular, may be triggered by the user clicking or sliding the presentation window.
In this embodiment of the present application, the fragment control may be a control for monitoring a trigger event in an interface, a user may generate the trigger event in the fragment control by clicking or sliding, a layer control may bear a container of each fragment control, and the fragment control may transmit the acquired trigger event to another fragment control through the layer control, so that the other fragment control generates a corresponding response according to the trigger event. For example, a user clicks a fragment control with a function of applying for the barley service in an interface, a trigger event is generated in the fragment control, relevant information of the trigger event can be transmitted to the fragment control with the public screen service through a layer control, and information of the user can be displayed in the fragment control with the public screen service function.
And 102, monitoring a service scene through the layer control, and controlling the fragment control to generate a corresponding display effect according to the service scene.
The service scene may be a scene corresponding to the service logic, and interface contents in different service scenes may be different, for example, taking live service logic as an example, the service scene may include a login scene, a live video scene, an exit scene, and the like.
In the embodiment of the application, the layer control is used for uniformly managing the carried fragment control, the layer control can monitor the service scene, different control information can be generated when the service scene is switched, the layer control can control the carried fragment control according to the control information, for example, display data can be sent to the fragment control, the fragment control can display the display data, state information can be sent to the fragment control, and the fragment control can change the life cycle according to the state information.
Specifically, in the embodiment of the invention, the display effect can include the display content of the fragment control, the number of fragment controls in the interface can be included, the layer control can be a container for bearing the fragment control, the layer control can include a plurality of fragment controls, and the display positions of the fragment controls in the layer control can be the same or different.
It may be understood that, in the embodiment of the present application, the steps 101 and 102 are only used to distinguish method steps, and are not used to limit the sequence of performing the steps 101 and 102, and the step 101 may be performed simultaneously with the step 102, and the step 102 may also be performed prior to the step 101.
According to the technical scheme provided by the embodiment of the invention, the triggering event in the interface is monitored by the fragment control, the response of the fragment control to the triggering event is realized based on the layer control, the layer control monitors the service scene and controls the fragment control to generate the display effect according to the service scene, the layer control in the interface bears a plurality of fragment controls, the fragment controls are uniformly managed by the layer control, the uniform management of the controls in the interface is realized, the resource occupancy rate is reduced, the coupling degree of each component in the interface is reduced, and the maintenance cost is reduced.
Further, on the basis of the embodiment of the invention, the layer control and the fragment control in the interface have respective life cycles.
The lifecycle may be a survival period of the control, and the control may occupy resources when the control is in a survival state.
Specifically, the interface may include a layer control and a fragment control, each of which may have a respective lifecycle, and the lifecycle of the fragment control may not affect the lifecycle of the layer control, e.g., the lifecycle of the layer control may still be in a surviving state after the lifecycle of the fragment control is destroyed. It is to be appreciated that the fragment controls can have their own lifecycle, and that the lifecycle of different fragment controls can also be independent of each other, e.g., the lifecycle of a fragment control with business functionality as a messaging notification can be different from the lifecycle of a fragment control with business functionality as a toolbar.
Example two
Fig. 3 is a flowchart of an interface management method according to a second embodiment of the present invention, where the specific loop is performed based on the foregoing embodiment, and referring to fig. 3, the method of the present embodiment specifically includes the following operations:
step 201, monitoring a trigger event in an interface through a fragment control, and sending the trigger event to the layer control through the fragment control.
Specifically, the layer control may be a unified management fragment control, and the fragment control may receive a trigger event generated in the interface and may send the trigger event to the layer control carrying the fragment control. It can be appreciated that the corresponding relation exists between the fragment control and the layer control, and the trigger event received by the fragment control can be forwarded to the layer control which has the association relation with the fragment control.
And 202, analyzing the trigger event through the layer control to determine target fragment control and state information.
The target fragment control may be a control responding to the trigger event, the target fragment control may be a control in the same layer as the fragment control receiving the trigger event, and the target fragment control responding to the trigger event may be multiple. The state information may be lifecycle information of the target shard control that may be used to determine whether the target shard control is in a surviving state.
Specifically, the layer control may parse the received trigger event to obtain a response control corresponding to the trigger event, and may use the response control as a target fragment control, for example, the trigger event may include a control number of the response control, and the layer control may search for a corresponding fragment control according to the control number, and may use the searched fragment control as the target fragment control. After determining the target fragment control, the life cycle information of the target fragment control can be obtained as state information, wherein the state information can specifically comprise Created, released and the like. It may be appreciated that if the layer control cannot find the control number responding to the trigger event, the target fragment control may not be created yet, and the state information of the target fragment control may be information for creating the target fragment control.
And 203, updating the display effect of the target fragment control according to the state information.
Specifically, the layer control may transmit the state information to the target fragment control, and the target fragment control may display the state information, for example, may find corresponding display data in the database according to the state information, and display the display data in the target fragment control.
Further, the display effect of the fragment control comprises the display quantity of the fragment control in the layer control and the display style of the fragment control.
Specifically, the number of the display items may be the number of the fragment controls displayed in response to the trigger event, and the fragment controls may simultaneously control a plurality of target fragment controls to display according to the state information. The display style of each target fragment control when being displayed can be different, and the layer control can change the display style of the layer control through state information, for example, the layer control sends the state information to the target fragment control, so that the background color of the fragment control with the toolbar service function is changed into red.
And 204, when a switching instruction of the service scene is acquired, determining a configuration information table for controlling the fragment control in the layer control according to the switching instruction.
The switching instruction may be an instruction for switching a service scene, and may be generated according to a behavior of a user, for example, clicking a button for entering a room in an interface or sliding the interface upwards; the configuration information table may be configuration information for generating the fragment control, may include a presentation position and a presentation style of the fragment control, and the like, and may be stored in the layer control.
Specifically, the layer control can monitor the switching instruction of the switching service scene, when the switching instruction is acquired, the corresponding configuration information table can be searched in the layer control according to the target service scene corresponding to the switching instruction, and different service scenes can correspond to different configuration information tables.
In one embodiment, the number of configuration information tables corresponds to the number of service scenarios.
In the embodiment of the invention, a plurality of configuration information tables can be stored in the layer control, each configuration information table can correspond to different service scenes, and the layer control controls the fragment control according to the different configuration information tables, so that the fragment control changes along with the service scene.
Step 205, changing the display effect of the fragment control in the layer control according to the control information in the configuration information table.
The control information may be information for controlling the fragment control to perform service processing and display, and may include a display position, a display style, a service data correspondence relation, and the like of the fragment control, and each control information in the configuration information table may correspond to different fragment controls.
Specifically, control information stored in a configuration information table in the layer control is obtained, the display effect of the fragment control can be changed according to the control information, and the display style and the display data of the fragment control can be changed.
For example, fig. 4 is an exemplary diagram of service scenario switching provided in the second embodiment of the present invention, referring to fig. 4, in which service scenario switching is implemented by using a configuration information table, loading, destruction and release recovery of fragment control resources under different service scenarios are controlled by using a configuration information table, fragment control 2 is a direct carrier of all desktop interaction controls, and is responsible for self-interaction data presentation and direct interaction with a service layer, layer control 1 may be an entire room page, may be just an empty shell in design and implementation, and is only responsible for loading fragment controls in different life cycles, FM controller 13 is a controller for managing all fragment controls, FM controller 13 implements a service scenario switching function by using FMConfig configuration information table 12 including different life cycles and different service scenario components, and may be scheduled by layer control 1, transfer message center 11 is a view model of layer control 1, and may be a specific event center, all the communication between fragment controls may be completed by Transfer message center 11, may trigger receiving state information table receiving and may be configured to switch service scenario information table 12 when service scenario switching is performed according to current configuration information table 12, and service scenario switching may be performed according to current configuration information table 12.
And 206, the fragment control acquires bottom data through a data interface to realize business logic in the fragment control.
In the embodiment of the invention, the desktop can also provide a data interface for acquiring the bottom data, wherein the bottom data can comprise business data, user data, other bottom data and the like, the data interface can be called by a fragment control in the desktop to acquire the bottom data, and the acquired bottom data can be displayed in the corresponding fragment control to realize corresponding business logic.
According to the technical scheme, the triggering event in the interface is monitored by using the fragment control, the fragment control sends the triggering event to the layer control, the layer control determines the target fragment control and the state information corresponding to the triggering event, the target fragment control realizes the update of the display effect according to the corresponding state information, when the switching instruction of the service scene is acquired, the corresponding configuration information table is determined in the layer control according to the switching instruction, the display effect of the fragment control is changed through the control information in the configuration information table, the underlying data is acquired through the fragment control calling data interface so as to realize service logic, unified management of the control in the desktop is realized, data communication among the fragment controls is realized through the layer control, the coupling degree among the controls is reduced, the control updating and maintaining cost is reduced, and the speed of switching the desktop along with the service scene is improved.
Further, on the basis of the embodiment of the present invention, updating the display effect of the target fragment control according to the state information includes:
if the target fragment control is determined to be in a survival state, the message center of the layer control sends the state information to the target fragment control so as to change the display effect of the target fragment control; and if the target fragment control is determined to be in a non-survival state, creating a new target fragment control, and sending the state information to the target fragment control by a message center of the layer control to create the display effect of the target fragment control.
In the embodiment of the invention, when the display effect of the target fragment control is updated according to the state information, as the target fragment control is possibly destroyed, the life cycle information of the target fragment control can be determined, if the target fragment control is in a survival state, the state information can be directly sent to the target fragment control through the message center of the layer control, wherein the message center of the layer control can be a Transfer, so that the target fragment control updates the display effect according to the state information, if the target fragment control is not in the survival state, the target fragment control can be destroyed or not created, the layer control can create the target fragment control, and the corresponding display effect is generated by sending the state information to the target fragment control.
Further, on the basis of the embodiment of the present invention, changing the display effect of the fragment control in the layer control according to the control information in the configuration information table includes:
transmitting control information in the layer control to the fragment control through a message center; and changing a view model corresponding to the fragment control according to the control information so as to change the display view.
The view model can be in bidirectional binding with the view in the fragment control and can be used for changing the display form of the view in the fragment control. In the embodiment of the invention, a message center can be arranged in the layer control for processing the communication among the fragment controls, the display parameters in the display model in the fragment control can be controlled by the transmitted control information in the fragment control, and the display view of the fragment control can be changed by changing the ViewModel.
Fig. 5 is an exemplary diagram of updating a display effect of a fragment control, which is provided in the second embodiment of the present invention, and referring to fig. 5, the fragment controls on the desktop cannot directly communicate with each other, and forward event communication through a Transfer message center, so as to avoid serious coupling between components and difficult maintenance. The isolation between every two components is not directly communicable, e.g., a live video stream control is not accessible to a room entry notification control and vice versa. The communication mode between the controls can only pass through the layer control, the communication of all the controls is required to pass through the Transfer message center of the layer control, then the layer control transmits the information to the corresponding fragment control, and the layer control transmits the state information. If a live video stream area is clicked, the chat toolbar needs to be opened, and the clicking event of the live video stream area is transmitted to a Transfer message center of the layer control, and then the layer control informs the chat toolbar of the opening state. All the controls can be isolated from each other, so that the controls cannot be directly communicated, the controls are further independent, the coupling degree is reduced, the controls have pluggable capability, and the normal operation of other components is not affected by removing and adding components. The communication mechanism between the controls is realized by the ViewModel of the system, the layer controls can have independent ViewModels, the fragment controls also have independent ViewModels, the trigger events received by the fragment controls can be transmitted to the ViewModels of the layer controls to change the states, and the state change can be observed in other fragment controls, so that the state change of the layer controls is realized.
Example III
Fig. 6 is a schematic structural diagram of an interface management device according to a third embodiment of the present invention, which can execute the interface management method according to any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. The apparatus may be implemented by software and/or hardware, and specifically includes: an event processing module 301 and a scene processing module 302.
The event processing module 301 is configured to monitor a trigger event in the interface through a fragment control, and implement a response of the trigger event based on a layer control; the interface comprises at least one layer control, and the layer control comprises at least one fragment control.
The scene processing module 302 is configured to monitor a service scene through the layer control, and control the fragment control to generate a corresponding display effect according to the service scene.
According to the technical scheme, the event processing module monitors the triggering event in the interface for the fragment control, and achieves the response of the triggering event according to the layer control, the scene processing module monitors the service scene through the layer control, and controls the fragment control to generate the display effect according to the service scene, wherein the layer control in the interface comprises at least one fragment control, and the fragment control is uniformly managed through the layer control, so that uniform management of the control in the interface is achieved, the resource occupancy rate is reduced, the coupling degree of each component in the interface is reduced, and the maintenance cost is reduced.
Further, on the basis of the above embodiment of the present invention, the layer control and the fragment control in the interface of the event processing module 301 have respective life cycles.
Further, on the basis of the above embodiment of the present invention, the event processing module 301 includes:
and the event acquisition unit is used for monitoring a trigger event in the interface through the fragment control and sending the trigger event to the layer control through the fragment control.
And the information determining unit is used for determining the target fragment control and the state information by analyzing the trigger event through the layer control.
And the effect updating unit is used for updating the display effect of the target fragment control according to the state information.
Further, on the basis of the above embodiment of the present invention, the effect updating unit includes:
and the first subunit is used for determining that the target fragment control is in a survival state, and sending the state information to the target fragment control by a message center of the layer control so as to change the display effect of the target fragment control.
And the second subunit is used for determining that the target fragment control is in a non-survival state, creating the target fragment control, and sending the state information to the target fragment control by a message center of the layer control so as to create the display effect of the target fragment control.
Further, on the basis of the above embodiment of the present invention, the scene processing module 302 includes:
and the configuration determining unit is used for determining a configuration information table for controlling the fragment control in the layer control according to the switching instruction when the switching instruction of the service scene is acquired.
And the scene processing unit is used for changing the display effect of the fragment control in the layer control according to the control information in the configuration information table.
Further, on the basis of the embodiment of the present invention, the display effects of the fragment control in the scene processing module 302 include the display number of the fragment control in the layer control and the display style of the fragment control.
Further, on the basis of the embodiment of the present invention, the scene processing unit includes:
and the data transmission subunit is used for transmitting the control information in the layer control to the fragment control through the message center.
And the effect changing subunit is used for changing the view model corresponding to the fragment control according to the control information so as to change the display view.
Further, on the basis of the above embodiment of the present invention, the number of configuration information tables in the scene processing module 302 corresponds to the number of service scenes.
Further, on the basis of the embodiment of the invention, the method further comprises the following steps:
and the interface module is used for the fragment control to acquire the bottom data through the data interface and realize the business logic in the fragment control.
Example IV
Fig. 7 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention, and as shown in fig. 7, the apparatus includes a processor 70, a memory 71, an input device 72, and an output device 73; the number of processors 70 in the device may be one or more, one processor 70 being taken as an example in fig. 7; the processor 70, memory 71, input means 72 and output means 73 in the device may be connected by a bus or other means, in fig. 7 by way of example.
The memory 71 is a computer-readable storage medium, and may be used to store software programs, computer-executable programs, and modules, such as program modules corresponding to the interface management method in the embodiment of the present invention (for example, the event processing module 301 and the scene processing module 302 in the interface management device). The processor 70 executes various functional applications of the device server and data processing by executing software programs, instructions and modules stored in the memory 71, i.e., implements the interface management method described above.
The memory 71 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functions; the storage data area may store data created according to the use of the terminal, etc. In addition, memory 71 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 71 may further include memory remotely located relative to processor 70, which may be connected to the device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 72 may be used to receive entered numeric or character information and to generate key signal inputs related to user settings and function control of the apparatus. The output means 73 may comprise a display device such as a display screen.
Example five
A fifth embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing an interface management method, the method comprising:
monitoring a trigger event in an interface through a fragment control, and realizing response of the trigger event based on a layer control, wherein the interface comprises at least one layer control, and the layer control comprises at least one fragment control;
and monitoring a service scene through the layer control, and controlling the fragment control to generate a corresponding display effect according to the service scene.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the method operations described above, and may also perform the related operations in the interface management method provided in any embodiment of the present invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, etc., and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
It should be noted that, in the embodiment of the interface management apparatus, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. An interface management method, comprising:
monitoring a trigger event in an interface through a fragment control, and realizing response of the trigger event based on a layer control, wherein the interface comprises at least one layer control, and the layer control comprises at least one fragment control;
monitoring a service scene through the layer control, and controlling the fragment control to generate a corresponding display effect according to the service scene;
the monitoring the triggering event in the interface through the fragment control and realizing the response of the triggering event based on the layer control comprises the following steps:
monitoring a trigger event in an interface through a fragment control, and sending the trigger event to the layer control through the fragment control;
analyzing the trigger event through the layer control to determine a target fragment control and state information;
if the target fragment control is determined to be in a survival state, the message center of the layer control sends the state information to the target fragment control so as to change the display effect of the target fragment control;
and if the target fragment control is determined to be in a non-survival state, creating a new target fragment control, and sending the state information to the target fragment control by a message center of the layer control to create the display effect of the target fragment control.
2. The method of claim 1, wherein the layer control and the shard control in the interface have respective lifecycles.
3. The method of claim 1, wherein the monitoring, by the layer control, a business scenario, and controlling the fragment control to generate a corresponding presentation effect according to the business scenario, includes:
when a switching instruction of a service scene is acquired, determining a configuration information table for controlling the fragment control in the layer control according to the switching instruction;
and changing the fragment control display effect in the layer control according to the control information in the configuration information table.
4. The method of claim 1, wherein the presentation effect of the shard control comprises a number of presentations of the shard control and a presentation style of the shard control within the tier control.
5. The method of claim 3, wherein the changing the presentation effect of the shard control within the layer control according to the control information in the configuration information table comprises:
transmitting control information in the layer control to the fragment control through a message center;
and changing a view model corresponding to the fragment control according to the control information so as to change the display view.
6. A method according to claim 3, characterized in that the number of configuration information tables corresponds to the number of traffic scenarios.
7. The method of any of claims 1-6, further comprising the shard control obtaining underlying data through a data interface to implement business logic within the shard control.
8. An interface management apparatus, comprising:
the event processing module is used for monitoring a trigger event in the interface through the fragment control and realizing the response of the trigger event based on the layer control, wherein the interface comprises at least one layer control, and the layer control comprises at least one fragment control;
wherein the event processing module comprises:
the event acquisition unit is used for monitoring a trigger event in an interface through the fragment control and sending the trigger event to the layer control through the fragment control;
the information determining unit is used for determining target fragment control and state information by analyzing the trigger event through the layer control;
the effect updating unit is configured to update a display effect of the target fragment control according to the state information, and includes: the first subunit is used for determining that the target fragment control is in a survival state, and sending the state information to the target fragment control by a message center of the layer control so as to change the display effect of the target fragment control; the second subunit is used for determining that the target fragment control is in a non-survival state, creating the target fragment control, and sending the state information to the target fragment control by a message center of the layer control to create a display effect of the target fragment control;
and the scene processing module is used for monitoring a service scene through the layer control, and controlling the fragment control to generate a corresponding display effect according to the service scene.
9. An interface management apparatus, the apparatus comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, causes the one or more processors to implement the interface management method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the interface management method as claimed in any one of claims 1-7.
CN201911356075.2A 2019-12-25 2019-12-25 Interface management method, device, equipment and storage medium Active CN111078348B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911356075.2A CN111078348B (en) 2019-12-25 2019-12-25 Interface management method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911356075.2A CN111078348B (en) 2019-12-25 2019-12-25 Interface management method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111078348A CN111078348A (en) 2020-04-28
CN111078348B true CN111078348B (en) 2023-06-23

Family

ID=70317624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911356075.2A Active CN111078348B (en) 2019-12-25 2019-12-25 Interface management method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111078348B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111580919A (en) * 2020-05-14 2020-08-25 北京字节跳动网络技术有限公司 View linkage processing method and device of application program and storage medium
CN111629252B (en) * 2020-06-10 2022-03-25 北京字节跳动网络技术有限公司 Video processing method and device, electronic equipment and computer readable storage medium
CN114363449A (en) * 2020-09-30 2022-04-15 北京字跳网络技术有限公司 Service state switching method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902256A (en) * 2012-12-24 2014-07-02 航天信息股份有限公司 Interface generating system and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857489B (en) * 2017-11-30 2022-05-27 阿里巴巴集团控股有限公司 Development system based on Android system, decoupling method and device
CN108829391B (en) * 2018-05-04 2021-08-31 武汉极意网络科技有限公司 Method and system for identifying control in Fragment
CN108829392B (en) * 2018-05-21 2022-11-25 北京五八信息技术有限公司 Method and device for reducing transitional drawing, electronic equipment and storage medium
CN110489193A (en) * 2019-08-14 2019-11-22 北京猎户星空科技有限公司 Interface control method, device and the storage medium of smart machine

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902256A (en) * 2012-12-24 2014-07-02 航天信息股份有限公司 Interface generating system and method

Also Published As

Publication number Publication date
CN111078348A (en) 2020-04-28

Similar Documents

Publication Publication Date Title
CN111078348B (en) Interface management method, device, equipment and storage medium
CN110310034B (en) Service arrangement and business flow processing method and device applied to SaaS
US20220239617A1 (en) Reminder method and apparatus in group session, device and medium
CN109347934B (en) Message pushing method and system, server, storage medium and electronic device
EP4379545A1 (en) Data processing method and system, related device, storage medium and product
EP3447965B1 (en) Network function instance management method and relevant device
CN111866537B (en) Information display method and device in live broadcast room, storage medium and electronic equipment
EP3128416B1 (en) Sdn application integration, management and control method, system and device
CN102421028B (en) Control method for intelligent television (TV), intelligent TV, remote control device and intelligent TV control system
CN104363247A (en) Flow saving method and device adopting saving-free application
CN104346198B (en) Information processing unit, server unit, information processing method and storage equipment
US20070115818A1 (en) Triggered notification
US20140237373A1 (en) Method of provisioning a cloud-based render farm
US9600152B2 (en) Providing feedback for screen sharing
EP3122008A1 (en) Cloud desktop pushing method and system, pushing end and receiving end
CN111601175B (en) Bullet screen pushing control method, device, equipment and storage medium
CN112416284A (en) Method, apparatus, device and storage medium for sharing screen
CN105677536A (en) Implementing method for task messages and task system for implementing task messages
CN111090691A (en) Data processing method and device, electronic equipment and storage medium
CN111917838A (en) Processing method and device based on micro service, storage medium and electronic device
CN111770176A (en) Traffic scheduling method and device
CN108933947A (en) Barrage display methods and device
US20180373668A1 (en) Bridge and asynchronous channel based bus to provide ui-to-ui asynchronous communication
US20050177797A1 (en) Key event controlling apparatus
US20160330151A1 (en) Method and system for managing an informational site using a social networking 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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231010

Address after: 31a, 15th floor, building 30, maple commercial city, bangrang Road, Brazil

Patentee after: Baiguoyuan Technology (Singapore) Co.,Ltd.

Address before: 511400 floor 5-13, West Tower, building C, 274 Xingtai Road, Shiqiao street, Panyu District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU BAIGUOYUAN INFORMATION TECHNOLOGY Co.,Ltd.