Interaction method, device, equipment and product

By detecting the sliding operation rate and position of the large-screen display device, interface switching is realized, which solves the problem of inconvenient operation of large-screen devices and improves user experience and system efficiency.

CN120255780APending Publication Date: 2025-07-04LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510400629.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-31
Publication Date
2025-07-04

AI Technical Summary

Technical Problem

Due to the large screen size of the large screen display device, it is difficult for users to reach all areas, resulting in inconvenient operation and poor user experience.

Method used

By detecting the start and end positions of the sliding operation, it is determined whether the sliding rate exceeds the threshold. If it slides quickly and meets the preset conditions, the target display interface will be displayed, and the interface area ratio is different, so that interface switching can be realized.

Benefits of technology

It improves user operation efficiency and interface control accuracy, increases interaction flexibility and friendliness, reduces system resource usage, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120255780A_ABST
    Figure CN120255780A_ABST
Patent Text Reader

Abstract

The invention provides an interaction method, which comprises the following steps: in response to a sliding operation detected under the condition of a current display interface, obtaining sliding data corresponding to the sliding operation, the sliding data comprising a starting position and an ending position, and the ratio of the area of the current display interface to the area of a display area of a display device being a first numerical value; when it is determined that the sliding operation is rapid sliding, a target sliding posture is determined according to the starting position and the ending position, and rapid sliding represents that the speed of the sliding operation is larger than a preset threshold value; under the condition that the target sliding posture meets the preset condition, a target display interface corresponding to the sliding operation is displayed, the ratio of the area of the target display interface to the area of the display area is a second numerical value, and the first numerical value is different from the second numerical value. The invention further provides an interaction device, equipment and a product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to an interaction method, apparatus, device and product. Background Art

[0002] For display devices such as large screens, due to the large screen size, users need to walk back and forth to touch areas that are out of reach, and there are other situations where user operations are inconvenient and the experience is poor. Therefore, how to facilitate users to control large screens and improve the user experience is also an urgent problem to be solved. Summary of the Invention

[0003] One aspect of the present disclosure provides an interaction method, including: in response to detecting a sliding operation in the current display interface, obtaining sliding data corresponding to the sliding operation, where the sliding data includes a starting position and an ending position, and the ratio of the area of the current display interface to the area of the display area of the display device is a first value; in the case of determining that the sliding operation is a fast sliding, determining a target sliding gesture according to the starting position and the ending position, where fast sliding indicates that the rate of the sliding operation is greater than a preset threshold; in the case where the target sliding gesture meets a preset condition, displaying a target display interface corresponding to the sliding operation, and the ratio of the area of the target display interface to the area of the display area is a second value, and the first value is different from the second value.

[0004] According to an embodiment of the present disclosure, in the case where the target sliding gesture meets a preset condition, displaying a target display interface corresponding to the sliding operation includes: in response to the sliding operation being a single-touch sliding, determining a sliding inclination angle according to the starting position and the ending position; based on the width value of the display area and a preset edge value, determining a sliding effective area in the display area; and in the case where the sliding inclination angle meets a preset angle and the single-touch sliding is within the sliding effective area, displaying a target display interface corresponding to the sliding operation.

[0005] According to an embodiment of the present disclosure, the sliding operation includes N consecutive single-touch slides, where N is an integer greater than 1; the method further includes: in response to the nth single-touch slide, changing the (n - 1)th target display interface to obtain the nth target display interface, where n = 1,......, N.

[0006] According to an embodiment of the present disclosure, the interaction method further includes: in response to the sliding operation being a multi-touch sliding, displaying a target display interface corresponding to the target sliding gesture based on the target sliding gesture of the multi-touch sliding, where the target display interface includes at least one of opening a comment, lowering the half screen, opening other applications, and returning to the home page.

[0007] According to an embodiment of the present disclosure, the interaction method further includes: in response to a touch operation on an area in the display area other than the target display interface, displaying the target display interface in the display area.

[0008] According to an embodiment of the present disclosure, determining that a sliding operation is a fast sliding includes: determining a sliding distance in a first direction and a sliding distance in a second direction according to a starting position and an ending position, where the first direction and the second direction satisfy a perpendicular condition; when the sliding distance in any one of the first direction and the second direction satisfies a preset distance within a preset time period, determining a sliding rate according to the sliding distance in the first direction and the sliding distance in the second direction; and when the sliding rate is greater than a preset threshold, determining that the sliding operation is a fast sliding.

[0009] According to an embodiment of the present disclosure, in response to sliding from a current display interface to a target display interface, adjusting the content layout of the current display interface, and the adjustment of the content layout at least includes zooming the font, adjusting the font spacing, and adjusting the paragraph.

