CN116450276A - Event response method, device, electronic equipment and medium - Google Patents

Event response method, device, electronic equipment and medium Download PDF

Info

Publication number
CN116450276A
CN116450276A CN202310687058.7A CN202310687058A CN116450276A CN 116450276 A CN116450276 A CN 116450276A CN 202310687058 A CN202310687058 A CN 202310687058A CN 116450276 A CN116450276 A CN 116450276A
Authority
CN
China
Prior art keywords
page
view
interaction event
host
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
CN202310687058.7A
Other languages
Chinese (zh)
Other versions
CN116450276B (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 Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202310687058.7A priority Critical patent/CN116450276B/en
Publication of CN116450276A publication Critical patent/CN116450276A/en
Application granted granted Critical
Publication of CN116450276B publication Critical patent/CN116450276B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/44Browsing; Visualisation therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the disclosure provides an event response method, an event response device, electronic equipment and a medium. The method comprises the following steps: displaying a multimedia page, wherein the multimedia page comprises a multi-level view, the multi-level view comprises a host page view and a target page view, the target page view is positioned above the host page view, and the target page view at least partially covers the host page view; receiving a page interaction event input through a multimedia page; and determining views for responding to the page interaction event in the multi-level views according to the position characteristics of the page interaction event. The method is applied to the situation of newly adding the page view on the application page view, and can accurately process the interaction event under the condition that the service of the application page view is decoupled from the service of the newly added page view.

Description

Event response method, device, electronic equipment and medium
Technical Field
The present disclosure relates to the field of computer technology, and in particular, to an event response method, an event response device, an electronic device, and a computer readable storage medium.
Background
In the related art, the user interaction behavior depends on the binding of page views, and if different page views are mutually bound, the services of the page views are mutually perceived, so that after the page views receive the user interaction behavior, the page views can judge whether the page views are respondents or not, and further the user interaction behavior is processed.
However, in the case of the newly added page view on the application page view, the application page view and the newly added page view are not bound to each other, and the service on the application page view and the service on the newly added page view are not perceived by each other (i.e., the service on the application page view and the service on the newly added page view are decoupled), so that the user interaction behavior cannot be processed.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
Embodiments of the present disclosure provide an event response method, an event response apparatus, an electronic device, and a computer-readable storage medium that address, at least in part, one or more of the problems caused by the limitations and disadvantages of the related art.
The embodiment of the disclosure provides an event response method, which comprises the following steps: displaying a multimedia page, wherein the multimedia page comprises a multi-level view, the multi-level view comprises a host page view and a target page view, the target page view is positioned above the host page view, and the target page view at least partially covers the host page view; receiving a page interaction event input through the multimedia page; and determining views for responding to the page interaction event in the multi-level views according to the position characteristics of the page interaction event.
In some exemplary embodiments of the disclosure, the determining a view for responding to the page interaction event in the multi-level view according to the location feature of the page interaction event includes: determining an occurrence position of the page interaction event based on the position feature; and if the occurrence position of the page interaction event is positioned in the page overlapping range of the target page view and the host page view, determining a view for responding to the page interaction event in the multi-level view according to the position characteristic of the page interaction event.
In some exemplary embodiments of the present disclosure, after determining the occurrence location of the page interaction event based on the location feature, the method further comprises: if the occurrence position of the page interaction event is not located in the page overlapping range of the target page view and the host page view, determining a page view to which the occurrence position belongs; if the page view to which the occurrence position belongs is the target page view, determining that the target page view responds to the page interaction event; and if the page view to which the occurrence position belongs is the host page view, determining that the page view responds to the page interaction event.
In some exemplary embodiments of the present disclosure, the location feature includes a transparent value of an occurrence location of the page interaction event; the determining the view for responding to the page interaction event in the multi-level view according to the position characteristics of the page interaction event comprises the following steps: obtaining a transparent value of the occurrence position; if the transparency value of the occurrence position is larger than a preset transparency threshold value, determining that the view used for responding to the page interaction event in the multi-level view is the host page view; and if the transparency value of the occurrence position is smaller than or equal to the preset transparency threshold value, determining that the view used for responding to the page interaction event in the multi-level view is the target page view.
In some exemplary embodiments of the present disclosure, the host page view has a higher level than the target page view; wherein, after receiving a page interaction event input through the multimedia page, the method further comprises: adding the page interaction event to an event queue, taking the page interaction event out of the event queue, and transmitting the page interaction event to the host page view; and if the occurrence position is determined to be in the page range of the host page view, transmitting the page interaction event to the target page view.
In some exemplary embodiments of the present disclosure, if the transparency value of the occurrence position is greater than a preset transparency threshold, determining that a view for responding to the page interaction event in the multi-level view is the host page view includes: and if the transparency value of the occurrence position is larger than the preset transparency threshold value, the page interaction event is transmitted from the target page view to the host page view, and the response of the host page view to the page interaction event is determined.
In some exemplary embodiments of the present disclosure, the host page view includes one or more sub-views; wherein said determining that the page interaction event is responded to by the host page view comprises: and determining that the page interaction event is responded by a target sub-view according to the occurrence position, wherein the target sub-view is a view in the one or more sub-views, and the occurrence position is within the page range of the target sub-view.
In some exemplary embodiments of the present disclosure, the obtaining the transparent value of the occurrence location includes: acquiring a page area image of the occurrence position; converting the page area image of the occurrence position into a bitmap context; and acquiring the transparent value of the occurrence position based on the bitmap context.
In some exemplary embodiments of the present disclosure, the method further comprises: acquiring the host page view; and performing external view adding operation on the host page view, and adding the target page view as a child view of the host page view.
According to another aspect of the embodiments of the present disclosure, there is provided an event response apparatus including: the display module is used for displaying a multimedia page, the multimedia page comprises a multi-level view, the multi-level view comprises a host page view and a target page view, the target page view is positioned above the host page view, and the target page view at least partially covers the host page view; the receiving module is used for receiving the page interaction event input through the multimedia page; and the determining module is used for determining a view for responding to the page interaction event in the multi-level view according to the position characteristics of the page interaction event.
In some exemplary embodiments of the present disclosure, the determining module is further configured to: determining an occurrence position of the page interaction event based on the position feature; and if the occurrence position of the page interaction event is positioned in the page overlapping range of the target page view and the host page view, determining a view for responding to the page interaction event in the multi-level view according to the position characteristic of the page interaction event.
In some exemplary embodiments of the present disclosure, the determining module is further configured to: if the occurrence position of the page interaction event is not located in the page overlapping range of the target page view and the host page view, determining a page view to which the occurrence position belongs; if the page view to which the occurrence position belongs is the target page view, determining that the target page view responds to the page interaction event; and if the page view to which the occurrence position belongs is the host page view, determining that the page view responds to the page interaction event.
In some exemplary embodiments of the present disclosure, the location feature includes a transparent value of an occurrence location of the page interaction event; wherein the determining module is further configured to: obtaining a transparent value of the occurrence position; if the transparency value of the occurrence position is larger than a preset transparency threshold value, determining that the view used for responding to the page interaction event in the multi-level view is the host page view; and if the transparency value of the occurrence position is smaller than or equal to the preset transparency threshold value, determining that the view used for responding to the page interaction event in the multi-level view is the target page view.
In some exemplary embodiments of the present disclosure, the host page view has a higher level than the target page view; wherein the apparatus further comprises an event delivery module for: adding the page interaction event to an event queue, taking the page interaction event out of the event queue, and transmitting the page interaction event to the host page view; and if the occurrence position is determined to be in the page range of the host page view, transmitting the page interaction event to the target page view.
In some exemplary embodiments of the present disclosure, the event delivery module is further configured to: if the transparency value of the occurrence position is larger than the preset transparency threshold value, the page interaction event is transmitted from the target page view to the host page view; and, the determining module is further configured to: determining that the page interaction event is responded by the host page view.
In some exemplary embodiments of the present disclosure, the host page view includes one or more sub-views; wherein the determining module is further configured to: and determining that the page interaction event is responded by a target sub-view according to the occurrence position, wherein the target sub-view is a view in the one or more sub-views, and the occurrence position is within the page range of the target sub-view.
In some exemplary embodiments of the present disclosure, the apparatus further comprises an acquisition module for: acquiring a page area image of the occurrence position; converting the page area image of the occurrence position into a bitmap context; and acquiring the transparent value of the occurrence position based on the bitmap context.
In some exemplary embodiments of the present disclosure, the apparatus further comprises a view adding module for: acquiring the host page view; and performing external view adding operation on the host page view, and adding the target page view as a child view of the host page view.
An embodiment of the present disclosure provides an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute executable instructions to implement an event response method as in any of the above.
Embodiments of the present disclosure provide a computer readable storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform an event response method as any one of the above.
Embodiments of the present disclosure provide a computer program product comprising a computer program which, when executed by a processor, implements the event response method of any of the above.
According to the event response method provided by the embodiment of the disclosure, a multimedia page is displayed, the multimedia page comprises a multi-level view, the multi-level view comprises a host page view and a target page view, the target page view is positioned above the host page view, and the target page view at least partially covers the host page view, namely, the target page view is a newly added page view on the host page view; and receiving a page interaction event of the multimedia page, and determining that the page interaction event is responded by the host page view or the target page view according to the position characteristics of the page interaction event. Therefore, the interaction behavior processing scheme provided by the embodiment of the disclosure can be applied to the situation of newly adding the page view on the application page view, in this situation, no matter whether the application page view is bound with the newly adding page view or not, the response page of the page interaction event can be accurately determined, and the page interaction event is responded, without binding the application page view with the newly adding page view, so that the service of the application page view and the service of the newly adding page view are stripped, namely, the interaction event can be accurately processed under the condition that the service of the application page view and the service of the newly adding page view are decoupled.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
FIG. 1 shows a schematic diagram of a new full screen view added to an application page view;
FIG. 2 illustrates a schematic diagram of an exemplary system architecture to which the event response method of embodiments of the present disclosure may be applied;
FIG. 3 is a flowchart illustrating a method of event response according to an exemplary embodiment;
FIG. 4 is a schematic diagram illustrating a hierarchical relationship of a host page view and a target page view, according to an example embodiment;
FIG. 5 is a schematic diagram illustrating determining views for responding to a page interaction event in a multi-level view based on location features of the page interaction event, according to an example embodiment;
FIG. 6 is a flowchart illustrating a pass page interaction event, according to an example embodiment;
FIG. 7 is a schematic diagram illustrating a user interaction behavior process, according to an example embodiment;
FIG. 8 is a block diagram of an event responsive device, according to an example embodiment;
fig. 9 is a schematic diagram illustrating a structure of an electronic device suitable for use in implementing an exemplary embodiment of the present disclosure, according to an exemplary embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be embodied in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted.
The described features, structures, or characteristics of the disclosure may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present disclosure. However, those skilled in the art will recognize that the aspects of the present disclosure may be practiced with one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the disclosure.
The drawings are merely schematic illustrations of the present disclosure, in which like reference numerals denote like or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in at least one hardware module or integrated circuit or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and not necessarily all of the elements or steps are included or performed in the order described. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
In the present specification, the terms "a," "an," "the," "said" and "at least one" are used to indicate the presence of at least one element/component/etc.; the terms "comprising," "including," and "having" are intended to be inclusive and mean that there may be additional elements/components/etc., in addition to the listed elements/components/etc.; the terms "first," "second," and "third," etc. are used merely as labels, and do not limit the number of their objects.
FIG. 1 shows a schematic diagram of a new page view on an application page view. The newly added page view can be understood as an active page view which needs to be set on the display page view of the application, and the view can be displayed in various product forms, such as popup windows, floating screens, hanging pieces and the like.
The application page view and the newly added page view belong to different services, i.e. no association relation (unbinding) is set between the two pages. Alternatively, the newly added page view may be a full screen view.
An application page view 101 and a new page view 102 are included in fig. 1, and the new page view 102 is displayed in a popup window. As can be seen from fig. 1, the newly added page view is a full screen page view, overlaid on top of the application page view. When a user operates the application page view, the newly added page view is covered on the application page view, and the application page view is not bound with the newly added page view, so that the newly added page view can intercept a user interaction event of the application page view. Obviously, the method for responding to the user interaction event based on page view binding cannot solve the situation of newly adding the page view on the application page view. Therefore, the embodiment of the disclosure provides an event response scheme capable of processing the interaction behavior of the newly added page view situation on the application page view.
FIG. 2 illustrates a schematic diagram of an exemplary system architecture to which the event response method of embodiments of the present disclosure may be applied. As shown in fig. 2, the system architecture may include a server 201, a network 202, and a terminal device 203. The network 202 is the medium used to provide communication links between the terminal devices 203 and the server 201. The network 202 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The server 201 may be a server providing various services, such as a background management server providing support for devices operated by a user with the terminal device 203. The background management server may analyze and process the received data such as the request, and feed back the processing result to the terminal device 203.
The terminal device 203 may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a wearable smart device, a virtual reality device, an augmented reality device, etc.
In the embodiment of the present disclosure, the terminal device 203 may: displaying a multimedia page, wherein the multimedia page comprises a multi-level view, the multi-level view comprises a host page view and a target page view, the target page view is positioned above the host page view, and the target page view at least partially covers the host page view; receiving a page interaction event input through a multimedia page; and determining views for responding to the page interaction event in the multi-level views according to the position characteristics of the page interaction event.
It should be understood that the number of terminal devices 203 and servers 201 in fig. 2 is merely illustrative, and that the server 201 may be a server of one entity, may be a server cluster formed by a plurality of servers, may be a cloud server, and may have any number of terminal devices, networks, and servers according to actual needs.
In order for those of ordinary skill in the art to better understand the technical solutions of the present disclosure, the following describes in more detail the steps of the event response method in the exemplary embodiments of the present disclosure with reference to the accompanying drawings and embodiments.
Fig. 3 is a flowchart illustrating an event response method according to an exemplary embodiment, and the execution subject of the method provided in the embodiment of fig. 3 may be any electronic device, for example, the terminal device 203 in the embodiment of fig. 2, but the disclosure is not limited thereto. As shown in fig. 3, the event response method provided by the embodiment of the present disclosure may include the following steps.
Step S301: and displaying the multimedia page, wherein the multimedia page comprises a multi-level view, the multi-level view comprises a host page view and a target page view, the target page view is positioned above the host page view, and the target page view at least partially covers the host page view.
The multimedia page may include multiple view levels, each view level for loading a different page view. In particular, the multimedia page may include a first view level on which the host page view is loaded and a second view level on which the target page view is loaded. The target page view is located above the host page view and the target page view at least partially overlays the host page view.
The host page view may be understood as a presentation page view of an application, such as a presentation page view of a chat application, a presentation page view of a multimedia application, a presentation page view of an e-commerce platform, etc. The target page view is a view overlaid on the host page view, or the target page view is a newly added view on the host page view. And displaying the product/activity information to the user on the target page view in a mode of newly adding the target page view on the host page view.
Alternatively, the host page view and the target page view belong to different services, i.e. no association (unbinding) is set between the two pages.
For example, the home page view is a multimedia application page through which a user can browse multimedia content such as videos, pictures, etc. released by other users. The target page view is a proprietary gift bag activity displayed to the user on the multimedia application page, and the user can click on the proprietary gift bag displayed on the target page view, so that new user permission can be unlocked. For another example, the host page view is a page of a game a, the target page view is activity information of another game B displayed to the user on the page of the game a, and the user can click on the activity information of the game B displayed on the target page view to participate in the activity of the game B.
In addition, if the target page view is entirely overlaid on the host page view, it can be understood that the target page view is a full screen view overlaid on the host page view.
In an embodiment of the present disclosure, the event response method may further include: obtaining a host page view; and performing external view adding operation on the host page view, and adding the target page view as a child view of the host page view.
The host page view may include one or more child views. And in the process of newly adding the external view on the host page view, the host page view comprising one or more sub-views is taken as a whole, the host page view is acquired according to the stack information, and then the external view adding operation is carried out through the host page view, so that the host page view is added as the sub-view of the host page view.
FIG. 4 is a schematic diagram illustrating a hierarchical relationship of a host page view and a target page view, according to an example embodiment. As shown in fig. 4, the host page view 410 includes a sub-view 411, a sub-view 412, and a sub-view 413, and an external view adding operation is performed on the host page view to obtain a target page view 420. It can be seen that the target page view 420 can be seen as an overall sub-view of the host page view 410 that includes 3 sub-views.
If the number of the target page views is plural, it is necessary to preset a hierarchical relationship of the plural target page views, and then sequentially add the plural target page views according to the set hierarchical relationship. For example, there are a first target page view and a second target page view, and if the first target page view has a higher layer level than the second target page view, an external view adding operation is performed on the host page view, where the first target page view is added and then the second target page view is added.
Step S302: a page interaction event is received that is entered via a multimedia page.
The page interaction event is an event which is generated by automatically triggering operations such as clicking, scrolling or touching on the multimedia page according to the operations.
Step S303: and determining views for responding to the page interaction event in the multi-level views according to the position characteristics of the page interaction event.
The location feature of the page interaction event may be understood as a location feature of an event occurrence location, where the event occurrence location refers to a location where a user operates on a multimedia page.
In this step, it may be determined that the page interaction event is responded to by the host page view or the target page view in the multi-level view according to the position feature of the occurrence position of the page interaction event.
The event response method provided by the embodiment of the disclosure displays a multimedia page, wherein the multimedia page comprises a host page view and a target page view newly added on the host page view; and receiving a page interaction event input through the multimedia page, and determining that the page interaction event is responded by the host page view or the target page view according to the position characteristics of the page interaction event. Therefore, the interaction behavior processing scheme provided by the embodiment of the disclosure can be applied to the situation of newly adding the page view on the application page view, whether the application page view is bound with the newly adding page view or not can accurately determine the response page of the page interaction event and respond to the page interaction event, and the binding of the application page view and the newly adding page view is not needed, so that the service of the application page view and the service of the newly adding page view are stripped, namely, the interaction event can be accurately processed under the condition that the service of the application page view and the service of the newly adding page view are decoupled.
In an embodiment of the present disclosure, determining a view for responding to a page interaction event in a multi-level view according to a location feature of the page interaction event includes: determining an occurrence position of the page interaction event based on the position characteristics; if the occurrence position of the page interaction event is located in the page overlapping range of the target page view and the host page view, determining a view for responding to the page interaction event in the multi-level view according to the position characteristics of the page interaction event.
Further, if the occurrence position of the page interaction event is not located in the page overlapping range of the target page view and the host page view, determining the page view to which the occurrence position belongs; if the page view with the occurrence position is the target page view, determining that the target page view responds to the page interaction event; if the page view to which the occurrence position belongs is the host page view, determining that the page view responds to the page interaction event.
First, the occurrence position of the page interaction event, that is, the position where the user operates on the multimedia page, is determined. Then, whether the occurrence position is within the page overlapping range of the target page view and the host page view is judged. If the page interaction event is within the page overlap range, the page interaction event responded by the target page view or the host page view needs to be determined further according to the position characteristics of the event.
If the occurrence position is not within the page overlap range, judging whether the occurrence position is within the page range of the target page view or the page range of the host page view. If the occurrence position is within the page range of the target page view, the page view to which the occurrence position belongs is indicated as the target page view, and in this case, the response of the target page view to the page interaction event is determined. If the occurrence position is within the page range of the host page view, the page view to which the occurrence position belongs is indicated as the host page view, and in this case, the response of the page interaction event by the host page view is determined.
FIG. 5 is a schematic diagram illustrating determining views for responding to a page interaction event in a multi-level view based on location features of the page interaction event, according to an example embodiment. As shown in fig. 5, a target page view 502 is newly added to the host page view 501, and the host page view 501 partially overlaps with the target page view 502. If the location of the page interaction event occurs within the overlap of the host page view 501 and the target page view 502, as in text box 503 in FIG. 5, it is determined that the page interaction event is responded to by the host page view 501 or the target page view 502.
If the occurrence position of the page interaction event is not within the overlapping range of the host page view 501 and the target page view 502 and within the page range of the occurrence position host page view 501, such as the close button 504 in fig. 5, it is determined that the page interaction event is responded to by the host page view 501.
In the embodiment of the disclosure, the view for responding to the page interaction event can be determined according to the occurrence position of the page interaction event, and if the occurrence position is within the page overlapping range of the target page view and the host page view, the view for responding to the page interaction event can be further determined according to the position characteristics of the occurrence position.
In an embodiment of the present disclosure, the location feature includes a transparency value of the occurrence location. And determining a view for responding to the page interaction event in the multi-level view according to the position characteristics of the page interaction event, wherein the view comprises the following components: obtaining a transparent value of an occurrence position; if the transparency value of the occurrence position is larger than a preset transparency threshold value, determining that the view used for responding to the page interaction event on the multimedia page in the multi-level view is a host page view; if the transparency value of the occurrence position is smaller than or equal to a preset transparency threshold value, determining that the view used for responding to the page interaction event on the multimedia page in the multi-level view is a target page view.
The transparency value may be expressed as an Alpha value of 1 for completely transparent and 0 for completely opaque. The Alpha value is a value stored in the Alpha channel and is apparent as transparency. Alpha channels are channels specifically designed to preserve selected regions. In computer graphics, a true color image of an RGB color model is synthesized with three color information channels, red, green, and blue, each channel using an 8-bit color depth, totaling 24 bits, containing all color information. In order to achieve the transparent effect of the graphics, another 8-bit information is added to the processing and storage of the graphics file, and the added channel information representing the transparency of each pixel in the graphics is called Alpha channel.
In an embodiment of the present disclosure, obtaining a transparent value of an occurrence location may include: acquiring a page area image of an occurrence position; converting the page area image of the occurrence position into a bitmap context; based on the bitmap context, a transparent value of the occurrence location is obtained.
Wherein the Bitmap context (Bitmap Graphics Context) can be used to draw an image into a Bitmap (Bitmap, also known as a dot matrix image or raster image, made up of individual dots of pixels) object, capable of storing image information and image status.
In the present embodiment, a page area image of an occurrence position is acquired, and then the page area image is converted into a bitmap context. In the process of converting the bitmap context, firstly creating a color space required by the bitmap context; the bitmap context is then created from the address of the memory of the page area image (i.e., the address of the rendering memory to be rendered), the width and height of the created bitmap, the number of bits per component of the pixels in the memory (e.g., the value is set to 8 for a 32-bit pixel format and RGB color space), the number of bits per line of the bitmap in the memory, the color space to be used by the bitmap context, and the Alpha channel information in the pixels. After the bitmap is created, the transparent value is finally obtained through the pop-up layer component through coordinate conversion.
In the embodiment of the disclosure, the characteristics that the bitmap context can store the image information and the image state are utilized, the transparent value of the occurrence position can be obtained based on the bitmap context, the transparent value of the occurrence position is further compared with the preset transparent threshold, and according to the comparison result, the view from which the page interaction event is processed is judged.
If the transparency value of the occurrence position is larger than the preset transparency threshold value, indicating that the transparency of the occurrence position is higher, and in this case, responding to the page interaction event by the host page view; if the transparency value of the occurrence position is smaller than or equal to the preset transparency threshold value, the opacity of the occurrence position is higher, and in this case, the page interaction event is responded by the target page view.
In addition, in the embodiment of the disclosure, the service corresponding to the target page view may set a transparent threshold according to the service self-situation, so as to implement different user interaction logics.
According to the event response method provided by the embodiment of the disclosure, the transparent value of the occurrence position of the page interaction event is obtained, and then the transparent value of the occurrence position is compared with the preset transparent threshold value, so that whether the page interaction event is processed by the target page view (namely the newly added page view) or the host page view (namely the application page view) can be determined according to the comparison result.
In embodiments of the present disclosure, after receiving a page interaction event entered through a multimedia page, the page interaction event may be delivered based on an event delivery mechanism. Event delivery is the delivery of an operational event from top to bottom along the chain of respondents, from parent view to child view, until a child view is found that can handle the operational event. The responder chain is a hierarchical structure formed by connecting a plurality of responder objects, and the responder objects are objects capable of receiving and processing operation events. The nature of the event delivery mechanism is that after an event occurs, the system delivers the event to a particular view for processing. The event transfer flow is as follows:
(1) The user clicks, scrolls or touches the page to generate an event, the event is added into an event queue managed by the application program object, the event is taken from the message queue to be distributed, and the event is firstly transmitted to a window of the application program;
(2) The hitTest-wittevent method is called in the window of the application program to return a final responding view;
(3) In the method, a pointInstance is called, and if the current occurrence position is within the window range of the application program, the sub-view of the application program is traversed to search the sub-view of the final response;
(4) The traversing mode is to traverse the sub-views in a reverse order mode, that is, the last added sub-view traverses first, and the hitTest: wittevent: method is called back in each view and can be understood as a recursive call;
(5) Finally, returning a response view, and if the returned view has a value, taking the view as a final response view and ending the whole event delivery; if there is no value, the window of the application will be the responder.
The core methods of the event delivery mechanism are a hitTest method and a pointInside method. The hitTest method functions to find the most appropriate view, the required parameter is the place of occurrence of the event, and the return value is the most appropriate view. The action of the pointlnide method is to determine that the point (i.e., the place of occurrence of the event) is not on the method caller, and the point needs to be the coordinate system of the method caller.
In the embodiment of the disclosure, after receiving the page interaction event input by the user through the multimedia page, the page interaction event may be transferred to an appropriate view according to the event transfer flow. FIG. 6 is a flowchart illustrating a pass page interaction event, according to an example embodiment. As shown in fig. 6, the page interaction event may be delivered as follows.
In step S601, the page interaction event is added to the event queue.
Specifically, the page interaction event is packaged to obtain an event object, and the event object is added into an event queue managed by the application program object.
Step S602, the page interaction event is fetched from the event queue, and the page interaction event is transferred to the host page view.
Taking out the page interaction event from the event queue, distributing the page interaction event to a window of an application program to which the host page belongs, and calling a hitTest by the window of the application program: the withEvent method finds the host page view in the hierarchy of views of the application to handle the operational event, i.e., passes the page interaction event to the host page view.
In step S603, if it is determined that the occurrence position is within the page range of the host page view, the page interaction event is transferred to the target page view.
The host page view calls the hitTest: the wittevent method returns a response view. Because the user clicks, scrolls or touches the multimedia page, the occurrence position is within the page range of the host page view, the method of hitTest and wittevent calls the pointemide and wittevent, and judges that the occurrence position is within the host page view range, so that the sub-view of the host page view is traversed to find the sub-view of the final response. That is, it is determined whether the sub-view target page view of the host page view is a response view, and the page interaction event is transferred to the target page view.
After the page interaction event is transferred to the target page view, it may be determined whether the occurrence location is within the target page view. Specifically, call the hitTest of the target page view: the wittevent method determines whether the target page view is a response view. If the occurrence position is within the view range of the target page, the system layer can consider the view of the target page as a response view because the occurrence position is judged to be within the view range of the target page and the view of the target page is the view with the lowest hierarchy by calling the pointelnterdevice and the windevent in the method.
In the embodiment of the disclosure, since the host page view is a full-screen view, the occurrence position of the page interaction event is located in the range of the host page view, and then the event is transferred to the target page view, if the occurrence position is located in the range of the target page view, that is, the occurrence position is located in the range of the page overlapping of the target page view and the host page view, and the target page view is a sub-view of the host page view, it is determined that the target page view is a response view based on the event transfer mechanism. At this time, if it is determined that the page interaction event is responded to by the target page view, no matter where in the overlapping range of the page the user operates, it is obtained that the page interaction event is responded to by the target page view. For example, the host page view a is overlaid with a full screen page view B showing only a small area of the pendant, and when the user clicks on a card of a, the response of the user to the click action by B is determined based on the event delivery mechanism, which is obviously not consistent with the view response desired by the user to the clicked card.
In order to avoid the above-mentioned situation, after determining that the target page view is the response view, the transparency value of the occurrence position needs to be compared with a preset transparency threshold value, and then according to the comparison result, which view is used for responding to the page interaction event is determined. Specifically, the transparent value of the occurrence position is obtained, the transparent value of the occurrence position is compared with a preset transparent threshold value, and according to the comparison result, which view is used for responding to the page interaction event is determined, and the view is written into the hitTest method or the pointlnide method. Therefore, after the target page view is determined to be the response view, the page interaction event is not directly responded by the target page view, but the transparency value of the occurrence position is obtained, the transparency value of the occurrence position is compared with a preset transparency threshold value, and according to the comparison result, the view which is used for responding to the page interaction event is judged.
Event responses are the transfer of an operational event along the responder chain from bottom-up, i.e., from child view to parent view, until the operational event can be processed. The responder chain is a hierarchical structure formed by connecting a plurality of responder objects, and the responder objects are objects capable of receiving and processing operation events. The event response flow is as follows:
(1) If the current view is the controller view, then the controller is the last responder and the event is passed to the controller; if the current view is not the view of the controller, then the parent view is the last responder to the current view and the event is passed to its parent view;
(2) In the top view of the view hierarchy, if the received event or message cannot be processed, the received event or message is transmitted to the window object for processing;
(3) If the window object is also not processing, it passes the event or message to the application object;
(4) The application object is discarded if it is also unable to process the event or message.
In an embodiment of the present disclosure, if the transparency value of the occurrence position is greater than a preset transparency threshold, determining that a view for responding to a page interaction event in the multi-level view is a host page view includes: if the transparency value of the occurrence position is larger than the preset transparency threshold value, the page interaction event is transmitted from the target page view to the host page view, and the page interaction event responded by the host page view is determined.
If the transparency value of the occurrence position is larger than the preset transparency threshold value, the target page view can transparently transmit the page interaction event to the host page view, so that the host page view can respond to the page interaction event. The event transparent can also be written into the hitTest method or the pointlnide method.
In the embodiment of the disclosure, if the transparency value of the occurrence position is greater than the preset transparency threshold, it is indicated that the transparency of the occurrence position of the page interaction event is higher, and then it is determined that the host page view responds to the page interaction event, at this time, the page interaction event is transmitted from the target page view to the host page view, and then the page interaction event can be responded to by the host page view.
Further, the host page view includes one or more child views; and determining that the page interaction event is responded to by the host page view, comprising: and determining that the page interaction event is responded by the target sub-view according to the occurrence position, wherein the target sub-view is a view in one or more sub-views, and the occurrence position is within the page range of the target sub-view.
After determining that the page interaction event is responded to by the host page view, a response view may be determined from the one or more child views based on the occurrence location and the event delivery mechanism. Specifically, the sub-views of the host page view are traversed to find the sub-views of the final response. The way of traversing is to traverse the sub-views in reverse order, i.e. the last added sub-view would traverse first. In the process of traversing each sub-view, calling a hitTest method of the sub-view to judge whether the sub-view is a response view or not; invoking a pointelide method in the hitTest method to determine whether the occurrence location is within the sub-view; if so, determining the sub-view as a response view, if not, continuing to traverse the next sub-view, and finally determining a target sub-view, wherein the target sub-view responds to the page interaction event.
It should be noted that if all the child views are not response views, the host page view is determined to be the response view, and the host page view responds to the page interaction event.
In the embodiment of the disclosure, if the transparency value of the occurrence position is greater than the preset transparency threshold, it is indicated that the transparency of the occurrence position is higher, at this time, it is determined that the page interaction event is responded by the host page view, and the page interaction event is transmitted to the host page view, further, the host page view can determine whether the page interaction event has a sub-view response contained therein or is responded by the host page view itself, and the method is applicable to various scenes, and can accurately determine the view of the final response page interaction event, so that the response to the page interaction event can meet the wish of a user.
For ease of understanding, a specific embodiment is provided to illustrate the event response method of embodiments of the present disclosure. FIG. 7 is a schematic diagram illustrating a user interaction behavior process, according to an example embodiment. In fig. 7, a full-screen target page view is newly added to the host page view, and the preset transparency threshold is 0.5.
When the user clicks the bottom popup 701, a user click event is detected, the position of the bottom popup clicked by the user is determined, and the target page view is determined to be a response view according to the position of the bottom popup and an event delivery mechanism. Then, the Alpha value of the bottom popup position is 0, and then the transparency value 0 of the bottom popup position clicked by the user is smaller than the preset transparency threshold value 0.5, so that the popup response of the user clicking event to the target page view is handed over.
When the user clicks the top close button 702, a user click event is detected, the user clicks the top close button position is determined, and the target page view is determined to be the responsive view according to the top close button and event delivery mechanism. Then, the Alpha value of the top closing button position is 1, and the transparency value 1 of the top closing button position clicked by the user is greater than the preset transparency threshold value 0.5, so that the clicking event of the user is transmitted from the target page view to the host page view, and the displayed page is closed by the closing button of the host page view.
According to the event response method provided by the embodiment of the disclosure, a multimedia page is displayed, the multimedia page comprises a multi-level view, the multi-level view comprises a host page view and a target page view, the target page view is positioned above the host page view, and the target page view at least partially covers the host page view, namely, the target page view is a newly added page view on the host page view; and receiving a page interaction event of the multimedia page, and determining that the page interaction event is responded by the host page view or the target page view according to the position characteristics of the page interaction event. Therefore, the embodiment of the disclosure provides an interaction behavior processing scheme, which can be applied to the situation of newly adding a page view on an application page view, and does not need to bind the application page view with the newly adding page view, so that the service of the application page view and the service of the newly adding page view are stripped.
It should be understood that the same/similar parts of the embodiments of the method described above in this specification may be referred to each other, and each embodiment focuses on differences from other embodiments, and references to descriptions of other method embodiments are only needed.
Fig. 8 is a block diagram illustrating an event responsive device according to an example embodiment. As shown in fig. 8, the event response device 800 may include a presentation module 810, a receiving module 820, and a determining module 830.
Wherein the presentation module 810 is operable to: displaying a multimedia page, wherein the multimedia page comprises a multi-level view, the multi-level view comprises a host page view and a target page view, the target page view is positioned above the host page view, and the target page view at least partially covers the host page view; the receiving module 820 may be configured to: receiving a page interaction event input through a multimedia page; the determination module 830 may be configured to: and determining views for responding to the page interaction event in the multi-level views according to the position characteristics of the page interaction event.
In some exemplary embodiments of the present disclosure, the determination module 830 may be further configured to: determining an occurrence position of the page interaction event based on the position characteristics; if the occurrence position of the page interaction event is located in the page overlapping range of the target page view and the host page view, determining a view for responding to the page interaction event in the multi-level view according to the position characteristics of the page interaction event.
In some exemplary embodiments of the present disclosure, the determination module 830 may be further configured to: if the occurrence position of the page interaction event is not located in the page overlapping range of the target page view and the host page view, determining the page view to which the occurrence position belongs; if the page view with the occurrence position is the target page view, determining that the target page view responds to the page interaction event; if the page view to which the occurrence position belongs is the host page view, determining that the page view responds to the page interaction event.
In some exemplary embodiments of the present disclosure, the location feature comprises a transparent value of the occurrence location of the page interaction event; wherein the determining module 830 is further configured to: obtaining a transparent value of an occurrence position; if the transparency value of the occurrence position is larger than a preset transparency threshold value, determining that the view used for responding to the page interaction event in the multi-level view is a host page view; and if the transparency value of the occurrence position is smaller than or equal to a preset transparency threshold value, determining that the view used for responding to the page interaction event in the multi-level view is a target page view.
In some exemplary embodiments of the present disclosure, the level of the host page view is higher than the level of the target page view; the apparatus 800 shown in fig. 8 further includes an event delivery module 840, which is configured to: adding the page interaction event to an event queue, taking out the page interaction event from the event queue, and transmitting the page interaction event to a host page view; and if the occurrence position is determined to be within the page range of the host page view, transmitting the page interaction event to the target page view.
In some exemplary embodiments of the present disclosure, the event delivery module 840 may be further operable to: if the transparency value of the occurrence position is larger than a preset transparency threshold value, the page interaction event is transmitted from the target page view to the host page view; and, the determination module is further to: a response to the page interaction event by the host page view is determined.
In some exemplary embodiments of the present disclosure, the host page view includes one or more child views; wherein the determining module 830 is further configured to: and determining that the page interaction event is responded by the target sub-view according to the occurrence position, wherein the target sub-view is a view in one or more sub-views, and the occurrence position is within the page range of the target sub-view.
In some exemplary embodiments of the present disclosure, the apparatus 800 illustrated in fig. 8 further includes an acquisition module 850 operable to: acquiring a page area image of an occurrence position; converting the page area image of the occurrence position into a bitmap context; based on the bitmap context, a transparent value of the occurrence location is obtained.
In some exemplary embodiments of the present disclosure, the apparatus 800 illustrated in fig. 8 further includes a view addition module 860 operable to: obtaining a host page view; and performing external view adding operation on the host page view, and adding the target page view as a child view of the host page view.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 9 is a schematic diagram illustrating a structure of an electronic device suitable for use in implementing an exemplary embodiment of the present disclosure, according to an exemplary embodiment. It should be noted that the electronic device 900 shown in fig. 9 is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present disclosure.
As shown in fig. 9, the electronic device 900 is embodied in the form of a general purpose computing device. Components of electronic device 900 may include, but are not limited to: the at least one processing unit 910, the at least one storage unit 920, and a bus 930 connecting the different system components (including the storage unit 920 and the processing unit 910).
Wherein the storage unit stores program code that is executable by the processing unit 910 such that the processing unit 910 performs steps according to various exemplary embodiments of the present invention described in the above-described "exemplary methods" section of the present specification. For example, the processing unit 910 may perform step S301 as shown in fig. 3, presenting a multimedia page, where the multimedia page includes a multi-level view, the multi-level view includes a host page view and a target page view, the target page view is located above the host page view, and the target page view at least partially overlays the host page view; step S302: receiving a page interaction event input through a multimedia page; step S303: and determining views for responding to the page interaction event in the multi-level views according to the position characteristics of the page interaction event.
The storage unit 920 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 9201 and/or cache memory 9202, and may further include Read Only Memory (ROM) 9203.
The storage unit 920 may also include a program/utility 9204 having a set (at least one) of program modules 9205, such program modules 9205 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The bus 930 may be one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 900 may also communicate with one or more external devices 960 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 900, and/or any device (e.g., router, modem, etc.) that enables the electronic device 900 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 950. Also, electronic device 900 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 940. As shown, the network adapter 940 communicates with other modules of the electronic device 900 over the bus 930. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 900, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium having stored thereon a program product capable of implementing the method described above in the present specification is also provided. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the invention as described in the "exemplary methods" section of this specification, when said program product is run on the terminal device.
A program product for implementing the above-described method according to an embodiment of the present invention may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may be run on a terminal device such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order or that all illustrated steps be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. An event response method, comprising:
displaying a multimedia page, wherein the multimedia page comprises a multi-level view, the multi-level view comprises a host page view and a target page view, the target page view is positioned above the host page view, and the target page view at least partially covers the host page view;
Receiving a page interaction event input through the multimedia page;
and determining views for responding to the page interaction event in the multi-level views according to the position characteristics of the page interaction event.
2. The method of claim 1, wherein determining a view of the multi-level view for responding to the page interaction event based on the location characteristics of the page interaction event comprises:
determining an occurrence position of the page interaction event based on the position feature;
and if the occurrence position of the page interaction event is positioned in the page overlapping range of the target page view and the host page view, determining a view for responding to the page interaction event in the multi-level view according to the position characteristic of the page interaction event.
3. The method of claim 2, wherein after determining the occurrence location of the page-interaction event based on the location feature, the method further comprises:
if the occurrence position of the page interaction event is not located in the page overlapping range of the target page view and the host page view, determining a page view to which the occurrence position belongs; if the page view to which the occurrence position belongs is the target page view, determining that the target page view responds to the page interaction event;
And if the page view to which the occurrence position belongs is the host page view, determining that the page view responds to the page interaction event.
4. A method according to claim 1 or 2, wherein the location feature comprises a transparency value of the location of occurrence of the page interaction event;
the determining the view for responding to the page interaction event in the multi-level view according to the position characteristics of the page interaction event comprises the following steps:
obtaining a transparent value of the occurrence position;
if the transparency value of the occurrence position is larger than a preset transparency threshold value, determining that the view used for responding to the page interaction event in the multi-level view is the host page view;
and if the transparency value of the occurrence position is smaller than or equal to the preset transparency threshold value, determining that the view used for responding to the page interaction event in the multi-level view is the target page view.
5. The method of claim 4, wherein the level of the host page view is higher than the level of the target page view;
wherein, after receiving a page interaction event input through the multimedia page, the method further comprises:
Adding the page interaction event to an event queue, taking the page interaction event out of the event queue, and transmitting the page interaction event to the host page view;
and if the occurrence position is determined to be in the page range of the host page view, transmitting the page interaction event to the target page view.
6. The method of claim 5, wherein determining a view of the multi-level view for responding to the page interaction event as the host page view if the transparency value of the occurrence location is greater than a preset transparency threshold comprises:
and if the transparency value of the occurrence position is larger than the preset transparency threshold value, the page interaction event is transmitted from the target page view to the host page view, and the response of the host page view to the page interaction event is determined.
7. The method of claim 6, wherein the host page view comprises one or more sub-views;
wherein said determining that the page interaction event is responded to by the host page view comprises:
and determining that the page interaction event is responded by a target sub-view according to the occurrence position, wherein the target sub-view is a view in the one or more sub-views, and the occurrence position is within the page range of the target sub-view.
8. The method of claim 4, wherein the obtaining the transparency value for the occurrence location comprises:
acquiring a page area image of the occurrence position;
converting the page area image of the occurrence position into a bitmap context;
and acquiring the transparent value of the occurrence position based on the bitmap context.
9. The method according to claim 1, wherein the method further comprises:
acquiring the host page view;
and performing external view adding operation on the host page view, and adding the target page view as a child view of the host page view.
10. An event responsive device, comprising:
the display module is used for displaying a multimedia page, the multimedia page comprises a multi-level view, the multi-level view comprises a host page view and a target page view, the target page view is positioned above the host page view, and the target page view at least partially covers the host page view;
the receiving module is used for receiving the page interaction event input through the multimedia page;
and the determining module is used for determining a view for responding to the page interaction event in the multi-level view according to the position characteristics of the page interaction event.
11. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the executable instructions to implement the event response method of any of claims 1 to 9.
12. A computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the event response method of any of claims 1 to 9.
CN202310687058.7A 2023-06-09 2023-06-09 Event response method, device, electronic equipment and medium Active CN116450276B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310687058.7A CN116450276B (en) 2023-06-09 2023-06-09 Event response method, device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310687058.7A CN116450276B (en) 2023-06-09 2023-06-09 Event response method, device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN116450276A true CN116450276A (en) 2023-07-18
CN116450276B CN116450276B (en) 2023-10-13

Family

ID=87120495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310687058.7A Active CN116450276B (en) 2023-06-09 2023-06-09 Event response method, device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN116450276B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018049907A1 (en) * 2016-09-19 2018-03-22 北京京东尚科信息技术有限公司 Interface information display method and apparatus
CN113407074A (en) * 2021-05-31 2021-09-17 深圳市科曼医疗设备有限公司 Graphical interface interaction method and device and medical equipment
CN113448573A (en) * 2021-06-30 2021-09-28 中国建设银行股份有限公司 Click interaction method and device based on picture pixel fence
CN115640092A (en) * 2022-10-31 2023-01-24 维沃移动通信有限公司 Interface display method and device, electronic equipment and readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018049907A1 (en) * 2016-09-19 2018-03-22 北京京东尚科信息技术有限公司 Interface information display method and apparatus
CN113407074A (en) * 2021-05-31 2021-09-17 深圳市科曼医疗设备有限公司 Graphical interface interaction method and device and medical equipment
CN113448573A (en) * 2021-06-30 2021-09-28 中国建设银行股份有限公司 Click interaction method and device based on picture pixel fence
CN115640092A (en) * 2022-10-31 2023-01-24 维沃移动通信有限公司 Interface display method and device, electronic equipment and readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YUCHEN JIN: "Go With the Flow: Effects of Transparency and User Control on Targeted Advertising Using Flow Charts", 《AVI \'16: PROCEEDINGS OF THE INTERNATIONAL WORKING CONFERENCE ON ADVANCED VISUAL INTERFACES》 *
吕梦莎;吕彬;巫彤宁;: "手机新闻客户端不同页面设计下用户视觉浏览规律研究", 人类工效学, no. 05 *

Also Published As

Publication number Publication date
CN116450276B (en) 2023-10-13

Similar Documents

Publication Publication Date Title
CN109164964B (en) Content sharing method and device, terminal and storage medium
CN108549510A (en) Figure calibration method, equipment and storage medium for showing boarding application
CN110309475B (en) Page display method and device, terminal equipment and storage medium
US20030142141A1 (en) Displaying specified resource usage
JP2019512749A (en) Application program processing method and terminal device
CN102566921A (en) Application reporting in an application-selectable user interface
US20230117213A1 (en) Page display method and electronic device
CN109885781B (en) Mixed page unified browsing method, device, equipment and storage medium
US20240119223A1 (en) Method, apparatus and electronic device for field merging
CN111124564A (en) Method and device for displaying user interface
CN106817618B (en) Popup display method and device and electronic equipment comprising popup display device
CN111918102A (en) Bullet screen management method, bullet screen management device, bullet screen management equipment and storage medium
CN111782108A (en) Interface switching control method, device, medium and equipment in game
CN114116098B (en) Application icon management method and device, electronic equipment and storage medium
CN110795651A (en) Method and device for saving front-end data and electronic equipment
US20180121049A1 (en) Terminal device and method for displaying image by same, and web server and method for providing web page by same
CN116450276B (en) Event response method, device, electronic equipment and medium
CN112346796A (en) Popup window storage display method and device and electronic equipment
CN111259381A (en) Page interaction method and device, computer readable medium and electronic equipment
CN110971955B (en) Page processing method and device, electronic equipment and storage medium
CN108021366B (en) Interface animation realization method and device, electronic equipment and storage medium
CN111338520B (en) Label display method, device and computer readable medium
CN110221746B (en) Information interaction method, device, medium and computing equipment
CN110262844B (en) Dialog box component calling method, dialog box component calling device, dialog box component server and storage medium
US10768789B1 (en) Dynamic rendering of interactive user experience cards

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