CN111596847A - Click feedback method and device, electronic equipment and storage medium - Google Patents

Click feedback method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111596847A
CN111596847A CN202010373225.7A CN202010373225A CN111596847A CN 111596847 A CN111596847 A CN 111596847A CN 202010373225 A CN202010373225 A CN 202010373225A CN 111596847 A CN111596847 A CN 111596847A
Authority
CN
China
Prior art keywords
calling
page
vibration
application
calling parameter
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.)
Pending
Application number
CN202010373225.7A
Other languages
Chinese (zh)
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.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN202010373225.7A priority Critical patent/CN111596847A/en
Publication of CN111596847A publication Critical patent/CN111596847A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/016Input arrangements with force or tactile feedback as computer generated output to the user
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72445User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting Internet browser applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a click feedback method, a click feedback device, electronic equipment and a storage medium, firstly, a click event triggered by a user through clicking a page application is received, a calling parameter group of vibration hardware equipment corresponding to the click event is generated, and then the calling parameter group is sent to the mobile application through a preset transmission interface, so that the mobile application uses the calling parameter contained in the calling parameter group to call the vibration hardware equipment in the terminal equipment. Therefore, the click feedback method provided by the application can call the vibration hardware equipment through the mobile application where the page application is located, so that the defect that the page application cannot directly call the bottom layer hardware can be overcome, and the effect of obtaining corresponding vibration feedback on the click operation of the page application is achieved.

Description