[0010] Another aspect of the present disclosure provides an interaction device, including: an acquisition module, configured to acquire sliding data corresponding to a sliding operation in response to detecting a sliding operation in a current display interface, where the sliding data includes a starting position and an ending position, and a ratio of an area of the current display interface to an area of a display region of a display device is a first value; a target sliding gesture determination module, configured to determine a target sliding gesture according to the starting position and the ending position when it is determined that the sliding operation is a fast sliding, where the fast sliding indicates that a rate of the sliding operation is greater than a preset threshold; and a display module, configured to display a target display interface corresponding to the sliding operation when the target sliding gesture satisfies a preset condition, a ratio of an area of the target display interface to an area of the display region is a second value, and the first value is different from the second value.

[0011] Another aspect of the present disclosure further provides an electronic device, including: a display unit, configured to output an image; a touch operation receiving unit, configured to receive a touch operation; a processing unit, configured to acquire sliding data corresponding to the touch operation when the touch operation is a sliding operation, where the sliding data includes a starting position and an ending position, and a ratio of an area of the current display interface to an area of a display region of a display device is a first value; determine a target sliding gesture according to the starting position and the ending position when it is determined that the sliding operation is a fast sliding, where the fast sliding indicates that a rate of the sliding operation is greater than a preset threshold; and control the display unit to display a target display interface corresponding to the sliding operation when the target sliding gesture satisfies a preset condition, a ratio of an area of the target display interface to an area of the display region is a second value, and the first value is different from the second value.

[0012] Another aspect of the present disclosure provides a non-volatile storage medium storing computer-executable instructions, and the instructions are used to implement the method described in any one of the above when executed.

[0013] Another aspect of the present disclosure provides a computer program comprising computer-executable instructions that, when executed, are configured to implement the method as described in any one of the above. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] To more fully understand the present disclosure and its advantages, reference is now made to the following description taken in conjunction with the accompanying drawings, in which:

[0015] Figure 1 shows an application scenario of an interaction method and an interaction device according to an embodiment of the present disclosure;

[0016] Figure 2 shows a flowchart of an interaction method according to an embodiment of the present disclosure;

[0017] Figure 3 shows a schematic diagram of coordinate axis establishment according to an embodiment of the present disclosure;

[0018] Figure 4 shows a schematic diagram of a sliding effective area according to an embodiment of the present disclosure;

[0019] Figure 5 shows a schematic diagram of an nth target display interface according to an embodiment of the present disclosure;

[0020] Figure 6 shows a schematic diagram of an interface change caused by a touch operation according to an embodiment of the present disclosure;

[0021] Figure 7 shows a block diagram of the implementation of an interaction method and an interaction device according to an embodiment of the present disclosure;

[0022] Figure 8 shows a block diagram of an interaction device according to an embodiment of the present disclosure;

[0023] Figure 9 shows a schematic block diagram of an example electronic device that can be used to implement the method of an embodiment of the present disclosure. DETAILED DESCRIPTION

[0024] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts of the present disclosure.

[0025] The terms used herein are merely for the purpose of describing specific embodiments and are not intended to limit the present disclosure. The terms "including", "comprising", etc. as used herein indicate the presence of features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0026] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those of ordinary skill in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0027] In the description of this specification, the descriptions referring to terms such as "one embodiment", "some embodiments", "examples", "specific examples", or "some examples", etc., mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of this application. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.

[0028] Furthermore, the terms "first" and "second" are used only for descriptive purposes and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" can explicitly or implicitly include at least one of such features. In the description of this application, "a plurality" means two or more, unless otherwise specifically defined.

[0029] Some block diagrams and / or flowcharts are shown in the drawings. It should be understood that some blocks or combinations of blocks in the block diagrams and / or flowcharts can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when executed by the processor, these instructions can create a device for implementing the functions / operations illustrated in these block diagrams and / or flowcharts.

[0030] Therefore, the technology of this disclosure can be implemented in the form of hardware and / or software (including firmware, microcode, etc.). Additionally, the technology of this disclosure can take the form of a computer program product on a computer-readable medium storing instructions, which can be used by or in conjunction with an instruction execution system. In the context of this disclosure, a computer-readable medium can be any medium that can contain, store, transmit, propagate, or transport instructions. For example, a computer-readable medium can include, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, components, or propagation media. Specific examples of computer-readable media include: magnetic storage devices such as magnetic tapes or hard disk drives (HDDs); optical storage devices such as compact discs (CD-ROMs); memories such as random access memories (RAMs) or flash memories; and / or wired / wireless communication links.

[0031] Figure 1The application scenarios of the interaction method and interaction device according to embodiments of the present disclosure are shown.

[0032] It should be noted that Figure 1 The illustration is only an example of the scenarios to which the embodiments of the present disclosure can be applied, to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.

[0033] As Figure 1 As shown, the application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used as a medium to provide a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, etc.

