Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Referring to fig. 1 and 2, a block diagram of aterminal 100 according to an exemplary embodiment of the present application is shown. Theterminal 100 may be a smart phone, a tablet computer, an e-book, and the like. Theterminal 100 in the present application may include one or more of the following components: aprocessor 110, a memory 120, and atouch display screen 130.
Processor 110 may include one or more processing cores. Theprocessor 110 connects various parts within theoverall terminal 100 using various interfaces and lines, and performs various functions of theterminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, theprocessor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). Theprocessor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content to be displayed by thetouch display screen 130; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into theprocessor 110, but may be implemented by a single chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 120 includes a non-transitory computer-readable medium. The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like; the storage data area may store data (such as audio data, a phonebook) created according to the use of theterminal 100, and the like.
Taking an operating system as an Android (Android) system as an example, programs and data stored in the memory 120 are shown in fig. 1, and a Linux kernel layer 220, a system runtime layer 240, an application framework layer 260, and an application layer 280 are stored in the memory 120. The Linux kernel layer 220 provides underlying drivers for various hardware of theterminal 100, such as a display driver, an audio driver, a camera driver, a bluetooth driver, a Wi-Fi driver, power management, and the like. The system runtime library layer 240 provides the main feature support for the Android system through some C/C + + libraries. For example, the SQLite library provides support for a database, the OpenGL/ES library provides support for 3D drawing, the Webkit library provides support for a browser kernel, and the like. Also provided in the system Runtime layer 240 is an Android Runtime library (Android Runtime), which mainly provides some core libraries that can allow developers to write Android applications using the Java language. The application framework layer 260 provides various APIs that may be used in building applications, and developers may build their own applications by using these APIs, such as activity management, window management, view management, notification management, content provider, package management, session management, resource management, and location management. At least one application program runs in the application layer 280, and the application programs may be a contact program, a short message program, a clock program, a camera application, etc. of the operating system; or an application program developed by a third-party developer, such as an instant messaging program, a photo beautification program, and the like.
Taking an operating system as an IOS system as an example, programs and data stored in the memory 120 are shown in fig. 2, and the IOS system includes: a Core operating system Layer 320(Core OS Layer), a Core Services Layer 340(Core Services Layer), a Media Layer 360(Media Layer), and a touchable Layer 380(Cocoa Touch Layer). The kernel operating system layer 320 includes an operating system kernel, drivers, and underlying program frameworks that provide functionality closer to hardware for use by program frameworks located in the kernel services layer 340. The core services layer 340 provides system services and/or program frameworks, such as a Foundation framework, an account framework, an advertisement framework, a data storage framework, a network connection framework, a geographic location framework, a motion framework, and so forth, that are needed by the application. The media layer 360 provides audiovisual interfaces for applications, such as graphics-related interfaces, audio-related interfaces, video-related interfaces, and audio/video transmission technology wireless broadcast (AirPlay) interfaces. The touchable layer 380 provides various common interface-related frameworks for application development, and the touchable layer 380 is responsible for user touch interaction operations on theterminal 100. Such as a local notification service, a remote push service, an advertising framework, a game tool framework, a messaging User Interface (UI) framework, a User Interface UIKit framework, a map framework, and so forth.
In the framework shown in FIG. 2, the framework associated with most applications includes, but is not limited to: a base framework in the core services layer 340 and a UIKit framework in the touchable layer 380. The base framework provides many basic object classes and data types, provides the most basic system services for all applications, and is UI independent. While the class provided by the UIKit framework is a basic library of UI classes for creating touch-based user interfaces, iOS applications can provide UIs based on the UIKit framework, so it provides an infrastructure for applications for building user interfaces, drawing, processing and user interaction events, responding to gestures, and the like.
Thetouch display screen 130 is used for receiving a touch operation of a user on or near the touch display screen using any suitable object such as a finger, a touch pen, or the like, and displaying a user interface of each application program. Thetouch display 130 is generally provided at a front panel of the terminal 100.
As shown in fig. 3, the terminal 100 includes afirst housing 41, asecond housing 42, and a connectingassembly 43 connected between thefirst housing 41 and thesecond housing 42, and thefirst housing 41 and thesecond housing 42 are folded upside down by the connectingassembly 43.
Thefirst housing 41 includes a first supporting surface connected to the back surface of the touch display screen and a first back surface opposite to the first supporting surface, and thesecond housing 42 includes a second supporting surface connected to the back surface of the touch display screen and a second back surface opposite to the second supporting surface. Accordingly, the touch display screen includes afirst display area 131, asecond display area 132 and athird display area 133, wherein thefirst display area 131 corresponds to the position of thefirst housing 41, thesecond display area 132 corresponds to the position of thesecond housing 42, and thethird display area 133 corresponds to the position of the connectingassembly 43. In one implementation, thefirst display region 131, thesecond display region 132 and thethird display region 133 are made of flexible materials and have a certain expansion and contraction ductility; in another implementation, only thethird display region 133 is made of a flexible material, and the first andsecond display regions 131 and 132 are made of a non-flexible material.
In an alternative implementation, theconnection assembly 43 of the terminal 100 is of a manual construction. When the user manually separates thefirst casing 41 and thesecond casing 42, the terminal 100 is changed from the folded state to the unfolded state; when the user manually closes thefirst housing 41 and thesecond housing 42, the terminal 100 changes from the unfolded state to the folded state.
In an alternative implementation, theconnection assembly 43 of the terminal 100 is of an electric construction, for example, theconnection assembly 43 is provided with an electric rotating member such as an electric motor. Under the driving of the electric rotating component, thefirst housing 41 and thesecond housing 42 automatically close or separate, so that the terminal 100 has two states of unfolding and folding.
The terminal 100 may be divided into an outer folder terminal and an inner folder terminal according to whether the touch display screen is exposed in a folded state. Wherein:
external folding screen terminal
The outer folding screen terminal is a terminal which has a folding angle of 180 degrees and is completely exposed out of the touch display screen in a folding state. As shown in fig. 3, the terminal 100 is an outer folder screen terminal. In the unfolded state, the first supporting surface of thefirst casing 41 of the terminal 100 is flush with the second supporting surface of the second casing 42 (i.e. the included angle is 180 °), and thefirst display area 131, thesecond display area 132 and thethird display area 133 of the touch display screen are located on the same plane; in the process of the terminal 100 changing from the unfolded state to the folded state, as shown in fig. 3, the first back surface of thefirst housing 41 and the second back surface of thesecond housing 42 are close to each other, and the included angle between the first supporting surface and the second supporting surface is changed from 180 ° to 0 °; in the folded state, as shown in fig. 4, the first supporting surface of thefirst casing 41 of the terminal 100 is parallel to the second supporting surface of the second casing 42 (the included angle between thefirst casing 41 and thesecond casing 42 is 0 °), so that the touch display screen is in a U-shaped folded state, in which thethird display area 133 of the touch display screen forms an exposed U-shaped arc surface.
In an alternative implementation, in the folded state, all or part of the display area of the touch display screen is used for displaying the user interface. For example, as shown in fig. 4, in the folded state, only thesecond display region 132 is used to display the user interface, or only thethird display region 133 is used to display the user interface.
Terminal with internal folding screen
The inner-folding-screen terminal refers to a terminal that can be folded at an angle of 180 ° and in a folded state, the touch display screen is (entirely or partially) converged. As shown in fig. 5, the terminal 100 is an inner folder screen terminal. In the unfolded state, the first supporting surface of thefirst casing 41 of the terminal 100 is flush with the second supporting surface of the second casing 42 (i.e. the included angle is 180 °), so that the touch display screen is in a planar unfolded state (thefirst display area 131, thesecond display area 132 and thethird display area 133 are located on the same plane); in the process of the terminal 100 changing from the unfolded state to the folded state, as shown in fig. 5, the first supporting surface of thefirst housing 41 and the second supporting surface of thesecond housing 42 are close to each other, that is, the included angle between the first supporting surface and the second supporting surface is changed from 180 ° to 0 °; in the folded state, the first supporting surface of thefirst housing 41 of the terminal 100 is parallel to the second supporting surface of thesecond housing 42, so that the touch display screen is in a U-shaped folded state in which thethird display area 133 of the touch display screen forms a U-shaped arc surface that is inwardly converged. In an alternative implementation, in the folded state, no user interface is displayed in all display areas of the touch display screen.
In addition to providing a touch display screen on the support surface of the housing, a touch display screen may also be provided on the first back surface of thefirst housing 41 and/or the second back surface of thesecond housing 42. When the inner folding screen terminal is in a folding state, the touch display screen arranged on the back face of the shell is used for displaying a user interface, and the user interface is the same as or different from the user interface displayed by the touch display screen in an unfolding state.
In other possible implementations, the foldable angle of the terminal 100 may also be 360 ° (both inward and outward), and in the folded state, the touch display screen is exposed or converged on the terminal, which is not limited in this embodiment.
In the terminal 100 shown in fig. 3 to 5, thefirst housing 41 and thesecond housing 42 have the same or similar size, and the folding manner of the terminal 100 is called symmetrical folding. In other possible implementations, the terminal 100 may also be folded asymmetrically. When the asymmetric folding is adopted, the sizes of thefirst casing 41 and thesecond casing 42 may be different or different by more than a threshold (for example, 50% or 60% or 70%), and accordingly, the area of thefirst display region 131 in the touch display screen is different from the area of thesecond display region 132 by more than a threshold.
Illustratively, as shown in fig. 6, the terminal 100 is an asymmetrically folded outer folded screen terminal, and thefirst housing 41 has a size larger than that of thesecond housing 42. In the folded state, the area of thefirst display region 131 is larger than that of thesecond display region 132.
In fig. 3 to 6, only by taking an example that the terminal 100 includes two parts of a housing and a connecting assembly for connecting the housing as an example (the terminal is in a two-fold structure), in other possible implementations, the terminal 100 may include n parts of the housing and n-1 connecting assemblies, and accordingly, the touch display screen of the terminal 100 includes 2n-1 display areas, and the n-1 display areas corresponding to the connecting assemblies are made of a flexible material, so as to implement the terminal in the n-fold structure, which is not limited in this embodiment.
At least one other component is also provided in the terminal 100, the at least one other component including: cameras, fingerprint sensors, proximity light sensors, distance sensors, etc. In some embodiments, at least one other component is disposed on the front, side, or back of the terminal 100, such as a fingerprint sensor disposed on the back or side of the housing, a camera disposed above thetouch display screen 130.
In other embodiments, at least one other component may be integrated within or below thetouch screen display 130. In some embodiments, a bone conduction earpiece is provided inside the terminal 100; other components on the front panel of the conventional terminal are integrated in the whole area or a partial area of thetouch display screen 130, for example, after a photosensitive element in the camera is split into a plurality of photosensitive pixels, each photosensitive pixel is integrated in a black area in each display pixel in thetouch display screen 130, so that thetouch display screen 130 has an image capturing function. The terminal 100 has a higher screen occupation ratio due to the integration of at least one other component within or under thetouch display screen 130.
In some optional embodiments, an edge touch sensor is disposed on a single side, or two sides (e.g., two left and right sides), or four sides (e.g., four upper, lower, left and right sides) of the middle frame of the terminal 100, and is configured to detect at least one of a touch operation, a click operation, a press operation, a slide operation, and the like of a user on the middle frame. The edge touch sensor may be any one of a touch sensor, a thermal sensor, a pressure sensor, and the like. The user may apply operations on the edge touch sensor to control the application in theterminal 100.
In addition, those skilled in the art will appreciate that the configuration ofterminal 100 as illustrated in the above-described figures is not intended to be limiting ofterminal 100, and that terminals may include more or less components than those illustrated, or some components may be combined, or a different arrangement of components. For example, the terminal 100 further includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a Wireless Fidelity (WiFi) module, a power supply, a bluetooth module, and other components, which are not described herein again.
Referring to fig. 7, a flowchart of a screen capture method provided by an exemplary embodiment of the present application is shown. This embodiment is exemplified by applying the method to the terminal described in any of fig. 1 to 6, and the screen capture method includes the following steps:
and 701, acquiring the folding angle of the folding display screen in the unfolding state.
Taking the terminal with the inner folding display screen as an example, in the folded state, the folding display screen is in an inwardly converging U shape, that is, an included angle between two display areas of the folding display screen is smaller than a threshold (for example, 5 °). In the unfolded state, the folded display screen is in an exposed plane or a V shape, namely, the included angle between two display areas of the folded display screen is larger than a threshold value.
When the display screen is in the unfolding state and is bright, the terminal acquires the folding angle of the folding display screen in real time (or at preset time intervals), wherein the folding angle is the included angle between the first display area and the second display area of the folding display screen.
In one possible embodiment, an angle sensor is provided on the terminal, which is arranged in the connecting assembly part for connecting the two housings, for measuring the angle between the two display areas.
And step 702, monitoring the variation trend of the folding angle.
The user can fold or expand the folding display screen of the terminal while using the terminal, correspondingly, the processor of the terminal monitors the change trend of the folding angle along with the time while continuously acquiring the folding angle, and determines whether the terminal is folded or expanded currently according to the change trend.
In one possible implementation, for the inner folding display, when the trend indicates that the folding angle is smaller, the outer folding display is indicated to be folded (toward a U-shape), and when the trend indicates that the folding angle is larger, the outer folding display is indicated to be unfolded (toward a plane).
And 703, if the variation trend of the folding angle is matched with the target variation trend, performing screen capture operation on the currently displayed content of the folding display screen.
The method comprises the steps that while the change trend of the folding angle is monitored, the terminal detects whether the change trend accords with the target change trend, the target change trend is the change trend of the folding angle of the folding display screen when a user folds and unfolds the folding display screen in a preset mode so as to trigger screen capture operation. If the two are in accordance (matching), determining to receive a trigger signal for triggering screen capture operation, and capturing the content currently displayed on the folding display screen; if the two are not matched, screen capture operation is not carried out.
In a possible implementation manner, when the user folds and unfolds or unfolds and folds the terminal quickly, the terminal monitors that the folding angle changes back and forth, that is, the folding angle becomes larger after becoming smaller or becomes smaller after becoming larger, and at this time, the terminal determines that the change trend of the folding angle matches with the change trend of the target, so as to perform the screen capturing operation.
The user typically does not perform a screen shot while using some specific applications, and the act of folding and unfolding the folded display screen may trigger other types of operations by the user. For example, when a user uses a camera application, folding and unfolding a folded display screen usually requires linear adjustment of shooting parameters, rather than performing a screen capture operation. Therefore, in a possible implementation manner, when the terminal monitors the variation trend of the folding angle, it is detected whether the content currently displayed on the folding display screen is the application interface of the preset application program, and when the variation trend of the folding angle is matched with the target variation trend and the currently displayed content is not the application interface of the preset application program, the screen capturing operation is performed on the content currently displayed on the folding display screen. The preset application is an application that does not need to perform a screen capture operation, for example, the preset application is a camera application.
In summary, in this embodiment, the terminal acquires the folding angle of the folding display screen in the unfolded state, monitors the variation trend of the folding angle, and then automatically performs the screen capturing operation when the variation trend of the folding angle is matched with the target variation trend; the user can quickly complete screen capture operation through simple folding unfolding action when using the terminal with the folding display screen, and compared with screen capture operation through pressing a designated physical key combination or clicking a screen capture control called out on the display screen, the screen capture difficulty is low and the efficiency is high, so that the human-computer interaction efficiency is improved.
In a possible implementation manner, the terminal presets the actions for triggering the screen capture operation as follows: the terminal is folded after being unfolded, or the terminal is unfolded after being folded. Correspondingly, when determining whether to perform the screen capturing operation, the terminal detects whether the variation trend of the folding angle is increased and then decreased, or increased after decreased. An exemplary embodiment is described below.
Referring to fig. 8, a flowchart of a screen capture method provided by another exemplary embodiment of the present application is shown. This embodiment is exemplified by applying the method to the terminal described in any of fig. 1 to 6, and the screen capture method includes the following steps:
step 801, acquiring the folding angle of the folding display screen in the unfolding state.
In a possible implementation manner, acceleration sensors are respectively arranged in a first shell and a second shell of the terminal, and a folding included angle of a folding display screen (between a first display area and a second display area) is determined through gravity acceleration signals respectively collected by the two acceleration sensors.
Optionally, the step includes the following steps:
firstly, a first gravity acceleration signal reported by a first acceleration sensor is received.
The first acceleration sensor is an acceleration sensor provided in the first housing. Optionally, the first acceleration sensor corresponds to a first three-dimensional space coordinate system, and the first three-dimensional space coordinate system has three coordinate axes: a first X-axis, a first Y-axis, and a first Z-axis, as shown in fig. 9. Illustratively, when the terminal body is in a vertical placing posture, the position of the first acceleration sensor is used as an original point, the horizontal rightward direction is a first X-axis positive half shaft, the vertical upward direction is a first Y-axis positive half shaft, and the direction perpendicular to the XY plane and facing the front is a first Z-axis positive half shaft.
And secondly, determining a first plane where the first shell is located according to the first gravity acceleration signal.
When the first acceleration sensor acquires a first gravity acceleration signal, the first gravity acceleration signal respectively corresponds to a first x-axis component, a first y-axis component and a first z-axis component on three coordinate axes. Three included angles between the three coordinate axes and the first gravity acceleration signal can be calculated according to components on the three coordinate axes, so that a first plane is determined by taking the first gravity acceleration signal as a reference, and the first plane can be represented by adopting a vector of the first Z axis relative to the first gravity acceleration signal as a plane normal vector of the first plane.
And thirdly, receiving a second gravity acceleration signal reported by a second acceleration sensor.
The second acceleration sensor is an acceleration sensor provided in the second housing. Optionally, the second acceleration sensor corresponds to a second three-dimensional space coordinate system, which has three coordinate axes: a second X-axis, a second Y-axis, and a second Z-axis, as shown in fig. 10. Illustratively, when the terminal body is in a vertical placing posture, the position of the second acceleration sensor is taken as an original point, the horizontal rightward direction is a second X-axis positive half shaft, the vertical upward direction is a second Y-axis positive half shaft, and the second direction perpendicular to the XY plane and facing the front is a Z-axis positive half shaft.
And fourthly, determining a second plane where the second shell is located according to the second gravity acceleration signal.
When the second acceleration sensor collects a second gravity acceleration signal, the second gravity acceleration signal respectively corresponds to a second x-axis component, a second y-axis component and a second z-axis component on three coordinate axes. And calculating three included angles between the three coordinate axes and the second gravitational acceleration signal according to the components on the three coordinate axes, so as to determine a second plane by taking the second gravitational acceleration signal as a reference, wherein the second plane can be represented by adopting a vector of a second Z axis relative to the second gravitational acceleration signal as a plane normal vector of the second plane.
In an illustrative example, as shown in fig. 11, thefirst housing 41 is kept still, and according to the components of the first gravitational acceleration signal G1 on the three coordinate axes of the first housing coordinate system, the terminal can calculate that the first X axis is perpendicular to G1, the reverse direction of the first Y axis is parallel to G1, the first Z axis is perpendicular to G1 (included angle is 90 degrees), and the vector Z1 in the positive direction of the first Z axis is taken as the normal vector of the first plane; the user manually rotates thesecond housing 42, and according to the components of the second gravitational acceleration signal G2 on the three coordinate axes of the second housing coordinate system, the terminal can calculate that the second X axis is perpendicular to the G2, the angle between the reverse direction of the second Y axis and the G2 is 30 degrees, the angle between the second Z axis and the G2 is 120 degrees, and the vector Z2 along the positive direction of the second Z axis is taken as the normal plane vector of the second plane.
And fifthly, calculating an included angle between the first plane and the second plane, and determining the included angle as a folding angle between the first display area and the second display area.
Optionally, since the gravitational acceleration signals are both vertically downward, the first gravitational acceleration signal and the second gravitational acceleration signal are parallel, the terminal calculates an angle between a plane normal vector of the first plane and a plane normal vector of the second plane, and calculates a folding angle between the first screen area and the second screen area according to the angle between the two plane normal vectors.
When the terminal is an internally folded screen terminal and two plane normal vectors are directed to the side of the screen facing the user, the angle of the plane normal vectors is changed from 180 ° to 0 ° when the terminal is unfolded from the folded state to the 180 ° unfolded state, and the folding angle between the first screen region and the second screen region is 180 ° -the angle of the two plane normal vectors at this time, as shown in fig. 11, a plane normal vector Z1 is directed to the side of the first screen region facing the user, a plane normal vector Z2 is directed to the side of the second screen region facing the user, and the folding angle α between the first screen region and the second screen region is 180 ° -the angle 60 ° between the two plane normal vectors is 120 °.
When the terminal is an outer folder screen terminal and two plane normal vectors are directed to a side of the screen facing the user, an angle of the plane normal vectors is changed from 180 ° to 0 ° when the terminal is unfolded from a folder state to a 180 ° unfolded state, and at this time, a folding angle α between the first screen region and the second screen region is 180 ° + an angle of two plane normal vectors, as shown in fig. 12, assuming that an angle between a plane normal vector G1 and a plane normal vector G2 is 30 °, a folding angle α is 210 °.
Step 802, monitoring the variation trend of the folding angle.
The implementation of this step is similar to theabove step 702, and this embodiment is not described herein again.
And 803, if the change trend of the folding angle in the preset time is reduced after being increased or increased after being reduced, and the change amplitude of the folding angle is larger than a threshold value, determining that the change trend of the folding angle is matched with the target change trend.
For a terminal configured with an internal folding display screen, in a possible implementation manner, when a first action for triggering screen capture operation is preset by the terminal as unfolding the folded terminal, the terminal detects whether the variation trend of the folding angle is increased and then reduced, and determines that the variation trend is matched with a target variation trend when the variation trend of the folding angle is reduced after the increase of the folding angle is detected; and/or when the second action for triggering the screen capturing operation is preset by the terminal as the terminal is unfolded after being folded, the terminal detects whether the variation trend of the folding angle is increased after being reduced, and determines that the variation trend is matched with the target variation trend when the variation trend is increased after the reduction of the folding angle is detected.
In a possible implementation mode, the terminal comprehensively detects the folding time and the variation amplitude of the folding angle, reduces the variation trend within a preset time and increases the variation trend after the variation trend is increased or reduced, and determines that the variation trend of the folding angle is matched with the target variation trend if the variation amplitude of the folding angle is greater than a threshold value. Alternatively, the predetermined time is 1s, and the threshold is 15 °.
Schematically, as shown in fig. 13, when the user folds the terminal 100 in the unfolded state inward and unfolds the terminal 100 outward (the folding and unfolding operation is completed within 1 s), the terminal 100 determines that the variation trend of the folding angle corresponds to the target variation trend.
In other possible embodiments, the terminal detects whether the variation amplitude of the folding angle is within a predetermined amplitude range, and determines that the variation trend of the folding angle matches the target variation trend when the variation amplitude is within the predetermined amplitude range. For example, the predetermined amplitude range is 15 ° to 30 °.
Optionally, in order to facilitate a user to cancel a screenshot quickly, the terminal may set the first action as an action for triggering the screenshot, and set the second action as an action for canceling the screenshot, where when the second action is detected within a predetermined time (for example, within 1 s) after the first action is detected, the terminal cancels the screenshot operation triggered by the first action.
It should be noted that, this embodiment is described by taking the target variation trend as an example of changing back and forth only once, in other possible embodiments, the target variation trend may also be "increase-decrease-increase" or "increase-decrease-increase-decrease", and the like, and this embodiment does not limit this.
And step 804, determining a current display mode, wherein the display mode comprises a full-screen display mode and a split-screen display mode.
In the unfolding state, the terminal with the folding display screen has two display modes of full-screen display and split-screen display, wherein in the full-screen display mode, a first display area and a second display area of the folding display screen are used for displaying the same user interface; in the split screen mode, the two display areas of the foldable display screen are used for displaying different user interfaces. Accordingly, when a user triggers a screen capture operation through a fold-and-unfold action, it may be desirable to capture the contents of the entire display area or capture the contents of a portion of the display area.
In order to further determine the content that the user desires to intercept, in one possible embodiment, the terminal determines the display mode in which it is currently located, and determines to intercept all or part of the displayed content of the folded display screen based on the display mode.
Step 805, when the display mode is the full-screen display mode, performing screen capture operation on the currently displayed content in the first display area and the second display area.
When the current display mode is determined to be the full-screen display mode, the terminal simultaneously intercepts the display contents of the first display area and the second display area because the two parts of display areas display the same user interface, namely, the full-screen interception is realized.
Step 806, when the display mode is the split-screen display mode, performing a screen capture operation on the currently displayed content in the first display area or the second display area.
When the current display mode is determined to be the split-screen display mode, the terminal needs to determine which part of the display area is subjected to screen capture processing because the user interfaces displayed in the two parts of the display area are different.
In a possible implementation manner, a first angular velocity sensor is arranged in a first housing of the terminal, a second angular velocity sensor is arranged in a second housing of the terminal, and the terminal is preset to trigger the action of performing the screen capturing operation on the first display area as follows: the first casing (corresponding to the first display area) is folded and then the first casing is unfolded (the change trend of the folding angle meets the target change trend), and correspondingly, the action of triggering the screen capturing operation on the second display area is as follows: the second shell (corresponding to the second display area) is folded and then unfolded (the variation trend of the folding angle is in accordance with the target variation trend). Accordingly, as shown in fig. 14, the terminal includes the following steps when performing the screen capture operation in the split screen display mode.
Instep 806A, a first folding angle of the first housing is calculated according to the angular velocity data collected by the first angular velocity sensor.
In the unfolding state, a first angular velocity sensor in the first shell acquires angular velocity data at all times, calculates a rotation angle of the first shell in the folding direction within a preset time according to the angular velocity data, and determines the rotation angle as a first folding angle.
Step 806B, calculating a second folding angle of the second housing according to the angular velocity data collected by the second angular velocity sensor.
Similarly to theabove step 806A, the terminal calculates the rotation angle of the second housing in the folding direction for a predetermined time based on the angular velocity data collected by the second angular velocity sensor, and determines the rotation angle as the second folding angle.
It should be noted that there is no strict sequence betweensteps 806A and 806B, that is, steps 806A and 806B may be executed simultaneously, and this implementation is not limited thereto.
Instep 806C, if the first folding angle is greater than the second folding angle, performing a screen capture operation on the currently displayed content in the first display area.
Further, the terminal compares the magnitude between the first folding angle and the second folding angle to determine which housing is actively folded and unfolded by the user.
When the first folding angle is larger than the second folding angle, the terminal determines that the first shell is actively folded and unfolded by a user, and therefore screen capture operation is conducted on a first display area corresponding to the first shell.
In the practical application process, in the split-screen display mode, when a user wants to intercept an image in the first display area, the user only needs to keep the second shell fixed and fold and unfold the first shell to finish rapid screen capture.
Instep 806D, if the first folding angle is smaller than the second folding angle, performing a screen capture operation on the currently displayed content in the second display area.
On the contrary, when the first folding angle is smaller than the second folding angle, the terminal determines that the second shell is actively folded and unfolded by the user, so that the screen capturing operation is performed on the second display area corresponding to the second shell.
In the practical application process, in the split-screen display mode, when a user wants to capture an image in the second display area, the user only needs to keep the first shell fixed and fold and unfold the second shell to complete the rapid screen capture.
In other possible embodiments, after performing screen capture operations on the display contents of the first display area and the second display area, the terminal displays corresponding prompt information to prompt the user to select two incoming images, so that the selected screenshot is saved and unselected screenshots are deleted according to the user selection, which is not limited in this embodiment.
Optionally, after the terminal completes the screen capturing operation instep 805 or 806, the type of the content included in the captured image is further identified, and if the type is a text, the type is converted into text data through a text identification function, which is not described herein again.
In summary, in this embodiment, the terminal acquires the folding angle of the folding display screen in the unfolded state, monitors the variation trend of the folding angle, and then automatically performs the screen capturing operation when the variation trend of the folding angle is matched with the target variation trend; the user can quickly complete screen capture operation through simple folding unfolding action when using the terminal with the folding display screen, and compared with screen capture operation through pressing a designated physical key combination or clicking a screen capture control called out on the display screen, the screen capture difficulty is low and the efficiency is high, so that the human-computer interaction efficiency is improved.
Furthermore, in this embodiment, the user can quickly implement a full screen capture through a folding and unfolding action in the full screen display mode, and also can implement a partial screen capture in a display area through a folding and unfolding part of the housing in the split screen display mode, so that the operation is simple and the efficiency is high.
Referring to fig. 15, a block diagram of a screen capture device according to an exemplary embodiment of the present application is shown. The screen capturing device can be realized by software, hardware and a combination of the software and the hardware to form all or part of the terminal. This screen capture device includes:
an obtainingmodule 1510, configured to obtain a folding angle of the folding display screen in an unfolded state;
amonitoring module 1520 for monitoring a variation trend of the folding angle;
and thescreen capturing module 1530 is configured to perform screen capturing operation on the content currently displayed on the folded display screen when the variation trend of the folding angle matches the target variation trend.
Optionally, thescreen capture module 1530 includes:
the determining unit is used for determining that the variation trend of the folding angle is matched with the target variation trend if the variation trend of the folding angle in the preset time is reduced after being increased or increased after being reduced and the variation amplitude of the folding angle is larger than a threshold value;
and the screen capturing unit is used for carrying out screen capturing operation on the content currently displayed by the folding display screen.
Optionally, the foldable display screen includes a first display area and a second display area, the first display area corresponds to the first housing, and the second display area corresponds to the second housing;
the screen capture unit is used for:
determining a current display mode, wherein the display mode comprises a full-screen display mode and a split-screen display mode;
when the display mode is the full-screen display mode, performing screen capture operation on the currently displayed content of the first display area and the second display area;
and when the display mode is the split-screen display mode, performing screen capture operation on the content currently displayed in the first display area or the second display area.
Optionally, a first angular velocity sensor is arranged in the first housing, and a second angular velocity sensor is arranged in the second housing;
the screen capture unit is specifically configured to:
calculating a first folding angle of the first shell according to the angular speed data collected by the first angular speed sensor;
calculating a second folding angle of the second shell according to the angular velocity data collected by the second angular velocity sensor;
if the first folding angle is larger than the second folding angle, performing screen capture operation on the content currently displayed in the first display area;
and if the first folding angle is smaller than the second folding angle, performing screen capture operation on the content currently displayed in the second display area.
Optionally, the apparatus further includes:
the detection module is used for detecting whether the content currently displayed on the folding display screen is an application interface of a preset application program, wherein the preset application program is an application program which does not need screen capture operation;
thescreen capture module 1530 is further configured to:
and if the variation trend of the folding angle is matched with the target variation trend and the content currently displayed on the folding display screen is not the application interface of the preset application program, performing screen capture operation on the content currently displayed on the folding display screen.
In summary, in this embodiment, the terminal acquires the folding angle of the folding display screen in the unfolded state, monitors the variation trend of the folding angle, and then automatically performs the screen capturing operation when the variation trend of the folding angle is matched with the target variation trend; the user can quickly complete screen capture operation through simple folding unfolding action when using the terminal with the folding display screen, and compared with screen capture operation through pressing a designated physical key combination or clicking a screen capture control called out on the display screen, the screen capture difficulty is low and the efficiency is high, so that the human-computer interaction efficiency is improved.
Furthermore, in this embodiment, the user can quickly implement a full screen capture through a folding and unfolding action in the full screen display mode, and also can implement a partial screen capture in a display area through a folding and unfolding part of the housing in the split screen display mode, so that the operation is simple and the efficiency is high.
Referring to fig. 16, a schematic structural diagram of a terminal according to an embodiment of the present application is shown. The terminal comprises aprocessor 1610, amemory 1620 and afoldable display 1630, wherein at least one instruction is stored in thememory 1620, and the instruction is loaded and executed by theprocessor 1610 to implement the screen capturing method provided by the various embodiments.
The embodiment of the present application further provides a computer-readable medium, which stores at least one instruction, where the at least one instruction is loaded and executed by the processor to implement the screen capturing method according to the above embodiments.
The embodiment of the present application further provides a computer program product, where at least one instruction is stored, and the at least one instruction is loaded and executed by the processor to implement the screen capturing method according to the above various embodiments.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.