Click feedback method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of page application program design, and in particular, to a click feedback method, an apparatus, an electronic device, and a storage medium.
Background
A mobile application (App) may be designed to nest multiple page applications (web applications). After the user opens the mobile application, the page which can be browsed only by using the browser can be browsed through the page application.
Generally, in order to increase the interactivity between a mobile application and a user, the mobile application needs to give the user some feedback when the user makes a specific operation on the mobile application. For example, when a user clicks a like area on the mobile application, the mobile application may show a plurality of minds on the user interface where the like area is located, and at the same time, may cause a vibration effect to be generated on a device currently operated by the user.
However, the vibration hardware providing the vibration effect, such as the vibration motor, is usually disposed at the hardware level of the device, so that the interface of the vibration device is located at the bottom layer of the device, and the vibration hardware can be called to generate the vibration effect only if the vibration hardware has a function of supporting the calling of the bottom layer interface of the device. Because the mobile application is developed for the native application based on the equipment, the bottom layer interface of the equipment can be directly called, but the page application is developed based on the network platform and is not directly related to the bottom layer of the equipment, so that the bottom layer interface of the equipment cannot be called, and a corresponding feedback effect cannot be generated.
Disclosure of Invention
The application provides a click feedback method, a click feedback device, electronic equipment and a storage medium, so as to respond to a click operation of a page application and generate a vibration effect.
In a first aspect, the present application provides a click feedback method, which is applied to a page application embedded in a mobile application, where the mobile application has a function of calling a vibration hardware device in a terminal device, and the method includes:
receiving a click event triggered by a user through clicking the page application;
generating a calling parameter group of the vibration hardware equipment corresponding to the click event;
and sending the calling parameter group to the mobile application through a preset transmission interface so that the mobile application calls the vibration hardware equipment in the terminal equipment by using the calling parameters contained in the calling parameter group.
In a possible implementation manner of the first aspect of the embodiment of the present invention, the calling parameter group includes a calling parameter corresponding to the ios terminal device and a calling parameter corresponding to the andriod terminal device, where the calling parameter corresponding to the ios terminal device includes a vibration type parameter for calling a vibration hardware device in the ios terminal device, and the calling parameter corresponding to the andriod terminal device includes a vibration duration parameter for calling the vibration hardware device in the andriod terminal device.
In a possible implementation manner of the first aspect of the embodiment of the present invention, the call parameter corresponding to the ios terminal device includes an ios identifier and an ios spacer, where the ios identifier at least includes an ios identifier used for representing an ios operating system type and an ios identifier of a vibration type, and two adjacent ios identifiers are spaced by the ios spacer.
In a possible implementation manner of the first aspect of the embodiment of the present invention, the invocation parameter corresponding to the andriod terminal device includes an andriod identifier and an andriod spacer, where the andriod identifier at least includes an andriod identifier and an andriod spacer, which are respectively used to represent an andriod operating system type, and two adjacent andriod identifiers are spaced by the andriod spacer.
In one possible implementation of the first aspect of the embodiment of the present invention,
the generating the calling parameter group of the vibration hardware device corresponding to the click event comprises:
acquiring a clicked element corresponding to the click event, wherein the clicked element is a page element responding to the click event in the page application;
determining a first clicked element matched with a preset first trigger element from the clicked elements, wherein the preset first trigger element is a preset page element which is used for triggering and acquiring a calling parameter for calling vibration hardware equipment in the terminal equipment on the page application;
and acquiring first calling parameters corresponding to the first clicked element, and summarizing the first calling parameters into a calling parameter group.
In one possible implementation of the first aspect of the embodiment of the present invention,
the generating the calling parameter group of the vibration hardware device corresponding to the click event further comprises:
determining a second clicked element matched with a preset second trigger element from the clicked event, wherein the preset second trigger element is a page element which is preset on the page application and is used for triggering and obtaining a calling parameter for rendering the page application;
and acquiring a second calling parameter corresponding to the second clicked element, so that the page application calls a rendering tool in the page application by using the second calling parameter, and renders a page corresponding to the page application by using the rendering tool, thereby changing the display effect of the page.
In a second aspect, the present application provides a click feedback method, which is applied to a mobile application, where the mobile application includes an embedded page application, and the mobile application has a function of calling a shake hardware device in a terminal device, and the method includes:
receiving a calling parameter group transmitted by the page application through a preset transmission interface, wherein the calling parameter group comprises at least two calling parameters, and each calling parameter corresponds to an operating system;
acquiring a calling parameter corresponding to the operating system of the terminal equipment in the calling parameter group;
and calling the vibration hardware equipment of the terminal equipment by using the calling parameter.
In a possible implementation manner of the second aspect of the embodiment of the present invention, the obtaining a call parameter corresponding to an operating system of the terminal device in the call parameter group includes:
and determining a corresponding calling parameter from the calling parameter group according to the operating system of the terminal equipment where the mobile application is located, and acquiring the calling parameter.
In a third aspect, the present application provides a click feedback device, which is applied to a page application embedded in a mobile application, where the mobile application has a function of calling a vibration hardware device in a terminal device, and the device includes:
the click event receiving module is used for receiving a click event triggered by the user through clicking the page application;
a calling parameter group generating module for generating a calling parameter group of the vibration hardware equipment corresponding to the click event;
and the parameter transmission module is used for sending the calling parameter group to the mobile application through a preset transmission interface so that the mobile application calls the vibration hardware equipment in the terminal equipment by using the calling parameter contained in the calling parameter group.
In a possible implementation manner of the third aspect of the embodiment of the present invention, the calling parameter group includes a calling parameter corresponding to the ios terminal device and a calling parameter corresponding to the andriod terminal device, where the calling parameter corresponding to the ios terminal device includes a vibration type parameter for calling a vibration hardware device in the ios terminal device, and the calling parameter corresponding to the andriod terminal device includes a vibration duration parameter for calling the vibration hardware device in the andriod terminal device.
In a possible implementation manner of the third aspect of the embodiment of the present invention, the invocation parameter corresponding to the ios terminal device includes an ios identifier and an ios spacer, where the ios identifier at least includes an ios identifier used for representing an ios operating system type and an ios identifier of a vibration type, and two adjacent ios identifiers are spaced by the ios spacer.
In a possible implementation manner of the third aspect of the embodiment of the present invention, the invocation parameter corresponding to the andriod terminal device includes an andriod identifier and an andriod spacer, where the andriod identifier at least includes an andriod identifier and an andriod spacer, which are respectively used to represent an andriod operating system type, and two adjacent andriod identifiers are spaced by the andriod spacer.
In a possible implementation manner of the third aspect of the embodiment of the present invention, the calling parameter group generating module includes:
a clicked element obtaining module, configured to obtain a clicked element corresponding to the click event, where the clicked element is a page element in the page application, where the page element responds to the click event;
the first clicked element determining module is used for determining a first clicked element matched with a preset first triggering element from the clicked elements, wherein the preset first triggering element is a preset page element which is used for triggering and acquiring a calling parameter for calling the vibration hardware equipment in the terminal equipment;
and the first calling parameter acquisition module is used for acquiring first calling parameters corresponding to the first clicked element and summarizing the first calling parameters into a calling parameter group.
In a possible implementation manner of the third aspect of the embodiment of the present invention, the calling parameter group generating module further includes:
a second clicked element determining module, configured to determine, from the clicked event, a second clicked element that matches a preset second trigger element, where the preset second trigger element is a page element that is preset on the page application and is used to trigger obtaining of a call parameter for rendering the page application;
and the second calling parameter acquisition module is used for acquiring a second calling parameter corresponding to the second clicked element, so that the page application calls a rendering tool in the page application by using the second calling parameter, and renders a page corresponding to the page application by using the rendering tool, thereby changing the display effect of the page.
In a fourth aspect, the present application provides a click feedback device, which is applied to a mobile application, where the mobile application includes an embedded page application, and the mobile application has a function of invoking a shake hardware device in a terminal device, and the device includes:
the system comprises a parameter receiving module, a parameter transmitting module and a parameter selecting module, wherein the parameter receiving module is used for receiving a calling parameter group transmitted by the page application through a preset transmission interface, and the calling parameter group comprises at least two calling parameters, wherein each calling parameter corresponds to an operating system;
a parameter obtaining module, configured to obtain a calling parameter corresponding to an operating system of the terminal device in the calling parameter group;
and the calling module is used for calling the vibration hardware equipment of the terminal equipment by using the calling parameter.
In a possible implementation manner of the fourth aspect of the embodiment of the present invention, the parameter obtaining module includes:
and the calling parameter determining module is used for determining corresponding calling parameters from the calling parameter group according to the operating system of the terminal equipment where the mobile application is located, and acquiring the calling parameters.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including:
a processor, and
a memory for storing executable instructions of the processor;
wherein the processor is configured to execute a corresponding click feedback method via execution of the executable instructions.
In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a corresponding click feedback method.
As can be seen from the foregoing technologies, the present application provides a click feedback method, an apparatus, an electronic device, and a storage medium, where a click event triggered by a user through clicking a page application is received, a call parameter set of a vibration hardware device corresponding to the click event is generated, and then the call parameter set is sent to a mobile application through a preset transmission interface, so that the mobile application calls the vibration hardware device in a terminal device by using a call parameter included in the call parameter set. Therefore, the click feedback method provided by the application can call the vibration hardware equipment through the mobile application where the page application is located, so that the defect that the page application cannot directly call the bottom layer hardware can be overcome, and the effect of obtaining corresponding vibration feedback on the click operation of the page application is achieved.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a flowchart of a click feedback method according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a process of generating a set of call parameters of a vibration hardware device corresponding to the click event according to an embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating a method for generating a frame effect according to an embodiment of the present disclosure;
FIG. 4 is a flowchart of a method for generating vibration feedback according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a first click feedback device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a second click feedback device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a third embodiment of a click feedback device according to the present invention;
fig. 8 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a click feedback method provided in an embodiment of the present application, and as shown in fig. 1, the method includes:
and S1, receiving a click event triggered by the user through clicking the page application.
The page application in the embodiment of the application refers to a page application embedded in the mobile application, so that the page application can interact with the mobile application through the JS Bridge. When a user uses a page application, a click event is generated by clicking a certain user interface in the page application, and the generated click event generally includes information such as time of click generation, click object and the like. Accordingly, the page application monitors and receives click events generated by the user through an add event listener or onclick event interface and the like. The user interface is composed of page elements, and the clicking operation of the user on the user interface is actually the clicking operation on each page element, so that the page application can receive the clicking event by monitoring the specific DOM element on a certain user interface.
Meanwhile, the mobile application in the embodiment of the application has the function of calling the vibration hardware equipment in the terminal equipment, so that a foundation is provided for calling the vibration hardware equipment by the mobile application for the subsequent page application so as to generate a vibration effect.
And S2, generating a calling parameter group of the vibration hardware equipment corresponding to the click event.
As can be seen from the above, the click event includes the call parameters corresponding to the click event, and these call parameters may enable the mobile terminal to call the corresponding shake hardware device. Typically, the set of invocation parameters corresponding to a click event comprises at least two invocation parameters, so that different invocation parameters may be applicable to different types of operating systems.
Further, the calling parameter group comprises a vibration type parameter for calling vibration hardware equipment in the ios terminal equipment and a vibration duration parameter for calling vibration hardware equipment in the android terminal equipment.
Therefore, the calling parameter group comprises the vibration type for calling the vibration hardware equipment in the ios terminal equipment, so that a basis for responding to click operation and giving vibration feedback to the page application under the ios is provided. Meanwhile, the calling parameter group comprises a vibration duration parameter for calling vibration hardware equipment in the andriod terminal equipment, so that a basis for changing the vibration duration is provided for page application under the andriod.
Optionally, the call parameter corresponding to the ios terminal device includes an ios identifier and an ios spacer, where the ios identifier at least includes ios identifiers respectively used for representing ios operating system types and ios identifiers of vibration types, and two adjacent ios identifiers are spaced by the ios spacer.
Correspondingly, the calling parameters corresponding to the android terminal device comprise android identifiers and android spacers, wherein the android identifiers at least comprise android identifiers used for representing the types of android operating systems and android identifiers of vibration duration, and every two adjacent android identifiers are spaced by the android spacers.
For example, the call parameter is android.1, where the decimal point is an android delimiter, andriod is an andriod identifier representing the type of andriod operating system, and 1 represents an andriod identifier of the vibration duration, such as vibration for 1 millisecond; or, for example, the invocation parameter is ios.2, ios represents an ios identifier of an ios operating system type, 2 represents an ios identifier of a vibration type, such as impact vibration, and in particular, different identifiers may represent different vibration patterns. The same or different identifiers may be used for different operating system types, and the same identifier may represent the same or different shock types or shock durations in different operating system types.
The mobile application can receive the calling parameters containing various types, and the required calling parameters can be selected from the calling parameters, so that cross-platform vibration feedback of the page application is realized.
Specifically, as shown in fig. 2, for a flowchart of generating a calling parameter set of a vibration hardware device corresponding to the click event provided in an embodiment of the present application, the method includes:
s201, acquiring a clicked element corresponding to the click event, wherein the clicked element is a page element responding to the click event in the page application;
s202, determining a first clicked element matched with a preset first trigger element from the clicked elements, wherein the preset first trigger element is a preset page element which is used for triggering and acquiring a calling parameter for calling a vibration hardware device in the terminal device and is arranged on the page application;
s203, acquiring first calling parameters corresponding to the first clicked element, and summarizing the first calling parameters into a calling parameter group.
As can be seen from the above, each click event corresponds to a page element in the page application, and these page elements are defined as clicked elements in the embodiment of the present application. Different page elements may correspond to different feedback, such as vibration feedback, picture effect feedback, skip feedback, etc. The feedback is an operation that when a user clicks a certain page element, a call parameter for calling a certain function is correspondingly triggered and acquired. The page elements capable of generating the vibration feedback, that is, the page elements for triggering and acquiring the call parameters for calling the vibration hardware device in the terminal device, are defined as preset first trigger elements in the embodiment of the present application, and after a click event is generated, the first clicked elements matched with the preset first trigger elements need to be determined from all the clicked elements, so that it is possible to know whether the vibration feedback needs to be triggered. And when the first clicked element exists, further acquiring first calling parameters corresponding to the first clicked element, and summarizing the first calling parameters into a calling parameter group for the mobile application to use.
Further, in order to enhance the interactivity between the web application and the user, it is also necessary to generate a screen effect while generating a vibration feedback. As shown in fig. 3, a flowchart of a method for generating a picture effect according to an embodiment of the present application is provided, where the method includes:
s211, determining a second clicked element matched with a preset second trigger element from the clicked event, wherein the preset second trigger element is a preset page element which is used for triggering and acquiring a calling parameter for rendering the page application on the page application;
s212, obtaining a second calling parameter corresponding to the second clicked element, so that the page application calls a rendering tool in the page application by using the second calling parameter, and renders a page corresponding to the page application by using the rendering tool, thereby changing the display effect of the page.
As can be seen from the above, different page elements may correspond to different feedbacks, such as a shake feedback, a picture effect feedback, a jump feedback, and the like. For the page elements capable of generating the screen effect, the second clicked elements are defined in the embodiment of the present application, and the second clicked elements are determined from all the clicked elements, and then the call parameters for rendering the page application, that is, the second call parameters, can be further obtained according to the clicked elements, so that the corresponding page of the page application can be rendered by using the second call parameters, so as to generate the corresponding screen effect.
The second call parameter is equivalent to a set of execution methods for rendering, and includes specific rendering parameters, such as rendering area, screen rendering tool, screen effect data, and the like. And by utilizing the second calling parameter, a specified picture rendering tool can be used in the rendering area, and the picture effect data is combined to render a picture with a preset effect. For example, one or a combination of several of the screen effects such as layout change, character change, color change, animation effect, and the like.
And S3, sending the calling parameter group to the mobile application through a preset transmission interface, so that the mobile application calls the vibration hardware equipment in the terminal equipment by using the calling parameters contained in the calling parameter group.
The preset transmission interface can be a special transmission interface for calling the parameter group, so that the efficiency of click feedback can be effectively improved.
S4, the mobile application receives a calling parameter group transmitted by the page application through a preset transmission interface, wherein the calling parameter group comprises at least two calling parameters, and each calling parameter corresponds to an operating system.
Therefore, the mobile application can receive the calling parameters corresponding to various operating system types, so that the problem that the mobile application is limited when calling the hardware equipment according to the calling parameters fed back by the page application is avoided.
S5, the mobile application acquires the calling parameter corresponding to the operating system of the terminal device in the calling parameter group.
Specifically, as shown in fig. 4, there is provided a flowchart of a method for generating vibration feedback according to an embodiment of the present application, where the method includes:
s501, according to the operating system of the terminal device where the mobile application is located, determining corresponding calling parameters from the calling parameter group, and acquiring the calling parameters.
Therefore, the mobile application can accurately select the calling parameter matched with the operating system from the calling parameter group, and call the vibration hardware equipment by using the calling parameter so as to realize vibration feedback.
And S6, the mobile application calls the vibration hardware equipment of the terminal equipment by using the calling parameter.
Fig. 5 is a schematic structural diagram of a first click feedback device according to an embodiment of the present invention, where the device includes: the click event receiving module 1 is used for receiving a click event triggered by a user through clicking the page application; a calling parameter group generating module 2, configured to generate a calling parameter group of the vibration hardware device corresponding to the click event; and the parameter transferring module 3 is configured to send the calling parameter group to the mobile application through a preset transmission interface, so that the mobile application calls the vibration hardware device in the terminal device by using the calling parameter included in the calling parameter group.
Optionally, the calling parameter group includes a calling parameter corresponding to the ios terminal device and a calling parameter corresponding to the andriod terminal device, where the calling parameter corresponding to the ios terminal device includes a vibration type parameter for calling a vibration hardware device in the ios terminal device, and the calling parameter corresponding to the andriod terminal device includes a vibration duration parameter for calling the vibration hardware device in the andriod terminal device.
Optionally, the call parameter corresponding to the ios terminal device includes an ios identifier and an ios spacer, where the ios identifier at least includes ios identifiers respectively used for representing ios operating system types and ios identifiers of vibration types, and two adjacent ios identifiers are spaced by the ios spacer.
Optionally, the invocation parameter corresponding to the andriod terminal device includes an andriod identifier and an andriod spacer, where the andriod identifier at least includes an andriod identifier and an andriod spacer, which are respectively used to represent an andriod operating system type, and two adjacent andriod identifiers are spaced by the andriod spacer.
Fig. 6 is a schematic structural diagram of a second click feedback device according to an embodiment of the present invention, where the calling parameter group generating module 2 includes: a clicked element obtaining module 21, configured to obtain a clicked element corresponding to the click event, where the clicked element is a page element in the page application, where the page element responds to the click event; a first clicked element determining module 22, configured to determine, from the clicked elements, a first clicked element that matches a preset first trigger element, where the preset first trigger element is a page element that is preset in the page application and is used to trigger and obtain a call parameter for calling a vibration hardware device in the terminal device; the first invoking parameter obtaining module 23 is configured to obtain first invoking parameters corresponding to the first clicked element, and summarize the first invoking parameters into an invoking parameter group.
Fig. 7 is a schematic structural diagram of a third embodiment of the click feedback device according to the embodiment of the present invention, where the calling parameter group generating module 2 further includes: a second clicked element determining module 24, configured to determine, from the clicked event, a second clicked element that matches a preset second trigger element, where the preset second trigger element is a page element that is preset on the page application and is used to trigger obtaining of a call parameter for rendering the page application; a second calling parameter obtaining module 25, configured to obtain a second calling parameter corresponding to the second clicked element, so that the page application calls a rendering tool in the page application by using the second calling parameter, and renders a page corresponding to the page application by using the rendering tool, so as to change a display effect of the page.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention. The electronic device includes: a memory 101 and a processor 102;
a memory 101 for storing a computer program;
the processor 102 is configured to execute a computer program stored in the memory to implement the click feedback method in the above embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 101 may be separate or integrated with the processor 102.
When the memory 101 is a device independent of the processor 102, the electronic apparatus may further include:
a bus 103 for connecting the memory 101 and the processor 102.
The electronic device provided in the embodiment of the present invention may be configured to execute any one of the click feedback methods shown in the above embodiments, and the implementation manner and the technical effect are similar to each other.
An embodiment of the present invention further provides a readable storage medium, where a computer program is stored in the readable storage medium, and when at least one processor of a message sending apparatus executes the computer program, the message sending apparatus executes the click feedback method described in any of the above embodiments.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program described above may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention.

