CN107391020B - Method, device and terminal for triggering and getting virtual goods package - Google Patents

Method, device and terminal for triggering and getting virtual goods package Download PDF

Info

Publication number
CN107391020B
CN107391020B CN201710621967.5A CN201710621967A CN107391020B CN 107391020 B CN107391020 B CN 107391020B CN 201710621967 A CN201710621967 A CN 201710621967A CN 107391020 B CN107391020 B CN 107391020B
Authority
CN
China
Prior art keywords
touch
area
package
touch area
virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710621967.5A
Other languages
Chinese (zh)
Other versions
CN107391020A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710621967.5A priority Critical patent/CN107391020B/en
Publication of CN107391020A publication Critical patent/CN107391020A/en
Application granted granted Critical
Publication of CN107391020B publication Critical patent/CN107391020B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Human Computer Interaction (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method, a device and a terminal for triggering and getting a virtual commodity package, and belongs to the technical field of internet application. The method comprises the following steps: when a receiving interface of a virtual commodity package is displayed, determining an extended touch area, wherein all or part of the extended touch area is outside a native touch area; and when receiving the specified operation executed in the extended touch area, triggering an application program corresponding to the virtual commodity package to send a request for retrieving the virtual commodity package to a server. By the method, when a user performs designated operation in the picking interface, even if the area corresponding to the touch component triggering to pick the virtual article package cannot be accurately touched, the virtual article package can be triggered to pick as long as the designated operation position is in the extended touch area, so that the misoperation probability when the virtual article package is triggered to pick is reduced, and the success rate of picking the virtual article package is improved.

Description

Method, device and terminal for triggering and getting virtual goods package
Technical Field
The embodiment of the invention relates to the technical field of Internet application, in particular to a method, a device and a terminal for triggering and getting a virtual commodity package.
Background
With the development of network technology, users can receive resources given by other users through a virtual goods package function provided by an application program, wherein the given resources comprise cash, points, virtual equipment and the like.
In the related art, after a client of an application installed in a user terminal receives a virtual package issued by another user, a pickup interface of the virtual package may be displayed in a screen of the terminal, where the pickup interface includes a touch component for picking up the virtual package. When a user wants to pick up the virtual commodity package, the user can click the touch control assembly, when the client of the application program detects the operation of clicking the touch control assembly, a request for picking up the virtual commodity package is sent to the server, and after the server receives the request, resources in the virtual commodity package are issued to the account currently logged in the client.
In the related art, a user can trigger the virtual commodity package to be picked up only by accurately clicking a touch control assembly for picking up the virtual commodity package, and the probability of misoperation when the virtual commodity package is picked up is high, so that the success rate of triggering the virtual commodity package to be picked up by the user is influenced.
Disclosure of Invention
In order to solve the problems that in the related art, a user can trigger to pick up a virtual article package only by accurately clicking a touch control assembly for picking up the virtual article package, the probability of misoperation during picking up the virtual article package is high, and the success rate of triggering to pick up the virtual article package by the user is influenced, the embodiment of the invention provides a method, a device and a terminal for triggering to pick up the virtual article package. The technical scheme is as follows:
in a first aspect, a method for triggering the pick-up of a virtual package is provided, the method comprising:
when a pickup interface of a virtual commodity package is displayed, determining an extended touch area, wherein all or part of the extended touch area is outside a native touch area, and the native touch area is an area corresponding to a touch component for triggering pickup of the virtual commodity package in the pickup interface;
and when receiving the specified operation executed in the extended touch area, triggering an application program corresponding to the virtual commodity package to send a request for retrieving the virtual commodity package to a server.
Optionally, the determining the extended touch area includes:
determining all or part of the touch areas except the area corresponding to the touch component in the screen as the extended touch area;
or, determining all or part of touch areas except the area corresponding to the touch component in the screen and the set of the native touch areas as the extended touch area;
or, determining all or part of the touch area in the screen as the extended touch area.
Optionally, the determining the extended touch area includes:
determining all touch areas in the screen as the extended touch areas within a first preset length time period;
determining a touch area except for all or part of the area corresponding to the touch component in the screen as the extended touch area within a second preset length time period, or determining a set of all or part of the touch area except for the area corresponding to the touch component in the screen and the native touch area as the extended touch area;
the starting time of the first preset length time period is the time for starting displaying the picking interface, and the starting time of the second preset length time period is not earlier than the ending time of the first preset length time period.
Optionally, the method further includes:
and after the second preset length time period, the extended touch area is withdrawn.
Optionally, the method further includes:
and displaying area indication information, wherein the area indication information is used for indicating the position of the extended touch area in the screen.
Optionally, when receiving a specific operation executed in the extended touch area, triggering an application program corresponding to the virtual item package to send a request for retrieving the virtual item package to a server, where the request includes:
when a specified operation executed in the extended touch area is received, intercepting a first touch instruction sent to the application program by a system layer, wherein the first touch instruction is used for indicating that the specified operation is received at a position corresponding to the specified operation;
sending a second touch indication to the application program, the second touch indication indicating that the specified operation is received within the native touch area.
Optionally, when the pick-up interface of the virtual item package is displayed, determining the extended touch area includes:
when a system event corresponding to the application program is monitored, interface display information is obtained, and the interface display information indicates the content of the application program interface displayed in the current screen;
and when the interface displayed in the current screen is determined to be the pickup interface according to the interface display information, executing the step of determining the extended touch area.
In a second aspect, there is provided an apparatus for triggering pick-up of a virtual package, the apparatus comprising:
the area determining module is used for determining an extended touch area when a pickup interface of a virtual commodity package is displayed, wherein all or part of the extended touch area is located outside a native touch area, and the native touch area is an area corresponding to a touch component used for triggering pickup of the virtual commodity package in the pickup interface;
and the triggering module is used for triggering the application program corresponding to the virtual commodity package to send a request for getting the virtual commodity package to a server when receiving the specified operation executed in the extended touch area.
Optionally, the region determining module is used for
Determining all or part of the touch areas except the area corresponding to the touch component in the screen as the extended touch area;
or, determining all or part of touch areas except the area corresponding to the touch component in the screen and the set of the native touch areas as the extended touch area;
or, determining all or part of the touch area in the screen as the extended touch area.
Optionally, the area determining module includes:
a first area determining unit, configured to determine all touch areas in the screen as the extended touch area within a first preset length time period;
a second area determining unit, configured to determine, within a second preset length of time period, all or part of the touch areas in the screen except for the area corresponding to the touch component as the extended touch area, or determine, as the extended touch area, a set of all or part of the touch areas in the screen except for the area corresponding to the touch component and the native touch area;
the starting time of the first preset length time period is the time for starting displaying the picking interface, and the starting time of the second preset length time period is not earlier than the ending time of the first preset length time period.
Optionally, the apparatus further comprises:
and the cancelling module is used for cancelling the extended touch area after the second preset length time period.
Optionally, the apparatus further comprises:
and the display module is used for displaying area indication information, and the area indication information is used for indicating the position of the extended touch area in the screen.
Optionally, the triggering module includes:
the intercepting unit is used for intercepting a first touch instruction sent to the application program by a system layer when a specified operation executed in the extended touch area is received, wherein the first touch instruction is used for indicating that the specified operation is received at a position corresponding to the specified operation;
an indication sending unit, configured to send a second touch indication to the application program, where the second touch indication is used to indicate that the specified operation performed in the native touch area is received.
Optionally, the area determining module is configured to acquire interface display information when a system event corresponding to the application program is monitored, where the interface display information indicates content of an application program interface displayed in a current screen, and execute the step of determining the extended touch area when it is determined that an interface displayed in the current screen is the pickup interface according to the interface display information.
In a third aspect, a terminal is provided, where the terminal includes: a processor, a memory coupled to the processor, and program instructions stored on the memory, the processor configured to execute the program instructions to implement the method of triggering pick-up of a virtual good package according to the first aspect.
In a fourth aspect, there is provided a computer readable medium having stored thereon program instructions which, when executed by a processor, implement the method of triggering pick-up of a virtual good package according to the first aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
when the receiving interface of the virtual commodity package is displayed, an extended touch area with all or part of the area outside the native touch area is determined, and when the specified operation executed in the extended touch area is received, the application program is triggered to send a request for receiving the virtual commodity package to the server, namely when a user performs the specified operation in the receiving interface, even if the area corresponding to the touch component triggering the receiving of the virtual commodity package cannot be accurately touched, the virtual commodity package can be triggered to be received as long as the position of the specified operation is in the extended touch area, so that the misoperation probability when the virtual commodity package is triggered to be received is reduced, and the success rate of receiving the virtual commodity package is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a virtual article package issuing system according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method of triggering pick-up of a virtual good package in accordance with an exemplary embodiment of the present invention;
FIG. 3 is a schematic diagram of a pick-up interface for a virtual package according to the embodiment shown in FIG. 2;
FIG. 4 is a schematic diagram of a virtual good package pick-up according to the embodiment of FIG. 2;
FIG. 5 is a flow chart illustrating another method of triggering pick-up of a virtual good package in accordance with an exemplary embodiment of the present invention;
FIG. 6 is a schematic diagram of three extended regions involved in the embodiment of FIG. 5;
FIG. 7 is a block diagram of an apparatus for triggering pick-up of a virtual package according to an embodiment of the present invention;
FIG. 8 is a block diagram of another apparatus for triggering pick-up of a virtual package according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1, a schematic structural diagram of a virtual article package issuing system according to an embodiment of the present invention is shown. The system includes a server 120 and at least one terminal 140.
The server 120 may be a server, a server cluster composed of several servers, or a cloud computing service center.
The server 120 and the terminal 140 may be connected through a wireless network or a wired network.
At least one terminal 140 has an application running therein. The terminal 140 may also be a mobile phone, a tablet computer, an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, motion Picture Experts Group Audio Layer IV, motion Picture Experts Group Audio Layer 4), an MP4 player, a laptop computer, a desktop computer, or the like.
It should be noted that the application may be a social application, such as an instant messaging application, or a social platform application; the application may also be a payment-type application; alternatively, the application may be other applications such as a gaming application, a reading application, an application dedicated to sending virtual good packages, and the like. The embodiment of the invention does not limit the type of the application program. The applications running in each terminal 140 are typically the same type of application or may not be the same type of application.
It should be noted that, in various embodiments of the present invention, the virtual package may also be referred to as a virtual red envelope or an electronic red envelope, and the virtual package is a virtual carrier for transferring resources between at least two users or between a system and a user in a donation form; when transferring resources between at least two users, the at least two users may or may not have a friendship relationship in the network and/or the real world. The resources involved in the virtual good package may be of the cash, gaming equipment, gaming material, gaming pets, gaming chips, icons, members, titles, value added services, points, gold bulls, gold beans, gift certificates, redemption certificates, coupons, greeting cards, and the like type. The embodiment of the invention does not limit the resource types.
Referring to fig. 2, a flowchart of a method for triggering the virtual good package pickup according to an exemplary embodiment of the present invention is shown, and the method may be applied to a terminal installed with an application program providing a function of a virtual good package, such as the terminal 140 in the system shown in fig. 1. As shown in fig. 2, the method for triggering the pick-up of the virtual item package may include:
step 201, when a pickup interface of a virtual package is displayed, determining an extended touch area, where all or a part of the extended touch area is outside a native touch area, and the native touch area is an area corresponding to a touch component in the pickup interface for triggering pickup of the virtual package.
In the pick-up interface of the virtual commodity package displayed by the application program, an area displayed by the touch component triggering the pick-up of the virtual commodity package may be referred to as a native touch area. In the embodiment of the present invention, when an application in the terminal displays a pickup interface of a virtual package, the terminal may determine an extended touch area in the screen, where the extended touch area includes a portion outside the native touch area.
For example, please refer to fig. 3, which illustrates a schematic diagram of a pickup interface of a virtual commodity package according to an embodiment of the present invention. Taking the virtual package as an electronic red package as an example, as shown in fig. 3, after receiving a message of the electronic red package, the application program clicks the message, displays a pickup interface 30 of the electronic red package in a screen of the terminal, where the pickup interface 30 includes a picture 31 of the red package, the picture 31 includes a touch component 32 (shown as a circular touch component in fig. 3), and the touch component 32 is used to trigger pickup of the electronic red package. The area corresponding to the touch component 32 is the above-mentioned native touch area. In fig. 3, after detecting that the application displays the pickup interface 30, the terminal further determines an extended touch area 33 in the pickup interface, where the extended touch area 33 includes the touch device 32, and an area of the extended touch area 33 is larger than an area of the touch device 32.
In practical applications, the extended touch area includes a part of the native touch area and a part of the native touch area, or the extended touch area may be completely outside the native touch area, and only the extended touch area includes the part outside the native touch area, and the embodiment of the present invention is not limited to the relative relationship between the extended touch area and the native touch area.
Step 202, when receiving the designated operation executed in the extended touch area, triggering the application program corresponding to the virtual commodity package to send a request for retrieving the virtual commodity package to the server.
In the embodiment of the present invention, when the user performs an operation of specifying an operation (i.e., retrieving the virtual good package) in the extended touch area, as long as the operation position is within the extended touch area (even if the operation position is outside the native touch area), the application may be triggered to retrieve the virtual good package from the server.
For example, please refer to fig. 4, which illustrates a virtual goods package pick-up diagram according to an embodiment of the present invention. On the basis of the pickup interface shown in fig. 3, when the user performs a click operation in the pickup interface 30 and the operation position 34 is in the extended touch area 33 (the operation position 34 is shown outside the touch component 32 in fig. 4), the terminal triggers the application to send a request for picking up the virtual package to the server, and after receiving a response from the server, the application displays the pickup result interface 40.
In summary, in the method provided in the embodiment of the present invention, when the pick-up interface of the virtual item package is displayed, an extended touch area, in which all or a part of the area is outside the native touch area, is determined, and when a specified operation executed in the extended touch area is received, the application is triggered to send a request for picking up the virtual item package to the server, that is, when a user performs the specified operation in the pick-up interface, even if the area corresponding to the touch component triggering the pick-up of the virtual item package is not accurately touched, as long as the position of the specified operation is within the extended touch area, the pick-up of the virtual item package can be triggered, so that the probability of misoperation when the pick-up of the virtual item package is triggered is reduced, and the success rate of picking up the virtual item package is improved.
Referring to fig. 5, a flowchart of a method for triggering the virtual good package pickup according to an exemplary embodiment of the present invention is shown, and the method may be applied to a terminal installed with an application program providing a function of a virtual good package, such as the terminal 140 in the system shown in fig. 1. As shown in fig. 5, the method for triggering the pick-up of the virtual item package may include:
step 501, when a system event corresponding to a specified application program is monitored, interface display information is acquired, and the interface display information indicates the content of the application program interface displayed in the current screen.
Specifically, in the embodiment of the present invention, the application may receive the virtual package, display a pickup interface of the virtual package, and send a request for picking up the virtual package to the server when receiving an operation of determining to pick up the virtual package by the user.
In the embodiment of the invention, the terminal can monitor the application program corresponding to each event generated in the terminal system, and when the application program corresponding to a certain event generated in the system is the specified application program, the current interface display information of the terminal is obtained, and whether the interface displayed in the current screen of the terminal is the picking interface of the virtual commodity package is judged according to the interface display information.
The terminal can determine whether the application program displays the virtual package pickup interface according to the content (i.e., interface display information) displayed in the current screen, however, the process of judging whether the virtual package pickup interface is currently displayed according to the interface display information needs to occupy certain processing and memory resources, and if the terminal continuously judges whether the virtual package pickup interface is currently displayed according to the interface display information, the processing and cruising performance of the terminal can be affected. In practical application, the time for using the application program providing the virtual red packet function usually only occupies a small part of the time for the user to use the terminal, so that in order to avoid the terminal continuously judging whether to display the pickup interface of the virtual commodity packet currently through the interface display information, in the embodiment of the invention, the terminal can monitor the system event generated in the operating system of the terminal, and when the event corresponding to the application program providing the virtual red packet function is monitored, the terminal executes the step of judging whether to display the pickup interface of the virtual commodity packet currently through the interface display information, thereby reducing unnecessary judgment operation and improving the processing and cruising performance of the terminal.
Specifically, when monitoring a designated application (i.e., an application providing a virtual red packet function), the terminal may obtain at least one of information related to each system event generated in the operating system (e.g., action information of an event source, an application name corresponding to the event, and activity information corresponding to the event) and event information of each system event itself (e.g., a network connection type and a network connection address of an event request), and determine whether the event is an event corresponding to the designated application according to the information related to the system event or the event information.
In addition, when the terminal judges whether the interface displayed in the current screen of the terminal is the pick-up interface of the virtual commodity package according to the interface display information, whether the interface indicated by the interface display information contains the virtual commodity package picture can be judged. For example, pictures of various virtual item packages can be preset in the terminal, when a system event corresponding to an application program providing a virtual item package function is monitored, the terminal acquires current interface display information, compares the picture contained in the interface indicated by the interface display information with a preset picture of the virtual item package corresponding to the application program, and determines that the interface displayed in the current screen of the terminal is a pickup interface of the virtual item package if the picture contained in the interface indicated by the interface display information is matched with the preset picture of the virtual item package corresponding to the application program. Or, the terminal may also preset interface information templates of the pickup interfaces of various virtual commodity packages, and when a system event corresponding to an application program providing the virtual commodity package function is monitored, the terminal acquires current interface display information and judges whether the current interface display information is matched with the interface information template corresponding to the application program, and if so, determines that the interface displayed in the current screen of the terminal is the pickup interface of the virtual commodity package.
Step 502, when the interface displayed in the current screen is determined to be the pickup interface according to the interface display information, determining an extended touch area.
All or part of the extended touch area is located outside the native touch area, and the native touch area is an area corresponding to a touch component for triggering and picking up the virtual package in the picking-up interface.
After the terminal determines that the interface displayed in the current screen is the pickup interface of the virtual commodity package, the extended touch area in the screen can be determined. In the embodiment of the present invention, the terminal may determine all or a part of the touch area in the screen except for the area corresponding to the touch component as the extended touch area; or, determining all or part of the touch areas except the area corresponding to the touch component in the screen and the set of the native touch areas as the extended touch area; or, determining all or part of the touch area in the screen as the extended touch area.
Please refer to fig. 6, which illustrates three schematic views of the extended area according to the embodiment of the present invention. Taking the virtual package as an electronic red package as an example, in fig. 6, after receiving a message of the electronic red package, the application program clicks the message, and displays a pickup interface of the electronic red package on a screen of the terminal, where the pickup interface includes a picture 61 of the red package, the picture 61 includes a touch component 62 (shown as a circular touch component in fig. 6), the touch component 62 is used to trigger pickup of the electronic red package, and an area corresponding to the touch component 32 is the native touch area. In addition, the picture 61 further includes a touch component 63, and the touch component 63 is used for closing the pickup interface 60.
Take the diagonal filled area in fig. 6 as the extended touch area as an example. As shown in fig. 6(a), in one possible implementation, the terminal may determine all touch areas except for the touch component 62 and the touch component 63 in the current screen as extended touch areas (oblique lines fill in the figure); as shown in fig. 6(b), in another possible implementation manner, the terminal may determine all touch areas except for the touch component 63 in the current screen as the extended touch area; in yet another possible implementation manner, the terminal may determine all areas in the current screen as the extended touch area.
In another possible implementation manner, the extended touch area determined by the terminal may also change with the change of the presentation time of the pickup interface, for example, in a first preset length time period, the terminal determines all touch areas in the screen as the extended touch area; in a subsequent second preset length time period, the terminal may determine a touch area in the screen, except for all or part of the area corresponding to the touch component, as the extended touch area, or determine a set of all or part of the touch area in the screen, except for the area corresponding to the touch component, and the native touch area as the extended touch area; the starting time of the first preset length time period is the time for starting to display the picking interface, and the starting time of the second preset length time period is not earlier than the ending time of the first preset length time period.
For example, taking fig. 6 as an example, in a possible implementation manner, in the 1 st s after the application program displays the pick-up interface of the virtual package, the terminal may determine all areas in the current screen as extended touch areas, and in the 2 nd s, the terminal may determine touch areas other than all or part of areas corresponding to the touch components in the current screen as the extended touch areas, or determine a set of all or part of touch areas other than the areas corresponding to the touch components and the native touch areas in the screen as the extended touch areas; that is, when the time of the reception interface presentation shown in fig. 6 is between 0 and 1s, the expanded area specified by the terminal is the diagonally filled portion in fig. 6(c), and when the time of the reception interface presentation shown in fig. 6 is between 1 and 2s, the expanded area specified by the terminal is the diagonally filled portion in fig. 6(a) or fig. 6 (b).
Optionally, after the second preset length of time period, the terminal may also cancel the extended touch area.
For example, after the time for the pickup interface shown in fig. 6 exceeds 2s, the terminal may cancel the expansion of the touch area.
It should be noted that, in the above-mentioned scheme shown in fig. 6, the extended touch area is taken as the whole touch area in the screen or the whole touch area except the touch component in the screen, and in practical applications, the extended touch area may only occupy a part of the whole touch area in the screen or only occupy a part of the touch area except the touch component in the screen.
Optionally, area indication information is displayed, where the area indication information is used to indicate a position of the extended touch area in the screen.
In a possible implementation manner, in order to facilitate accurate triggering of the user to pick up the virtual item package, in an embodiment of the present invention, after the terminal determines the extended touch area, area indication information may be further displayed in the screen to indicate a specific position of the extended touch area.
For example, when the extended touch area occupies all touch areas of the screen, the terminal may display text information "click any position in the screen to quickly pick up the red envelope" on the top layer of the current display interface in the screen.
Or, the area indication information may also be information displayed through a graphic, for example, taking a virtual extension packet as an example, an electronic red packet is taken as an example, and the terminal may display the determined extension touch area in a form of a highlighted border.
Or, the area indication information may also be displayed in a form of combining text and graphics, for example, taking a virtual extension packet as an example, an electronic red packet is taken as an example, the terminal may display the determined extension touch area in a highlight form, and simultaneously "click any position in the highlight area to quickly get the red packet" in the text information displayed on the uppermost layer of the current display interface in the screen.
Optionally, if the terminal cancels and expands the touch area, the terminal cancels the area indication information at the same time.
Step 503, when receiving the designated operation executed in the extended touch area, triggering the application program corresponding to the virtual package to send a request for retrieving the virtual package to the server.
Optionally, when receiving a specific operation executed in the extended touch area, the terminal intercepts a first touch instruction sent by the system layer to the application program, where the first touch instruction is used to instruct that the specific operation is received at a position corresponding to the specific operation; and sending a second touch instruction to the application program, wherein the second touch instruction is used for indicating that the specified operation is received in the native touch area.
Wherein, in the process of displaying information, when receiving a touch operation of the terminal in the current interface, the system layer of the terminal may send a touch instruction to the currently running application program to indicate the operation type and the operation position of the received touch operation to the application program, in an embodiment of the present invention, when the terminal detects a specified operation performed in the extended touch area, a first touch instruction (i.e., a touch instruction indicating that the operation type is the specified type and the touch position is an actual coordinate of the touch operation) sent by the system layer to the application program may be intercepted, and at the same time, the terminal sends a second touch instruction to the application program, the second touch instruction indicating that the operation type is the specified type and the touch position is a certain coordinate within the native touch area (such as a center coordinate of the native touch area or a random coordinate within the native touch area, etc.), such that the application deems it received the specified operation performed within the native touch area for the application to send a request to the server to retrieve the virtual good package.
In summary, in the method provided in the embodiment of the present invention, when the pick-up interface of the virtual item package is displayed, an extended touch area, in which all or a part of the area is outside the native touch area, is determined, and when a specified operation executed in the extended touch area is received, the application is triggered to send a request for picking up the virtual item package to the server, that is, when a user performs the specified operation in the pick-up interface, even if the area corresponding to the touch component triggering the pick-up of the virtual item package is not accurately touched, as long as the position of the specified operation is within the extended touch area, the pick-up of the virtual item package can be triggered, so that the probability of misoperation when the pick-up of the virtual item package is triggered is reduced, and the success rate of picking up the virtual item package is improved.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
Referring to fig. 7, it is a block diagram of an apparatus for triggering to retrieve a virtual package according to an embodiment of the present invention, where the apparatus for triggering to retrieve a virtual package can be implemented as part or all of a terminal through software, hardware or a combination of both. The device for triggering the virtual goods package to be picked up can comprise:
the area determining module 701 is configured to determine an extended touch area when a pickup interface of a virtual package is displayed, where all or a part of the extended touch area is located outside a native touch area, and the native touch area is an area corresponding to a touch component in the pickup interface, where the touch component is used to trigger pickup of the virtual package;
a triggering module 702, configured to, when receiving a specified operation executed in the extended touch area, trigger an application program corresponding to the virtual item package to send a request for retrieving the virtual item package to a server.
Further, please refer to fig. 8, which is a block diagram illustrating a structure of another apparatus for triggering pick-up of a virtual package according to an embodiment of the present invention. In the apparatus shown in fig. 8 in combination with fig. 7, the region determining module 701 is configured to
Determining all or part of the touch areas except the area corresponding to the touch component in the screen as the extended touch area;
or, determining all or part of touch areas except the area corresponding to the touch component in the screen and the set of the native touch areas as the extended touch area;
or, determining all or part of the touch area in the screen as the extended touch area.
Optionally, the region determining module 701 includes:
a first area determining unit 701a, configured to determine all touch areas in the screen as the extended touch area within a first preset length time period;
a second area determining unit 701b, configured to determine, as the extended touch area, all or a part of the touch areas in the screen except for the area corresponding to the touch component, or determine, as the extended touch area, a set of all or a part of the touch areas in the screen except for the area corresponding to the touch component and the native touch area;
the starting time of the first preset length time period is the time for starting displaying the picking interface, and the starting time of the second preset length time period is not earlier than the ending time of the first preset length time period.
Optionally, the apparatus further comprises:
a cancelling module 703 is configured to cancel the extended touch area after the second preset length time period.
Optionally, the apparatus further comprises:
a displaying module 704, configured to display area indication information, where the area indication information is used to indicate a position of the extended touch area in the screen.
Optionally, the triggering module 702 includes:
an intercepting unit 702a, configured to, when a specified operation executed in the extended touch area is received, intercept a first touch instruction sent by a system layer to the application program, where the first touch instruction is used to indicate that the specified operation is received at a position corresponding to the specified operation;
an indication sending unit 702b, configured to send a second touch indication to the application, where the second touch indication is used to indicate that the specified operation performed in the native touch area is received.
Optionally, the area determining module 701 is configured to, when a system event corresponding to the application program is monitored, obtain interface display information, where the interface display information indicates content of an application program interface displayed in a current screen, and when it is determined that an interface displayed in the current screen is the pickup interface according to the interface display information, execute the step of determining the extended touch area.
For details, reference is made to the above-described method embodiments.
Fig. 9 is a diagram illustrating a structure of a terminal according to an exemplary embodiment of the present invention. The terminal includes: the terminal includes: a processor 911, a receiver 912, a transmitter 913, a memory 914, and a bus 915.
The processor 911 includes one or more processing cores, the memory 914 is connected with the processor 911 through the bus 915, the memory 914 is used for storing program instructions, and the processor 911 realizes the method for triggering the picking of the virtual goods package in the above method embodiment when executing the program instructions in the memory 914.
The receiver 912 and the transmitter 913 may be implemented as one communication component, which may be a communication chip for modulating and/or demodulating information and receiving or transmitting the information via wireless signals.
Further, the memory 914 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic or optical disks.
The above structural illustration is only an illustrative illustration of the terminal, and the terminal may include more or fewer components, for example, the terminal may not include a transmitter, or the terminal further includes other components such as a sensor, a display screen, and a power supply, and details are not described in this embodiment.
An embodiment of the present invention further provides a computer readable medium, on which program instructions are stored, and when the program instructions are executed by the processor 911, the method for triggering the virtual goods package to be picked up in the above method embodiment is implemented.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (8)