[0034] Users can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103.

[0035] The first terminal device 101, the second terminal device 102, and the third terminal device 103 can be various electronic devices with a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, and desktop computers, etc.

[0036] The server 105 can be a server that provides various services. For example, sliding data can be processed in the first terminal device 101, the second terminal device 102, and the third terminal device 103 to display a target display interface corresponding to the sliding operation. The background management server can analyze and process data such as received user requests, and feedback the processing result (target display interface) to the terminal device.

[0037] It should be noted that the interaction method provided by the embodiments of the present disclosure can generally be executed by the server 105. Correspondingly, the interaction device provided by the embodiments of the present disclosure can generally be set in the server 105. The interaction method provided by the embodiments of the present disclosure can also be executed by a server or a server cluster different from the server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or the server 105. Correspondingly, the interaction device provided by the embodiments of the present disclosure can also be set in a server or a server cluster different from the server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or the server 105.

[0038] It should be understood that Figure 1 the numbers of the terminal devices, the network, and the servers in

[0039] In some examples, the native original interface is directly called to implement the function of interface interaction. However, due to the single function of the native interface, each application needs to implement a set of complex logics, resulting in bloated and redundant code. After a large amount of calculation and judgment logics at the upper layer, the timeliness is poor and the accuracy is low.

[0040] In some other examples, the native solution is adopted for the judgment of the fast sliding event. The native solution mainly targets the usage scenarios of mobile phone terminal users, adds a large number of complex and abnormal logic judgments, and requires a large amount of data, which will consume more Central Processing Unit (CPU) and memory resources.

[0041] Based on the above problems, the present disclosure provides an interaction method, including: in response to detecting a sliding operation in the current display interface, obtaining sliding data corresponding to the sliding operation, where the sliding data includes a starting position and an ending position, and the ratio of the area of the current display interface to the area of the display region of the display device is a first value; in the case of determining that the sliding operation is a fast sliding, determining a target sliding gesture according to the starting position and the ending position, where the fast sliding indicates that the rate of the sliding operation is greater than a preset threshold; in the case that the target sliding gesture meets a preset condition, presenting a target display interface corresponding to the sliding operation, where the ratio of the area of the target display interface to the area of the display region is a second value, and the first value is different from the second value.

[0042] According to an embodiment of the present disclosure, by detecting a sliding operation on the current display interface, obtaining sliding data corresponding to the sliding operation, and when determining that the sliding operation is a fast sliding event, determining a target sliding gesture based on the starting position and the ending position, and when the target sliding gesture attribute data meets the target preset condition, presenting a target display interface corresponding to the sliding operation. By using the interaction method provided by the present disclosure, the user experience can be effectively improved, the operation efficiency and the accuracy of interface control can be increased, and at the same time, the flexibility and diversity of interaction can be increased, making the application more user-friendly and friendly.

[0043] Figure 2 FIG. shows a flowchart of an interaction method according to an embodiment of the present disclosure.

[0044] As Figure 2 shown, the interaction method includes operations S201 to S203.

[0045] In operation S201, in response to detecting a sliding operation on the current display interface, obtain sliding data corresponding to the sliding operation.

[0046] In an embodiment of the present disclosure, the sliding operation is usually used to switch from the current display interface to the target display interface. When detecting a sliding operation on the current display interface, sliding data corresponding to the sliding operation can be obtained. The sliding data may include the starting position, the ending position, and the sliding time, etc., but is not limited thereto. The specific type of the sliding data is not limited in the embodiments of the present disclosure.

[0047] In an embodiment of the present disclosure, the ratio of the area of the current display interface to the area of the display region of the display device is a first value. For example, if the current display interface occupies the full screen area of the display device, the ratio of the area of the current display interface to the area of the display region of the display device is 1. If the current display interface occupies 1 / 2 of the screen area of the display device, the ratio of the area of the current display interface to the area of the display region of the display device is 1 / 2. The first value can change as the size of the current display interface occupying the display region of the display device changes.

[0048] In operation S202, when determining that the sliding operation is a fast sliding, determine a target sliding gesture based on the starting position and the ending position.

[0049] In an embodiment of the present disclosure, fast sliding indicates that the rate of the sliding operation is greater than a preset threshold. The sliding distance can be determined according to the starting position and the ending position of the contact point. According to the sliding distance and the sliding time, the rate of the sliding operation can be calculated. When the rate of the sliding operation is greater than the preset threshold, it can be determined that the sliding operation is a fast sliding.

[0050] Figure 3 FIG. shows a schematic diagram of coordinate axis establishment according to an embodiment of the present disclosure.

