CN109710152A - A kind of event-handling method, device and storage medium - Google Patents

A kind of event-handling method, device and storage medium Download PDF

Info

Publication number
CN109710152A
CN109710152A CN201811623781.4A CN201811623781A CN109710152A CN 109710152 A CN109710152 A CN 109710152A CN 201811623781 A CN201811623781 A CN 201811623781A CN 109710152 A CN109710152 A CN 109710152A
Authority
CN
China
Prior art keywords
component
class
tool
sub
event
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
CN201811623781.4A
Other languages
Chinese (zh)
Other versions
CN109710152B (en
Inventor
吴华
王瑞端
李小宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201811623781.4A priority Critical patent/CN109710152B/en
Publication of CN109710152A publication Critical patent/CN109710152A/en
Application granted granted Critical
Publication of CN109710152B publication Critical patent/CN109710152B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure is directed to a kind of event-handling method, device and storage mediums.The described method includes: determining sub-component to be presented in the user interface in slidably class parent component in response to user's operation;Tool-class is obtained from default memory, the tool-class is used to monitor the sub-component with the presence or absence of triggering display event or disappearance event;The tool-class is associated with the sub-component to be presented, and the tool-class after association is set in default detection queue.By each embodiment of the disclosure in the way of, on the one hand, for the sub-component not shown in the user interface, do not need to be associated with the tool-class, that is, reduce the number of tool-class in traversal detection queue, reduce computing cost;On the other hand, the tool-class not used temporarily using the default memory storage realizes the recycling to tool-class, reduces memory overhead.

Description

A kind of event-handling method, device and storage medium
Technical field
This disclosure relates to applicating developing technology field more particularly to a kind of event-handling method, device and storage medium.
Background technique
Component in is using the event for tending to occur show or disappear in the process.Pass through detection components Display or the event to disappear, can issue the notification message of the event.Further, according to the notification message, Ke Yitong The index parameters such as the number that various components occur in meter application.In an application scenarios, according to the component comprising advertising information Frequency of occurrence, can count to obtain the clicking rate of the advertising information.
It in the related technology, can be by that will need to detect one tool of component liaison of display event or disappearance event Class, the event for showing or disappearing using the tool-class listening components.For nested class component, a large amount of subgroup is frequently included Part then needs these sub-components being all associated with the work when these sub-components require detection display or the event to disappear Has class.So, when carrying out display event or disappearance event detection to the nested class component, then all subgroups are needed to be traversed for The corresponding tool-class of part.But the event for showing or disappearing can't occur at this time for some components in these sub-components, because These components are carried out the overhead for detecting often increase client of display event or disappearance event by this, and waste calculates Resource.
Therefore, a kind of detection components display event or disappearance event that can reduce computing resource is needed in the related technology Method.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of event-handling method and device.
According to the first aspect of the embodiments of the present disclosure, a kind of event-handling method is provided, comprising:
In response to user's operation, sub-component to be presented in the user interface in slidably class parent component is determined;
Tool-class is obtained from default memory, the tool-class is for monitoring with the presence or absence of triggering display event or disappearance The sub-component of event;
The tool-class is associated with the sub-component to be presented, and the tool-class after association is set to described Slidably in the corresponding default detection queue of class parent component.
According to the second aspect of an embodiment of the present disclosure, a kind of event-handling method is provided, comprising:
In response to user's operation, sub-component to be disappeared from user interface in slidably class parent component is determined;
It is obtained from the corresponding default detection queue of the slidably class parent component related to the sub-component to be disappeared The tool-class of connection, the tool-class are used to monitor the sub-component with the presence or absence of triggering display event or disappearance event;
The incidence relation between the sub-component and the tool-class to be disappeared is released, and will be after disassociation relationship Tool-class is stored into default memory.
According to the third aspect of an embodiment of the present disclosure, a kind of event processing apparatus is provided, comprising:
Component exhibiting determining module, for determining in slidably class parent component in the user interface in response to user's operation Sub-component to be presented;
First tool-class obtains module, and for obtaining tool-class from default memory, whether the tool-class is used for monitoring Event or disappearance event are shown in the presence of the sub-component of triggering display event or disappearance event;
Tool-class relating module, for the tool-class to be associated with the sub-component to be presented, and will be after association The tool-class is set in the slidably corresponding default detection queue of class parent component.
According to a fourth aspect of embodiments of the present disclosure, a kind of event processing apparatus is provided, comprising:
Disappearance component determining module, for determining in slidably class parent component from user interface in response to user's operation Sub-component to be disappeared;
Tool-class obtain module, for from the slidably class parent component corresponding default detection queue acquisition with it is described The associated tool-class of sub-component to be disappeared, the tool-class is for monitoring with the presence or absence of triggering display event or disappearance thing The sub-component of part;
Tool-class releases module, for releasing the incidence relation between the sub-component and the tool-class to be disappeared, And the tool-class after disassociation relationship is stored into default memory.
According to a fifth aspect of the embodiments of the present disclosure, a kind of event processing apparatus is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to executing event-handling method described in above-described embodiment.
According to a sixth aspect of an embodiment of the present disclosure, a kind of non-transitorycomputer readable storage medium is provided, when described When instruction in storage medium is executed by processor, enable a processor to execute the event-handling method.
The technical scheme provided by this disclosed embodiment can include the following benefits: each embodiment of the disclosure provides Event-handling method, device and storage medium, for needing to carry out display event or disappearance thing in slidably class parent component Part monitor sub-component, when the sub-component i.e. by Dynamic Display when user interface, can obtain and be used for from default memory Listening components show the tool-class of event or disappearance event, and tool-class is associated with the sub-component.On the one hand, for The sub-component not shown in the user interface does not need to be associated with the tool-class, that is, reduces tool-class in traversal detection queue Number reduces computing cost;On the other hand, the tool-class not used temporarily using the default memory storage is realized to tool The recycling of class reduces memory overhead.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of schematic diagram of a scenario of event-handling method shown according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of event-handling method shown according to an exemplary embodiment.
Fig. 3 is a kind of flow chart of event-handling method shown according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of event processing apparatus shown according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of event processing apparatus shown according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of device shown according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
For convenience those skilled in the art understand that technical solution provided by the embodiments of the present application, first below to technical side The technological accumulation and inheritance that case is realized is illustrated.
For the sub-component in slidably class parent component, often (slide of such as finger) is carried out depending on the user's operation Dynamic Display.Some sub-components are shown as over the display to occur, and other component disappear.In the related technology, it can slide In dynamic class parent component it is in need carry out display event or tool-class is respectively associated in the sub-component of disappearance event detection, may Lead to following problems.During sub-component Dynamic Display in slidably class parent component, for not showing over the display Sub-component, will not generally occur show or disappear event.But in the related technology, what each display was shown is interior Appearance is when adjusting, require detection tool associated by the sub-component in need for detecting display event or disappearance event Class.So, tool-class corresponding to the sub-component that those do not show over the display is detected, not only increase client is additional opens Pin wastes computing resource, also influences the performance of client to a certain extent.
Based on above technical need, the event-handling method that the disclosure provides, can will slidably in class parent component from The corresponding tool-class of sub-component to be disappeared is recycled in default memory in user interface, in this way, occurring in the user interface When sub-component to be presented, the tool-class of recycling can be obtained from the default memory, and by the sub-component and the tool Class is associated.The not only recycling of implementation tool class, can also reduce to the sub-component not shown in the user interface into The detection of the unnecessary display event of row or disappearance event, reduces the expense of client, promotes the performance of client.
The event-handling method described in the disclosure is described in detail with reference to the accompanying drawing.Fig. 1 is that the disclosure provides Event-handling method a kind of embodiment method flow diagram.Although present disclose provides as the following examples or shown in attached drawing Method operating procedure, but based on conventional or in the method may include more or less without creative labor Operating procedure.In the step of there is no necessary causalities in logicality, the execution sequence of these steps is not limited to this public affairs That opens embodiment offer executes sequence.
A kind of embodiment for the event-handling method that the specific disclosure provides is as shown in Figure 1, may include:
In step 101, in response to user's operation, subgroup to be presented in the user interface in slidably class parent component is determined Part;
In step 103, tool-class is obtained from default memory, the tool-class is for monitoring with the presence or absence of triggering display thing The sub-component of part or disappearance event;
In step 105, the tool-class is associated with the sub-component to be presented, and by the tool-class after association It is set in the slidably corresponding default detection queue of class parent component.
The event-handling method that the disclosure provides can be applied to any operating system and be provided in the client of application, In, it also includes tradition application that the application, which includes fast application, and the tradition application includes needing installation data in an operating system The application that can be just run after packet.The client may include the terminal device that can display elements be carried out with rendering processing. Specifically, for example, the electronic equipment can be intelligent movable phone, computer (including laptop, desktop computer), put down Plate electronic equipment, personal digital assistant (PDA) or intelligent wearable device etc..
In the client, user can be realized by operation to the sliding of list, the page or page partial user circle The switching in face.The operation may include slide up and down, the clicking operation for assisting control etc..In client In multiple assembly, slidably class parent component may include being nested with multiple sub-components in component and carrying out dynamic exhibition in the display The class component shown, i.e., the described slidably class parent component are the parent component of the multiple sub-component.In one embodiment, due to In container assemblies can nested other components, therefore, the slidably class parent component may include slidable container assemblies. The slidably class parent component includes any type in following: list element, slide block assembly, labels page component.Wherein, The list element may include the component for being shown as tabular form in the display, may include multiple in the list element Sub-component, in one embodiment, the uniline content in the list element can be a sub-component.Certainly, the list It can also be nested with list sub-component in component, can also include multiple sub-components in the list sub-component.The sliding block group Part may include the component slided to content in user interface, such as the Swiper component in Android operation system.One In a example, the slide block assembly may include the advertisement show position in user interface.The labels page component may include To the component for carrying out slide realization page switching in user interface, such as the TabContent group in Android operation system Part.In one example, the labels page component may include can be by the news category application of the slide handover page.
Based on this, client can determine slidably class in response to the user's operation after getting user's operation Sub-component to be presented in the user interface in parent component.When generating user's operation in the user interface, client can be connect Receive the user's operation.If user's operation is the operation for triggering slidably class parent component and dynamic change occurring in the user interface When, sub-component to be presented in the user interface in the slidably class parent component can be determined in response to the user's operation. In one example, for the list shown in the user interface, if user implements upward sliding operation in touch display screen, Then client can be determined and be needed in user in response to the slide after the upward sliding operation for detecting user Lower half portion in the list shown in interface.So, the list is as slidably class parent component, including multiple Sub-component determines the displaying content in list in lower half portion, that is, determines subgroup to be presented in the slidably class parent component Part.
In the embodiment of the present disclosure, in determining slidably class parent component after sub-component to be presented in the user interface, The tool-class that event or disappearance event are shown for listening components can be obtained from default memory.In the present embodiment, it is The display event or disappearance event of monitoring sub-component to be presented by the sub-component and can be used for listening components and show The association of the tool-class of event or disappearance event.In one example, in Android operation system, the tool-class can be with Including AppearanceHelper tool-class, after AppearanceHelper tool-class and component liaison, AppearanceHelper tool-class can monitor the display event or disappearance event for being associated with component, described in detection When AppearanceHelper tool-class, AppearanceHelper tool-class can issue associated component and display thing occurs The notification message of part or disappearance event.
In the embodiments of the present disclosure, since the tool-class has versatility, weight can be carried out to the tool-class It is multiple to utilize.Specifically, default memory can be set in the client, for storing the tool-class.If in the default memory In the presence of idle tool-class, the tool-class can be obtained from the default memory.It, can be with after obtaining the tool-class The tool-class is associated with the sub-component to be presented, and the tool-class after association is set to default detection queue In.In the embodiment of the present disclosure, the default detection queue can have one-to-one relationship with the slidably class parent component, For managing the monitoring event of sub-component in the slidably class parent component.When the slidably class parent component is container assemblies When, the default detection queue can be component.When the dynamic of sub-component in the user's operation triggering slidably class parent component When displaying, the tool-class in the default detection queue can be traversed, to determine which sub-component generation display event or disappear Have an accident part.
Based on this, in the embodiments of the present disclosure, for the recovery method of the tool-class, as shown in Fig. 2, may include:
In step 201, in response to the user's operation, determine in the slidably class parent component from the user interface Sub-component to be disappeared;
In step 203, tool-class associated with the sub-component to be disappeared is obtained from the default detection queue;
In step 205, the incidence relation between the sub-component and the tool-class to be disappeared is released, and close releasing Tool-class after connection relationship is stored into the default memory.
In the present embodiment, it can determine in the slidably class parent component in response to the user's operation from the user Sub-component to be disappeared in interface.In the example of above-mentioned list, for length exceed display screen height list, when user to The part that display screen the top is shown in when upper sliding, in list can disappear from user interface, and will appear below screen New list content.Sub-component to be disappeared has existed tool-class associated with it, and the tool-class be set to it is described pre- If detecting in queue.Since sub-component to be disappeared can skid off user interface, the thing for showing or disappearing will not occur Therefore part can release the incidence relation between the sub-component and the tool-class to be disappeared, and by disassociation relationship Tool-class afterwards is stored into the default memory, for the use of other sub-components.
In embodiment of the disclosure, in the user interface, some sub-components are showed in the edge of display, i.e., this is a little It is showed in user interface to components.Therefore, the sub-component to be presented may include being located at the user interface Edge and the sub-component being partly showed in the user interface.So, the sub-component to be disappeared can not include position In the user interface edge and be partly showed in sub-component in the user interface.
In the embodiments of the present disclosure, as shown in figure 3, the method also includes:
In step 301, the tool-class in the default detection queue is traversed, determines and occurs in the slidably class parent component The sub-component of display event or disappearance event;
In step 303, the notification message of the sub-component for the generation display event or disappearance event is generated.
It, can be with after the associated tool-class of sub-component is set to the default detection queue in response to user's operation The tool-class in the default detection queue is traversed, determines in the slidably class parent component and display event or disappearance thing occurs The sub-component of part.Based on this, and generate the notification message of the sub-component for the generation display event or disappearance event.Base In the notification message, the frequency of occurrence of sub-component can be counted, show the index parameters such as duration.Subsequently, it can also utilize Index parameter calculates the business effect such as clicking rate, time for exposure of related content in the page.
In one embodiment of the present disclosure, the sub-component in the slidably class parent component can also include nested class Group, certainly, the nesting class component also can also may include other kinds of nested class group including slidably class parent component Part, such as stack (stack) formula container assemblies.When the sub-component is nested class component, the sub-component be can have Therefore corresponding detection queue when traversing the sub-component, can traverse the corresponding detection team of the sub-component Tool-class in column, and determine the component that display event or disappearance event occur in the sub-component.It should be noted that institute The number of plies for stating slidably class parent component nesting may include the arbitrary number of plies, and the disclosure is herein with no restrictions.
The event-handling method that each embodiment of the disclosure provides, for needing to carry out display thing in slidably class parent component The sub-component of part or disappearance event monitoring can be out of default when the sub-component is i.e. by Dynamic Display when user interface The middle tool-class for obtaining and showing event or disappearance event for listening components is deposited, and tool-class is related to the sub-component Connection.On the one hand, it for the sub-component not shown in the user interface, does not need to be associated with the tool-class, that is, reduces traversal detection The number of tool-class in queue reduces computing cost;On the other hand, the tool not used temporarily using the default memory storage Class realizes the recycling to tool-class, reduces memory overhead.
On the other hand the disclosure also provides a kind of event-handling method, comprising:
In response to user's operation, sub-component to be disappeared from user interface in slidably class parent component is determined;
It is obtained from the corresponding default detection queue of the slidably class parent component related to the sub-component to be disappeared The tool-class of connection, the tool-class are used to monitor the sub-component with the presence or absence of triggering display event or disappearance event;
The incidence relation between the sub-component and the tool-class to be disappeared is released, and will be after disassociation relationship Tool-class is stored into default memory.
Optionally, in one embodiment of the present disclosure, the slidably class parent component includes one of following: list Component, slide block assembly, labels page component.
The embodiment of above-mentioned event-handling method can be with parameter above method embodiment, and details are not described herein.
On the other hand the disclosure also provides a kind of event processing apparatus, Fig. 4 is thing shown according to an exemplary embodiment The block diagram of part processing unit 400.Referring to Fig. 4, which includes that identification information obtains module 401, judgment module 403, component wound Model block 405, wherein
Component exhibiting determining module 401, for determining in slidably class parent component in user interface in response to user's operation In sub-component to be presented;
First tool-class obtains module 403, and for obtaining tool-class from default memory, the tool-class is for monitoring The no sub-component display event or disappearance event that there is triggering display event or disappearance event;
Tool-class relating module 405, for the tool-class to be associated with the sub-component to be presented, and will be after association The tool-class be set in the slidably corresponding default detection queue of class parent component.
Optionally, in one embodiment of the present disclosure, described device further include:
Disappearance component determining module, for determining in the slidably class parent component from institute in response to the user's operation State sub-component to be disappeared in user interface;
Second tool-class obtains module, for obtaining and the sub-component phase to be disappeared from the default detection queue Associated tool-class;
Tool-class releases module, for releasing the incidence relation between the sub-component and the tool-class to be disappeared, And the tool-class after disassociation relationship is stored into the default memory.
Optionally, in one embodiment of the present disclosure, the sub-component to be presented includes being located at the user interface Edge and the sub-component that is partly showed in the user interface.
Optionally, in one embodiment of the present disclosure, described device further include:
Tool-class spider module determines the slidably class father for traversing the tool-class in the default detection queue The sub-component of display event or disappearance event occurs in component;
Message generating module is directed to the notice of sub-component of the generation display event or disappearance event and disappears for generating Breath.
Optionally, in one embodiment of the present disclosure, described device further include:
Sub-component spider module, for traversing the corresponding inspection of the sub-component when the sub-component is nested class component The tool-class in queue is surveyed, determines the component that display event or disappearance event occur in the sub-component.
Optionally, in one embodiment of the present disclosure, the slidably class parent component includes one of following: list Component, slide block assembly, labels page component.
On the other hand the disclosure also provides a kind of event processing apparatus, Fig. 5 is thing shown according to an exemplary embodiment The block diagram of part processing unit 500.Referring to Fig. 5, the device include disappearance component determining module 501, tool-class obtain module 503, Tool-class releases module 505, wherein
Disappearance component determining module 501, for determining in slidably class parent component from user interface in response to user's operation In sub-component to be disappeared;
Tool-class obtain module 503, for from the corresponding default detection queue of the slidably class parent component obtain and The associated tool-class of sub-component to be disappeared, the tool-class is for monitoring with the presence or absence of triggering display event or disappearing The sub-component of accident part;
Tool-class releases module 505, for releasing being associated between the sub-component and the tool-class to be disappeared System, and the tool-class after disassociation relationship is stored into default memory.
Optionally, in one embodiment of the present disclosure, the slidably class parent component includes one of following: list Component, slide block assembly, labels page component.
Fig. 6 is a kind of block diagram of device 700 for resource distribution instruction shown according to an exemplary embodiment.Example Such as, device 700 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, and plate is set It is standby, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig. 6, device 700 may include following one or more components: processing component 702, memory 704, power supply Component 706, multimedia component 708, audio component 710, the interface 712 of input/output (I/O), sensor module 714, and Communication component 716.
The integrated operation of the usual control device 700 of processing component 702, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 702 may include that one or more processors 720 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 702 may include one or more modules, just Interaction between processing component 702 and other assemblies.For example, processing component 702 may include multi-media module, it is more to facilitate Interaction between media component 708 and processing component 702.
Memory 704 is configured as storing various types of data to support the operation in device 700.These data are shown Example includes the instruction of any application or method for operating on device 700, contact data, and telephone book data disappears Breath, picture, video etc..Memory 704 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 706 provides electric power for the various assemblies of device 700.Power supply module 706 may include power management system System, one or more power supplys and other with for device 700 generate, manage, and distribute the associated component of electric power.
Multimedia component 708 includes the screen of one output interface of offer between described device 700 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-sensitive display, to transmit input signal from the user.Touch panel includes one or more touches Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding The boundary of movement, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, Multimedia component 708 includes a front camera and/or rear camera.When device 700 is in operation mode, as shot mould When formula or video mode, front camera and/or rear camera can transmit external multi-medium data.Each preposition camera shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 710 is configured as output and/or input audio signal.For example, audio component 710 includes a Mike Wind (MIC), when device 700 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to transmission external audio signal.The audio signal transmitted can be further stored in memory 704 or via communication set Part 716 is sent.In some embodiments, audio component 710 further includes a loudspeaker, is used for output audio signal.
I/O interface 712 provides interface between processing component 702 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 714 includes one or more sensors, and the state for providing various aspects for device 700 is commented Estimate.For example, sensor module 714 can detecte the state that opens/closes of device 700, and the relative positioning of component, for example, it is described Component is the display and keypad of device 700, and sensor module 714 can be with 700 1 components of detection device 700 or device Position change, the existence or non-existence that user contacts with device 700,700 orientation of device or acceleration/deceleration and device 700 Temperature change.Sensor module 714 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 714 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 716 is configured to facilitate the communication of wired or wireless way between device 700 and other equipment.Device 700 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, broadcast singal or broadcast related information of the communication component 716 via broadcast channel transmission from external broadcasting management system. In one exemplary embodiment, the communication component 716 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 700 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 704 of instruction, above-metioned instruction can be executed by the processor 720 of device 700 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
Fig. 7 is a kind of block diagram of device 800 for information processing shown according to an exemplary embodiment.For example, dress Setting 800 may be provided as a server.Referring to Fig. 7, device 800 includes processing component 822, further comprises one or more A processor, and the memory resource as representated by memory 832, can be by the finger of the execution of processing component 822 for storing It enables, such as application program.The application program stored in memory 832 may include it is one or more each correspond to The module of one group of instruction.In addition, processing component 822 is configured as executing instruction, to execute side described in any of the above-described embodiment Method.
Device 800 can also include the power management that a power supply module 826 is configured as executive device 800, and one has Line or radio network interface 850 are configured as device 800 being connected to network and input and output (I/O) interface 858.Dress Setting 800 can operate based on the operating system for being stored in memory 832, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 832 of instruction, above-metioned instruction can be executed by the processing component 822 of device 800 to complete the above method.Example Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.The disclosure is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (20)

1. a kind of event-handling method characterized by comprising
In response to user's operation, sub-component to be presented in the user interface in slidably class parent component is determined;
Tool-class is obtained from default memory, the tool-class is for monitoring with the presence or absence of triggering display event or disappearance event Sub-component;
The tool-class is associated with the sub-component to be presented, and the tool-class after association is set to described can slide In the dynamic corresponding default detection queue of class parent component.
2. event-handling method according to claim 1, which is characterized in that further include:
In response to the user's operation, subgroup to be disappeared from the user interface in the slidably class parent component is determined Part;
Tool-class associated with the sub-component to be disappeared is obtained from the default detection queue;
Release the incidence relation between the sub-component and the tool-class to be disappeared, and by the tool after disassociation relationship Class is stored into the default memory.
3. event-handling method according to claim 1, which is characterized in that the sub-component to be presented includes being located at institute The sub-component stating the edge of user interface and being partly showed in the user interface.
4. event-handling method according to claim 1, which is characterized in that further include:
The tool-class in the default detection queue is traversed, determines and display event occurs in the slidably class parent component or disappears The sub-component of accident part;
Generate the notification message of the sub-component for the generation display event or disappearance event.
5. the event-handling method stated according to claim 4, which is characterized in that further include:
When the sub-component is nested class component, the tool-class in the corresponding detection queue of the sub-component is traversed, determines institute State the component that display event or disappearance event occur in sub-component.
6. event-handling method according to claim 1, which is characterized in that the slidably class parent component includes in following One kind: list element, slide block assembly, labels page component.
7. a kind of event-handling method characterized by comprising
In response to user's operation, sub-component to be disappeared from user interface in slidably class parent component is determined;
It is obtained from the corresponding default detection queue of the slidably class parent component associated with the sub-component to be disappeared Tool-class, the tool-class are used to monitor the sub-component with the presence or absence of triggering display event or disappearance event;
Release the incidence relation between the sub-component and the tool-class to be disappeared, and by the tool after disassociation relationship Class is stored into default memory.
8. event-handling method according to claim 7, which is characterized in that the slidably class parent component includes in following One kind: list element, slide block assembly, labels page component.
9. a kind of event processing apparatus characterized by comprising
Component exhibiting determining module, for determining in slidably class parent component in the user interface wait open up in response to user's operation The sub-component shown;
First tool-class obtains module, and for obtaining tool-class from default memory, the tool-class whether there is for monitoring The sub-component for triggering display event or disappearance event shows event or disappearance event;
Tool-class relating module, for the tool-class to be associated with the sub-component to be presented, and will be described in after association Tool-class is set in the slidably corresponding default detection queue of class parent component.
10. event processing apparatus according to claim 9, which is characterized in that further include:
Disappearance component determining module, for determining in the slidably class parent component from the use in response to the user's operation Sub-component to be disappeared in the interface of family;
Second tool-class obtains module, associated with the sub-component to be disappeared for obtaining from the default detection queue Tool-class;
Tool-class releases module, for releasing the incidence relation between the sub-component and the tool-class to be disappeared, and will Tool-class after disassociation relationship is stored into the default memory.
11. event processing apparatus according to claim 9, which is characterized in that the sub-component to be presented includes being located at The edge of the user interface and the sub-component being partly showed in the user interface.
12. event processing apparatus according to claim 9, which is characterized in that described device further include:
Tool-class spider module determines the slidably class parent component for traversing the tool-class in the default detection queue The middle sub-component that display event or disappearance event occurs;
Message generating module, for generating the notification message for being directed to the sub-component of the generation display event or disappearance event.
13. 2 event processing apparatus stated according to claim 1, which is characterized in that further include:
Sub-component spider module, for traversing the corresponding detection team of the sub-component when the sub-component is nested class component Tool-class in column determines the component that display event or disappearance event occur in the sub-component.
14. event processing apparatus according to claim 9, which is characterized in that the slidably class parent component includes following One of: list element, slide block assembly, labels page component.
15. a kind of event processing apparatus characterized by comprising
Disappearance component determining module is used in response to user's operation, wait disappear from user interface in determining slidably class parent component The sub-component of mistake;
Tool-class obtains module, for obtaining with described from the corresponding default detection queue of the slidably class parent component wait disappear The associated tool-class of the sub-component of mistake, the tool-class are used to monitor with the presence or absence of triggering display event or disappearance event Sub-component;
Tool-class releases module, for releasing the incidence relation between the sub-component and the tool-class to be disappeared, and will Tool-class after disassociation relationship is stored into default memory.
16. event processing apparatus according to claim 15, which is characterized in that the slidably class parent component includes following One of: list element, slide block assembly, labels page component.
17. a kind of event processing apparatus characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to perform claim requires event-handling method described in any one of 1-6.
18. a kind of event processing apparatus characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to event-handling method described in perform claim requirement 7 or 8.
19. a kind of non-transitorycomputer readable storage medium makes when the instruction in the storage medium is executed by processor It obtains processor and is able to carry out method as claimed in any one of claims 1 to 6.
20. a kind of non-transitorycomputer readable storage medium makes when the instruction in the storage medium is executed by processor It obtains processor and is able to carry out method described in claim 7 or 8.
CN201811623781.4A 2018-12-28 2018-12-28 Event processing method and device and storage medium Active CN109710152B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811623781.4A CN109710152B (en) 2018-12-28 2018-12-28 Event processing method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811623781.4A CN109710152B (en) 2018-12-28 2018-12-28 Event processing method and device and storage medium

Publications (2)

Publication Number Publication Date
CN109710152A true CN109710152A (en) 2019-05-03
CN109710152B CN109710152B (en) 2021-03-16

Family

ID=66259036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811623781.4A Active CN109710152B (en) 2018-12-28 2018-12-28 Event processing method and device and storage medium

Country Status (1)

Country Link
CN (1) CN109710152B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159108A (en) * 2019-12-18 2020-05-15 北京达佳互联信息技术有限公司 Component management method and device, electronic equipment and storage medium
CN113687872A (en) * 2021-07-19 2021-11-23 北京鸿腾智能科技有限公司 Selection component control method, device, storage medium and apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110214092A1 (en) * 2010-02-26 2011-09-01 Siemens Product Lifecycle Management Software Inc. System and Method for Management of User Interactions Using Configurable Listeners in a Data Processing System
CN105867750A (en) * 2016-03-31 2016-08-17 郑州悉知信息科技股份有限公司 List display method and device
CN106775699A (en) * 2016-12-09 2017-05-31 武汉斗鱼网络科技有限公司 The method that UI is updated in asynchronous thread
CN107977204A (en) * 2017-11-10 2018-05-01 北京酷我科技有限公司 The processing method that a kind of list is slided
CN109062572A (en) * 2018-08-02 2018-12-21 深圳乐信软件技术有限公司 A kind of component call method, apparatus, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110214092A1 (en) * 2010-02-26 2011-09-01 Siemens Product Lifecycle Management Software Inc. System and Method for Management of User Interactions Using Configurable Listeners in a Data Processing System
CN105867750A (en) * 2016-03-31 2016-08-17 郑州悉知信息科技股份有限公司 List display method and device
CN106775699A (en) * 2016-12-09 2017-05-31 武汉斗鱼网络科技有限公司 The method that UI is updated in asynchronous thread
CN107977204A (en) * 2017-11-10 2018-05-01 北京酷我科技有限公司 The processing method that a kind of list is slided
CN109062572A (en) * 2018-08-02 2018-12-21 深圳乐信软件技术有限公司 A kind of component call method, apparatus, equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
天天_BYCONAN: ""[Android]在Adapter的getView方法中绑定OnClickListener比较好的方法"", 《HTTPS://WWW.CNBLOGS.COM/TIANTIANBYCONAN/P/4146512.HTML》 *
字节跳动技术团队: ""Weex在内涵发现页中的工程实践"", 《HTTPS://WWW.JIANSHU.COM/P/3CDA89852FC8》 *
左手木亽: ""BaseAdapter的getView方法中对setOnclickListener优化"", 《HTTPS://BLOG.CSDN.NET/NEACY_ZZ/ARTICLE/DETAILS/47761031》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159108A (en) * 2019-12-18 2020-05-15 北京达佳互联信息技术有限公司 Component management method and device, electronic equipment and storage medium
CN113687872A (en) * 2021-07-19 2021-11-23 北京鸿腾智能科技有限公司 Selection component control method, device, storage medium and apparatus
CN113687872B (en) * 2021-07-19 2024-03-29 三六零数字安全科技集团有限公司 Selection component control method, device, storage medium and apparatus

Also Published As

Publication number Publication date
CN109710152B (en) 2021-03-16

Similar Documents

Publication Publication Date Title
CN104375980B (en) Content of text selection method and device
JP5734910B2 (en) Information providing system and information providing method
US10372469B2 (en) Method and device for displaying information
CN106126420B (en) Application program adjustment method and device
US10509540B2 (en) Method and device for displaying a message
CN109656439A (en) Display methods, device and the storage medium of prompt operation panel
US20180121040A1 (en) Method and device for managing notification messages
CN108781235A (en) A kind of display methods and device
CN109683837A (en) Multi-screen display method, device and storage medium
CN107908351A (en) Display methods, device and the storage medium of application interface
CN109658927A (en) Wake-up processing method, device and the management equipment of smart machine
CN103927081A (en) Method and device for processing notification events
CN106598393A (en) Split-screen display method and device
EP2921969A1 (en) Method and apparatus for centering and zooming webpage and electronic device
CN108334352A (en) Notification message processing method, device, electronic equipment and storage medium
CN106371589A (en) Mobile device operation method and apparatus, and mobile device
US20150310480A1 (en) Method, server and system for monitoring and identifying target terminal devices
CN107506246A (en) Information displaying method, device and computer-readable recording medium
CN109376771A (en) Application program classification method and device
CN108495168A (en) The display methods and device of barrage information
WO2017088588A1 (en) Method and device for processing point reporting of touchscreen
WO2017181544A1 (en) Method and device for managing task of instant messaging application
CN108881634A (en) Terminal control method, device and computer readable storage medium
CN109413157A (en) Message screening method and device
CN109710152A (en) A kind of event-handling method, device 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