1. A method for triggering the pick-up of a virtual package, the method comprising:
when a system event of an application program corresponding to the virtual article package is monitored, interface display information is obtained, and the interface display information indicates the content of the application program interface displayed in the current screen;
when an interface indicated by the interface display information contains a virtual commodity package picture, determining an extended touch area, wherein all or part of the extended touch area is located outside a native touch area, and the native touch area is an area corresponding to a touch component for triggering to retrieve the virtual commodity package in a retrieval interface of the application program;
when receiving a designated operation executed in the extended touch area, triggering the application program to send a request for getting the virtual commodity package to a server;
wherein the determining an extended touch area comprises:
determining all touch areas in the screen as the extended touch areas within a first preset length time period;
determining all or part of the touch areas except the area corresponding to the touch component in the screen as the extended touch areas within a second preset length time period, or determining all or part of the touch areas except the area corresponding to the touch component in the screen and the set of the native touch areas as the extended touch areas;
the starting time of the first preset length time period is the time for starting displaying the picking interface, and the starting time of the second preset length time period is not earlier than the ending time of the first preset length time period.
2. The method of claim 1, wherein determining the extended touch area comprises:
determining all or part of the touch areas except the area corresponding to the touch component in the screen as the extended touch area;
or, determining all or part of touch areas except the area corresponding to the touch component in the screen and the set of the native touch areas as the extended touch area;
or, determining all or part of the touch area in the screen as the extended touch area.
3. The method of claim 1, further comprising:
and after the second preset length time period, the extended touch area is withdrawn.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
and displaying area indication information, wherein the area indication information is used for indicating the position of the extended touch area in the screen.
5. The method according to claim 1, wherein the triggering an application program corresponding to the virtual item package to send a request for retrieving the virtual item package to a server when receiving a specified operation performed in the extended touch area comprises:
when a specified operation executed in the extended touch area is received, intercepting a first touch instruction sent to the application program by a system layer, wherein the first touch instruction is used for indicating that the specified operation is received at a position corresponding to the specified operation;
sending a second touch indication to the application program, the second touch indication indicating that the specified operation is received within the native touch area.
6. An apparatus for triggering the pick-up of a virtual package, the apparatus comprising:
the area determining module is used for acquiring interface display information when monitoring a system event of an application program corresponding to the virtual commodity package, wherein the interface display information indicates the content of the application program interface displayed in the current screen; when an interface indicated by the interface display information contains a virtual commodity package picture, determining an extended touch area, wherein all or part of the extended touch area is located outside a native touch area, and the native touch area is an area corresponding to a touch component for triggering to retrieve the virtual commodity package in a retrieval interface of the application program;
the triggering module is used for triggering the application program to send a request for getting the virtual commodity package to a server when receiving the specified operation executed in the extended touch area;
wherein the region determination module comprises:
a first area determining unit, configured to determine all touch areas in the screen as the extended touch area within a first preset length time period;
a second area determining unit, configured to determine, within a second preset length of time period, all or part of the touch areas in the screen except for the area corresponding to the touch component as the extended touch area, or determine, as the extended touch area, a set of all or part of the touch areas in the screen except for the area corresponding to the touch component and the native touch area;
the starting time of the first preset length time period is the time for starting displaying the picking interface, and the starting time of the second preset length time period is not earlier than the ending time of the first preset length time period.
7. A terminal, characterized in that the terminal comprises: a processor, a memory coupled to the processor, and program instructions stored on the memory, the processor configured to execute the program instructions to implement the method of triggering pick-up of a virtual good package as claimed in any one of claims 1 to 5.
8. A computer readable medium having stored thereon program instructions which, when executed by a processor, carry out the method of triggering pick-up of a package of virtual articles according to any one of claims 1 to 5.
CN201710621967.5A 2017-07-27 2017-07-27 Method, device and terminal for triggering and getting virtual goods package Active CN107391020B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710621967.5A CN107391020B (en) 2017-07-27 2017-07-27 Method, device and terminal for triggering and getting virtual goods package

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710621967.5A CN107391020B (en) 2017-07-27 2017-07-27 Method, device and terminal for triggering and getting virtual goods package