[0051] In an embodiment of the present disclosure, when it is determined that the sliding operation is a fast sliding, the target sliding gesture may be determined according to the starting position and the ending position. For example, taking the upper left corner of the display device as the origin, a coordinate axis may be established on the display device, as Figure 3 shown, the starting position p1 includes an abscissa x1 and an ordinate y1, and the ending position p2 includes an abscissa x2 and an ordinate y2. In an embodiment of the present disclosure, when the abscissa of the starting position and the ending position are subtracted, and the obtained value is negative, it may be determined that the sliding direction is a rightward slide. When the ordinate of the starting position and the ending position are subtracted, and the obtained value is positive, it may be determined that the sliding direction is an upward slide. Therefore, it may be determined that the target sliding gesture is a slide in the upper right direction from the starting position p1 to the ending position p2.

[0052] According to an embodiment of the present disclosure, when the abscissa of the starting position and the ending position are subtracted, if the obtained value is positive, it may be determined that the sliding direction is a leftward slide. If the obtained value is negative, it may be determined that the sliding direction is a rightward slide. If the obtained value is 0, it may be determined that there is no leftward or rightward slide. Further, the ordinate of the starting position and the ending position may also be subtracted to determine the up and down sliding direction. If the obtained value is positive, it may be determined that the sliding direction is an upward slide. If the obtained value is negative, it may be determined that the sliding direction is a downward slide. If the obtained value is 0, it may be determined that there is no upward or downward slide.

[0053] It should be noted that when the sliding gestures in the left and right directions are determined to be a leftward slide or a rightward slide respectively, and the sliding gestures in the up and down directions are determined to be an upward slide or a downward slide respectively, the starting position may be specifically combined to finally determine the target sliding gesture. The target sliding gesture may include a slide inward from the left edge, a slide outward from the left edge, a slide upward from the bottom, a slide downward from the bottom, a slide inward from the right edge, a slide outward from the right edge, a slide upward from the lower left corner, a slide downward from the lower left corner, a slide upward from the lower right corner, a slide downward from the lower right corner. However, it is not limited thereto, and the embodiments of the present disclosure do not make any limitations in this regard.

[0054] In operation S203, when the target sliding gesture meets a preset condition, a target display interface corresponding to the sliding operation is displayed.

[0055] In an embodiment of the present disclosure, the ratio of the area of the target display interface to the area of the display region may be a second value, and the first value is different from the second value.

[0056] For example, if the current display interface occupies the full - screen area of the display device, the ratio of the area of the current display interface to the area of the display region of the display device is 1. The target sliding gesture is a left - hand slide. When the target sliding gesture meets the preset conditions, a target display interface corresponding to the sliding operation is displayed, and the ratio of the area of the target display interface to the area of the display region is 1 / 2. Among them, the preset conditions may include setting a sliding distance threshold, a sliding effective range in the display region, a sliding inclination angle, etc.

[0057] According to an embodiment of the present disclosure, by detecting a sliding operation on the current display interface, obtaining sliding data corresponding to the sliding operation, and when determining that the sliding operation is a fast - sliding event, determining the target sliding gesture according to the starting position and the ending position. When the target sliding gesture attribute data meets the preset conditions, a target display interface corresponding to the sliding operation is displayed. By using the interaction method provided by the present disclosure, the user experience can be effectively improved, the operation efficiency and the accuracy of interface control can be increased, and at the same time, the flexibility and diversity of interaction can be increased, making the application more user - friendly and easy to use. In addition, the user can also dynamically adjust the preset conditions according to needs, so as to meet personalized requirements.

[0058] It can be understood that the above has illustrated an example of how to perform interface interaction. Next, a preliminary description will be given of the process of displaying the target display interface of the present disclosure.

[0059] According to an embodiment of the present disclosure, when the target sliding gesture meets the preset conditions, displaying a target display interface corresponding to the sliding operation includes: in response to the sliding operation being a single - touch slide, determining the sliding inclination angle according to the starting position and the ending position; determining the sliding effective region in the display region based on the width value of the display region and the preset edge value; and when the sliding inclination angle meets the preset angle and the single - touch slide is within the sliding effective region, displaying a target display interface corresponding to the sliding operation.

[0060] In an embodiment of the present disclosure, in response to the sliding operation being a single - touch slide, the abscissa and ordinate of the starting position and the ending position can be determined. According to the abscissa and ordinate of the starting position and the ending position, the sliding inclination angle can be determined.

[0061] Figure 4 Shows a schematic diagram of the sliding effective region according to an embodiment of the present disclosure.

[0062] In an embodiment of the present disclosure, it is not limited to determining the sliding effective range according to the width value of the display region and the preset edge value, and it may also include the height of the display device. The preset edge value can be used to define the sliding effective region. For example, it can be defined as 10 pixel values, and its preset edge value corresponds to Figure 4 as shown in and Based on the width value, height value, and preset edge value of the display area, the effective sliding area in the display area can be determined. The effective sliding area is, for example, Figure 4 the area other than the colored area in