Claims (10)

1. A click feedback method applied to a page application embedded in a mobile application having a function of calling a vibration hardware device in a terminal device, the method comprising:
receiving a click event triggered by a user through clicking the page application;
generating a calling parameter group of the vibration hardware equipment corresponding to the click event;
and sending the calling parameter group to the mobile application through a preset transmission interface so that the mobile application calls the vibration hardware equipment in the terminal equipment by using the calling parameters contained in the calling parameter group.
2. The method according to claim 1, wherein the calling parameter group comprises calling parameters corresponding to ios terminal equipment and calling parameters corresponding to android terminal equipment, wherein the calling parameters corresponding to ios terminal equipment comprise vibration type parameters for calling vibration hardware equipment in ios terminal equipment, and the calling parameters corresponding to android terminal equipment comprise vibration duration parameters for calling vibration hardware equipment in android terminal equipment.
3. The method according to claim 2, wherein the invocation parameters corresponding to the ios terminal device comprise ios identifiers and ios spacers, wherein the ios identifiers at least comprise ios identifiers respectively representing ios operating system types and ios identifiers of vibration types, and two adjacent ios identifiers are spaced by the ios spacers.
4. The method according to claim 2, wherein the invocation parameters corresponding to the android terminal device comprise an android identifier and an android spacer, wherein the android identifier comprises at least an android identifier used for representing the type of an android operating system and an android identifier of a vibration time length respectively, and two adjacent android identifiers are spaced by the android spacer.
5. The method of claim 1, wherein the generating the set of call parameters for the jarring hardware device corresponding to the click event comprises:
acquiring a clicked element corresponding to the click event, wherein the clicked element is a page element responding to the click event in the page application;
determining a first clicked element matched with a preset first trigger element from the clicked elements, wherein the preset first trigger element is a preset page element which is used for triggering and acquiring a calling parameter for calling vibration hardware equipment in the terminal equipment on the page application;
and acquiring first calling parameters corresponding to the first clicked element, and summarizing the first calling parameters into a calling parameter group.
6. The method of claim 2, wherein the generating the set of call parameters for the jarring hardware device corresponding to the click event further comprises:
determining a second clicked element matched with a preset second trigger element from the clicked event, wherein the preset second trigger element is a page element which is preset on the page application and is used for triggering and obtaining a calling parameter for rendering the page application;
and acquiring a second calling parameter corresponding to the second clicked element, so that the page application calls a rendering tool in the page application by using the second calling parameter, and renders a page corresponding to the page application by using the rendering tool, thereby changing the display effect of the page.
7. A click feedback method is applied to a mobile application, the mobile application comprises an embedded page application, the mobile application has a function of calling a vibration hardware device in a terminal device, and the method comprises the following steps:
receiving a calling parameter group transmitted by the page application through a preset transmission interface, wherein the calling parameter group comprises at least two calling parameters, and each calling parameter corresponds to an operating system;
acquiring a calling parameter corresponding to the operating system of the terminal equipment in the calling parameter group;
and calling the vibration hardware equipment of the terminal equipment by using the calling parameter.
8. The method of claim 7, wherein the obtaining of the calling parameter corresponding to the operating system of the terminal device in the calling parameter group comprises:
and determining a corresponding calling parameter from the calling parameter group according to the operating system of the terminal equipment where the mobile application is located, and acquiring the calling parameter.
9. A click feedback device applied to a page application embedded in a mobile application having a function of calling a vibration hardware device in a terminal device, the device comprising:
the click event receiving module is used for receiving a click event triggered by the user through clicking the page application;
a calling parameter group generating module for generating a calling parameter group of the vibration hardware equipment corresponding to the click event;
and the parameter transmission module is used for sending the calling parameter group to the mobile application through a preset transmission interface so that the mobile application calls the vibration hardware equipment in the terminal equipment by using the calling parameter contained in the calling parameter group.
10. A click feedback device applied to a mobile application including an embedded page application, the mobile application having a function of calling a vibration hardware device in a terminal device, the device comprising:
the system comprises a parameter receiving module, a parameter transmitting module and a parameter selecting module, wherein the parameter receiving module is used for receiving a calling parameter group transmitted by the page application through a preset transmission interface, and the calling parameter group comprises at least two calling parameters, wherein each calling parameter corresponds to an operating system;
a parameter obtaining module, configured to obtain a calling parameter corresponding to an operating system of the terminal device in the calling parameter group;
and the calling module is used for calling the vibration hardware equipment of the terminal equipment by using the calling parameter.
CN202010373225.7A 2020-05-06 2020-05-06 Click feedback method and device, electronic equipment and storage medium Pending CN111596847A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010373225.7A CN111596847A (en) 2020-05-06 2020-05-06 Click feedback method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010373225.7A CN111596847A (en) 2020-05-06 2020-05-06 Click feedback method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111596847A true CN111596847A (en) 2020-08-28