Publications (2)

Publication Number Publication Date
CN107391020A CN107391020A (en) 2017-11-24
CN107391020B true CN107391020B (en) 2020-04-17

Family

ID=60341883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710621967.5A Active CN107391020B (en) 2017-07-27 2017-07-27 Method, device and terminal for triggering and getting virtual goods package

Country Status (1)

Country Link
CN (1) CN107391020B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9971408B2 (en) 2016-01-27 2018-05-15 Ebay Inc. Simulating touch in a virtual environment
CN109284714A (en) * 2018-09-21 2019-01-29 上海掌门科技有限公司 Method is provided and is got in a kind of distribution of virtual objects
CN109324738A (en) * 2018-09-27 2019-02-12 维沃移动通信有限公司 A kind of virtual object data acquisition methods and mobile terminal
CN111652601B (en) * 2020-05-07 2023-11-10 腾讯科技(深圳)有限公司 Virtual article issuing and receiving method and device
CN113407093B (en) * 2021-06-21 2022-05-20 珠海格力电器股份有限公司 Electronic welfare issuing method, device, storage medium and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973769A (en) * 2014-01-29 2014-08-06 腾讯科技(深圳)有限公司 Virtual item transmitting method, receiving method, device and system
CN104598372A (en) * 2015-02-16 2015-05-06 联想(北京)有限公司 Information processing method and device
CN105224215A (en) * 2015-08-28 2016-01-06 小米科技有限责任公司 Terminal control method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442584B (en) * 2007-11-20 2011-10-26 中兴通讯股份有限公司 Touch screen mobile phone capable of improving key-press input rate
CN101661375B (en) * 2009-09-24 2012-01-18 宇龙计算机通信科技(深圳)有限公司 Touch control method, system and display terminal
CN106951173B (en) * 2012-12-27 2021-12-24 北京三星通信技术研究有限公司 Input method of intelligent terminal equipment and intelligent terminal equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973769A (en) * 2014-01-29 2014-08-06 腾讯科技(深圳)有限公司 Virtual item transmitting method, receiving method, device and system
CN104598372A (en) * 2015-02-16 2015-05-06 联想(北京)有限公司 Information processing method and device
CN105224215A (en) * 2015-08-28 2016-01-06 小米科技有限责任公司 Terminal control method and device