[0063] In an embodiment of the present disclosure, when the sliding inclination angle satisfies a preset angle and the single-touch sliding is within the effective sliding area, a target display interface corresponding to the sliding operation can be displayed.

[0064] It can be understood that the above has preliminarily described an example of how to display the target display interface. The following will further describe the method of single-touch sliding to change the interface.

[0065] According to an embodiment of the present disclosure, the sliding operation includes N consecutive single-touch slides, where N is an integer greater than 1; the interaction method further includes: in response to the nth single-touch slide, changing the (n - 1)th target display interface to obtain the nth target display interface, where n = 1,..., N.

[0066] In an embodiment of the present disclosure, the sliding operation may include N consecutive single-touch slides, where N is an integer greater than 1.

[0067] In an embodiment of the present disclosure, in response to the nth single-touch slide, the (n - 1)th target display interface can be changed to obtain the nth target display interface, where n = 1,..., N.

[0068] Figure 5 Shows a schematic diagram of the nth target display interface according to an embodiment of the present disclosure.

[0069] As Figure 5 shown, first, a single-touch slide is set, and the area of the full screen is reduced by 1 / 4. For example, if the current display interface occupies the full screen of the display device, in response to the first single-touch downward slide, the first target display interface can be obtained. The first target display interface can be represented as the interface displayed after descending 1 / 4 of the screen. Immediately afterwards, in response to the second single-touch downward slide, the second target display interface can be obtained. The second target display interface can be represented as the interface displayed after descending 1 / 2 of the screen. In response to the third single-touch downward slide, the third target display interface can be obtained. The third target display interface can be represented as the interface displayed after descending 3 / 4 of the screen. In response to the fourth single-touch upward slide, the fourth target display interface can be obtained. The fourth target display interface can be represented as the interface displayed after ascending 1 / 4 of the screen on the basis of the third target display interface. It should be noted that the multiple single-touch slides are multiple slides in the same horizontal or the same vertical direction. The present disclosure does not limit the area of changing the (n - 1)th target display interface.

[0070] It can be understood that the above examples of how to perform single-touch sliding to change the interface have been described. Next, the method of multi-touch sliding to change the interface will be further described.

[0071] According to an embodiment of the present disclosure, the interaction method further includes: in response to the sliding operation being a multi-touch sliding, based on the target sliding gesture of the multi-touch sliding, presenting a target presentation interface corresponding to the target sliding gesture, where the target presentation interface includes at least one of opening a comment, lowering the half screen, opening another application, and returning to the home page.

[0072] In an embodiment of the present disclosure, multi-touch sliding means that at least two contacts are sliding simultaneously on the display device. Based on the target sliding gesture of the multi-touch sliding, a target presentation interface corresponding to the target sliding gesture can be presented. The target presentation interface can include at least one of opening a comment, lowering the half screen, opening another application, and returning to the home page. For example, sliding two contacts downward can be set to lower the current display interface by half, sliding two contacts upward can be set to raise the current display interface by half, sliding four contacts upward can open a comment, and sliding four contacts downward can return to the home page, etc. For how to specifically present the corresponding target presentation interface according to the target sliding gesture, the user can customize the settings according to their habits to improve the user experience.

[0073] According to an embodiment of the present disclosure, the corresponding personalized requirements for actions can be executed according to the target sliding gesture of the multi-touch sliding.

[0074] It can be understood that the above examples of how to perform multi-touch sliding to change the interface have been described. Next, a preliminary description of the generation method of another target presentation interface will be given.

[0075] According to an embodiment of the present disclosure, the interaction method further includes: in response to a touch operation on a region in the display area other than the target presentation interface, presenting the target presentation interface in the display area.

[0076] In an embodiment of the present disclosure, a touch operation can be performed on a region other than the target presentation interface to restore the content in the target presentation interface to full screen.

[0077] Figure 6 A schematic diagram showing the change of the interface caused by a touch operation according to an embodiment of the present disclosure is shown.

[0078] As Figure 6 shown, the current display interface 610 can include a target presentation interface 622 and a region 621 other than the target presentation interface. In response to a touch operation on the region 621 other than the target presentation interface, the target presentation interface 620 can be presented in the display area.

[0079] According to an embodiment of the present disclosure, by performing a touch operation on an area other than the target display interface in the display area, the target display interface is displayed in the display area, which can quickly respond to the user's touch operation, reduce the user's waiting time, and improve the interface interaction efficiency.

[0080] It can be understood that the above has preliminarily described an example of the generation method of another target display interface. Next, how to determine that a swipe operation is a fast swipe will be further described.