Family

ID=72182522

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010373225.7A Pending CN111596847A (en) 2020-05-06 2020-05-06 Click feedback method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111596847A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616213A (en) * 2008-06-25 2009-12-30 Lg电子株式会社 Provide the sense of touch effect at mobile communication terminal
CN103870187A (en) * 2012-12-17 2014-06-18 华为终端有限公司 Method for controlling terminal with touch screen and terminal
CN106412220A (en) * 2015-08-03 2017-02-15 天脉聚源(北京)科技有限公司 Method of realizing shaking function under mobile Internet environment and system thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616213A (en) * 2008-06-25 2009-12-30 Lg电子株式会社 Provide the sense of touch effect at mobile communication terminal
CN103870187A (en) * 2012-12-17 2014-06-18 华为终端有限公司 Method for controlling terminal with touch screen and terminal
CN106412220A (en) * 2015-08-03 2017-02-15 天脉聚源(北京)科技有限公司 Method of realizing shaking function under mobile Internet environment and system thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《CSDN》: "《JsBridge第三方框架实现html与native的数据沟通》", 《HTTPS://BLOG.CSDN.NET/AN_NAL/ARTICLE/DETAILS/80577113》 *

Similar Documents

Publication Publication Date Title
CN111104635B (en) Method and device for generating form webpage
US7739551B2 (en) Web page error reporting
US8365188B2 (en) Content management
CN107688529B (en) Component debugging method and device
CN111475161B (en) Method, device and equipment for accessing component
US20180159724A1 (en) Automatic task tracking
CN103530338A (en) Frame for carrying out page rendering on calculation equipment and page generation method
CN105516333A (en) Interactive method and system based on webpage
CN113672405A (en) Data interaction system and page display method based on data interaction system
CN110750415A (en) Interface service configuration method, device, medium and computer equipment
CN108933947B (en) Bullet screen display method and device
CN111079048A (en) Page loading method and device
CN112306471A (en) Task scheduling method and device
CN114385124A (en) Independent page jumping method, device and equipment based on Vue framework
CN113157274B (en) Software development method and device based on micro front end, electronic equipment and storage medium
CN110109684A (en) Block chain node administration agent services installation method, electronic device and storage medium
US20170034030A1 (en) Monitoring single content page application transitions
CN113254217A (en) Service message processing method and device and electronic equipment
CN106095886B (en) Data processing method and device
CN111596847A (en) Click feedback method and device, electronic equipment and storage medium
CN108289056B (en) Method and device for sharing dynamic chart and computing equipment
CN101772196A (en) Method and system for processing message sent by mobile terminal and acting server
CN113626158A (en) Event agent-based embedded point execution method and device
CN113342341A (en) Page creating method, device and system and storage medium
CN106775900B (en) Calling method and system of application browser

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200828

RJ01 Rejection of invention patent application after publication