Also Published As

Publication number Publication date
CN107391020A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
CN107391020B (en) Method, device and terminal for triggering and getting virtual goods package
CN106156228B (en) Resource distribution system, resource distribution method and resource pickup method
US20220075518A1 (en) Fast Data Copying Method and Electronic Device
AU2022211850B2 (en) Application function implementation method and electronic device
US11798107B2 (en) Scenario-based application recommendation method and apparatus
CN110417988B (en) Interface display method, device and equipment
US10956280B2 (en) Data backup method, electronic device, and storage medium
US11287944B2 (en) Application window display method and terminal
KR20190046960A (en) A method, device and mobile terminal for associating a notification message
WO2017059676A1 (en) Smart card read/write methods and devices
WO2019028912A1 (en) Application switching method and device
US20140372541A1 (en) System and method for action-based input text messaging communication
US10922193B2 (en) Data backup method, storage medium, and terminal
CN106547844A (en) A kind for the treatment of method and apparatus of user interface
WO2015043405A1 (en) Service processing method, apparatus, and electronic device
CN108780400B (en) Data processing method and electronic equipment
US20160274736A1 (en) Synchronized multi-window interaction with hierarchical data on thin-client
CN112184469A (en) Group interaction method, device, equipment and storage medium
CN108959062B (en) Webpage element acquisition method and device
CN106201220B (en) Display content acquisition method and device
CN109451295A (en) A kind of method and system obtaining virtual information
CN112306704B (en) Numerical packet transfer method, terminal, server, system and storage medium
CN114765696A (en) Multimedia data publishing method and device, electronic equipment and storage medium
CN116088714A (en) Message prompt box processing method and related device
CN118092746A (en) Multimedia content sharing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

GR01 Patent grant
GR01 Patent grant