[0081] According to an embodiment of the present disclosure, determining that a swipe operation is a fast swipe includes: determining a first-direction swipe distance and a second-direction swipe distance according to a starting position and an ending position, where the first direction and the second direction satisfy a perpendicular condition; when the swipe distance in any one of the first direction and the second direction satisfies a preset distance within a preset time period, determining a swipe rate according to the first-direction swipe distance and the second-direction swipe distance; and when the swipe rate is greater than a preset threshold, determining that the swipe operation is a fast swipe.

[0082] In an embodiment of the present disclosure, the first-direction swipe distance and the second-direction swipe distance can be determined according to the starting position and the ending position, and the first direction and the second direction satisfy the perpendicular condition, such as Figure 3 the X-axis and the Y-axis shown.

[0083] In an embodiment of the present disclosure, when the swipe distance in any one of the first direction and the second direction satisfies a preset distance within a preset time period, the first-direction swipe rate and the second-direction swipe rate can be determined according to the first-direction swipe distance, the second-direction swipe distance, and the swipe time. When the swipe rate in any one direction is greater than a preset threshold, it can be determined that the swipe operation is a fast swipe.

[0084] According to an embodiment of the present disclosure, in the traditional method of determining whether a swipe operation is a fast swipe, a large number of complex and abnormal logical judgments need to be added, a large amount of data is required, and more memory resources will be consumed. Compared with the traditional method, the method provided by the present disclosure optimizes the calculation logic, reduces the burden of occupying system CPU and memory resources, and improves the timeliness and accuracy.

[0085] It can be understood that the above has described an example of how to determine that a swipe operation is a fast swipe. Next, the adjustment method of the content layout will be described.

[0086] According to an embodiment of the present disclosure, in response to swiping from the current display interface to the target display interface, the content layout of the current display interface is adjusted.

[0087] In an embodiment of the present disclosure, when sliding from the current display interface to the target display interface, the content layout of the current display interface can be adjusted. Adjusting the content layout may include at least one of zooming the font, adjusting the font spacing, and adjusting the paragraph.

[0088] According to an embodiment of the present disclosure, by adjusting the content layout of the current display interface during the sliding process, the current display interface and the target display interface can be made to be consistent in visual style, improving the interface aesthetics of the entire application and providing a better visual experience for the user during use.

[0089] Figure 7 The implementation block diagram of the interaction method and interaction device according to an embodiment of the present disclosure is shown.

[0090] As Figure 7 shown, the real-time block diagram includes a Linux kernel layer 740, a native layer 730, a framework layer 720, and an application layer. Based on the existing method, the present disclosure adds a system application programming interface (API) to the framework layer 720. The framework layer encapsulates the interface uniformly, which can be called and used by each application program (APP) in the application layer, and has strong code reusability.

[0091] Based on the above interaction method, the present disclosure also provides an interaction device. The following will be combined with Figure 8 to describe this device in detail.

[0092] Figure 8 The block diagram of the interaction device according to an embodiment of the present disclosure is shown.

[0093] As Figure 8 shown, the interaction device 800 includes an acquisition module 810, a target sliding gesture determination module 820, and a display module 830.

[0094] According to some embodiments of the present disclosure, the interaction device 800 can be used to implement the interaction method of the embodiments of the present disclosure.

[0095] The acquisition module 810 can execute, for example, operation S210, and is used to obtain sliding data corresponding to the sliding operation in response to detecting a sliding operation in the case of the current display interface. The sliding data includes a starting position and an ending position, and the ratio of the area of the current display interface to the area of the display region of the display device is a first value.

[0096] The target sliding gesture determination module 820 can execute, for example, operation S220, and is used to determine the target sliding gesture according to the starting position and the ending position in the case of determining that the sliding operation is a fast sliding, where the fast sliding indicates that the rate of the sliding operation is greater than a preset threshold.

[0097] The display module 830 may perform, for example, operation S230 to display a target display interface corresponding to the sliding operation when the target sliding gesture meets a preset condition. The ratio of the area of the target display interface to the area of the display region is a second value, which is different from the first value.

[0098] For example, the acquisition module 810, the target sliding gesture determination module 820, and the display module 830 may be combined and implemented in one module, or any one of them may be split into multiple modules. Or, at least part of the functions of one or more of these modules may be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present invention, at least one of the acquisition module 810, the target sliding gesture determination module 820, and the display module 830 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on chip, a system on substrate, a system on package, an application specific integrated circuit (ASIC), or any other reasonable way of integrating or packaging circuits, etc., implemented by hardware or firmware, or implemented by an appropriate combination of software, hardware, and firmware. Or, at least one of the acquisition module 810, the target sliding gesture determination module 820, and the display module 830 may be at least partially implemented as a computer program module, which can execute the functions of the corresponding module when the program is run by a computer.

[0099] According to some embodiments of the present disclosure, the display module includes: a sliding inclination angle determination unit, configured to determine a sliding inclination angle according to a starting position and an ending position in response to a single-touch sliding operation; a sliding effective region determination unit, configured to determine a sliding effective region in the display region based on a width value of the display region and a preset edge value; and a display unit, configured to display a target display interface corresponding to the sliding operation when the sliding inclination angle meets a preset angle and the single-touch sliding is within the sliding effective region.

[0100] According to some embodiments of the present disclosure, the sliding operation includes N consecutive single-touch sliding operations, where N is an integer greater than 1.

[0101] According to some embodiments of the present disclosure, the interaction device further includes: an interface change module, configured to change the (n - 1)th target display interface to obtain the nth target display interface in response to the nth single-touch sliding operation, where n = 1,..., N.

[0102] According to some embodiments of the present disclosure, the interaction device further includes: a multi-touch sliding module, configured to perform multi-touch sliding in response to a sliding operation, and display a target display interface corresponding to the target sliding gesture based on the target sliding gesture of the multi-touch sliding, where the target display interface includes at least one of opening an annotation, lowering the half screen, opening another application, and returning to the home page.

[0103] According to some embodiments of the present disclosure, the interaction device further includes: a display module, configured to display a target display interface in the display area in response to a touch operation on an area in the display area other than the target display interface.

[0104] According to some embodiments of the present disclosure, the target sliding gesture determination module includes: a sliding distance determination unit, configured to determine a first-direction sliding distance and a second-direction sliding distance according to a starting position and an ending position, where the first direction and the second direction satisfy a perpendicular condition. A sliding rate determination unit, configured to determine a sliding rate according to the first-direction sliding distance and the second-direction sliding distance when the sliding distance in any one of the first direction and the second direction satisfies a preset distance within a preset time period. A fast sliding determination unit, configured to determine that the sliding operation is a fast sliding when the sliding rate is greater than a preset threshold.

[0105] According to an embodiment of the present disclosure, the present disclosure further provides an electronic device, including: a display unit, configured to output an image; a touch operation receiving unit, configured to receive a touch operation; a processing unit, configured to obtain sliding data corresponding to the sliding operation when the touch operation is a sliding operation, where the sliding data includes a starting position and an ending position, and the ratio of the area of the current display interface to the area of the display area of the display device is a first value; when it is determined that the sliding operation is a fast sliding, determine a target sliding gesture according to the starting position and the ending position, where the fast sliding indicates that the rate of the sliding operation is greater than a preset threshold; when the target sliding gesture meets a preset condition, control the display unit to display a target display interface corresponding to the sliding operation, and the ratio of the area of the target display interface to the area of the display area is a second value, and the first value is different from the second value.

[0106] It should be noted that in the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision, disclosure, and application of the user's personal information involved all comply with the provisions of relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good customs. In the technical solution of the present disclosure, before obtaining or collecting the user's personal information, the authorization or consent of the user is obtained.

[0107] According to an embodiment of the present disclosure, the present disclosure further provides an electronic device, a readable storage medium, and a computer program product.

[0108] Figure 9 FIG. is a schematic block diagram of an exemplary electronic device that can be used to implement the method of an embodiment of the present disclosure.

[0109] The electronic device is intended to represent various forms of digital computers, such as, laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, personal digital processors, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0110] As Figure 9 shown, the device 900 includes a computing unit 901 that can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0111] A plurality of components in the electronic device 900 are connected to the I / O interface 905, including: an input unit 906, such as a keyboard, a mouse, etc.; an output unit 907, such as various types of displays, speakers, etc.; a storage unit 908, such as a magnetic disk, an optical disk, etc.; and a communication unit 909, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 909 allows the device 900 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0112] The computing unit 901 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 901 executes the various methods and processes described above, such as the interaction method. For example, in some embodiments, the interaction method can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 908. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 900 via the ROM 902 and / or the communication unit 909. When the computer program is loaded into the RAM 903 and executed by the computing unit 901, one or more steps of the interaction method described above can be executed. Alternatively, in other embodiments, the computing unit 901 can be configured to execute the interaction method by any other suitable means (e.g., by means of firmware).

[0113] The various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGA), application-specific integrated circuits (ASIC), application-specific standard products (ASSP), systems-on-chip (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.

[0114] The program code for implementing the methods of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to the processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the program codes are executed by the processor or controller, the functions / operations specified in the flowchart and / or block diagram are implemented. The program codes can be executed entirely on the machine, partially on the machine, as an independent software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0115] In the context of this disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0116] In order to provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, speech input, or tactile input).

[0117] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0118] A computer system may include a client and a server. The client and the server are generally far from each other and usually interact via a communication network. The relationship between the client and the server is generated by computer programs running on the respective computers and having a client-server relationship with each other. Among them, the server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, solving the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services ("Virtual Private Server", or simply "VPS"). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0119] Those skilled in the art can understand that the features recited in the various embodiments and / or claims of the present disclosure can be combined or / and combined in various ways, even if such combinations or combinations are not explicitly recited in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features recited in the various embodiments and / or claims of the present disclosure can be combined and / or combined in various ways. All such combinations and / or combinations fall within the scope of the present disclosure.

[0120] Although the present disclosure has been shown and described with reference to specific exemplary embodiments of the present disclosure, those skilled in the art should understand that various changes in form and detail can be made to the present disclosure without departing from the spirit and scope of the present disclosure as defined by the appended claims and their equivalents. Therefore, the scope of the present disclosure should not be limited to the above embodiments, but should be determined not only by the appended claims, but also by the equivalents of the appended claims.

Claims

1. An interaction method, comprising: In response to detecting a sliding operation in the current display interface, obtaining sliding data corresponding to the sliding operation, wherein the sliding data includes a starting position and an ending position, and a ratio of an area of the current display interface to an area of a display region of a display device is a first value; When determining that the sliding operation is a fast sliding, determining a target sliding gesture according to the starting position and the ending position, wherein the fast sliding indicates that a rate of the sliding operation is greater than a preset threshold; When the target sliding gesture meets a preset condition, presenting a target presentation interface corresponding to the sliding operation, a ratio of an area of the target presentation interface to the area of the display region is a second value, and the first value is different from the second value.

2. The method according to claim 1, wherein when the target sliding gesture meets the preset condition, presenting the target presentation interface corresponding to the sliding operation comprises: In response to the sliding operation being a single-touch sliding, determining a sliding inclination angle according to the starting position and the ending position; Based on a width value of the display region and a preset edge value, determining a sliding valid region in the display region; When the sliding inclination angle meets a preset angle and the single-touch sliding is within the sliding valid region, presenting the target presentation interface corresponding to the sliding operation.

3. The method according to claim 1, wherein the sliding operation comprises N consecutive single-touch slides, N is an integer greater than 1; the method further comprises: In response to the nth single-touch slide, changing the (n - 1)th target presentation interface to obtain the nth target presentation interface, where n = 1,......, N.

4. The method according to claim 1, the method further comprises: In response to the sliding operation being a multi-touch sliding, presenting a target presentation interface corresponding to the target sliding gesture based on the target sliding gesture of the multi-touch sliding, wherein the target presentation interface comprises at least one of opening a comment, lowering the screen by half, opening another application, and returning to the home page.

5. The method according to claim 1, the method further comprises: In response to a touch operation on a region in the display region other than the target presentation interface, displaying the target presentation interface in the display region.

6. The method according to claim 1, wherein determining that the sliding operation is a fast sliding comprises: Determining a first-direction sliding distance and a second-direction sliding distance according to the starting position and the ending position, wherein the first direction and the second direction meet a perpendicular condition; When a sliding distance in any one of the first direction and the second direction meets a preset distance within a preset period, determining a sliding rate according to the first-direction sliding distance and the second-direction sliding distance; When the sliding rate is greater than the preset threshold, determining that the sliding operation is a fast sliding.

7. The method according to claim 1, the method further comprises: In response to the current display interface being swiped to the target display interface, adjust the content layout of the current display interface, and the adjustment of the content layout includes at least one of scaling the font, adjusting the font spacing, and adjusting the paragraph.

8. An interaction device, comprising: An acquisition module, configured to acquire sliding data corresponding to the sliding operation in response to detecting a sliding operation in the case of the current display interface, where the sliding data includes a starting position and an ending position, and a ratio of an area of the current display interface to an area of a display region of a display device is a first value; A target sliding gesture determination module, configured to determine a target sliding gesture according to the starting position and the ending position in the case of determining that the sliding operation is a fast sliding operation, where the fast sliding indicates that a rate of the sliding operation is greater than a preset threshold; A display module, configured to display a target display interface corresponding to the sliding operation in the case that the target sliding gesture meets a preset condition, where a ratio of an area of the target display interface to the area of the display region is a second value, and the first value is different from the second value.

9. An electronic device, comprising: A display unit, configured to output an image; A touch operation receiving unit, configured to receive a touch operation; A processing unit, configured to acquire sliding data corresponding to the sliding operation in the case that the touch operation is a sliding operation, where the sliding data includes a starting position and an ending position, and a ratio of an area of the current display interface to an area of a display region of a display device is a first value; In the case of determining that the sliding operation is a fast sliding operation, determine a target sliding gesture according to the starting position and the ending position, where the fast sliding indicates that a rate of the sliding operation is greater than a preset threshold; In the case that the target sliding gesture meets a preset condition, control the display unit to display a target display interface corresponding to the sliding operation, where a ratio of an area of the target display interface to the area of the display region is a second value, and the first value is different from the second value.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, the steps of the method according to claim 1 are implemented.