CN111258486A - Information sharing method and device, electronic equipment and storage medium - Google Patents

Information sharing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111258486A
CN111258486A CN202010020456.XA CN202010020456A CN111258486A CN 111258486 A CN111258486 A CN 111258486A CN 202010020456 A CN202010020456 A CN 202010020456A CN 111258486 A CN111258486 A CN 111258486A
Authority
CN
China
Prior art keywords
sharing
display page
bar
content
displaying
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010020456.XA
Other languages
Chinese (zh)
Other versions
CN111258486B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010020456.XA priority Critical patent/CN111258486B/en
Publication of CN111258486A publication Critical patent/CN111258486A/en
Application granted granted Critical
Publication of CN111258486B publication Critical patent/CN111258486B/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
    • 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

Landscapes

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

Abstract

The invention provides an information sharing method, device, equipment and storage medium; the method comprises the following steps: responding to a sharing operation received in a display page, displaying a sharing bar in the display page, and displaying at least one sharing control in the sharing bar; and responding to the triggering operation aiming at the sharing control, and sending the content in the display page to a sharing object associated with the triggered sharing control. By the method and the device, the user can share the information through simple and quick operation.

Description

Information sharing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to artificial intelligence technologies, and in particular, to an information sharing method and apparatus, an electronic device, and a storage medium.
Background
Artificial Intelligence (AI) is a theory, method and technique and application system that uses a digital computer or a machine controlled by a digital computer to simulate, extend and expand human Intelligence, perceive the environment, acquire knowledge and use the knowledge to obtain the best results.
With the development of artificial intelligence technology, content of interest to a user is often acquired based on the artificial intelligence technology, and the user wishes to share the content of interest to other users or various platforms. However, as the functions of the client are increasingly complex, the user often needs to perform multiple operations to share the content when sharing, and the efficiency of information sharing is affected due to the complexity of the sharing operation.
Disclosure of Invention
Embodiments of the present invention provide an information sharing method and apparatus, an electronic device, and a storage medium, which enable a user to implement information sharing through simple and fast operations.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides an information sharing method, which comprises the following steps:
responding to a sharing operation received in a display page, displaying a sharing bar in the display page, and displaying at least one sharing control in the sharing bar;
and responding to the triggering operation aiming at the sharing control, and sending the content in the display page to a sharing object associated with the triggered sharing control.
An embodiment of the present invention provides an information sharing apparatus, including:
the interaction module is used for responding to the sharing operation received in the display page, displaying a sharing bar in the display page and displaying at least one sharing control in the sharing bar;
and the sharing module is used for responding to the triggering operation aiming at the sharing control and sending the content in the display page to the sharing object associated with the triggered sharing control.
In the above scheme, the interaction module is further configured to, in response to an operation of taking the first position of the display page as an initial position and sliding to the second position of the display page, display the sharing bar at a position in the display page corresponding to the sliding direction, and adjust the transparency of the sharing bar according to the sliding current position.
In the above scheme, the first position is a first edge, and the second position is a second edge; the interaction module is further used for acquiring a touch event of the display page and acquiring an initial coordinate of a touch point in the display page from the touch event; when the initial coordinate of the touch point is located at the first edge, determining the corresponding touch event as an edge touch event; when the edge touch event is a sliding type touch event, acquiring a sliding direction of a touch point in the edge touch event; when the sliding direction of the touch point is a direction from the first edge to the second edge, displaying a sharing bar at a position corresponding to the sliding direction in the display page.
In the above scheme, the interaction module is further configured to obtain a touch event of the display page, and obtain a distance between a current position where a touch point slides and the first edge from the touch event; and determining the transparency degree of the sharing bar according to the width of the display page and the distance between the current position where the touch point slides and the first edge, and applying the determined transparency degree to the sharing bar.
In the above scheme, the interaction module is further configured to determine the transparency degree of the sharing bar according to a formula alpha ═ screen widht/x + k; wherein alpha is the transparency of the sharing bar, x is the distance between the current position where the touch point slides and the first edge, the screen wi dht is the width of the display page, the width of the display page is the distance between the first edge and the second edge, and k is a preset constant.
In the above scheme, the sharing module is further configured to send the content to be shared to a sharing object associated with the triggered sharing control when the content to be shared is calibrated in the display page by the sharing operation; and when the sharing operation does not mark the content to be shared in the page, taking the whole content of the displayed page as the content to be shared, and sending the content to be shared to a sharing object associated with the triggered sharing control.
In the above scheme, the interaction module is further configured to respond to a preset sharing operation that does not conflict with a registered operation, and display the sharing bar on the display page; or responding to a sharing operation which is set by a user in a self-defined way and does not conflict with the registered operation, and displaying the sharing bar on the display page.
In the foregoing scheme, the interaction module is further configured to, when the number of the sharing controls to be displayed is multiple, display the multiple sharing controls according to one of the following sorting manners: the use frequency of the sharing objects associated with the plurality of sharing controls is in a descending order or an ascending order; the descending order or the ascending order of the last use time of the sharing objects associated with the plurality of sharing controls; the downloading popularity of the sharing objects associated with the sharing controls in the application market is in a descending order or an ascending order; a user-defined order of the plurality of sharing controls; wherein the type of the sharing object associated with the sharing control comprises at least one of the following types: a social network contact; an email contact.
In the above scheme, the interaction module is further configured to display the sharing bar in a position corresponding to the specific direction in the display page in response to the sliding operation in the specific direction received in the client; when the triggering operation is a releasing operation of the sliding operation towards the specific direction, the sharing module is further configured to respond to the releasing operation and send the content in the display page to a sharing object associated with the triggered sharing control; and the triggered sharing control is located at the release position of the sliding operation.
In the above scheme, the sharing module is further configured to send the content in the display page to an authorized sharing object when the sharing object selected by the triggering operation and associated with the sharing control needs to be authorized and has been authorized; when the sharing object selected by the triggering operation and associated with the sharing control needs to be authorized and is not authorized, prompting a user to authorize, and after authorization is obtained, sending the content in the display page to the authorized sharing object; and when the sharing object selected by the triggering operation and associated with the sharing control does not need to be authorized, directly sending the content in the display page to the sharing object.
In the above scheme, the sharing module is further configured to jump from a display page of the client to a sharing page that displays a corresponding sharing object, so as to display content to be shared in the display page in the sharing page, and send the content to be shared to the sharing object associated with the sharing control; or continuing to display the display page of the client, and sending the content in the display page to the sharing object associated with the sharing control.
In the above scheme, the information sharing apparatus further includes: a cancellation module, configured to, in response to a sharing cancellation operation received in the client, stop displaying the sharing bar in a display page of the client when a release position of a touch point of the sharing cancellation operation is located in a sharing stop area; or when the time for displaying the sharing bar on the display page of the client exceeds a sharing time threshold, stopping displaying the sharing bar in the display page of the client; or when the time for displaying the sharing bar on the display page does not exceed the sharing time threshold and the release position of the touch point is not located in the area where the sharing control is located, stopping displaying the sharing bar in the display page.
In the above scheme, the information sharing apparatus further includes: the determining module is used for acquiring the release position of the touch point from the touch event when the transparency degree of the sharing bar reaches a transparency degree threshold; and when the release position of the touch point is located in the area where the sharing control is located, determining the corresponding touch event as a trigger operation for the sharing control.
In the above scheme, the information sharing apparatus further includes: and the calling module is used for calling a platform interface of a sharing object associated with the sharing control corresponding to the release position and sending the content in the display page to the sharing object.
In the above scheme, the information sharing apparatus further includes: the special effect module is used for presenting a special effect associated with the sharing control when the touch point of the trigger operation moves to the area where the sharing control is located; wherein the type of special effect comprises at least one of: visual feedback; auditory feedback; tactile feedback.
An embodiment of the present invention provides an electronic device, including:
a memory for storing executable instructions;
and the processor is used for realizing the information sharing method provided by the embodiment of the invention when the executable instruction stored in the memory is executed.
The embodiment of the invention provides a storage medium, which stores executable instructions and is used for causing a processor to execute so as to realize the information sharing method provided by the embodiment of the invention.
The embodiment of the invention has the following beneficial effects:
according to the method and the device for sharing the display page, the sharing column is called out according to the sharing operation received in the display page, compared with the related technology, the time for calling out the sharing control in the menu of the client and the display space for fixedly displaying the sharing control in the client are saved, the sharing function can be flexibly used in any displayed page of the client, the information sharing efficiency is improved, and therefore the operation experience of a user is improved.
Drawings
Fig. 1 is a schematic diagram of an architecture of an information sharing system 100 according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an electronic device 500 according to an embodiment of the present invention;
fig. 3A is a schematic flowchart of an information sharing method according to an embodiment of the present invention;
fig. 3B is a schematic view of an application scenario of the information sharing method according to the embodiment of the present invention;
fig. 3C is a schematic view of an application scenario of the information sharing method according to the embodiment of the present invention;
fig. 3D is a schematic view of an application scenario of the information sharing method according to the embodiment of the present invention;
fig. 3E is a schematic view of an application scenario of the information sharing method according to the embodiment of the present invention;
fig. 4 is a schematic flowchart of an information sharing method according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of an information sharing method according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of an information sharing method according to an embodiment of the present invention;
fig. 7 is a schematic diagram illustrating an information sharing method according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail with reference to the accompanying drawings, the described embodiments should not be construed as limiting the present invention, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to be limiting of the invention.
Before further detailed description of the embodiments of the present invention, terms and expressions mentioned in the embodiments of the present invention are explained, and the terms and expressions mentioned in the embodiments of the present invention are applied to the following explanations.
1) In response to the condition or state on which the performed operation depends, one or more of the performed operations may be in real-time or may have a set delay when the dependent condition or state is satisfied; there is no restriction on the order of execution of the operations performed unless otherwise specified.
2) Touch events, which provide the ability to interpret touch point activity on a touch screen or touchpad, record the touch point's attributes, including time and location.
3) The client may be any application program that can run in the terminal, and may be a native APP (native APP) in the terminal, and the Web APP (Web APP, also referred to as an applet) or a Hybrid APP (Hybrid APP) may be used for various purposes, such as a social network client, a browser, a short video client, a live broadcast client, and the like.
4) The sharing object may be a social network contact (e.g.: friends associated with the social account, an information exchange platform associated with the social account, or an exchange group associated with the social account), email contacts, or sms contacts.
Embodiments of the present invention provide an information sharing method and apparatus, an electronic device, and a storage medium, which enable a user to implement information sharing through simple and fast operations. An exemplary application of the information sharing method according to the embodiment of the present invention is described below, and the information sharing method according to the embodiment of the present invention may be implemented by various electronic devices, for example, a server, a terminal (for example, a computer, a smart phone with an artificial intelligence core, or the like), or may be implemented by cooperation between the server and the terminal.
An exemplary application system architecture of a terminal implementing the information sharing method according to the embodiment of the present invention is described below by taking an electronic device as an example of the terminal, referring to fig. 1, fig. 1 is a schematic architecture diagram of an information sharing system 100 according to the embodiment of the present invention, and fig. 1 shows a server 200, a network 300, and a terminal 400, which will be described separately.
The server 200 is configured to obtain content to be shared by the user according to the parameter submitted by the client 410 and send the content to the client 410.
The network 300 is used as a medium for communication between the server 200 and the terminal 400, and may be a wide area network or a local area network, or a combination of both.
The terminal 400 is configured to run a client 410, where the client 410 may be various Applications (APPs) with a sharing function, such as a social APP, a short video APP, or a news APP, and may request the server 200 to acquire content to be shared by a user in the client, display a sharing bar on a display page of the client in response to a sharing operation for the content to be shared by the user, and display at least one sharing control (or sharing button) in the sharing bar; and is further configured to send, in response to a trigger operation for the sharing control, the content to be shared by the user to the sharing object associated with the sharing control, which will be described in detail below.
Next, a structure of an electronic device for implementing an information sharing method according to an embodiment of the present invention is described, and as described above, the electronic device according to the embodiment of the present invention may be the terminal 400 shown in fig. 1. Referring to fig. 2, fig. 2 is a schematic structural diagram of an electronic device 500 according to an embodiment of the present invention, where the electronic device 500 shown in fig. 2 includes: at least one processor 510, memory 550, at least one network interface 520, and a user interface 530. The various components in the electronic device 500 are coupled together by a bus system 540. It is understood that the bus system 540 is used to enable communications among the components. The bus system 540 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 540 in fig. 2.
The Processor 510 may be an integrated circuit chip having Signal processing capabilities, such as a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like, wherein the general purpose Processor may be a microprocessor or any conventional Processor, or the like.
The user interface 530 includes one or more output devices 531 enabling presentation of media content, including one or more speakers and/or one or more visual display screens. The user interface 530 also includes one or more input devices 532, including user interface components to facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
The memory 550 may comprise volatile memory or nonvolatile memory, and may also comprise both volatile and nonvolatile memory. The non-volatile Memory may be a Read Only Memory (ROM), and the volatile Memory may be a Random Access Memory (RAM). The memory 550 described in connection with embodiments of the invention is intended to comprise any suitable type of memory. Memory 550 optionally includes one or more storage devices physically located remote from processor 510.
In some embodiments, memory 550 can store data to support various operations, examples of which include programs, modules, and data structures, or subsets or supersets thereof, as exemplified below.
An operating system 551 including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;
a network communication module 552 for communicating to other computing devices via one or more (wired or wireless) network interfaces 520, exemplary network interfaces 520 including: bluetooth, wireless compatibility authentication (WiFi), and Universal Serial Bus (USB), etc.;
a display module 553 for enabling presentation of information (e.g., a user interface for operating peripherals and displaying content and information) via one or more output devices 531 (e.g., a display screen, speakers, etc.) associated with the user interface 530;
an input processing module 554 to detect one or more user inputs or interactions from one of the one or more input devices 532 and to translate the detected inputs or interactions.
In some embodiments, the information sharing apparatus provided in the embodiments of the present invention may be implemented in a software manner, and fig. 2 illustrates an information sharing apparatus 555 stored in a memory 550, which may be software in the form of a program, a plug-in, and the like, and includes the following software modules: an interaction module 5551 and a sharing module 5552. These modules may be logical functional modules and thus may be arbitrarily combined or further divided according to the functions implemented. The functions of the respective modules will be explained below.
In other embodiments, the information sharing apparatus provided in the embodiments of the present invention may be implemented by a combination of hardware and software, for example, the information sharing apparatus 555 provided in the embodiments of the present invention may be a processor in the form of a hardware decoding processor, which is programmed to execute the information sharing method provided in the embodiments of the present invention, for example, the processor in the form of the hardware decoding processor may be one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), or other electronic components.
The following describes an embodiment of the present invention by taking an example in which the client 410 in fig. 1 implements the information sharing method provided in the embodiment of the present invention. Referring to fig. 3A, fig. 3A is a schematic flow chart of an information sharing method according to an embodiment of the present invention, and the steps shown in fig. 3A will be described.
In step S101, the client responds to the sharing operation received in the display page of the client.
Here, the client may be various APPs having a sharing function, such as a social APP, a short video APP, or a search APP. The user can obtain interested contents (such as short videos, network information or pictures and the like) through the client and share the contents to a sharing object (such as a social network contact person, an email contact person or a short message contact person).
In some embodiments, the client displays the sharing bar in the display page of the client in response to a preset sharing operation which does not conflict with the registered operation.
As an example, the sharing operation may be various forms of operations that are preset by the operating system and do not conflict with the registered operation, such as: the method comprises the steps of sliding operation according to a specific track or direction, click operation of single click or multi-click (single-finger click operation or multi-finger click operation) or voice operation, wherein the sliding operation is preset by an operating system according to the specific track or direction.
In other embodiments, the client displays the sharing bar in the display page of the client in response to the sharing operation which is set by the user in a customized manner and does not conflict with the registered operation.
As an example, the sharing operation may be various types of operations that are user-defined and do not conflict with the registered operation, such as a sliding operation in a specific track or direction, a click operation of one click or multiple clicks, or a voice operation that is user-defined.
For example, after the user-defined sharing operation, the operating system may perform conflict detection according to the user-defined sharing operation to detect whether the user-defined sharing operation and the registered operation have a logic conflict (i.e., whether the registered operation includes the user-defined sharing operation), and when there is a logic conflict, prompt the user; and when no logic conflict exists, setting the operation defined by the user as the sharing operation.
It should be noted that the sharing operation may be an operation at an operating system level (that is, all the clients in the terminal may share information through the same sharing operation), or may be an operation at a client level (that is, only a specific client in the terminal may share information through the sharing operation).
In step S102, the client displays a sharing bar in the display page.
Here, the sharing bar covers a part of the display page of the client, and may be an arbitrary area in the display page of the client. The sharing bar can cover the area located in the center of the screen and also can cover the area located at the edge of the screen, and when the sharing bar is located in the area at the edge of the screen, the shielding degree of the sharing bar on the page can be reduced to the greatest extent. The client may display the sharing bar in a top layer of the display page, where the top layer display sharing bar is based on a viewing direction of a viewer, and the sharing bar is located on the top layer of the display page in the viewing direction, so that the viewer cannot perceive content in a corresponding area of the sharing bar in the display page.
In some embodiments, when the sharing operation is a sliding operation in a specific direction, the sliding operation may be an operation of sliding at an arbitrary position in the display page. Taking sliding from a first position to a second position of the displayed page as an example, step S101 and step S102 specifically include: and the client responds to the operation of sliding to the second position of the display page by taking the first position of the display page of the client as the initial position, displays the sharing bar at the position corresponding to the sliding direction in the display page of the client, and adjusts the transparency degree of the sharing bar according to the sliding current position.
Here, the first position and the second position of the display page may be any regions in the display page (for example, regions of edges or regions of the center).
Referring to fig. 3B, the first and second positions of the display page may be a region a (a region displaying a left edge of the page), a region B (a region displaying an upper edge of the page), a region C (a region displaying an upper center of the page), a region D (a region displaying a lower edge of the page), a region E (a region displaying a lower center of the page), or a region F (a region displaying a right edge of the page) in fig. 3B. It should be noted that the first position and the second position do not only include the above listed regions, and the first position and the second position may be any region in the display page.
As an example, when the first position and the second position of the display page are both areas of the edge of the display page, the process of displaying the sharing bar specifically includes: the method comprises the steps that a client side obtains a touch event of a display page, and obtains initial coordinates of a touch point in the display page from the touch event; when the initial coordinate of the touch point is located at the first edge, determining the corresponding touch event as an edge touch event; when the edge touch event is a sliding type touch event, acquiring a sliding direction of a touch point in the edge touch event; when the sliding direction of the touch point is a direction from the first edge to the second edge, the sharing bar is displayed at a position corresponding to the sliding direction in the display page.
Here, the first edge and the second edge may be in an opposing relationship or may be in an adjacent relationship. For example, referring to fig. 3B, the first edge is a region a (a region where the left edge of the page is displayed) and the second edge is a region F (a region where the right edge of the page is displayed), or the first edge is a region a (a region where the left edge of the page is displayed) and the second edge is a region D (a region where the lower edge of the page is displayed).
When a display page of the client is displayed in a full screen mode in a screen, a first edge and a second edge of the display page are positions of screen edges respectively; when the display page of the client is not displayed in a full screen mode in the screen, the first edge and the second edge of the display page are positions inside the screen respectively.
The process of adjusting the transparency of the sharing bar is described next. The transparency of the sharing bar is 100% before the sharing operation is received (i.e. the sharing bar is completely transparent), and when the sharing operation is received, the transparency is gradually reduced from the transparency of 100%.
As one example, the transparency level of the share bar is gradually decreased from fully transparent (i.e., transparency of 100%) to fully opaque (i.e., transparency of 0) according to the distance of the swipe (i.e., the distance between the current position and the first position of the swipe). The process of adjusting the transparency of the sharing bar specifically comprises the following steps: when the sliding distance is zero, applying a completely transparent transparency degree to the sharing bar; acquiring a touch event of a display page, and acquiring the distance between the current position and the first position of the sliding of a touch point from the touch event; and determining the transparency degree of the sharing bar according to the width of the display page and the distance between the current position of the sliding of the touch point and the first edge, applying the determined transparency degree to the sharing bar, and applying the determined transparency degree to the sharing bar.
And when the sliding distance along with the touch point is increased and the transparency degree of the sharing bar is equal to the transparency threshold, displaying the sharing bar by using the transparency threshold, and activating the sharing function.
Here, the transparency threshold may be 0 (i.e., a fully opaque display) when the share bar causes an occlusion of the corresponding content of the displayed page in the area of the share bar. The threshold value of the transparency degree may also be any value between 0 and 1, for example, 20%, at this time, the sharing bar is displayed with a partially transparent effect, and meanwhile, the sharing bar does not block corresponding content in the display page, which is located in the area of the sharing bar, so that rapid sharing may be implemented without affecting the user's viewing of the content of the display page.
For example, the process of determining the transparency level of the sharing bar specifically includes: determining the transparency degree of the sharing bar according to a formula alpha ═ screen Widht/x + k; wherein, alpha is the transparency of the sharing bar, x is the distance between the current position where the touch point slides and the first edge, screen widht is the width of the display page, the width of the display page is the distance between the first edge and the second edge, and k is a preset constant.
For example, the process of determining the transparency level of the sharing bar specifically includes: determining a product of the distance of the slip and the correction factor; and determining the ratio between the width of the display page and the product as the transparency degree of the sharing bar, wherein the correction factor is larger than 0. When the correction factor is larger than 1, the sharing bar can be quickly presented, and the effect that the sharing bar is displayed according to sliding is achieved.
For example, referring to fig. 3C, fig. 3C is a schematic view of an application scenario of the information sharing method according to the embodiment of the present invention. In fig. 3C, when the user slides from the left side to the right side of the page while browsing any page, the sharing bar 301 is displayed in the page, and the transparency degree of the sharing bar 301 gradually decreases from being completely transparent along with the sliding distance of the user touch point until the sharing bar is displayed in a completely opaque form. The distance between the touch point and the left side of the page is a, the distance between the left side and the right side of the page is b, and the transparency degree of the sharing bar is b/a. When the sliding distance of the touch point is larger, the transparency degree of the sharing bar is smaller; the smaller the sliding distance of the touch point, the greater the transparency of the sharing bar.
As another example, when the first position of the display page is an area at the edge of the display page and the second position of the display page is an area at the center of the display page, the process of displaying the sharing bar specifically includes: the method comprises the steps that a client side obtains a touch event of a display page, and obtains initial coordinates of a touch point in the display page from the touch event; when the initial coordinate of the touch point is located at the first edge, determining the corresponding touch event as a target touch event; when the target touch event is a sliding-type touch event, acquiring the sliding direction of a touch point in the target touch event; when the sliding direction of the touch point is a direction pointing from the first edge to the second position, the sharing bar is displayed at a position corresponding to the sliding direction in the display page.
As another example, when the first position and the second position of the display page are both areas in the center of the display page, the process of displaying the sharing bar specifically includes: the method comprises the steps that a client side obtains a touch event of a display page, and obtains initial coordinates of a touch point in the display page from the touch event; when the initial coordinate of the touch point is located at the first position, determining the corresponding touch event as a target touch event; when the target touch event is a sliding-type touch event, acquiring the sliding direction of a touch point in the target touch event; and when the sliding direction of the touch point is a direction pointing from the first position to the second position, displaying the sharing bar at a position corresponding to the sliding direction in the display page.
As another example, when the first position of the display page is a region in the center of the display page and the second position of the display page is a region at the edge of the display page, the process of displaying the sharing bar specifically includes: the method comprises the steps that a client side obtains a touch event of a display page, and obtains initial coordinates of a touch point in the display page from the touch event; when the initial coordinate of the touch point is located at the first position, determining the corresponding touch event as a target touch event; when the target touch event is a sliding-type touch event, acquiring the sliding direction of a touch point in the target touch event; when the sliding direction of the touch point is a direction from the first position to the second edge, the sharing bar is displayed at a position corresponding to the sliding direction in the display page.
In some embodiments, the client identifies movement of a touch point that shares the selection operation; acquiring the moving direction of a touch point; determining the moving speed of the touch point, and synchronously updating the transparency degree of the sharing bar displayed on the floating layer of the client side until the sharing bar is displayed in a non-transparent form in the display page; the change value of the transparency degree of the sharing bar and the moving speed of the touch point are in a positive correlation relationship, namely, the faster the moving speed of the touch point is, the greater the change of the transparency degree of the sharing bar is; the slower the movement speed of the touch point is, the less the change in the transparency of the sharing bar is.
In some embodiments, when the sharing operation is a click operation, the steps S101 and S102 specifically include: and the client responds to the click operation in the target area of the display page of the client, and displays the sharing bar at the position corresponding to the click times or the click position in the top layer of the display page of the client.
It should be noted that the sharing bar is not displayed in the display page before the sharing operation, or is displayed with 100% transparency (i.e., completely transparent), and the sharing bar is displayed only when the client receives the sharing operation.
In step S103, the client displays at least one sharing control in the sharing bar.
Here, the sharing control in the sharing bar may correspond to different types of social networks one to one, or may correspond to a specific contact or a contact group of a specific type of social network one to one.
In some embodiments, when multiple (i.e., at least two) sharing controls need to be displayed in the sharing bar, the multiple sharing controls are displayed from top to bottom or from left to right in one of the following orders: descending or ascending the use frequency of the sharing objects associated with the plurality of sharing controls; descending or ascending order of the last use time of the sharing objects associated with the plurality of sharing controls; the downloading heat of the sharing objects associated with the sharing controls in the application market is in a descending order or an ascending order; the value of the share objects associated with the plurality of share controls in the application market is in a descending or ascending order; a user-defined order of the plurality of sharing controls.
Here, the type of the sharing object associated with the sharing control includes at least one of: social network contacts (e.g., friends associated with a social account, an information exchange platform associated with a social account, or an exchange group associated with a social account); an email contact; and (5) short message contact persons.
As an example, the sharing bar may be sorted according to the association degree between the sharing object associated with the sharing control and the user. For example, when the frequency of using the application a is higher than the frequency of using the application B within a preset time (e.g., 3 days or 6 hours), the priority of the sharing control displayed in the sharing bar is higher than the priority of the sharing control displayed in the sharing bar, and when the user triggers the sharing control displayed in the application a, the corresponding contact or information exchange platform of the user in the application a is displayed.
It should be noted that, the sharing bar may simultaneously display a sharing control associated with the application a and a sharing control associated with a contact or an information exchange platform corresponding to the user in the application a.
For example, when the user a contacts the user B more frequently than the user C within a preset time (e.g., 3 days or 6 hours), the sharing control associated with the user B is displayed in the sharing bar with a higher priority than the sharing control associated with the user C.
For example, four different sharing controls 302 are arranged and displayed in the sharing bar 301 of fig. 3C from top to bottom.
In the prior art, the sharing operation is performed outside the area of the display page, for example, the sharing control is always displayed in the display page (or the sharing control is hidden in a menu always displayed on the display page), however, the sharing operation in the embodiment of the present invention is performed inside the area of the corresponding display page in the client, and the sharing control is not displayed in the display page, so that the display space can be saved, the interference of the user in viewing the content in the display page is reduced, and the user can concentrate on viewing the content in the display page.
In step S104, the client responds to the triggering operation for the sharing control.
Here, the trigger operation may be various forms of operations, such as: a sliding operation according to a specific track or direction, a click operation of one click or multiple clicks, or a voice operation.
In some embodiments, the sharing operation and the triggering operation may be coherent. For example, when the sharing operation is a sliding operation in a specific direction and the trigger operation is a release operation (or a release operation after pressing) of the sliding operation in the specific direction, the client displays the sharing bar in a position corresponding to the specific direction in the top layer of the display page in response to the sliding operation in the specific direction received in the client; and the client responds to the releasing operation of the sliding operation towards the specific direction, wherein the releasing position of the touch point in the releasing operation is located in the area where the sharing control is located.
In some embodiments, the sharing operation and the triggering operation may be independent. For example, when the sharing operation and the triggering operation are both click operations, the client responds to the click operation in the target area of the display page of the client, and displays a sharing bar at the click position corresponding to the touch point in the display page; the client responds to the click operation aiming at the sharing control, wherein the click position of the touch point in the click operation is located in the area where the sharing control is located.
In step S105, the client sends the content in the display page to the sharing object associated with the triggered sharing control.
In some embodiments, when the sharing operation marks the content to be shared in the display page, the client uses the content marked in the display page by the sharing operation as the content to be shared, and sends the content to be shared to the sharing object associated with the triggered sharing control; and when the sharing operation does not mark the content to be shared in the page, the client takes the whole content of the displayed page as the content to be shared and sends the content to be shared to the sharing object associated with the triggered sharing control.
As an example, the content shared by the user may be part of the content of the display page, and the sharing operation is a continuous operation with a track, and the operation may be used to trigger the sharing bar and calibrate the content to be shared; for example, content inside a closed track (for example, a circular shape, a square shape, or an irregular shape) formed by a specific operation may be recognized as content to be shared, once the content to be shared is recognized, a sharing bar is displayed, and a sharing object corresponding to a release position of the sharing operation is recognized as a target sharing object.
For example, referring to fig. 3D, fig. 3D is a schematic view of an application scenario of the information sharing method according to the embodiment of the present invention. In fig. 3D, the content 303 to be shared in the closed track formed by the specific operation is shared to the sharing object corresponding to the release position. Of course, the track of the sharing operation is not limited to the above form, as long as the track of the touch point sliding is continuous, the track forms a closed area, and the end point of the track is located in one sharing control in the sharing bar.
As another example, the content shared by the users may be the entire content of the display page, such as a link of the display page or the original content in the display page.
As another example, if the content to be shared in the display page is targeted in the sharing operation, the content to be shared is sent to the sharing object; if not, the entire content of the display page (e.g., the links of the display page or the original content in the display page) is sent to the sharing object by default.
In some embodiments, when the sharing object selected by the triggering operation and associated with the sharing control needs to be authorized and is authorized, the content in the display page is sent to the authorized sharing object; when the sharing object selected by the triggering operation and associated with the sharing control needs to be authorized and is not authorized, prompting a user to authorize, and after the authorization is obtained, sending the content in the display page to the authorized sharing object; and when the sharing object selected by the triggering operation and associated with the sharing control does not need authorization, directly sending the content in the display page to the sharing object.
As an example, after a sharing object is selected, an authorization identifier stored in a client is searched, and if the authorization identifier corresponding to the sharing object exists, it indicates that the sharing object is authorized; if the corresponding authorization identifier of the shared object does not exist, prompting the user to authorize the corresponding shared object, automatically entering an authorization page of the shared object when the user determines to authorize, and inputting a corresponding user name and a password for authorization authentication; and after the authorization authentication is successful, returning an authorization identifier, and after receiving the authorization identifier, sending the content in the display page and the authorization identifier to the corresponding sharing object through the platform interface of the authorized sharing object so as to ensure that the user can successfully complete the sharing.
Here, the client may or may not jump to the content in the page sharing display page.
In some embodiments, when sharing content in a display page, the process of the client jumping to the page specifically includes: and skipping from a display page of the client to a sharing page displaying the corresponding sharing object so as to display the content to be shared in the display page in the sharing page, sending the content to be shared to the sharing object associated with the sharing control, and displaying the shared notification in the sharing bar after sending.
As an example, a display page of a client jumps to a sharing page corresponding to a sharing object to share content in the display page in the sharing page, and a return control is provided in the sharing page.
As another example, a prompt window is displayed in a display page of the client, and when the user confirms sharing in the prompt window, the user jumps to a sharing page corresponding to the sharing object from the display page of the client to share content in the display page in the sharing page, and provides a return control in the sharing page.
Here, the return control is used to return to the display page of the client from the sharing page.
For example, referring to fig. 3E, fig. 3E is a schematic view of an application scenario of the information sharing method according to the embodiment of the present invention. In fig. 3E, a jump is made from the display page of the client to the sharing page corresponding to the sharing object, and a return control 304 is provided in the sharing page, where the return control 304 is used to return to the display page of the client from the sharing page.
In other embodiments, the client continues to display the display page of the client (i.e., no jump occurs), sends the content in the display page to the sharing object associated with the sharing control, and displays the shared notification in the sharing bar after sending.
Here, the displaying of the shared notification may be displaying a notification in a text prompt form on the display page, or changing a display effect of the sharing control on the display page.
As an example, a sharing window corresponding to the sharing object is displayed in a floating layer in a display page of the client, so as to share content in the display page in the sharing window.
As another example, content in the display page is sent from a background of the client to the sharing object associated with the sharing control, and a prompt corresponding to the sharing status is fed back in the sharing control.
According to the embodiment of the invention, sharing can be completed without page skipping, so that the sharing efficiency of the user is improved, and the user experience is improved.
In some embodiments, when the sharing operation is a sliding operation in a specific direction, the steps S101 to S105 specifically include: the client responds to the sliding operation in the specific direction received in the client, and displays a sharing bar in a position corresponding to the specific direction in the top layer of the display page; when the triggering operation is a releasing operation of a sliding operation towards a specific direction, responding to the releasing operation, and sending content (which may be all content of a display page, partial content of the display page or a link of the display page) in the display page to a sharing object associated with the triggered sharing control; and the triggered sharing control is located at the release position of the sliding operation.
For example, in fig. 3C, when the user slides from the left edge to the right edge of the page while browsing any page, the sharing bar is displayed in the page, and when the touch point moves to the sharing control in the sharing bar for releasing, the content in the displayed page is sent to the sharing object associated with the triggered sharing control.
In some embodiments, before the client sends the content in the display page to the sharing object associated with the triggered sharing control, the client pops up the claim editing window in the display page, allows the user to claim the claim editing window, for example, a comment of the user for the content to be shared may be made, and sends the claim of the user and the content to be shared together to the sharing object.
According to the embodiment of the invention, the sharing bar and the sharing control are displayed on the display page in the client in response to the sharing operation of the user, and the content in the display page can be shared in response to various trigger operations aiming at the sharing control, so that the user can conveniently and quickly share the content in which the user is interested, and the use experience of the user is improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating an information sharing method according to an embodiment of the present invention, and based on fig. 3A, step S106 may be included after step S103.
In step S106, the client stops displaying the sharing bar in the display page.
In some embodiments, the display of the share bar in the display page of the client is stopped when the time the display page of the client displays the share bar exceeds the share time threshold.
In other embodiments, in response to a sharing cancellation operation received in the client, when a release position of a touch point of the sharing cancellation operation is located in the sharing stop area, the display of the sharing bar is stopped in the display page of the client.
As an example, when the sharing operation is a sliding operation in a specific direction, the client displays a sharing bar in a position corresponding to the specific direction in the top layer of the display page in response to the sliding operation in the specific direction received in the client; when the sharing cancellation operation is a release operation of a sliding operation in a specific direction, in response to the release operation, when a release position of a touch point of the release operation is located in a sharing stop area, the display of the sharing bar is stopped in the display page of the client. The sharing stop area may be any area of the display page except for the area where the sharing bar is located, for example, the sharing stop area is a bottom area or a top area of the display page.
In another embodiment, when the time for displaying the sharing bar on the display page does not exceed the sharing time threshold and the release position of the touch point is not in the area of the sharing control, the display of the sharing bar in the display page is stopped.
As an example, when the sharing operation is a sliding operation in a specific direction, the client displays a sharing bar in a position corresponding to the specific direction in the top layer of the display page in response to the sliding operation in the specific direction received in the client; and when the time for displaying the sharing bar on the display page does not exceed the sharing time threshold and the release position of the sliding operation in the specific direction is not in the area where the sharing control is located, stopping displaying the sharing bar in the display page of the client.
In the embodiment of the invention, the user can rapidly cancel the sharing process through the sharing cancellation operation so as to close the sharing bar, thereby facilitating the cancellation of sharing by the user and improving the operation experience of the user.
Referring to fig. 5, fig. 5 is a flowchart illustrating an information sharing method according to an embodiment of the present invention, and based on fig. 3A, steps S107 and S108 may be included before step S104, and step S105 may be replaced with step S109.
In step S107, when the transparency of the sharing bar reaches the transparency threshold, the client acquires the release position of the touch point from the touch event.
In some embodiments, the transparency threshold may be any value, for example, when the transparency threshold is completely opaque (i.e., 100%), the sharing function is activated and the user may share when the sharing bar is completely opaque; when the transparency degree of the sharing bar does not reach the complete opacity, the user needs to continue to wait for the transparency degree of the sharing bar to reach the complete opacity, and then the sharing can be performed.
In step S108, when the release position of the touch point is located in the area where the sharing control is located, the client determines the corresponding touch event as a trigger operation for the sharing control.
In some embodiments, when the release position of the touch point is located in the area where the sharing control is located, the user may continue to complete the sharing process; and when the release position of the touch point is not located in the area where the sharing control is located, stopping displaying the sharing bar in the display page of the client.
In step S109, the client invokes a platform interface of the sharing object associated with the sharing control corresponding to the release position, and sends the content in the display page to the sharing object.
In some embodiments, the client invokes an interface of the social network server or the email system to send the content in the display page to the sharing object associated with the sharing control corresponding to the release location.
In the embodiment of the invention, the user can complete information sharing only when the transparency degree of the sharing bar reaches the transparency degree threshold, so that misoperation in the user sharing process can be avoided, and the operation experience of the user is improved.
Referring to fig. 6, fig. 6 is a flowchart illustrating an information sharing method according to an embodiment of the present invention, and based on fig. 3A, step S110 may be included after step S103.
In step S110, when the touch point that triggers the operation moves to the area where the sharing control is located, a special effect associated with the sharing control is presented in the display page of the client.
Here, the type of the effect includes at least one of: visual feedback; auditory feedback; tactile feedback.
In some embodiments, the special effects presented in the client display page may be different special effects presented by different sharing controls, or may be the same special effects presented by all sharing controls, so as to prompt the user to share the content.
In the embodiment of the invention, the user can be further prompted to select the sharing object associated with the corresponding sharing control by presenting the special effect associated with the sharing control, so that the sharing efficiency of the user can be improved.
Continuing with the exemplary structure of the information sharing apparatus 555 provided by the embodiment of the present invention implemented as a software module, in some embodiments, as shown in fig. 2, the software module stored in the information sharing apparatus 555 of the memory 550 may include: an interaction module 5551 and a sharing module 5552.
The interaction module 5551 is configured to, in response to a sharing operation received in a display page, display a sharing bar on the display page, and display at least one sharing control in the sharing bar;
the sharing module 5552 is configured to, in response to a triggering operation for the sharing control, send content in the display page to the sharing object associated with the triggered sharing control.
In the foregoing solution, the interaction module 5551 is further configured to, in response to an operation of sliding to a second position of the display page with the first position of the display page as a starting position, display the sharing bar at a position in the display page corresponding to the sliding direction, and adjust the transparency of the sharing bar according to the current sliding position.
In the above scheme, the first position is a first edge, and the second position is a second edge; the interaction module 5551 is further configured to acquire a touch event of the display page, and acquire a start coordinate of the touch point in the display page from the touch event; when the initial coordinate of the touch point is located at the first edge, determining the corresponding touch event as an edge touch event; when the edge touch event is a sliding type touch event, acquiring a sliding direction of a touch point in the edge touch event; when the sliding direction of the touch point is a direction from the first edge to the second edge, the sharing bar is displayed at a position corresponding to the sliding direction in the display page.
In the above solution, the interaction module 5551 is further configured to obtain a touch event of the display page, and obtain, from the touch event, a distance between a current position where a touch point slides and the first edge; and determining the transparency degree of the sharing bar according to the width of the display page and the distance between the current position where the touch point slides and the first edge, and applying the determined transparency degree to the sharing bar.
In the above scheme, the interaction module 5551 is further configured to determine the transparency degree of the sharing bar according to a formula alpha ═ screen widht/x + k; wherein, alpha is the transparency of the sharing bar, x is the distance between the current position where the touch point slides and the first edge, screen widht is the width of the display page, the width of the display page is the distance between the first edge and the second edge, and k is a preset constant.
In the above scheme, the sharing module 5552 is further configured to send the content to be shared to a sharing object associated with the triggered sharing control when the content to be shared is calibrated in the display page in the sharing operation; and when the sharing operation does not mark the content to be shared in the page, taking the whole content of the displayed page as the content to be shared, and sending the content to be shared to the sharing object associated with the triggered sharing control.
In the above solution, the interaction module 5551 is further configured to respond to a preset sharing operation that does not conflict with a registered operation, and display a sharing bar on a display page; or responding to the sharing operation which is set by the user in a self-defined way and does not conflict with the registered operation, and displaying a sharing column on the display page.
In the foregoing solution, the interaction module 5551 is further configured to, when the number of the sharing controls to be displayed is multiple, display the multiple sharing controls according to one of the following sorting manners: descending or ascending the use frequency of the sharing objects associated with the plurality of sharing controls; descending or ascending order of the last use time of the sharing objects associated with the plurality of sharing controls; the downloading heat of the sharing objects associated with the sharing controls in the application market is in a descending order or an ascending order; a user-defined order of the plurality of sharing controls; the type of the sharing object associated with the sharing control comprises at least one of the following types: a social network contact; an email contact.
In the above solution, the interaction module 5551 is further configured to, in response to a sliding operation in a specific direction received in the client, display a sharing bar in a position corresponding to the specific direction in the display page; when the triggering operation is a releasing operation of a sliding operation in a specific direction, the sharing module 5552 is further configured to send, in response to the releasing operation, the content in the display page to the sharing object associated with the triggered sharing control; and the triggered sharing control is located at the release position of the sliding operation.
In the above scheme, the sharing module 5552 is further configured to send the content in the display page to the authorized sharing object when the sharing object selected by the trigger operation and associated with the sharing control needs to be authorized and has already been authorized; when the sharing object selected by the triggering operation and associated with the sharing control needs to be authorized and is not authorized, prompting a user to authorize, and after the authorization is obtained, sending the content in the display page to the authorized sharing object; and when the sharing object selected by the triggering operation and associated with the sharing control does not need authorization, directly sending the content in the display page to the sharing object.
In the above scheme, the sharing module 5552 is further configured to jump from the display page of the client to a sharing page displaying a corresponding sharing object, so as to display the content to be shared in the display page in the sharing page, and send the content to be shared to the sharing object associated with the sharing control; or continuing to keep displaying the display page of the client, and sending the content in the display page to the sharing object associated with the sharing control.
In the above scheme, the information sharing apparatus 555 further includes: the cancellation module is used for responding to the sharing cancellation operation received in the client, and when the release position of the touch point of the sharing cancellation operation is located in the sharing stop area, stopping displaying the sharing bar in the display page of the client; or when the time for displaying the sharing bar on the display page of the client exceeds the sharing time threshold, stopping displaying the sharing bar in the display page of the client; or when the time for displaying the sharing bar on the display page does not exceed the sharing time threshold and the release position of the touch point is not located in the area where the sharing control is located, stopping displaying the sharing bar in the display page.
In the above scheme, the information sharing apparatus 555 further includes: the determining module is used for acquiring the release position of the touch point from the touch event when the transparency degree of the sharing bar reaches a transparency degree threshold; and when the release position of the touch point is located in the area where the sharing control is located, determining the corresponding touch event as the trigger operation for the sharing control.
In the above scheme, the information sharing apparatus 555 further includes: and the calling module is used for calling the platform interface of the sharing object associated with the sharing control corresponding to the release position and sending the content in the display page to the sharing object.
In the above scheme, the information sharing apparatus 555 further includes: the special effect module is used for presenting a special effect associated with the sharing control when the touch point triggering the operation moves to the area where the sharing control is located; wherein the type of special effect comprises at least one of: visual feedback; auditory feedback; tactile feedback.
Embodiments of the present invention provide a storage medium storing executable instructions, where the executable instructions are stored, and when executed by a processor, the executable instructions will cause the processor to execute an information sharing method provided by embodiments of the present invention, for example, the method shown in fig. 3A, fig. 4, fig. 5, and fig. 6.
In some embodiments, the storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EE PROM, flash, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
In some embodiments, executable instructions may be written in any form of programming language (including compiled or interpreted languages), in the form of programs, software modules, scripts or code, and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
By way of example, executable instructions may correspond, but do not necessarily have to correspond, to files in a file system, may be stored in a portion of a file that holds other programs or data, e.g., in one or more scripts in a HyperText markup Language (H TML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
By way of example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.
In the following, an exemplary application of information sharing in an actual application scenario will be described by taking a client as a short video APP as an example.
In fig. 3C, when the user watches the short video through the short video APP and needs to share the short video, the user slides from the left side to the right side of the screen, the sharing bar 301 is displayed in the page, and the transparency of the sharing bar 301 gradually decreases from the complete transparency along with the sliding distance of the user touch point until the sharing bar is displayed in the completely opaque form. And the sharing bar 301 includes a sharing control 302, and when the release position of the touch point falls on the corresponding sharing control, the user jumps to the sharing page corresponding to the sharing control.
Referring to fig. 7, fig. 7 is a schematic diagram illustrating a principle of an information sharing method according to an embodiment of the present invention, and the following will be described in detail with reference to fig. 7.
First, a list of touch events is registered, and the width screen width (i.e., the width of the display page described above) of the screen is acquired from the list of touch events.
And secondly, monitoring a touch event of a finger (namely the touch point) in the screen, and acquiring coordinates (x, y) of the touch point in the screen from the touch event.
And thirdly, when the abscissa x of the touch point in the screen is 0, the touch point slides across the left edge of the screen.
Fourthly, judging whether the type of the touch event is a moving (Move) type or not, if so, recording the value of an abscissa x of the touch point, and calculating the transparency alpha of the sharing bar according to the value of the abscissa x of the touch point, wherein k is an arbitrary constant; if not, the user is indicated that the finger is not slid on the screen, and the second step is returned.
Here, the value of the abscissa x is the distance between the current position of the touch point sliding and the left edge of the screen.
Here, the remaining pixels of the touch point from the right edge of the screen are W ═ k/100 × screen width.
And fifthly, synchronously updating the sharing bar in the display page according to the transparency degree of the sharing bar, activating the sharing function when the sharing bar is completely opaque, and playing a selected animation according to the touch point falling in the area of the sharing button (namely the sharing control) for prompting the user that the sharing is about to be carried out at the moment.
And sixthly, jumping to a corresponding sharing page when the touch time type is that the touch point leaves from the screen (namely the touch point is released).
In summary, the embodiments of the present invention have the following beneficial effects:
the complexity of sharing operation is reduced, sharing experience of users is improved, the sharing success rate is improved, and exposure rate of short video APP on each social platform is further increased.
The above description is only an example of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present invention are included in the protection scope of the present invention.

Claims (15)

1. An information sharing method, the method comprising:
responding to a sharing operation received in a display page, displaying a sharing bar in the display page, and displaying at least one sharing control in the sharing bar;
and responding to the triggering operation aiming at the sharing control, and sending the content in the display page to a sharing object associated with the triggered sharing control.
2. The method of claim 1, wherein displaying a sharing bar on a display page in response to a sharing operation received in the display page comprises:
in response to an operation of sliding to a second position of the display page with a first position of the display page as a starting position,
displaying the sharing bar at a position corresponding to the sliding direction in the display page, and
and adjusting the transparency degree of the sharing bar according to the sliding current position.
3. The method of claim 2,
the first position is a first edge and the second position is a second edge;
the displaying the sharing bar at a position corresponding to a sliding direction in the display page in response to the operation of sliding to the second position of the display page with the first position of the display page as a starting position comprises:
acquiring a touch event of the display page, and acquiring an initial coordinate of a touch point in the display page from the touch event;
when the initial coordinate of the touch point is located at the first edge, determining the corresponding touch event as an edge touch event;
when the edge touch event is a sliding type touch event, acquiring a sliding direction of a touch point in the edge touch event;
when the sliding direction of the touch point is a direction from the first edge to the second edge, displaying a sharing bar at a position corresponding to the sliding direction in the display page;
the adjusting the transparency degree of the sharing bar according to the sliding current position comprises:
acquiring a touch event of the display page, and acquiring the distance between the current position of the sliding of the touch point and the first edge from the touch event;
and determining the transparency degree of the sharing bar according to the width of the display page and the distance between the current position where the touch point slides and the first edge, and applying the determined transparency degree to the sharing bar.
4. The method according to claim 3, wherein the determining the transparency degree of the sharing bar according to the width of the display page, the distance between the current position of the touch point sliding and the first edge comprises:
determining the transparency degree of the sharing bar according to a formula alpha ═ screen Widht/x + k;
wherein, the alpha is a transparency of the sharing bar, the x is a distance between a current position where the touch point slides and the first edge, the screen widht is a width of the display page, the width of the display page is a distance between the first edge and the second edge, and the k is a preset constant.
5. The method of claim 1, wherein sending the content in the display page to the sharing object associated with the triggered sharing control comprises:
when the sharing operation marks the content to be shared in the display page, sending the content to be shared to a sharing object associated with the triggered sharing control;
and when the sharing operation does not mark the content to be shared in the page, taking the whole content of the displayed page as the content to be shared, and sending the content to be shared to a sharing object associated with the triggered sharing control.
6. The method of claim 1, wherein displaying a sharing bar on a display page in response to a sharing operation received in the display page comprises:
responding to a preset sharing operation which is not in conflict with the registered operation, and displaying the sharing bar on the display page; or
And responding to the sharing operation which is set by a user in a self-defined way and does not conflict with the registered operation, and displaying the sharing bar on the display page.
7. The method of claim 1, wherein the displaying at least one sharing control in the sharing bar comprises:
when the number of the sharing controls to be displayed is multiple, displaying the multiple sharing controls according to one of the following sorting modes:
the use frequency of the sharing objects associated with the plurality of sharing controls is in a descending order or an ascending order;
the descending order or the ascending order of the last use time of the sharing objects associated with the plurality of sharing controls;
the downloading popularity of the sharing objects associated with the sharing controls in the application market is in a descending order or an ascending order;
a user-defined order of the plurality of sharing controls;
wherein the type of the sharing object associated with the sharing control comprises at least one of the following types: a social network contact; an email contact.
8. The method of claim 1,
when the sharing operation is a sliding operation in a specific direction, the displaying a sharing bar on a display page in response to the sharing operation received in the display page includes:
in response to the received sliding operation in the specific direction, displaying the sharing bar in a position corresponding to the specific direction in the display page;
when the triggering operation is a releasing operation of the sliding operation in the specific direction, the sending the content in the display page to the sharing object associated with the triggered sharing control in response to the triggering operation for the sharing control includes:
responding to the release operation, and sending the content in the display page to a sharing object associated with the triggered sharing control;
and the triggered sharing control is located at the release position of the sliding operation.
9. The method of claim 1, wherein sending the content in the display page to the sharing object associated with the triggered sharing control comprises:
when the sharing object selected by the triggering operation and associated with the sharing control needs to be authorized and is authorized, sending the content in the display page to the authorized sharing object;
when the sharing object selected by the triggering operation and associated with the sharing control needs to be authorized and is not authorized, prompting a user to authorize, and after authorization is obtained, sending the content in the display page to the authorized sharing object;
and when the sharing object selected by the triggering operation and associated with the sharing control does not need to be authorized, directly sending the content in the display page to the sharing object.
10. The method of claim 1, wherein sending the content in the display page to the sharing object associated with the triggered sharing control comprises:
jumping to a sharing page corresponding to the sharing object from the display page, so as to display the content to be shared in the display page in the sharing page, and sending the content to be shared to the sharing object associated with the sharing control;
or,
continuing to display the display page, and sending the content in the display page to the sharing object associated with the sharing control.
11. The method of claim 1, wherein after the display page displays the sharing bar, the method further comprises:
in response to the received sharing canceling operation, when the release position of the touch point of the sharing canceling operation is located in a sharing stop area, stopping displaying the sharing bar in the display page;
or,
when the time for displaying the sharing bar on the display page exceeds a sharing time threshold, stopping displaying the sharing bar in the display page;
or,
and when the time for displaying the sharing bar on the display page does not exceed the sharing time threshold and the release position of the touch point is not located in the area where the sharing control is located, stopping displaying the sharing bar in the display page.
12. The method of any of claims 1-11, wherein prior to the responding to the triggering operation for the sharing control, the method further comprises:
when the transparency degree of the sharing bar reaches a transparency degree threshold value, acquiring a release position of a touch point from a touch event;
when the release position of the touch point is located in the area where the sharing control is located, determining a corresponding touch event as a trigger operation for the sharing control;
the sending the content in the display page to the sharing object associated with the sharing control includes:
and calling a platform interface of a sharing object associated with the sharing control corresponding to the release position, and sending the content in the display page to the sharing object.
13. The method of any of claims 1-11, wherein after displaying at least one sharing control in the sharing bar, the method further comprises:
when the touch point of the trigger operation moves to the area where the sharing control is located, presenting a special effect associated with the sharing control;
wherein the type of special effect comprises at least one of: visual feedback; auditory feedback; tactile feedback.
14. An information sharing apparatus, comprising:
the interaction module is used for responding to the sharing operation received in the display page, displaying a sharing bar in the display page and displaying at least one sharing control in the sharing bar;
and the sharing module is used for responding to the triggering operation aiming at the sharing control and sending the content in the display page to the sharing object associated with the triggered sharing control.
15. An electronic device, comprising:
a memory for storing executable instructions;
a processor configured to implement the information sharing method according to any one of claims 1 to 13 when executing the executable instructions stored in the memory.
CN202010020456.XA 2020-01-09 2020-01-09 Information sharing method and device, electronic equipment and storage medium Active CN111258486B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010020456.XA CN111258486B (en) 2020-01-09 2020-01-09 Information sharing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010020456.XA CN111258486B (en) 2020-01-09 2020-01-09 Information sharing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111258486A true CN111258486A (en) 2020-06-09
CN111258486B CN111258486B (en) 2024-03-05

Family

ID=70945158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010020456.XA Active CN111258486B (en) 2020-01-09 2020-01-09 Information sharing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111258486B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111934985A (en) * 2020-07-31 2020-11-13 腾讯科技(深圳)有限公司 Media content sharing method, device and equipment and computer readable storage medium
CN112035026A (en) * 2020-08-31 2020-12-04 维沃移动通信有限公司 Information display method and device, electronic equipment and storage medium
CN112311563A (en) * 2020-10-30 2021-02-02 上海掌门科技有限公司 Method and device for adding friends
CN114327189A (en) * 2022-03-07 2022-04-12 深圳传音控股股份有限公司 Operation method, intelligent terminal and storage medium
CN114610423A (en) * 2022-02-11 2022-06-10 维沃移动通信有限公司 Content publishing method and device and electronic equipment
CN115033821A (en) * 2022-05-24 2022-09-09 北京达佳互联信息技术有限公司 Document display method and device, electronic equipment and storage medium
WO2022242428A1 (en) * 2021-05-21 2022-11-24 腾讯科技(深圳)有限公司 Information processing method and apparatus, device, storage medium, and program product
WO2024066864A1 (en) * 2022-09-26 2024-04-04 北京字跳网络技术有限公司 Media content sharing method and apparatus, electronic device, and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016188229A1 (en) * 2015-10-20 2016-12-01 中兴通讯股份有限公司 Terminal device and method for dynamically adjusting control position
CN106775388A (en) * 2016-11-30 2017-05-31 努比亚技术有限公司 A kind of application program launching method and mobile terminal based on edge gesture
US20170257403A1 (en) * 2014-11-03 2017-09-07 Huawei Technologies Co., Ltd. Screen Sharing Method, Sharing Device, and Receiving Device
CN107247746A (en) * 2017-05-23 2017-10-13 努比亚技术有限公司 A kind of data sharing method and terminal
CN107704154A (en) * 2017-10-19 2018-02-16 福建中金在线信息科技有限公司 navigation bar transition method and system
WO2018058749A1 (en) * 2016-09-29 2018-04-05 北京小米移动软件有限公司 Content sharing method and device
CN108762954A (en) * 2018-05-29 2018-11-06 维沃移动通信有限公司 A kind of object sharing method and mobile terminal
CN109240567A (en) * 2018-08-06 2019-01-18 网易(杭州)网络有限公司 A kind of information display method, device, storage medium and electronic device
KR20190031000A (en) * 2017-09-15 2019-03-25 삼성전자주식회사 Screenshot method and screenshot apparatus for an electronic terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170257403A1 (en) * 2014-11-03 2017-09-07 Huawei Technologies Co., Ltd. Screen Sharing Method, Sharing Device, and Receiving Device
WO2016188229A1 (en) * 2015-10-20 2016-12-01 中兴通讯股份有限公司 Terminal device and method for dynamically adjusting control position
WO2018058749A1 (en) * 2016-09-29 2018-04-05 北京小米移动软件有限公司 Content sharing method and device
CN106775388A (en) * 2016-11-30 2017-05-31 努比亚技术有限公司 A kind of application program launching method and mobile terminal based on edge gesture
CN107247746A (en) * 2017-05-23 2017-10-13 努比亚技术有限公司 A kind of data sharing method and terminal
KR20190031000A (en) * 2017-09-15 2019-03-25 삼성전자주식회사 Screenshot method and screenshot apparatus for an electronic terminal
CN107704154A (en) * 2017-10-19 2018-02-16 福建中金在线信息科技有限公司 navigation bar transition method and system
CN108762954A (en) * 2018-05-29 2018-11-06 维沃移动通信有限公司 A kind of object sharing method and mobile terminal
CN109240567A (en) * 2018-08-06 2019-01-18 网易(杭州)网络有限公司 A kind of information display method, device, storage medium and electronic device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111934985A (en) * 2020-07-31 2020-11-13 腾讯科技(深圳)有限公司 Media content sharing method, device and equipment and computer readable storage medium
CN111934985B (en) * 2020-07-31 2024-03-08 腾讯科技(深圳)有限公司 Media content sharing method, device, equipment and computer readable storage medium
CN112035026A (en) * 2020-08-31 2020-12-04 维沃移动通信有限公司 Information display method and device, electronic equipment and storage medium
CN112311563A (en) * 2020-10-30 2021-02-02 上海掌门科技有限公司 Method and device for adding friends
WO2022242428A1 (en) * 2021-05-21 2022-11-24 腾讯科技(深圳)有限公司 Information processing method and apparatus, device, storage medium, and program product
CN114610423A (en) * 2022-02-11 2022-06-10 维沃移动通信有限公司 Content publishing method and device and electronic equipment
CN114327189A (en) * 2022-03-07 2022-04-12 深圳传音控股股份有限公司 Operation method, intelligent terminal and storage medium
CN115033821A (en) * 2022-05-24 2022-09-09 北京达佳互联信息技术有限公司 Document display method and device, electronic equipment and storage medium
WO2024066864A1 (en) * 2022-09-26 2024-04-04 北京字跳网络技术有限公司 Media content sharing method and apparatus, electronic device, and storage medium

Also Published As

Publication number Publication date
CN111258486B (en) 2024-03-05

Similar Documents

Publication Publication Date Title
CN111258486B (en) Information sharing method and device, electronic equipment and storage medium
US10942616B2 (en) Multimedia resource management method and apparatus, and storage medium
CN112835478B (en) Display processing method, device and equipment for labels in client and storage medium
JP2023542666A (en) Operation method and device
CN113452744B (en) File sharing method, device, equipment and storage medium
CN107315595B (en) Desktop layout method and device and user terminal
CN111432264A (en) Content display method, device and equipment based on media information stream and storage medium
CN114779977A (en) Interface display method and device, electronic equipment and storage medium
CN113805755B (en) Desktop layout method and device and electronic equipment
CN110275741B (en) Content display method and electronic equipment
CN111796746B (en) Volume adjusting method, volume adjusting device and electronic equipment
CN115344180A (en) Multimedia data processing method, device, equipment and computer readable storage medium
CN112527175A (en) Animation implementation method, device, equipment and storage medium
CN111368234B (en) Window adjusting method, device and storage medium
CN111934985A (en) Media content sharing method, device and equipment and computer readable storage medium
US10613622B2 (en) Method and device for controlling virtual reality helmets
CN105824864A (en) Quick communication method and terminal
KR20230139368A (en) Cross-process information processing methods, controllers, terminals and storage media
CN115167721A (en) Display method and device of functional interface
CN113835578A (en) Display method and device and electronic equipment
CN106598381A (en) Parallax error animation realization method and terminal of realizing parallax error animation
CN111352548A (en) Message notification method, device, terminal device and storage medium
CN113805737A (en) File transmission method and device, computer equipment and storage medium
CN113420270B (en) Application program login method and device
CN116069429A (en) Application processing method, device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40024323

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant