WO2024045801A1 - 用于截屏的方法、电子设备、介质以及程序产品 - Google Patents

用于截屏的方法、电子设备、介质以及程序产品 Download PDF

Info

Publication number
WO2024045801A1
WO2024045801A1 PCT/CN2023/102110 CN2023102110W WO2024045801A1 WO 2024045801 A1 WO2024045801 A1 WO 2024045801A1 CN 2023102110 W CN2023102110 W CN 2023102110W WO 2024045801 A1 WO2024045801 A1 WO 2024045801A1
Authority
WO
WIPO (PCT)
Prior art keywords
screenshot
image
user interface
screenshot image
instruction
Prior art date
Application number
PCT/CN2023/102110
Other languages
English (en)
French (fr)
Inventor
赵韵景
陈超然
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024045801A1 publication Critical patent/WO2024045801A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® network

Definitions

  • the present disclosure relates generally to the field of information technology, and more particularly to a method, an electronic device, a computer-readable storage medium, and a computer program product for taking screenshots.
  • terminals such as mobile phones, tablets, personal computers, smart home devices (such as smart screens) at the same time.
  • smart home devices such as smart screens
  • the use of each terminal is relatively independent.
  • users will connect multiple terminals and use them together.
  • a method, electronic device, medium and program product for taking screenshots are provided, which can reduce the complexity and difficulty of taking screenshots and subsequent operations, thereby improving user experience.
  • a method for taking a screenshot When receiving the first instruction at the first device, intercept the first user interface of the first device as a first screenshot image and send a second instruction to the second device associated with the first device to trigger interception of the second device's first screenshot image. 2. User interface. The first device then receives a second screenshot of the second user interface from the second device. The first screenshot image and the second screenshot image are then presented on the first user interface.
  • screens of all devices associated with the device can be captured on only one device, so that the user can efficiently complete the screen capture operation. Therefore, the method for taking screenshots according to the first aspect of the present disclosure can avoid users from switching between different devices, sending and receiving pictures, and other operations, thereby improving user experience.
  • a screenshot display window In order to present the first screenshot image and the second screenshot image on the first user interface, a screenshot display window, a first switching identifier associated with the first screenshot image, and A second switching identifier associated with the second screenshot image.
  • the first device When receiving a click operation on the first switching logo, the first device presents the first screenshot image in the screenshot display window.
  • a click operation on the second switching identification is received, a second screenshot image is presented in the screenshot display window.
  • the first screenshot image may be presented on the first user interface with a first priority, and on the first user interface with The second priority level presents the second screenshot image, and the first priority level is higher than the second priority level (for example, the first screenshot image is presented first, and the option to switch to the second screenshot image is presented, and then the user can select to present the second screenshot image through the operation).
  • screenshot image may be presented on the first user interface with a first priority
  • the second priority level presents the second screenshot image
  • the first priority level is higher than the second priority level (for example, the first screenshot image is presented first, and the option to switch to the second screenshot image is presented, and then the user can select to present the second screenshot image through the operation).
  • screenshot image In this way, when the user takes a screenshot for the first time, the screenshot of the device that triggered the screenshot is presented first by default. This provides the same user experience as when the user takes a screenshot of a single device, does not confuse the user, and improves the user experience.
  • the method further includes: upon receiving the target operation at the first device, performing the target operation on at least one of the first screenshot image and the second screenshot image. In this way, after the screenshot is presented to the user, it is convenient for the user to operate the screenshot in a timely manner, thereby improving the efficiency of the screenshot operation.
  • the first screenshot image and the second screenshot image in order to present the first screenshot image and the second screenshot image on the first user interface, when the previous screenshot image of the first device has not been operated and the previous screenshot image of the second device has been operated, before the first user
  • the second screenshot image is displayed on the interface by default. In this way, the priority of the currently displayed screenshot image is determined by the user's last screenshot operation selection, which further reduces the switching operations required by the user and improves the user experience.
  • the method further includes: when receiving the first instruction, the first device sends a third instruction to a third device associated with the first device, and the third instruction is used to trigger interception of a third device of the third device. user interface.
  • the first device then receives from the third device a third screenshot image of a third user interface of the third device.
  • the first screenshot image and the second screenshot image are presented on the first user interface with a predetermined priority.
  • the predetermined priority is associated with a time when the previous screenshot image of the first device, the previous screenshot image of the second device, and the previous screenshot image of the third device were operated.
  • the priority of the currently displayed screenshot is determined based on the user's operation time of different screenshots in the last screenshot operation, so that the screenshots that the user needs most are displayed first, and further Reduce the user's operation steps and improve the interaction method.
  • the first user interface is an application program interface
  • the target operation may include inserting at least one screenshot image at a target position of the application program interface.
  • inserting at least one screenshot image may include: when receiving a drag operation for the screenshot, displaying an animation of the screenshot moving with the drag operation on the application interface, and as the user drags at the target position. Release the operation to insert the screenshot at the desired location on the application interface. In this way, users can insert screenshots through simple drag and drop operations, which improves user experience.
  • the target operation may include saving the screenshot to the first device when a click operation is received in an area of the first user interface other than the area where the screenshot is displayed. In this way, the user can save the screenshots of each device only by clicking after the screenshot operation, which improves the user experience.
  • the target operation may include editing the screenshot when a click operation is received within the area where the screenshot is displayed in the first user interface. In this way, the user can edit the screenshots of each device only by clicking after the screenshot operation, which improves the user experience.
  • the target operation may include: when receiving a screenshot that is dragged to a certain one of the at least one application identification.
  • the association between the first device and the second device indicates at least one of the following: the account logged in on the first device is associated with the account logged on the second device, the network where the first device is located and the network where the second device is located The network is associated and the distance between the first device and the second device is less than a threshold distance.
  • the method further includes disabling a screen capture function of one or more of the first device and the second device according to a disabling setting for screen capture. In this way, the user can disable the screenshot function of some uncommon devices or do not want to display the screenshot device before or during the screenshot operation, which improves the user experience.
  • the method further includes presenting the screenshots of the selected one or more devices among the first device and the second device on the first user interface of the first device according to the selection settings for the screenshots. In this way, users can select the device they want to take a screenshot of before or during the screenshot operation, making the screenshot operation more targeted and improving the user experience.
  • the first instruction includes at least one of the following: pressing the power button and volume button of the first device at the same time, three-finger slide operation, opening the control center to take a screenshot, using the voice assistant to take a screenshot, knuckle tapping. Click on the screen and take a screenshot with a stylus. In this way, users can take screenshots using the most convenient screenshot operation on different devices, which improves the user experience.
  • an apparatus for taking a screenshot includes: an instruction receiving module configured to receive a first instruction at a first device; a screenshot module configured to intercept a first user interface of the first device as a first screenshot image in response to the first instruction; and an instruction sending module , configured to send a second instruction to the second device associated with the first device in response to the first instruction, the second instruction being used to trigger interception of the second user interface of the second device; the screenshot receiving module is configured to receive the screenshot from the second device.
  • the second device receives a second screenshot image for the second user interface; and a screenshot display module is configured to present the first screenshot image and the second screenshot image on the first user interface.
  • an electronic device in a third aspect of the present disclosure, includes a processor and a memory storing instructions, wherein the instructions, when executed by the processor, cause the electronic device to perform any method according to the first aspect and its implementation.
  • a computer-readable storage medium stores instructions, wherein the instructions, when executed by the processor, cause the electronic device to perform any method according to the first aspect and its implementation.
  • a computer program product includes instructions, wherein the instructions, when executed by the processor, cause the electronic device to perform any method according to the first aspect and its implementation.
  • FIG. 1A to 1B show a schematic diagram of the hardware structure and software structure of an electronic device that can implement embodiments of the present disclosure
  • FIG. 2 illustrates a block diagram of another electronic device in which embodiments of the present disclosure may be implemented
  • Figure 3 shows a schematic diagram of an environment in which embodiments of the present disclosure may be implemented
  • Figure 4 shows a schematic diagram of a scenario in which embodiments of the present disclosure may be implemented
  • Figure 5 shows a flowchart of a method for taking screenshots according to an embodiment of the present disclosure
  • FIG. 6A to 6D illustrate schematic diagrams of a graphical user interface (GUI) for switching screenshots according to embodiments of the present disclosure
  • FIGS. 7A to 7H illustrate schematic diagrams of a GUI presenting priorities of screenshots according to embodiments of the present disclosure
  • FIG. 8A to 8B illustrate a schematic diagram of a GUI for inserting screenshots according to an embodiment of the present disclosure
  • FIGS. 9A to 9B illustrate a schematic diagram of a GUI for saving screenshots according to an embodiment of the present disclosure
  • FIG. 10A to 10B illustrate a schematic diagram of a GUI for editing screenshots according to an embodiment of the present disclosure
  • FIG. 11A to 11C illustrate schematic diagrams of a GUI for further operations on screenshots according to embodiments of the present disclosure
  • Figure 12 shows a schematic diagram of a GUI for screenshot settings according to an embodiment of the present disclosure
  • FIGS. 13A-13B illustrate schematic diagrams of an example screenshot device according to embodiments of the present disclosure.
  • Figure 14 shows a schematic diagram of an example screenshot device according to another embodiment of the present disclosure.
  • the term “include” and its variations mean an open inclusion, ie, "including but not limited to.” Unless otherwise stated, the term “or” means “and/or”. The term “based on” means “based at least in part on.” The terms “embodiments” and “some embodiments” mean “at least some embodiments.” The terms “first”, “second” and “third” are used to distinguish different objects, etc. They do not represent a sequence, nor do they limit "first”, “second” and “third” are different types.
  • Some of the processes described in the embodiments of the present disclosure include multiple operations or steps that appear in a specific order, but it should be understood that these operations or steps may not be performed in the order in which they appear in the embodiments of the present disclosure. Or execute in parallel.
  • the sequence number of the operation is only used to distinguish different operations. The sequence number itself does not represent any execution order. Additionally, these processes may include more or fewer operations, and these operations or steps may be performed sequentially or in parallel, and these operations or steps may be combined.
  • Embodiments of the present disclosure propose a new solution for taking screenshots.
  • Embodiments of the present disclosure can capture the screens of all devices associated with only one device. It prevents users from switching, sending and receiving pictures between different devices, reduces the steps to complete cross-device screenshots, and reduces the complexity and difficulty of screenshot operations. After the screenshot is completed, the screenshot of each device is presented on the user interface of the device, allowing the user to perform various subsequent operations on the screenshot, which improves the user experience.
  • FIG. 1A shows a schematic diagram of the hardware structure of an electronic device 100 that can implement embodiments of the present disclosure.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery 142 , Antenna 1, Antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 , display screen 194, and subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and an ambient light sensor. 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present disclosure do not constitute specific limitations on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figures, or combine some components, or separate some components, or arrange different components.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor.
  • processor AP
  • modem processor graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor , DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc.
  • AP application processor
  • GPU graphics processing unit
  • ISP image signal processor
  • controller video codec
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit, etc.
  • different processing units can be independent devices or integrated in one or more processors.
  • the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • Interfaces can include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver and transmitter (universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and /or universal serial bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • UART universal asynchronous receiver and transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (derail clock line, SCL).
  • processor 110 may include multiple sets of I2C buses.
  • the processor 110 can separately couple the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces.
  • the processor 110 can be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • processor 110 may include multiple sets of I2S buses.
  • the processor 110 can be coupled with the audio module 170 through the I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface to implement the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface to implement the function of answering calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is generally used to connect the processor 110 and the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 and the camera 193 communicate through the CSI interface to implement the shooting function of the electronic device 100 .
  • the processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100 .
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, display screen 194, wireless communication module 160, audio module 170, sensor module 180, etc.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with USB standard specifications, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through them. This interface can also be used to connect other electronic devices, such as AR devices, etc.
  • the interface connection relationships between the modules illustrated in the embodiments of the present disclosure are only schematic illustrations and do not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142, it can also provide power to the electronic device 100 through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, the wireless communication module 160, and the like.
  • the power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, antennas may be used in conjunction with tuning switches.
  • the mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194.
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (Bluetooth, BT), and global navigation satellites. Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR), etc.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • GNSS can include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi- zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 194 is used to display images, videos, etc.
  • Display 194 includes a display panel.
  • the display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light).
  • LED organic light-emitting diode
  • AMOLED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1. number.
  • the electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera sensor through the lens, the optical signal is converted into an electrical signal, and the camera sensor passes the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • Camera 193 is used to capture still images or video.
  • the object passes through the lens to produce an optical image that is projected onto the photosensitive element.
  • the photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other format image signals.
  • the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
  • Video codecs are used to compress or decompress digital video.
  • Electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, etc.
  • NPU is a neural network (NN) computing processor.
  • NN neural network
  • the NPU can realize intelligent cognitive applications of the electronic device 100, such as image recognition, face recognition, speech recognition, text understanding, etc.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. For example, save music, video and other files on an external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the internal memory 121 may include a program storage area and a data storage area.
  • the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.).
  • the storage data area may store data created during use of the electronic device 100 (such as audio data, phone book, etc.).
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to hands-free calls.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 answers a call or a voice message, the voice can be heard by bringing the receiver 170B close to the human ear.
  • Microphone 170C also known as “microphone” and “microphone”, is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which in addition to collecting sound signals, may also implement a noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.
  • the headphone interface 170D is used to connect wired headphones.
  • the headphone interface 170D may be a USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA Cellular Telecommunications Industry Association of the USA
  • the pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be provided on the display screen 194.
  • a capacitive pressure sensor may include at least two parallel plates of conductive material.
  • the electronic device 100 determines the intensity of the pressure based on the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch location but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation with a touch operation intensity smaller than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion posture of the electronic device 100 .
  • the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyro sensor 180B detects the angle at which the electronic device 100 shakes, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • Air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • Magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may utilize the magnetic sensor 180D to detect opening and closing of the flip holster.
  • the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Then, based on the detected opening and closing status of the leather case or the opening and closing status of the flip cover, features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices and be used in horizontal and vertical screen switching, pedometer and other applications.
  • Distance sensor 180F is used to measure distance.
  • Electronic device 100 can measure distance via infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may utilize the distance sensor 180F to measure distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 100 emits infrared light outwardly through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect when the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in holster mode, and pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touching.
  • Fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access to application locks, fingerprint photography, fingerprint answering of incoming calls, etc.
  • Temperature sensor 180J is used to detect temperature.
  • the electronic device 100 utilizes the temperature detected by the temperature sensor 180J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the low temperature from causing the electronic device 100 to shut down abnormally. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also known as "touch device”.
  • the touch sensor 180K can be disposed on the display screen 194.
  • the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K.
  • the touch sensor can pass the detected touch operation to the application processor to determine the touch event type.
  • Visual output related to the touch operation may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a location different from that of the display screen 194 .
  • Bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human body's vocal part.
  • the bone conduction sensor 180M can also contact the human body's pulse and receive blood pressure beating signals.
  • the bone conduction sensor 180M can also be provided in an earphone and combined into a bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibrating bone obtained by the bone conduction sensor 180M to implement the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M to implement the heart rate detection function.
  • the buttons 190 include a power button, a volume button, etc.
  • Key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback.
  • touch operations for different applications can correspond to different vibration feedback effects.
  • the motor 191 can also respond to different vibration feedback effects for touch operations in different areas of the display screen 194 .
  • Different application scenarios such as time reminders, receiving information, alarm clocks, games, etc.
  • the touch vibration feedback effect can also be customized.
  • the indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be connected to or separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 is also compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications.
  • the electronic device 100 employs an eSIM, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiments of the present disclosure take a mobile operating system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
  • FIG. 1B is a schematic diagram of the software structure of the electronic device 100 according to an embodiment of the present disclosure.
  • the layered architecture divides the software into several layers, and each layer has clear roles and division of labor.
  • the layers communicate through software interfaces.
  • the operating system can be divided into four layers. From top to bottom, they are the application layer, the application framework layer, the operating system runtime (runtime) and system libraries, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides an application programming interface (API) and programming framework for applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
  • a window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make this data accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls that display text, controls that display images, etc.
  • a view system can be used to build applications.
  • the display interface can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying images.
  • the phone manager is used to provide communication functions of the electronic device 100 .
  • call status management including connected, hung up, etc.
  • the resource manager provides various resources to applications, such as localized strings, icons, images, layout files, video files, etc.
  • the notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
  • the operating system runtime includes core libraries and virtual machines.
  • the operating system runtime is responsible for the scheduling and management of the operating system.
  • the core library contains two parts, one is the functional functions that need to be called by the Java language, and the other is the core library of the operating system.
  • the application layer and application framework layer run in virtual machines.
  • the virtual machine executes the Java files of the application layer and application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • System libraries can include multiple functional modules. For example, surface manager (surface manager), media libraries (Media Libraries), 3D graphics processing libraries (such as OpenGL ES), 2D graphics engines (such as: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
  • 2D Graphics Engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
  • the following exemplifies the workflow of the software and hardware of the electronic device 100 in conjunction with capturing the photographing scene.
  • touch sensor 180K When touch sensor 180K is connected Upon receiving a touch operation, the corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into original input events (including touch coordinates, timestamps of touch operations, and other information). Raw input events are stored at the kernel level.
  • the application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation and the control corresponding to the click operation as a camera application icon control as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer. Camera 193 captures still images or video.
  • FIG. 2 illustrates a block diagram of another electronic device 200 in which embodiments of the present disclosure may be implemented.
  • electronic device 200 may be in the form of a general purpose computing device.
  • Components of electronic device 200 may include, but are not limited to, one or more processors or processing units 210, memory 220, storage devices 230, one or more communication units 240, one or more input devices 250, and one or more output devices. 260.
  • the processing unit 210 may be a real or virtual processor and can perform various processes according to a program stored in the memory 220 . In a multi-processor system, multiple processing units execute computer-executable instructions in parallel to improve the parallel processing capability of the electronic device 200 .
  • Electronic device 200 typically includes a plurality of computer storage media. Such media may be any available media that is accessible to electronic device 200, including, but not limited to, volatile and nonvolatile media, removable and non-removable media.
  • Memory 220 may be volatile memory (e.g., registers, cache, random access memory (RAM)), nonvolatile memory (e.g., read only memory (ROM), electrically erasable programmable read only memory (EEPROM)) , flash memory) or some combination thereof.
  • Storage device 230 may be a removable or non-removable medium and may include machine-readable media such as a flash drive, a magnetic disk, or any other medium that may be capable of storing information and/or data (such as training data for training ) and can be accessed within electronic device 200.
  • Electronic device 200 may further include additional removable/non-removable, volatile/non-volatile storage media.
  • a disk drive may be provided for reading from or writing to a removable, non-volatile disk (eg, a "floppy disk") and for reading from or writing to a removable, non-volatile optical disk. Read or write to optical disc drives.
  • each drive may be connected to the bus (not shown) by one or more data media interfaces.
  • the memory 220 may include a computer program product 225 having one or more program modules configured to perform methods or processes for taking screenshots of embodiments of the present disclosure.
  • the communication unit 240 implements communication with other computing devices through communication media. Additionally, the functionality of the components of electronic device 200 may be implemented as a single computing cluster or as multiple computing machines capable of communicating over a communications connection. Accordingly, electronic device 200 may operate in a networked environment using a logical connection to one or more other servers, a network personal computer (PC), or another network node.
  • PC network personal computer
  • Input device 250 may be one or more input devices, such as a mouse, a keyboard, a trackball, etc.
  • Output device 260 may be one or more output devices, such as a display, speakers, printer, etc.
  • the output device 260 may include a touch screen having a touch sensor that may receive a user's touch input.
  • the electronic device 200 may also communicate with one or more external devices (not shown), such as storage devices, display devices, etc., through the communication unit 240 as needed, and with one or more devices that enable the user to interact with the electronic device 200 Communicate with or with any device (eg, network card, modem, etc.) that enables electronic device 200 to communicate with one or more other computing devices. Such communication may be performed via an input/output (I/O) interface (not shown).
  • I/O input/output
  • FIG. 3 shows a schematic diagram of an environment 300 in which embodiments of the present disclosure may be implemented.
  • an exemplary environment 300 includes multiple devices, such as a tablet 310 (and its stylus 316), a personal computer (PC) 320, a mobile phone 330, and a smart screen 340.
  • Each device includes a user interface presented to the user, for example, the user interface 311 of the tablet 310, the user interface 321 of the personal computer 320, the user interface 331 of the mobile phone 330, and the user interface 341 of the smart screen 340.
  • Images or image frames of played videos may be displayed on each user interface, and the images or video frames are shown with different icons.
  • the devices, user interfaces and images displayed thereon in the environment 300 are only exemplary, and more types of devices may exist in the environment 300, and the disclosure is not limited here.
  • a screenshot display window 312 and multiple switching identifiers may also be presented on the user interface of the device (tablet 310 in Figure 3).
  • 314-1, 314-2, 314-3, and 314-4 (hereinafter or collectively referred to as switch identifiers 314), each switch identifier being associated with a screenshot of the user interface of each device. This will be explained below.
  • the first device and the second device may be respectively called the device that triggers the screenshot and the device that is captured according to their different functions.
  • the device that triggers the screen capture (or the first device) may refer to a device that receives a screen capture operation and sends a second instruction (eg, a screen capture instruction).
  • the device to be screened (or the second device) may refer to a device that receives a second instruction from the device (or the first device) that triggers the screen capture.
  • the devices in the embodiments of the present disclosure can be mobile phones, tablet computers, handheld computers, and personal computers.
  • cellular phone personal digital assistant assistant (PDA), wearable devices (such as smart watches), vehicle-mounted computers, game consoles, and augmented reality (AR)/virtual reality (VR) devices, etc.
  • PDA personal digital assistant assistant
  • AR augmented reality
  • VR virtual reality
  • This embodiment describes the specific form of the device. No special restrictions are imposed.
  • the technical solution provided by this embodiment can be applied not only to the above-mentioned devices (or mobile devices), but also to other electronic devices, such as smart home devices (such as televisions).
  • the first device, the second device and the third device may have the same device form, or they may be different.
  • the same reference numerals will be used for the same device and its user interface in the different figures. This disclosure is not limited here.
  • Figure 4 shows a schematic diagram of a scenario 400 in which embodiments of the present disclosure may be implemented.
  • the user is watching a movie using the smart screen 340. While watching a movie, the user wants to take a screenshot of the movie displayed on the user interface 341 of the smart screen 340 and send it to a friend through the mobile phone 330 .
  • the user simultaneously takes notes on the tablet 310, plays videos on the personal computer 320, conducts videos with friends on the mobile phone 330, and conducts video conferencing on the smart screen 340.
  • the user can use the method of the embodiments of the present disclosure to perform a screenshot operation on only a tablet computer, and then can send the screenshot of the video to the friend who is video-recording, and can also share the screenshot of the notes being taken with other participants in the video conference. Meet people.
  • the screenshot operation and the implementation of subsequent operations will be explained in detail below. It can be understood that the screenshot method of the embodiment of the present disclosure can be applied to various devices and scenarios, and the present disclosure is not limited here.
  • Figure 5 illustrates a flowchart of a method 500 for taking screenshots according to an embodiment of the present disclosure.
  • method 500 may be performed by tablet computer 310 described with reference to FIG. 3 .
  • method 500 may also be performed by other electronic devices having a display screen.
  • the first device detects receipt of the first instruction.
  • the tablet computer 310 uses its touch sensor to detect a touch operation on the display screen or detects an operation on a button to determine that a first instruction, such as a screenshot operation from the user, is received.
  • the first instruction may be different for different first devices, such as the operation of pressing the power button and the volume button of the device at the same time, the three-finger slide operation, the operation of opening the control center to take a screenshot, the operation of using the voice assistant to take a screenshot, Knuckle tapping on the screen and stylus to take screenshots.
  • first devices such as the operation of pressing the power button and the volume button of the device at the same time, the three-finger slide operation, the operation of opening the control center to take a screenshot, the operation of using the voice assistant to take a screenshot, Knuckle tapping on the screen and stylus to take screenshots.
  • the above screenshot operations are only exemplary, and different screenshot operations may also exist according to different device forms and technological developments.
  • the first device captures a first user interface of the first device as a first screenshot image in response to the first instruction. For example, after the tablet computer 310 detects a screenshot operation from the user, it can capture an image of the user interface 311 as the first screenshot image.
  • the first instruction may be a screenshot operation from the user, or may be an instruction from the first device itself.
  • the action of intercepting the first screenshot image may be directly triggered by the first instruction or indirectly triggered by the first instruction.
  • the first device sends a second instruction to a second device associated with the first device in response to the first instruction, the second instruction being used to trigger interception of a second user interface of the second device.
  • the tablet computer 310 detects a screenshot operation from the user, it sends a second instruction, such as a screenshot instruction, to the mobile phone 330 associated with the tablet computer 310 .
  • a second instruction such as a screenshot instruction
  • the description order of blocks 520 and 530 is not intended to limit the order of capturing the first screenshot image and sending the second instruction.
  • there is no necessary correlation between capturing the first screenshot image and sending the second command that is, the action of capturing the first screen capture image is not necessarily accompanied by the action of sending the second command.
  • the screenshot instruction if the local setting of the mobile phone 330 is to allow other devices to capture the screen, the screenshot instruction causes the user interface 331 of the mobile phone 330 to be screenshotted. Alternatively, in some embodiments, according to the screenshot setting, if the local setting of the mobile phone 330 is to prohibit other devices from capturing the screen, the screenshot instruction is not executed. Additionally or alternatively, in some other embodiments, according to the screenshot settings, if the local setting of the phone 330 is to prohibit other devices from taking screen shots, the tablet computer 310 responds to receiving data that the screenshot instruction is rejected from the phone 330, in A pop-up window is displayed on the user interface 311 to ask the user whether to enable screenshots of the mobile phone 330 . Detailed screenshot settings will be described below.
  • the association between the first device and the second device may indicate that there is a specific connection relationship between the first device and the second device.
  • the account logged in on the first device is associated with the account logged on the second device (for example, they are in the same account, or parent-child account)
  • the network where the first device is located is associated with the network where the second device is located (for example, they are on the same network)
  • the distance between the first device and the second device is less than a threshold distance.
  • the tablet computer 310, the personal computer 320, the mobile phone 330 and the smart screen 340 need to log in to an account at the same time and be in an active state (for example, the screen is on), and the distance between them is less than 5 meters (for example, each device Only within the courtyard with the tablet 310 as the center and a radius of 5 meters, and are connected to a WiFi at the same time, can the tablet 310 take screenshots of other devices.
  • the tablet 310, personal computer 320, mobile phone 330 and smart screen 340 need to log in to an account at the same time and be in the same WiFi at the same time, so that the tablet 310 can take screenshots of other devices. In this way, users can take screenshots of devices connected in various ways, which expands the scope of application of the screenshot operation and improves user experience.
  • identification and authentication operations can be performed on the devices.
  • the identification and authentication operations include but are not limited to camera face recognition, fingerprint recognition, and wearable devices such as watches. Equipment etc. This is used to determine whether the communication connections between these devices are established by the same user, and to avoid the risk of sudden screenshots being taken when other users borrow devices nearby.
  • the first device or the second device may each have multiple displays.
  • the screenshot operation may be an operation of capturing multiple screens of the first device
  • the screenshot instruction may be an instruction instructing to capture multiple screens of the second device.
  • the first device receives a second screenshot image of the second user interface from the second device.
  • the mobile phone 330 can directly transmit the captured image to the tablet computer 310 .
  • the mobile phone 330 can transmit the captured image to a storage, such as a cloud server, and then transmit the address of the image to the tablet 310 .
  • the first screenshot image and the second screenshot image are presented on the first user interface.
  • the tablet computer 310 may present the screenshot image of the tablet computer 310 , the screenshot image of the personal computer 320 , the screenshot image of the mobile phone 330 and the screenshot image of the smart screen 340 according to predetermined priorities in the screenshot display window 312 .
  • the personal computer 320 has two or more displays, such as a first display 1402 and a second display 1404, as described above. 1404 share the same host.
  • the personal computer 320 may present screenshots of two or more displays in the screenshot display window 312 according to predetermined priorities.
  • Folding phone 330 can operate in split-screen mode (split-screen indicated by dotted lines), that is, half of the folded screen (eg, screen 1302) is playing video and the other half (screen 1304) is chatting.
  • split-screen mode split-screen indicated by dotted lines
  • the mobile phone 1300 will simultaneously capture the user interface of screen 1302 as screenshot image A, and capture the user interface of screen 1304 as screenshot image B.
  • the mobile phone 1300 may present the screenshot image A, the screenshot image B, and the screenshots of other devices associated with the mobile phone 1300 in the screenshot display window 312 according to predetermined priorities. Therefore, in the split-screen mode of the folding device, images of two screens are captured separately instead of the image of the entire screen, which reduces the steps for the user to split the screenshot image and improves the user experience.
  • the present disclosure can not only capture the screens of other associated devices on one device, but also capture different user interfaces of the same device as different screenshot images. This provides a convenient screenshot operation. Reduces the complexity of screenshot operations. The methods and steps in blocks 510 to 540 will be described in detail below with reference to FIGS. 6 to 12 .
  • FIG. 6A to 6D illustrate schematic diagrams of a graphical user interface (GUI) for switching screenshots according to embodiments of the present disclosure.
  • GUI graphical user interface
  • the tablet computer 310 can present a screenshot display window 312, a switching identifier 314-1 associated with the screenshot of the personal computer 320, and a switching identifier 314-2 associated with the screenshot of the mobile phone 330 on the user interface 311.
  • a switching identifier 314-3 associated with the screenshot of the smart screen 340
  • a switching identifier 314-4 associated with the screenshot of the tablet computer 310.
  • the number of switching identifiers 314 may be the same as the total number of devices.
  • the number of switching identifiers 314 may also be greater than the total number of devices. Additionally or alternatively, in some embodiments, if the screen-captured device is set to disable screen capture, the number of switching identifiers 314 may also be less than the total number of devices.
  • the tablet computer 310 receives a click operation of the stylus 316 at the switching mark 314 (the black circle represents that the click operation is received, and the white circle represents that the click operation is not received), Then the tablet computer 310 can accordingly present the screenshots associated with the switching identifiers 314-1 to 314-4 in the screenshot display window 312.
  • four screenshots can also be presented simultaneously in the screenshot display window 312.
  • the screenshot display window 312 can be divided into four areas of the same or different sizes, where each area is used to display a screenshot. Therefore, when the user completes the screenshot operation and intends to perform further operations on the screenshot, the screenshots of each device can be displayed in a timely manner, thereby improving the efficiency of the screenshot operation.
  • FIG. 7A to 7H illustrate schematic diagrams of a GUI presenting priorities of screenshots according to embodiments of the present disclosure.
  • the priority of presenting the screenshot needs to be determined.
  • Figures 7A to 7D illustrate the priority of rendering a screenshot when taking a first screenshot.
  • taking the tablet computer 310 as a triggering screen capture device as an example, when the tablet computer 310 receives a screen capture operation for the first time, the tablet computer 310 presents the screen capture of the tablet computer 310 with the first priority on the user interface 311 (such as 7A), and the screenshot of the mobile phone 330 is presented on the user interface 311 with a second priority (as shown in FIG. 7B), where the first priority is higher than the second priority.
  • the first priority being higher than the second priority means that when taking a screenshot for the first time, the screenshot of the user interface of the device that triggers the screenshot is presented first in the screenshot display window 312 by default. This is because the user takes a screenshot for the first time, and there is no previous screenshot operation or additional operation on the screenshot, so the user's intention cannot be guessed, so the default logic is used, that is, the screenshot of the device itself that triggers the screenshot is presented. Therefore, although the cross-device screenshot method is different from the traditional screenshot method, using a default method that is familiar to the user will not make the user unfamiliar and improve the user experience.
  • the priority of the currently presented screenshot may be determined based on whether the user performed subsequent operations on the last screenshot. For example, continuing the above example to describe, in the last screenshot operation, the tablet computer 310 determined that the user did not operate on the screenshot of the tablet computer 310 that was preferentially presented in the screenshot display window 312, but targeted the screenshot of the personal computer 320, for example. Operation (e.g., insert, edit, save, etc.), the target operation will be described in detail below. In the current screenshot operation, as shown in FIG. 7E , compared with the screenshot of the tablet computer 310 that was not operated in the last screenshot operation, the screenshot of the personal computer 320 is preferably presented in the screenshot display window 312 . thus The priority of the currently displayed screenshot is determined by the user's last screenshot operation selection, which further reduces the switching operations required by the user and improves the user experience.
  • the priority of the currently presented screenshot may also be determined by the time of the user's last selection and operation of the screenshot.
  • the presentation priorities in the screenshot display window 312 from high to low are: screenshots of the tablet computer 310 , screenshots of the mobile phone 330 , screenshots of the smart screen 340 , and screenshots of the personal computer 320 . Users took targeted actions on some of the screenshots after being presented with them.
  • the user first saves the screenshot of the personal computer 320, then edits the screenshot of the smart screen 340, and then inserts the screenshot of the personal computer 320, but does not perform any operation on the screenshot of the tablet computer 310. Then, the priority of presenting the current screenshot is associated with the time when the previous screenshot image was operated. For example, as shown in FIG. 7E , if the tablet computer 310 determines that the screenshot of the personal computer 320 was operated first in the last screenshot, it will be presented with the highest priority. Screenshot of PC 320. And as shown in FIGS. 7F to 7H , screenshots are sequentially presented corresponding to the switching identifiers 314 - 2 to 314 - 4 arranged from left to right.
  • the priority may refer to the order in which the switching identifiers 314 are arranged from left to right. Therefore, when the user operates on multiple images, the priority of the currently displayed screenshot is determined based on the user's operation time of different screenshots in the last screenshot operation, so that the screenshots that the user needs most are displayed first, which improves the user experience. experience.
  • screenshots can also be always presented with a predetermined priority according to settings, that is, regardless of whether each screenshot is operated or the time of operation, the next screenshot presentation will be based on the same priority. Prioritize rendering screenshots.
  • the priority for rendering screenshots is described above, and the target operation for screenshots is described below.
  • the device that triggers the screenshot detects a target operation on the presented screenshot, it performs the target operation on the corresponding screenshot.
  • the target operation may be saving, inserting, editing, or associated with the application presented in the user interface. operation. The above target operation will be described below in conjunction with FIGS. 8 to 11 .
  • FIG. 8A to 8B illustrate schematic diagrams of a GUI for inserting screenshots according to embodiments of the present disclosure. It is understandable that when the user takes notes on the tablet 310 and watches the video on other devices, the user may need to insert some important pictures in the video into the notes.
  • the target operation may be an operation of inserting at least one screenshot image at a target position of the application interface.
  • FIGS. 9A to 9B illustrate schematic diagrams of a GUI for saving screenshots according to embodiments of the present disclosure. It is understandable that the user may be interested in the screenshot presented, but cannot currently process it, and the user wishes to save the screenshot for subsequent processing.
  • the tablet computer 310 receives a click operation in an area other than the area where the screenshot is displayed in the user interface 311 (for example, an area outside the screenshot display window 312), the tablet computer 310 displays "has been" on the user interface 311. "Save to device” prompt pop-up window, and the data associated with the screenshot is saved to the memory of the tablet computer 310.
  • the tablet computer 310 determines that no operation is received within a predetermined time (for example, 3 seconds) after the corresponding switch identification is clicked, the data associated with the screenshot will be saved to the tablet computer 310 in memory. It can be understood that the saving operation can be performed regardless of whether the user interface is an application interface or a main interface. In this way, the user can save the screenshots of each device only by clicking after the screenshot operation, which improves the user experience.
  • a predetermined time for example, 3 seconds
  • FIG. 10A to 10B illustrate schematic diagrams of a GUI for editing screenshots according to embodiments of the present disclosure. It is understandable that the user may be interested in the screenshot presented and want to edit the screenshot immediately.
  • the tablet computer 310 receives a click operation within the area where the screenshot is displayed in the user interface 311 (for example, the area within the screenshot display window 312), then the tablet computer 310 edits at least one screenshot image, for example, in A graphic editing interface 317 is displayed on the user interface 311.
  • the user interface is an application interface or a main interface, the editing operation can be performed. In this way, the user can edit the screenshots of each device only by clicking after the screenshot operation, which improves the user experience.
  • the tablet computer 310 is used as the first device, that is, the screenshot triggering device, in FIGS. 8 to 10 , it can be understood that any device can be used as the screenshot triggering device, and the disclosure is not limited here.
  • the mobile phone 330 will be used as the first device, that is, the screenshot triggering device to describe other target operations for screenshots.
  • FIG. 11A to 11C illustrate schematic diagrams of a GUI for further operations on screenshots according to embodiments of the present disclosure. It is understood that the user may be interested in the screenshot presented and want to perform further operations on the screenshot in some applications. For example, if the mobile phone 330 receives an operation of dragging the screenshot to one of the at least one application identifier in the main interface in the user interface 331 of the main interface, then the mobile phone 330 processes at least one of the application identifiers in the application associated with the application identifier. A screenshot image.
  • the mobile phone 330 if the mobile phone 330 receives an operation of dragging the screenshot onto the chat application logo in the user interface 331, the mobile phone 330 will open the chat application interface (not shown in the figure). Shows). The user can choose to send the screenshot to a friend in the chat application (as shown in Figure 11B), and the user can also share the screenshot to the circle of friends.
  • the mobile phone 330 if the mobile phone 330 receives an operation of dragging the screenshot onto the gallery application logo in the user interface 331, the mobile phone 330 opens the gallery application interface (as shown in Figure 11C ). Users can perform further operations on the screenshot in the gallery app. In this way, users can perform various operations on screenshots by taking screenshots and dragging and dropping, which significantly reduces cross-device screenshots and subsequent operations, and improves user experience.
  • Figure 12 shows a schematic diagram of a GUI for screenshot settings according to an embodiment of the present disclosure. It is understood that for various reasons, users may not want to take screenshots on some devices or may only want to take screenshots on some devices. In this case, the user can set to disable screenshots or set to enable screenshots, thereby disabling or enabling the screenshot function of some devices among multiple devices.
  • the user can set the screenshot-disabling or enabling functions of the device and the device being captured in the screenshot settings of the screenshot-triggering device.
  • mobile phone 330 is the first device, that is, the screenshot triggering device.
  • the screenshot settings display a list of devices associated with the mobile phone 330, such as device 2, device 3 and device 4, where device 1 may be the mobile phone 330 itself. According to the screen capture settings in the user interface 331, device 1 is not screen-captured, and device 2 to device 4 are screen-captured.
  • some devices may be set to disable taking screenshots by default. For example, a watch often lights up and is usually associated with the user's phone, but users generally do not intend to take screenshots of the watch. Therefore, the watch’s screenshot settings default to screenshot disabled.
  • prohibiting other devices from taking screenshots may be set locally on the device.
  • the screenshot settings of mobile phone 330 enable screenshots of device 2, while the screenshot settings of device 2 are configured to prohibit other devices from taking screenshots of this device.
  • mobile phone 330 cannot obtain a screenshot of the user interface of device 2. That is to say, regarding the screenshot disabling function, the screenshot settings of the local device have a higher priority than the screenshot settings of other devices.
  • the user can disable the screenshot function of some uncommon devices or do not want to display the screenshot device before or during the screenshot operation, or select the device on which the screenshot is to be taken, which improves the user experience.
  • the apparatus at least includes: an instruction receiving module configured to receive a first instruction at the first device; a screenshot module configured to intercept the first user interface of the first device as a first screenshot image in response to the first instruction, and the instruction
  • the sending module is configured to send a second instruction to the second device associated with the first device in response to the first instruction, the second instruction is used to trigger interception of the second user interface of the second device;
  • the screenshot receiving module is configured to Receive a second screenshot image for the second user interface from the second device; and a screenshot display module configured to present the first screenshot image and the second screenshot image on the first user interface.
  • the screenshot display module may include: a first display module configured to present a screenshot display window on the first user interface, a first switching identifier associated with the first screenshot image, and a first switch identifier associated with the second screenshot image. a second switching identification associated with the image; a second display module configured to present the first screenshot image in the screenshot display window in response to receiving a click operation for the first switching identification; and a third display module configured to In response to receiving a click operation on the second switching identification, a second screenshot image is presented in the screenshot display window.
  • the screenshot display module may include: a first priority display module configured to present the first screenshot image with a first priority on the first user interface; and a second priority display module configured to To present the second screenshot image with the second priority on the first user interface, the first priority is higher than the second priority.
  • the apparatus may further include: a target operation module configured to perform a target operation on at least one of the first screenshot image and the second screenshot image in response to receiving the target operation at the first device. .
  • the screenshot display module may include: a default display module configured to default on the first user interface in response to the previous screenshot image of the first device not being operated and the previous screenshot image of the second device being operated. Displaying a second screenshot image, the previous screenshot image is an image captured by a previous screenshot operation immediately adjacent to the current screenshot operation.
  • the apparatus may further include: a screenshot instruction module configured to send a third instruction to a third device associated with the first device in response to the first instruction, the third instruction being used to trigger interception of the third device
  • a screenshot instruction module configured to send a third instruction to a third device associated with the first device in response to the first instruction, the third instruction being used to trigger interception of the third device
  • the third user interface of The first screenshot image, the second screenshot image, and the third screenshot image are presented on the first user interface with a predetermined priority level with the previous screenshot image of the first device, the previous screenshot image of the second device, and the previous screenshot image of the third device.
  • the previous screenshot image is associated with the time when it was operated, and the previous screenshot image is the image captured by the last screenshot operation immediately adjacent to the current screenshot operation.
  • the first user interface is an application program interface
  • the target operation module may include: an inserting module configured to insert at least one screenshot image at a target position of the application program interface.
  • the insertion module may include a drag module configured to respond to receiving a drag for at least one screenshot image. a drag operation, displaying an animation of at least one screenshot image moving with the drag operation on the application interface; and a drag release module configured to respond to receiving a release operation for at least one screenshot image at the target position, in the application program Inserts at least one screenshot image at the target location on the interface.
  • the target operation module may include: a saving module configured to save the at least one screenshot image in response to receiving a click operation in an area other than the area where the at least one screenshot image is displayed in the first user interface. Save to first device.
  • the target operation module may include: an editing module configured to edit the at least one screenshot image in response to receiving a click operation within an area in the first user interface where the at least one screenshot image is displayed.
  • the first user interface is the main interface of the first device, and at least one application identifier is displayed on the main interface.
  • the target operation module may include: an application interaction module configured to respond to receiving at least one application identifier. The operation of dragging the screenshot image onto an application identifier in at least one application identifier processes the at least one screenshot image in an application associated with the application identifier.
  • the association between the first device and the second device indicates at least one of the following: the account logged in on the first device is associated with the account logged on the second device, the network where the first device is located and the network where the second device is located The network is associated and the distance between the first device and the second device is less than a threshold distance.
  • the apparatus may further include: a screenshot disabling module configured to disable the screenshot function of one or more of the first device and the second device based on the disabling setting for screenshots.
  • a screenshot disabling module configured to disable the screenshot function of one or more of the first device and the second device based on the disabling setting for screenshots.
  • the apparatus may further include: a screenshot enabling module configured to present the selected one of the first device and the second device on the first user interface of the first device based on the selection setting for the screenshot; or Screenshots from multiple devices.
  • a screenshot enabling module configured to present the selected one of the first device and the second device on the first user interface of the first device based on the selection setting for the screenshot; or Screenshots from multiple devices.
  • the first instruction includes at least one of the following: pressing the power button and the volume button of the first device simultaneously, a three-finger slide operation, opening the control center to take a screenshot, using a voice assistant to take a screenshot, knuckle Tap the screen and take screenshots with a stylus.
  • the method for taking screenshots according to the embodiments of the present disclosure can be applied to various electronic devices.
  • the electronic device can be: a mobile phone, a tablet computer (Tablet Personal Computer), a digital camera, a personal digital assistant (personal digital assistant, PDA for short), a navigation device, and a mobile Internet device (Mobile Internet Device, MID). , wearable devices (Wearable Device), and other devices that can be used for screenshots, etc.
  • the solution for taking screenshots in the embodiments of the present disclosure can be implemented not only as a function of the input method, but also as a function of the operating system of the electronic device.
  • the above embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • a software program it may take the form of a computer program product, in whole or in part.
  • the computer program product includes one or more computer instructions.
  • the computer program instructions When the computer program instructions are loaded and executed on a computer, processes or functions described in accordance with embodiments of the present disclosure are produced in whole or in part.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated.
  • the available media may be magnetic media (eg, floppy disk, hard disk, tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本公开涉及一种用于截屏的方法、电子设备、计算机可读存储介质以及计算机程序产品。根据在此描述的用于截屏的方法,当在第一设备处接收到第一指令(例如截屏指令)时,截取第一设备的第一用户界面作为第一截屏图像,并且向与第一设备相关联的第二设备发送第二指令,以触发截取第二设备的第二用户界面。然后第一设备从第二设备接收针对第二用户界面的第二截屏图像。接着在第一用户界面上呈现第一截屏图像和第二截屏图像。根据本公开的实施例,在一个设备上即可截取与该设备相关联的所有设备的屏幕,使得用户能够高效地完成截屏操作。因此,本公开的实施例能够避免用户在不同设备间切换、发送和接收图片等操作,由此提高用户体验。

Description

用于截屏的方法、电子设备、介质以及程序产品
本申请要求于2022年8月31日提交中国国家知识产权局、申请号为202211062802.6、发明名称为“用于截屏的方法、电子设备、介质以及程序产品”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本公开总体上涉及信息技术领域,并且更特别地涉及一种用于截屏的方法、电子设备、计算机可读存储介质以及计算机程序产品。
背景技术
随着电子技术及移动互联网的发展,一个用户可同时拥有更多如手机、平板电脑、个人电脑、智能家居设备(如智慧屏)等终端。一般情况下,各个终端的使用都是比较独立的。在如协同办公等有多终端协同使用需求的场景下,用户会将多个终端连接起来一起使用。
在一些场景中,用户经常会使用笔记本电脑来观看视频或者会议,与此同时使用平板电脑和手写笔来做笔记记录。因此,需要一种便捷的跨设备操作方案,以提高用户体验。
发明内容
根据本公开的一些实施例,提供了一种用于截屏的方法、电子设备、介质以及程序产品,能够减小截屏以及后续操作的复杂度和操作难度,从而提高用户体验。
在本公开的第一方面,提供了一种用于截屏的方法。在第一设备处接收第一指令时,截取第一设备的第一用户界面作为第一截屏图像并且向与第一设备相关联的第二设备发送第二指令,以触发截取第二设备的第二用户界面。然后第一设备从第二设备接收针对第二用户界面的第二截屏图像。接着在第一用户界面上呈现第一截屏图像和第二截屏图像。
因此,根据本公开的第一方面的用于截屏的方法,仅在一个设备上即可截取与该设备相关联的所有设备的屏幕,使得用户能够高效地完成截屏操作。因此,本公开的第一方面的用于截屏的方法能够避免用户在不同设备间切换、发送和接收图片等操作,由此提高用户体验。
在一些实现方式中,为了在第一用户界面上呈现第一截屏图像和第二截屏图像,可以在第一用户界面上呈现截屏展示窗口、与第一截屏图像相关联的第一切换标识、以及与第二截屏图像相关联的第二切换标识。当接收到对第一切换标识的点击操作时,第一设备在截屏展示窗口中呈现第一截屏图像。当接收到针对第二切换标识的点击操作时,在截屏展示窗口中呈现第二截屏图像。通过这种方式,能够在用户完成截屏操作意图对截屏进行进一步操作时,及时地显示出各个设备的截图,提高了截屏操作的效率。
在一些实现方式中,为了在第一用户界面上呈现第一截屏图像和第二截屏图像,可以在第一用户界面上以第一优先级呈现第一截屏图像,并且在第一用户界面上以第二优先级呈现第二截屏图像,第一优先级高于第二优先级(例如,首先呈现第一截屏图像,并且呈现切换至第二截屏图像的选项,然后用户能够通过操作选择呈现第二截屏图像)。通过这种方式,在用户首次截屏时,默认首先呈现触发截屏设备的截屏,这提供与用户针对单个设备截屏时相同的用户体验,不会使用户困惑,提高用户的体验。
在一些实现方式中,方法还包括:当在第一设备处接收到目标操作,对第一截屏图像和第二截屏图像中的至少一个截屏图像执行目标操作。通过这种方式,使得在截屏呈现给用户后,方便用户对截屏及时进行操作,提高了截屏操作的效率。
在一些实现方式中,为了在第一用户界面上呈现第一截屏图像和第二截屏图像,当第一设备的先前截屏图像未被操作且第二设备的先前截屏图像被操作,在第一用户界面上默认显示第二截屏图像。通过这种方式,通过用户的上一次截屏操作的选择决定当前显示截屏图片的优先级,这进一步减少了用户所需的切换操作,提高了用户体验。
在一些实现方式中,方法还包括:当接收到第一指令时,第一设备向与第一设备相关联的第三设备发送第三指令,第三指令用于触发截取第三设备的第三用户界面。第一设备然后从第三设备接收针对第三设备的第三用户界面的第三截屏图像。之后在第一用户界面上以预定优先级呈现第一截屏图像、第二截屏图 像和第三截屏图像,预定优先级与第一设备的先前截屏图像、第二设备的先前截屏图像以及第三设备的先前截屏图像被操作的时间相关联。通过这种方式,在用户对多个图像都存在操作时,通过用户在上一次截屏操作中对不同截屏的操作时间决定当前显示截屏图片的优先级,使得用户最需要的截屏被优先展示,进一步减少用户的操作步骤,改善了交互方式。
在一些实现方式中,第一用户界面为应用程序界面,目标操作可以包括在应用程序界面的目标位置处插入至少一个截屏图像。通过这种方式,使得用户仅通过一个截屏操作就能够将其它设备的截屏添加到用户所操作设备的应用中,提高了截屏操作的效率。
在一些实现方式中,在插入至少一个截屏图像可以包括:当接收到针对截屏的拖拽操作,在应用程序界面上显示截屏随拖拽操作移动的动画,随着用户在目标位置处的拖拽释放操作,在应用程序界面上的目标位置处插入该截屏。通过这种方式,使得用户可以通过简便的拖拽操作实现截屏的插入,提高了用户体验。
在一些实现方式中,目标操作可以包括当在第一用户界面中除截屏被显示的区域之外的区域接收到点击操作,将截屏保存到第一设备中。通过这种方式,使得用户仅通过截屏操作之后的点击操作就能够将各个设备的截屏进行保存,提高了用户体验。
在一些实现方式中,目标操作可以包括当在第一用户界面中截屏被显示的区域之内接收到点击操作,对截屏进行编辑。通过这种方式,使得用户仅通过截屏操作之后的点击操作就能够对各个设备的截屏进行编辑,提高了用户体验。
在一些实现方式中,其中第一用户界面为第一设备的主界面,并且主界面上显示有至少一个应用标识,目标操作可以包括:当接收到将截屏拖拽到至少一个应用标识中的某个应用标识上的操作,在与应用标识相关联的应用中处理至少一个截屏图像。通过这种方式,使得用户仅通过截屏操作之后的点击操作就能够对各个设备的截屏进行编辑,提高了用户体验。
在一些实现方式中,其中第一设备和第二设备相关联指示以下至少一项:第一设备上登录的账号和第二设备上登录的账号相关联、第一设备所处网络和第二设备所处的网络相关联、以及第一设备和第二设备之间的距离小于阈值距离。通过这种方式,使得用户可以对以各种方式连接的设备进行截屏操作,拓展了截屏操作的适用范围,使得交互方式更加便捷。
在一些实现方式中,方法还包括根据对截屏的禁用设置,禁用第一设备和第二设备中的一个或多个设备的截屏功能。通过这种方式,使得用户可以在截屏操作前或者操作中禁用一些不常用设备或者不想展示截屏设备的截屏功能,提高了用户体验。
在一些实现方式中,方法还还包括根据对截屏的选择设置,在第一设备的第一用户界面上呈现第一设备和第二设备中所选择的一个或多个设备的截屏。通过这种方式,用户可以在截屏操作前或者操作中选择想要截屏的设备,使得截屏操作更具有针对性,提高了用户体验。
在一些实现方式中,第一指令包括以下至少一项:同时按下第一设备的电源键与音量键的操作、三指下滑操作、打开控制中心截图操作、使用语音助手截图操作、指关节敲击屏幕操作、以及手写笔截屏操作。通过这种方式,用户可以在不同设备处利用最方便的截屏操作进行截屏,提高了用户体验。
在本公开的第二方面,提供了一种用于截屏的装置。装置包括:指令接收模块,被配置为在第一设备处接收第一指令;截屏模块,被配置为响应于第一指令截取第一设备的第一用户界面作为第一截屏图像,以及指令发送模块,被配置为响应于第一指令向与第一设备相关联的第二设备发送第二指令,第二指令用于触发截取第二设备的第二用户界面;截屏接收模块,被配置为从第二设备接收针对第二用户界面的第二截屏图像;以及截屏显示模块,被配置为在第一用户界面上呈现第一截屏图像和第二截屏图像。
在本公开的第三方面,提供了一种电子设备。电子设备包括处理器以及存储有指令的存储器,其中指令在被处理器执行时使得电子设备执行根据第一方面及其实现方式的任一方法。
在本公开的第四方面,提供了一种计算机可读存储介质。计算机可读存储介质存储有指令,其中指令在被处理器执行时使得电子设备执行根据第一方面及其实现方式的任一方法。
在本公开的第五方面,提供了一种计算机程序产品。计算机程序产品包括指令,其中指令在被处理器执行时使得电子设备执行根据第一方面及其实现方式的任一方法。
附图说明
结合附图并参考以下详细说明,本公开各实现方式的特征、优点及其他方面将变得更加明显。在此以 示例性而非限制性的方式示出了本公开的若干实现方式,在附图中:
图1A至1B示出了可以实施本公开的实施例的一种电子设备的硬件结构和软件结构的示意图;
图2示出了可以实施本公开的实施例的另一种电子设备的框图;
图3示出了在其中可以实施本公开的实施例的环境的示意图;
图4示出了在其中可以实施本公开的实施例的场景的示意图;
图5示出了根据本公开的实施例的用于截屏的方法的流程图;
图6A至6D示出了根据本公开的实施例的切换截屏的图形用户界面(GUI)的示意图;
图7A至7H示出了根据本公开的实施例的呈现截屏的优先级的GUI的示意图;
图8A至8B示出了根据本公开的实施例的插入截图的GUI的示意图;
图9A至9B示出了根据本公开的实施例的保存截图的GUI的示意图;
图10A至10B示出了根据本公开的实施例的编辑截图的GUI的示意图;
图11A至11C示出了根据本公开的实施例的对截图进行进一步操作的GUI的示意图;
图12示出了根据本公开的实施例的截图设置的GUI的示意图;
图13A至13B示出了根据本公开的实施例的示例截图设备的示意图;以及
图14示出了根据本公开的另一实施例的示例截图设备的示意图。
具体实施方式
下面将参照附图更详细地描述本公开的一些示例实现。虽然附图中显示了本公开的一些示例实现,然而,应该理解,可以以各种形式实现本公开而不应被这里阐述的示例实现所限制。相反,提供这些实现是为了使本公开更加透彻和完整,并且能够将本公开的范围完整地传达给本领域的技术人员。
在本文中使用的术语“包括”及其变形表示开放性包括,即“包括但不限于”。除非特别申明,术语“或”表示“和/或”。术语“基于”表示“至少部分地基于”。术语“实施例”和“一些实施例”表示“至少一些实施例”。术语“第一”、“第二”和“第三”等描述,是用于区分不同的对象等,其不代表先后顺序,也不限定“第一”、“第二”和“第三”是不同的类型。
在本公开的实施例中描述的一些流程中,包含了按照特定顺序出现的多个操作或步骤,但是应该理解,这些操作或步骤可以不按照其在本公开的实施例中出现的顺序来执行或并行执行,操作的序号仅用于区分开各个不同的操作,序号本身不代表任何的执行顺序。另外,这些流程可以包括更多或更少的操作,并且这些操作或步骤可以按顺序执行或并行执行,并且这些操作或步骤可以进行组合。
通常,当用户想本地设备上对另一个设备的截屏图像进行编辑时,需要首先在另一个设备上截屏,发送至另本地设备,再在本地设备执行后续操作。用户需要在不同设备间切换,进行截图、发送和接收图片等操作,这使得操作步骤繁琐,影响了用户体验。
为此,本公开的实施例提出了一种用于截屏的新方案。本公开的实施例仅在一个设备上即可截取与该设备相关联的所有设备的屏幕。避免用户在不同设备间切换、发送和接收图片等操作,减少完成跨设备截图的步骤,减小了截屏操作的复杂度和操作难度。在完成截图之后,在设备的用户界面上呈现各个设备的截屏,使得用户能够对截屏进行各种后续操作,提高了用户体验。以下将参考附图1至图12描述了本公开的一些示例实施例。
图1A示出了可以实施本公开的实施例的一种电子设备100的硬件结构的示意图。如图1所示,电子设备100可以包括处理器110、外部存储器接口120、内部存储器121、通用串行总线(universal serial bus,USB)接口130、充电管理模块140、电源管理模块141、电池142、天线1、天线2、移动通信模块150、无线通信模块160、音频模块170、扬声器170A、受话器170B、麦克风170C、耳机接口170D、传感器模块180、按键190、马达191、指示器192、摄像头193、显示屏194、以及用户标识模块(subscriber identification module,SIM)卡接口195等。传感器模块180可以包括压力传感器180A、陀螺仪传感器180B、气压传感器180C、磁传感器180D、加速度传感器180E、距离传感器180F、接近光传感器180G、指纹传感器180H、温度传感器180J、触摸传感器180K、环境光传感器180L、骨传导传感器180M等。
应当理解,本公开的实施例所示意的结构并不构成对电子设备100的具体限定。在本公开的另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application  processor,AP)、调制解调处理器、图形处理器(graphics processing unit,GPU)、图像信号处理器(image signal processor,ISP)、控制器、视频编解码器、数字信号处理器(digital signal processor,DSP)、基带处理器、和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口、集成电路内置音频(inter-integrated circuit sound,I2S)接口、脉冲编码调制(pulse code modulation,PCM)接口、通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口、移动产业处理器接口(mobile industry processor interface,MIPI)、通用输入输出(general-purpose input/output,GPIO)接口、用户标识模块(subscriber identity module,SIM)接口、和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K、充电器、闪光灯、摄像头193等。例如,处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样、量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如,处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194、摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI)、显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193、显示屏194、无线通信模块160、音频模块170、传感器模块180等。GPIO接口还可以被配置为I2C接口、I2S接口、UART接口、MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口、Micro USB接口、USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本公开的实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本公开的另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。 在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备100供电。
电源管理模块141用于连接电池142、充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110、内部存储器121、显示屏194、摄像头193、和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1、天线2、移动通信模块150、无线通信模块160、调制解调处理器以及基带处理器等实现。天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如,可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器、开关、功率放大器、低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A、受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络)、蓝牙(Bluetooth,BT)、全球导航卫星系统(global navigation satellite system,GNSS)、调频(frequency modulation,FM)、近距离无线通信技术(near field communication,NFC)、红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM)、通用分组无线服务(general packet radio service,GPRS)、码分多址接入(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、时分码分多址(time-division code division multiple access,TD-SCDMA)、长期演进(long term evolution,LTE)、BT、GNSS、WLAN、NFC、FM、和/或IR技术等。其中GNSS可以包括全球卫星定位系统(global positioning system,GPS)、全球导航卫星系统(global navigation satellite system,GLONASS)、北斗卫星导航系统(beidou navigation satellite system,BDS)、准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU、显示屏194、以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可以包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)、有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED)、柔性发光二极管(flex light-emitting diode,FLED)、Miniled、MicroLed、Micro-oLed、量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整 数。
电子设备100可以通过ISP、摄像头193、视频编解码器、GPU、显示屏194以及应用处理器等实现拍摄功能。ISP用于处理摄像头193反馈的数据。例如,在拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如,动态图像专家组(moving picture experts group,MPEG)1、MPEG2、MPEG3、MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如图像识别、人脸识别、语音识别、文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐、视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令、和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。
电子设备100可以通过音频模块170、扬声器170A、受话器170B、麦克风170C、耳机接口170D、以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”、“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个、四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器 180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器、电感式压力传感器、电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如,当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x、y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换、计步器等应用。
距离传感器180F用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键、音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如,时间提醒、接收信息、闹钟、游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态、电量变化,也可以用于指示消息、未接来电、通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡、Micro SIM卡、SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本公开的实施例以分层架构的一种移动操作系统为例,示例性说明电子设备100的软件结构。
图1B是本公开的实施例的电子设备100的软件结构的示意图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,可以将操作系统分为四层,从上至下分别为应用程序层、应用程序框架层、操作系统运行时(runtime)和系统库、以及内核层。
应用程序层可以包括一系列应用程序包。如图1B所示,应用程序包可以包括相机、图库、日历、通话、地图、导航、WLAN、蓝牙、音乐、视频、短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图1B所示,应用程序框架层可以包括窗口管理器、内容提供器、视图系统、电话管理器、资源管理器、通知管理器等。窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频、图像、音频、拨打和接听的电话、浏览历史和书签、电话簿等。视图系统包括可视控件,例如显示文字的控件,显示图像的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图像的视图。电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。资源管理器为应用程序提供各种资源,比如本地化字符串、图标、图像、布局文件、视频文件等。通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
继续参考图1B,操作系统运行时包括核心库和虚拟机。操作系统运行时负责操作系统的调度和管理。核心库包含两部分,一部分是Java语言需要调用的功能函数,另一部分是操作系统的核心库。应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的Java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理、堆栈管理、线程管理、安全和异常的管理、以及垃圾回收等功能。系统库可以包括多个功能模块。例如,表面管理器(surface manager)、媒体库(Media Libraries)、三维图形处理库(例如OpenGL ES)、2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如,MPEG4、H.264、MP3、AAC、AMR、JPG、PNG等。三维图形处理库用于实现三维图形绘图、图像渲染、合成、和图层处理等。2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动、摄像头驱动、音频驱动、传感器驱动。
下面结合捕获拍照场景,示例性说明电子设备100软件以及硬件的工作流程。当触摸传感器180K接 收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标、触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。
图2示出了可以实施本公开的实施例的另一种电子设备200的框图。如图2所示,电子设备200可以是通用计算设备的形式。电子设备200的组件可以包括但不限于一个或多个处理器或处理单元210、存储器220、存储设备230、一个或多个通信单元240、一个或多个输入设备250以及一个或多个输出设备260。处理单元210可以是实际或虚拟处理器并且能够根据存储器220中存储的程序来执行各种处理。在多处理器系统中,多个处理单元并行执行计算机可执行指令,以提高电子设备200的并行处理能力。
电子设备200通常包括多个计算机存储介质。这样的介质可以是电子设备200可访问的任何可以获得的介质,包括但不限于易失性和非易失性介质、可拆卸和不可拆卸介质。存储器220可以是易失性存储器(例如寄存器、高速缓存、随机访问存储器(RAM))、非易失性存储器(例如,只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、闪存)或它们的某种组合。存储设备230可以是可拆卸或不可拆卸的介质,并且可以包括机器可读介质,诸如闪存驱动、磁盘或者任何其他介质,其可以能够用于存储信息和/或数据(例如用于训练的训练数据)并且可以在电子设备200内被访问。
电子设备200可以进一步包括另外的可拆卸/不可拆卸、易失性/非易失性存储介质。尽管未在图2中示出,可以提供用于从可拆卸、非易失性磁盘(例如“软盘”)进行读取或写入的磁盘驱动和用于从可拆卸、非易失性光盘进行读取或写入的光盘驱动。在这些情况中,每个驱动可以由一个或多个数据介质接口被连接至总线(未示出)。存储器220可以包括计算机程序产品225,其具有一个或多个程序模块,这些程序模块被配置为执行本公开的实施例的用于截屏的方法或过程。
通信单元240实现通过通信介质与其他计算设备进行通信。附加地,电子设备200的组件的功能可以以单个计算集群或多个计算机器来实现,这些计算机器能够通过通信连接进行通信。因此,电子设备200可以使用与一个或多个其他服务器、网络个人计算机(PC)或者另一个网络节点的逻辑连接来在联网环境中进行操作。
输入设备250可以是一个或多个输入设备,例如鼠标、键盘、追踪球等。输出设备260可以是一个或多个输出设备,例如显示器、扬声器、打印机等。在本公开的实施例中,输出设备260可以包括具有触摸传感器的触摸屏,其可以接收用户的触摸输入。电子设备200还可以根据需要通过通信单元240与一个或多个外部设备(未示出)进行通信,外部设备诸如存储设备、显示设备等,与一个或多个使得用户与电子设备200交互的设备进行通信,或者与使得电子设备200与一个或多个其他计算设备通信的任何设备(例如,网卡、调制解调器等)进行通信。这样的通信可以经由输入/输出(I/O)接口(未示出)来执行。
应当理解,上文图1所示出的电子设备100和图2所示出的电子设备200仅仅是能够实施本公开的一个或多个实施例的两种示例电子设备,其不应当构成对本文所描述的实施例的功能和范围的任何限制。
图3示出了在其中可以实施本公开的实施例的环境300的示意图。如图3所示,示例性环境300包括多个设备,例如平板电脑310(以及其手写笔316)、个人电脑(PC)320、手机330、智慧屏幕340。每个设备都包括呈现给用户的用户界面,例如,平板电脑310的用户界面311、个人电脑320的用户界面321、手机330的用户界面331、智慧屏幕340的用户界面341。各个用户界面上可以显示有图像或者显示有所播放的视频的图像帧,图像或者视频帧以不同的图标北被示出。应当理解,环境300中的设备、用户界面和其上展示的图像仅仅是示例性的,环境300中可以存在更多类型的设备,本公开在此不做限制。
如环境300所示,其中的多个设备中的一个设备接收到截屏操作后,该设备(在图3中为平板电脑310)的用户界面上还可以呈现有截屏展示窗口312以及多个切换标识314-1、314-2、314-3和314-4(以下或统称为切换标识314),每个切换标识与每个设备的用户界面的截屏相关联。这将在下文阐述。
可以理解,在跨设备截屏中,第一设备和第二设备根据其实现功能的不同,可以分别称为触发截屏设备和被截屏设备。具体来讲,触发截屏设备(或第一设备)可以是指接收到截屏操作以及发送第二指令(例如截屏指令)的设备。被截屏设备(或第二设备)可以是指接收来自触发截屏设备(或第一设备)的第二指令设备。
需要说明,在本公开中的实施例中的设备,如上述第一设备,又如上述第二设备,以及下文中将引出的第三设备,可以为手机,平板电脑,手持计算机,个人电脑,蜂窝电话,个人数字助理(personal digital  assistant,PDA),可穿戴式设备(如智能手表),车载电脑,游戏机,以及增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等,本实施例对设备的具体形式不做特殊限制。另外,本实施例提供的技术方案除了可以应用于上述设备(或者说移动设备)外,还可以应用于其他电子设备,如智能家居设备(如电视机)等。其中,第一设备、第二设备和第三设备的设备形态可以相同,也可以不同。在下文描述中,在不同的附图中对于相同的设备以及其用户界面,将采用相同的附图标记。本公开在此不做限制。
图4示出了在其中可以实施本公开的实施例的场景400的示意图。在一些实施例中,如图4所示,用户在使用智慧屏幕340观看电影。在观看电影过程中,用户想将呈现在智慧屏幕340的用户界面341上的电影的画面截图,并且通过手机330发送给好友。在一些其他实施例中(未示出),用户同时在平板电脑310上记笔记,在个人电脑320上播放视频,在手机330上与好友进行视频,在智慧屏幕340上进行视频会议。用户可以利用本公开的实施例的方法在仅平板电脑上进行截屏操作,并且然后可以将视频的截图发送给正在视频的好友,并且还可以将正在做的笔记的截图分享给视频会议的其他参会人。将在下文详细阐述截屏操作以及后续操作的实现。可以理解,本公开的实施例的截屏方法可以应用于各种设备和场景,本公开在此不做限制。
图5示出了根据本公开的实施例的用于截屏的方法500的流程图。例如,方法500可由参考图3所描述的平板电脑310执行。备选地,方法500还可以由具有显示屏的其他电子设备执行。在框510,第一设备检测接收到第一指令。例如,平板电脑310利用其触摸传感器检测在显示屏上的触摸操作或者检测在按钮上的操作以确定接收到第一指令,第一指令例如来自用户的截屏操作。在一些实施例中,针对不同的第一设备,第一指令可能不同,例如同时按下设备的电源键与音量键的操作、三指下滑操作、打开控制中心截图操作、使用语音助手截图操作、指关节敲击屏幕操作、以及手写笔截屏操作。由此用户可以在不同设备处利用最方便的截屏操作进行截屏,提高了用户体验。应当理解,上述截屏操作仅仅示例性的,根据不同设备形式和技术发展,还可以存在不同的截屏操作。
在框520,第一设备响应于第一指令截取第一设备的第一用户界面作为第一截屏图像。例如,平板电脑310检测到来自用户的截屏操作之后,可以截取用户界面311的图像作为第一截屏图像。第一指令可以是来自用户的截屏操作,还可以是第一设备本身的指令。响应于是指截取第一截屏图像的动作可以由第一指令直接触发或者由第一指令间接触发。
在框530,第一设备响应于第一指令向与第一设备相关联的第二设备发送第二指令,第二指令用于触发截取第二设备的第二用户界面。例如,平板电脑310检测到来自用户的截屏操作之后,向与平板电脑310相关联的手机330发送第二指令,例如截屏指令。请注意,框520和框530的描述顺序不旨在于限定截取第一截屏图像和发送第二指令的顺序。且截取第一截屏图像和发送第二指令之间不必要相关联,即截取第一截屏图像的动作不一定伴随有发送第二指令的动作。
在一些实施例中,根据截屏设置,如果手机330的本地设置为允许其他设备截取屏幕,则截屏指令使得手机330的用户界面331被截屏。备选地,在一些实施例中,根据截屏设置,如果手机330的本地设置为禁止其他设备截取屏幕,则截屏指令不被执行。附加地或者备选地,在一些其他实施例中,根据截屏设置,如果手机330的本地设置为禁止其他设备截取屏幕,则平板电脑310响应于从手机330接收到截屏指令被拒绝的数据,在用户界面311上显示弹窗向用户询问是否开启手机330的截屏。关于详细截屏设置,将在下文描述。
第一设备与第二设备相关联可以指示第一设备与第二设备之间存在特定连接关系,例如第一设备上登录的账号和第二设备上登录的账号相关联(例如处于同一账号,或者母子账号)、第一设备所处网络和第二设备所处的网络相关联(例如处于同一网络)、以及第一设备和第二设备之间的距离小于阈值距离。在一些实施例中,平板电脑310、个人电脑320、手机330和智慧屏幕340需要同时登录一个账号,同时处于激活状态(例如亮屏状态),其之间的距离小于5米(例如,各个设备在以平板电脑310为圆心,5米为半径的院内),且同时处于一个WiFi连接的情况下,才可以由平板电脑310对其它设备进行截屏。备选地,在一些其他实施例中,平板电脑310、个人电脑320、手机330和智慧屏幕340需要同时登录一个账号且同时处于同一WiFi就可以使平板电脑310对其它设备进行截屏。通过这种方式,使得用户可以对以各种方式连接的设备进行截屏操作,拓展了截屏操作的适用范围,提高了用户体验。
附加地或者备选地,当在设备之间建立通信连接或者在触发截屏操作时,可以对设备进行识别鉴权操作,识别鉴权操作包括但不限于摄像头人脸识别、指纹识别、手表等穿戴设备等。以此来判断这些设备是否由同一用户来建立通信连接,避免其他用户在附近借用设备时,突然被截屏的风险。
可以理解,第一设备或者第二设备可以各自具有多个显示器。截屏操作可以为截取第一设备的多个屏幕的操作,并且截屏指令可以是指示截取第二设备的多个屏幕的指令。
在框540,第一设备从第二设备接收针对第二用户界面的第二截屏图像。在一些实施例中,继续以上述示例进行描述,手机330可以将截取的图像直接传输给平板电脑310。备选地,在一些其他实施例中,手机330可以将截取的图像传输至存储器,例如云服务器,然后将图片的地址输给平板电脑310。
在框550,在第一用户界面上呈现第一截屏图像和第二截屏图像。在一些实施例中,平板电脑310可以在截屏展示窗口312中按照预定优先级呈现平板电脑310的截屏图像、个人电脑320的截屏图像、手机330的截屏图像和智慧屏幕340的截屏图像。
备选地,在一些实施例中,如图14所示,如上所述个人电脑320具有两个或者更多的显示器,例如第一显示器1402和第二显示器1404,第一显示器1402和第二显示器1404共享同一主机。个人电脑320可以在截屏展示窗口312中按照预定优先级呈现两个或者更多的显示器的截屏图像。
附加地或者备选地,在一些实施例中,如图13A至图13B所示,在第一设备和第二设备中的一个设备为折叠设备时(例如折叠手机1300)。折叠手机330可以在分屏模式(由虚线指示分屏)下操作,即折叠屏幕中的半个屏幕(例如屏幕1302)在播放视频,另半个屏幕(屏幕1304)在聊天。此时,如果在屏幕1304处接收到截屏操作,则手机1300将同时分别截取屏幕1302的用户界面的作为截屏图像A,并且截取屏幕1304的用户界面的作为截屏图像B。手机1300可以将截屏图像A、截屏图像B和与手机1300相关联的其他设备的截图按照预定优先级呈现在截屏展示窗口312。由此,在折叠设备的分屏模式下分别截取两个屏幕的图像而不是整个屏幕的图像,减少了用户分割截屏图像的步骤,提高了用户体验。
可以理解,本公开不仅可以在一个设备上截取其他关联设备的屏幕,还可以分别截取同一设备的不同用户界面作为不同的截图图像。由此提供了便捷的截屏操作。减少了截屏操作的复杂度。将在下文参考附图6至图12进行详细描述框510至框540中的方法和步骤。
图6A至6D示出了根据本公开的实施例的切换截屏的图形用户界面(GUI)的示意图。平板电脑310在接收到截屏操作后,可以在用户界面311上呈现截屏展示窗口312、与个人电脑320的截屏相关联的切换标识314-1、与手机330的截屏相关联的切换标识314-2、与智慧屏幕340的截屏相关联的切换标识314-3、与平板电脑310的截屏相关联的切换标识314-4。在一些实施例中,切换标识314的数目可以与设备的总数目相同。备选地,在一些实施例中,在设备(例如电脑)具有两个显示器的情况下,切换标识314的数目也可以大于设备的总数目。附加地或者备选地,在一些实施例中,如果被截屏设备设置有禁用截屏,切换标识314的数目还可以小于设备的总数目。
在一些实施例中,如图6A至6D图所示,平板电脑310在切换标识314处接收到手写笔316的点击操作(黑色圆圈代表接收到点击操作,白色圆圈代表未接收到点击操作),则平板电脑310可以相应地在截屏展示窗口312中呈现与切换标识314-1至切换标识314-4相关联的截屏。备选地,在一些其他实施例中,还可以在截屏展示窗口312中同时呈现四个截屏,例如截屏展示窗口312可以被分成大小相同或者不同的四个区域,其中每个区域用于展示一个截屏。由此,能够在用户完成截屏操作意图对截屏进行进一步操作时,及时地显示出各个设备的截图,提高了截屏操作的效率。
图7A至7H示出了根据本公开的实施例的呈现截屏的优先级的GUI的示意图。在截屏展示窗口312仅呈现一个截屏的情况下,需要确定呈现截屏的优先级。图7A至7D示出了首次截屏时呈现截屏的优先级。在一些实施例中,以平板电脑310为触发截屏设备为示例,当在首次平板电脑310接收到截屏操作时,平板电脑310在用户界面311上以第一优先级呈现平板电脑310的截屏(如图7A所示),并且在用户界面311上以第二优先级呈现手机330的截屏(如图7B所示),其中第一优先级高于第二优先级。第一优先级高于第二优先级意味着在首次截屏时,默认优先在截屏展示窗口312中呈现触发截屏设备的用户界面的截图。这是因为用户首次截图,并无先前截图操作和对截图的附加操作,无法猜测用户意图,因此使用默认的逻辑,即呈现触发截屏设备自身的截图。由此,虽然跨设备截图方法与传统截图方法不同,但是利用用户熟悉的默认方式呈现不会使用户陌生,提高用户的体验。
备选地,在一些实施例中,可以通过用户的上一次对截图是否进行后续操作来确定当前呈现截屏的优先级。例如,继续上述示例进行描述,在上一次截屏操作中,平板电脑310确定用户对优先呈现在截屏展示窗口312中的平板电脑310的截屏未进行操作,而对例如个人电脑320的截屏进行过目标操作(例如,插入、编辑、保存等),目标操作将在下文详细描述。在当前截屏操作中,如图7E所示,与在上一次截屏操作中未被操作的平板电脑310的截屏相比,个人电脑320的截屏被优呈现在截屏展示窗口312中。由此 通过用户的上一次截屏操作的选择决定当前显示截屏图片的优先级,这进一步减少了用户所需的切换操作,提高了用户体验。
附加地和或者备选地,在一些其他实施例中,还可以通过用户的上一次对截图的选择和操作的时间来确定当前呈现截屏的优先级。例如,参见图7A至7D,首次截屏时,截屏展示窗口312中的呈现优先级从高到低依次为:平板电脑310的截屏、手机330的截屏、智慧屏幕340的截屏、个人电脑320的截屏。用户在呈现截屏后对其中的一些截屏进行了目标操作。例如,用户首先对个人电脑320的截屏进行了保存操作,然后对智慧屏幕340的截屏进行了编辑操作,接着对个人电脑320的截屏进行了插入操作,并且未对平板电脑310的截屏进行操作。则在呈现当前截屏的优先级与先前截屏图像被操作的时间相关联,例如如图7E所示,平板电脑310确定在上次截屏中个人电脑320的截屏被首先操作,则以最高优先级呈现个人电脑320的截屏。并且如图7F至图7H所示,依次对应于从左到右排列的切换标识314-2至314-4,依次呈现截图。应当理解,此处优先级可以是指切换标识314从左至右的排列顺序。由此,在用户对多个图像都存在操作时,通过用户在上一次截屏操作中对不同截屏的操作时间决定当前显示截屏图片的优先级,使得用户最需要的截屏被优先展示,提高了用户体验。
附加地或者备选地,在一些其他实施例中,还可以根据设置始终以预定的优先级呈现截图,也即不管每次截图是否被操作或者操作的时间,在下次截图呈现中都按照相同的优先级呈现截图。
上文描述呈现截图的优先级,下面描述对截图的目标操作。在截图被呈现后,触发截屏设备如果检测到对所呈现的截屏的目标操作,则对相应的截图执行目标操作,目标操作可以是保存、插入、编辑或者是与用户界面中呈现的应用相关联的操作。将在下文结合图8至图11描述上述目标操作。
图8A至8B示出了根据本公开的实施例的插入截图的GUI的示意图。可以理解,在用户用平板电脑310记笔记,并且用其他设备观看视频时,用户可能需要将视频中一些重要的图片插入到笔记中。在这种场景中,目标操作可以为在应用程序界面的目标位置处插入至少一个截屏图像的操作。
在一些实施例中,如图8A至8B所示,为了将截屏插入目标位置315处,平板电脑310如果接收到针对截屏的拖拽操作(例如,用户利用手写笔316实施拖拽操作),在为应用程序界面的用户界面311上显示截屏随拖拽操作移动的动画,并且如果在目标位置315处接收到针对该截屏的释放操作(例如手写笔316不再接触平板电脑310的显示屏),在应用程序界面上的目标位置315处插入该截屏。应当理解,拖拽操作仅仅是插入操作的一个实现方式,还可以存在其他合适的方式将截图插入到应用程序界面中,本公开在此不做限制。通过上述方式,可以使得用户可以通过简便的拖拽操作实现截屏的插入,提高了用户体验。
图9A至9B示出了根据本公开的实施例的保存截图的GUI的示意图。可以理解,用户可能对所呈现的截图感兴趣,但目前无法处理,用户希望保存该截图以用于后续处理。在一些实施例中,平板电脑310如果在用户界面311中除截屏被显示的区域之外的区域(例如,截屏展示窗口312之外的区域)接收到点击操作,在用户界面311上显示“已保存至设备”的提示浮窗,并且将与截屏相关联的数据保存到平板电脑310的存储器中。备选地,在一些实施例中,平板电脑310如果确定相应的切换标识被点击后预定时间内(例如3秒)未接收到任何操作,则将与截屏相关联的数据保存到平板电脑310的存储器中。可以理解,无论用户界面为应用程序界面或者主界面,保存操作都可以被执行。通过这种方式,使得用户仅通过截屏操作之后的点击操作就能够将各个设备的截屏进行保存,提高了用户体验。
图10A至10B示出了根据本公开的实施例的编辑截图的GUI的示意图。可以理解,用户可能对所呈现的截图感兴趣,并且想立即对截图进行编辑。在一些实施例中,平板电脑310如果在用户界面311中在截屏被显示的区域之内(例如,截屏展示窗口312内的区域)接收到点击操作,则对至少一个截屏图像进行编辑,例如在用户界面311上显示图形编辑界面317。可以理解,无论用户界面为应用程序界面或者主界面,编辑操作都可以被执行。通过这种方式,使得用户仅通过截屏操作之后的点击操作就能够对各个设备的截屏进行编辑,提高了用户体验。
应当理解,虽然图8至图10均以平板电脑310作为第一设备,即截屏触发设备,但可以理解,可以将任何设备作为截屏触发设备,本公开在此不做限制。下文将以手机330作为第一设备,即截屏触发设备描述对截屏的其他目标操作。
图11A至11C示出了根据本公开的实施例的对截图进行进一步操作的GUI的示意图。可以理解,用户可能对所呈现的截图感兴趣,并且想在一些应用中对该截图进行进一步操作。例如,手机330如果在为主界面的用户界面331收到将截屏拖拽到主界面中的至少一个应用标识中的某个应用标识上的操作,则在与应用标识相关联的应用中处理至少一个截屏图像。
在一些实施例中,如图11A所示,手机330如果在用户界面331收到将截屏拖拽到用户界面331中的聊天应用标识上的操作,则手机330打开聊天应用界面(未在图中示出)。用户可以在聊天应用中二次选择将截图发送给一个好友(如图11B所示),用户还可以将该截图分享至朋友圈。备选地,在一些其他实施例中,手机330如果在用户界面331收到将截屏拖拽到用户界面331中的图库应用标识上的操作,则手机330打开图库应用界面(如图11C所示)。用户可以在图库应用中对该截图进行进一步操作。通过这种方式,用户可以通过截图和拖拽两步操作即可实现对截图的各种操作,显著减少跨设备截屏和后续操作,提高了用户体验。
图12示出了根据本公开的实施例的截图设置的GUI的示意图。可以理解,出于各种原因,用户可能不想对一些设备进行截屏或者仅想对一些设备进行截屏。在这种情况下,用户可以设置禁用截屏或者设置启用截屏,从而禁用或者启用多个设备中的一些设备的截屏功能。
在一些实施例中,用户可以在截屏触发设备的截屏设置中设置本设备和被截屏设备的截屏禁用或者启用功能。如图11所示,手机330为第一设备,即截屏触发设备。截屏设置中显示有与手机330相关联的设备列表,例如设备2、设备3和设备4,其中设备1可以为手机330本身。根据用户界面331中的截屏设置,对设备1不截屏,且对设备2至设备4截屏。
备选地,在一些实施例中,一些设备可以被默认设置为禁用截屏。例如手表经常亮屏且通常与用户的手机相关联,但用户一般不会意图对手表截屏。因此手表的截屏设置默认为截屏禁用。
附加地或者备选地,在一些其他实施例中,可以在设备本地设置禁止其它设备进行截屏。例如,手机330的截屏设置中启用对设备2的截屏,而设备2的截屏设置中设置有禁止其它设备对本设备进行截屏。在这种情况下,手机330无法获取设备2的用户界面的截屏。也就是说,关于截屏禁用功能,本地设备的截屏设置的优先级高于其他设备的截屏设置的优先级。
通过这种方式,使得用户可以在截屏操作前或者操作中禁用一些不常用设备或者不想展示截屏设备的截屏功能,或者选择想要截屏的设备,这提高了用户体验。
虽然未示出,本公开还提供了一种用于截屏的装置。该装置至少包括:指令接收模块,被配置为在第一设备处接收第一指令;截屏模块,被配置为响应于第一指令截取第一设备的第一用户界面作为第一截屏图像,以及指令发送模块,被配置为响应于第一指令向与第一设备相关联的第二设备发送第二指令,第二指令用于触发截取第二设备的第二用户界面;截屏接收模块,被配置为从第二设备接收针对第二用户界面的第二截屏图像;以及截屏显示模块,被配置为在第一用户界面上呈现第一截屏图像和第二截屏图像。
在某些实施例中,截屏显示模块可以包括:第一显示模块,被配置为在第一用户界面上呈现截屏展示窗口、与第一截屏图像相关联的第一切换标识、以及与第二截屏图像相关联的第二切换标识;第二显示模块,被配置为响应于接收到针对第一切换标识的点击操作,在截屏展示窗口中呈现第一截屏图像;以及第三显示模块,被配置为响应于接收到针对第二切换标识的点击操作,在截屏展示窗口中呈现第二截屏图像。
在某些实施例中,截屏显示模块可以包括:第一优先级显示模块,被配置为在第一用户界面上以第一优先级呈现第一截屏图像;以及第二优先级显示模块,被配置为在第一用户界面上以第二优先级呈现第二截屏图像,第一优先级高于第二优先级。
在某些实施例中,装置还可以包括:目标操作模块,被配置为响应于在第一设备处接收到目标操作,对第一截屏图像和第二截屏图像中的至少一个截屏图像执行目标操作。
在某些实施例中,截屏显示模块可以包括:默认显示模块,被配置为响应于第一设备的先前截屏图像未被操作且第二设备的先前截屏图像被操作,在第一用户界面上默认显示第二截屏图像,先前截屏图像是紧邻当前截屏操作的上一次截屏操作所截取的图像。
在某些实施例中,装置还可以包括:截屏指令模块,被配置为响应于第一指令向与第一设备相关联的第三设备发送第三指令,第三指令用于触发截取第三设备的第三用户界面;第三截屏图像接收模块,被配置为从第三设备接收针对第三设备的第三用户界面的第三截屏图像;其中截屏显示模块可以包括第四显示模块,被配置为在第一用户界面上以预定优先级呈现第一截屏图像、第二截屏图像和第三截屏图像,预定优先级与第一设备的先前截屏图像、第二设备的先前截屏图像以及第三设备的先前截屏图像被操作的时间相关联,先前截屏图像是紧邻当前截屏操作的上一次截屏操作所截取的图像。
在某些实施例中,第一用户界面为应用程序界面,目标操作模块可以包括:插入模块,被配置为在应用程序界面的目标位置处插入至少一个截屏图像。
在某些实施例中,插入模块可以包括:拖拽模块,被配置为响应于接收到针对至少一个截屏图像的拖 拽操作,在应用程序界面上显示至少一个截屏图像随拖拽操作移动的动画;以及拖拽释放模块,被配置为响应于在目标位置处接收到针对至少一个截屏图像的释放操作,在应用程序界面上的目标位置处插入至少一个截屏图像。
在某些实施例中,目标操作模块可以包括:保存模块,被配置为响应于在第一用户界面中除至少一个截屏图像被显示的区域之外的区域接收到点击操作,将至少一个截屏图像保存到第一设备中。
在某些实施例中,目标操作模块可以包括:编辑模块,被配置为响应于在第一用户界面中至少一个截屏图像被显示的区域之内接收到点击操作,对至少一个截屏图像进行编辑。
在某些实施例中,第一用户界面为第一设备的主界面,并且主界面上显示有至少一个应用标识,目标操作模块可以包括:应用交互模块,被配置为响应于接收到将至少一个截屏图像拖拽到至少一个应用标识中的某个应用标识上的操作,在与应用标识相关联的应用中处理至少一个截屏图像。
在某些实施例中,第一设备与第二设备相关联指示以下至少一项:第一设备上登录的账号和第二设备上登录的账号相关联、第一设备所处网络和第二设备所处的网络相关联、以及第一设备和第二设备之间的距离小于阈值距离。
在某些实施例中,装置还可以包括:截屏禁用模块,被配置为基于针对截屏的禁用设置,禁用第一设备和第二设备中的一个或多个设备的截屏功能。
在某些实施例中,装置还可以包括:截屏启用模块,被配置为基于针对截屏的选择设置,在第一设备的第一用户界面上呈现第一设备和第二设备中所选择的一个或多个设备的截屏。
在某些实施例中,第一指令包括以下至少一项:同时按下第一设备的电源键与音量键的操作、三指下滑操作、打开控制中心截图操作、使用语音助手截图操作、指关节敲击屏幕操作、以及手写笔截屏操作。
本公开的实施例的用于截屏的方法可以应用于多种电子设备。示例性的,该电子设备例如可以为:移动手机、平板电脑(Tablet Personal Computer)、数码相机、个人数字助理(personal digital assistant,简称PDA)、导航装置、移动上网装置(Mobile Internet Device,MID)、可穿戴式设备(Wearable Device)、以及其他能够进行用于截屏的的设备等。此外,本公开的实施例的用于截屏的方案不仅可以作为输入法的一个功能,也可以作为电子设备的操作系统的一个功能而实施。
在上述实施例中,可以全部或部分的通过软件,硬件,固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式出现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本公开的实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质,(例如,软盘,硬盘、磁带)、光介质(例如,DVD)或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
以上描述的各种示例和过程可以独立于彼此使用,或者可以按各种方式来组合。不同的组合和子组合旨在落入本公开的范围内,并且某些步骤或过程可以在一些实现中被省略。以上所述,仅为本公开的实施例的具体实施方式,但本公开的实施例的保护范围并不局限于此,任何在本公开的实施例揭露的技术范围内的变化或替换,都应涵盖在本公开的实施例的保护范围之内。因此,本公开的实施例的保护范围应以所述权利要求的保护范围为准。

Claims (19)

  1. 一种用于截屏的方法,其特征在于,包括:
    在第一设备处接收第一指令;
    响应于所述第一指令截取所述第一设备的第一用户界面作为第一截屏图像;
    响应于所述第一指令向与所述第一设备相关联的第二设备发送第二指令,所述第二指令用于触发截取所述第二设备的第二用户界面;
    从所述第二设备接收针对所述第二用户界面的第二截屏图像;以及
    在所述第一用户界面上呈现所述第一截屏图像和所述第二截屏图像。
  2. 根据权利要求1所述的方法,其特征在于,在所述第一用户界面上呈现所述第一截屏图像和所述第二截屏图像包括:
    在所述第一用户界面上呈现截屏展示窗口、与所述第一截屏图像相关联的第一切换标识、以及与所述第二截屏图像相关联的第二切换标识;
    响应于接收到针对所述第一切换标识的点击操作,在所述截屏展示窗口中呈现所述第一截屏图像;以及
    响应于接收到针对所述第二切换标识的点击操作,在所述截屏展示窗口中呈现所述第二截屏图像。
  3. 根据权利要求1所述的方法,其特征在于,在所述第一用户界面上呈现所述第一截屏图像和所述第二截屏图像包括:
    在所述第一用户界面上以第一优先级呈现所述第一截屏图像;以及
    在所述第一用户界面上以第二优先级呈现所述第二截屏图像,所述第一优先级高于所述第二优先级。
  4. 根据权利要求1所述的方法,其特征在于,还包括:
    响应于在所述第一设备处接收到目标操作,对所述第一截屏图像和所述第二截屏图像中的至少一个截屏图像执行所述目标操作。
  5. 根据权利要求4所述的方法,其特征在于,在所述第一用户界面上呈现所述第一截屏图像和所述第二截屏图像包括:
    响应于所述第一设备的先前截屏图像未被操作且所述第二设备的先前截屏图像被操作,在所述第一用户界面上默认显示所述第二截屏图像,所述先前截屏图像是紧邻当前截屏操作的上一次截屏操作所截取的图像。
  6. 根据权利要求4所述的方法,其特征在于,还包括:
    响应于所述第一指令向与所述第一设备相关联的第三设备发送第三指令,所述第三指令用于触发截取所述第三设备的第三用户界面;
    从所述第三设备接收针对所述第三设备的所述第三用户界面的第三截屏图像;
    其中在所述第一用户界面上呈现所述第一截屏图像和所述第二截屏图像包括:
    在所述第一用户界面上以预定优先级呈现所述第一截屏图像、所述第二截屏图像和所述第三截屏图像,所述预定优先级与所述第一设备的先前截屏图像、所述第二设备的先前截屏图像以及所述第三设备的先前截屏图像被操作的时间相关联,所述先前截屏图像是紧邻当前截屏操作的上一次截屏操作所截取的图像。
  7. 根据权利要求4所述的方法,其特征在于,所述第一用户界面为应用程序界面,对所述至少一个截屏图像执行所述目标操作包括:
    在所述应用程序界面的目标位置处插入所述至少一个截屏图像。
  8. 根据权利要求7所述的方法,其特征在于,在所述应用程序界面的目标位置处插入所述至少一个截屏图像包括:
    响应于接收到针对所述至少一个截屏图像的拖拽操作,在所述应用程序界面上显示所述至少一个截屏图像随所述拖拽操作移动的动画;以及
    响应于在所述目标位置处接收到针对所述至少一个截屏图像的释放操作,在所述应用程序界面上的所述目标位置处插入所述至少一个截屏图像。
  9. 根据权利要求4所述的方法,其特征在于,对所述至少一个截屏图像执行所述目标操作包括:
    响应于在所述第一用户界面中除所述至少一个截屏图像被显示的区域之外的区域接收到点击操作,将 所述至少一个截屏图像保存到所述第一设备中。
  10. 根据权利要求4所述的方法,其特征在于,对所述至少一个截屏图像执行所述目标操作包括:
    响应于在所述第一用户界面中所述至少一个截屏图像被显示的区域之内接收到点击操作,对所述至少一个截屏图像进行编辑。
  11. 根据权利要求4所述的方法,其特征在于,所述第一用户界面为所述第一设备的主界面,并且所述主界面上显示有至少一个应用标识,对所述至少一个截屏图像执行所述目标操作包括:
    响应于接收到将所述至少一个截屏图像拖拽到所述至少一个应用标识中的某个应用标识上的操作,在与所述应用标识相关联的应用中处理所述至少一个截屏图像。
  12. 根据权利要求1所述的方法,其特征在于,所述第一设备与所述第二设备相关联指示以下至少一项:所述第一设备上登录的账号和所述第二设备上登录的账号相关联、所述第一设备所处网络和所述第二设备所处的网络相关联、以及所述第一设备和所述第二设备之间的距离小于阈值距离。
  13. 根据权利要求1所述的方法,其特征在于,还包括:
    基于针对截屏的禁用设置,禁用所述第一设备和所述第二设备中的一个或多个设备的截屏功能。
  14. 根据权利要求1所述的方法,其特征在于,还包括:
    基于针对截屏的选择设置,在所述第一设备的所述第一用户界面上呈现所述第一设备和所述第二设备中所选择的一个或多个设备的截屏。
  15. 根据权利要求1所述的方法,其特征在于,所述第一指令包括以下至少一项:
    同时按下所述第一设备的电源键与音量键的操作、三指下滑操作、打开控制中心截图操作、使用语音助手截图操作、指关节敲击屏幕操作、以及手写笔截屏操作。
  16. 一种用于截屏的装置,包括:
    指令接收模块,被配置为在第一设备处接收第一指令;
    截屏模块,被配置为响应于所述第一指令截取所述第一设备的第一用户界面作为第一截屏图像,以及
    指令发送模块,被配置为响应于所述第一指令向与所述第一设备相关联的第二设备发送第二指令,所述第二指令用于触发截取所述第二设备的第二用户界面;
    截屏接收模块,被配置为从所述第二设备接收针对所述第二用户界面的第二截屏图像;以及
    截屏显示模块,被配置为在所述第一用户界面上呈现所述第一截屏图像和所述第二截屏图像。
  17. 一种电子设备,其特征在于,包括:处理器、以及存储有指令的存储器,所述指令在被所述处理器执行时使得所述电子设备执行根据权利要求1至15中任一项所述的方法。
  18. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有指令,所述指令在被电子设备执行时使得所述电子设备执行根据权利要求1至15中任一项所述的方法。
  19. 一种计算机程序产品,其特征在于,所述计算机程序产品包括指令,所述指令在被电子设备执行时使得所述电子设备执行根据权利要求1至15中任一项所述的方法。
PCT/CN2023/102110 2022-08-31 2023-06-25 用于截屏的方法、电子设备、介质以及程序产品 WO2024045801A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211062802.6 2022-08-31
CN202211062802.6A CN115426521A (zh) 2022-08-31 2022-08-31 用于截屏的方法、电子设备、介质以及程序产品

Publications (1)

Publication Number Publication Date
WO2024045801A1 true WO2024045801A1 (zh) 2024-03-07

Family

ID=84200796

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/102110 WO2024045801A1 (zh) 2022-08-31 2023-06-25 用于截屏的方法、电子设备、介质以及程序产品

Country Status (2)

Country Link
CN (1) CN115426521A (zh)
WO (1) WO2024045801A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666394A (zh) * 2022-03-16 2022-06-24 Oppo广东移动通信有限公司 跨设备截图方法、装置、设备及存储介质
CN115426521A (zh) * 2022-08-31 2022-12-02 华为技术有限公司 用于截屏的方法、电子设备、介质以及程序产品

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106371725A (zh) * 2016-08-26 2017-02-01 乐视控股(北京)有限公司 智能截图的方法及装置、终端设备
WO2017028655A1 (zh) * 2015-08-19 2017-02-23 中兴通讯股份有限公司 一种截屏方法、终端及机顶盒
CN107682714A (zh) * 2015-06-05 2018-02-09 广东欧珀移动通信有限公司 一种获取在线视频截图的方法及装置
CN112650433A (zh) * 2020-12-29 2021-04-13 展讯通信(天津)有限公司 界面截图方法、装置和电子设备
KR20220085417A (ko) * 2020-12-15 2022-06-22 주식회사 넥슨코리아 게임 제공 장치 및 게임 제공 방법
CN114721569A (zh) * 2020-12-18 2022-07-08 西安诺瓦星云科技股份有限公司 同步截图方法、装置及系统和服务器
CN115426521A (zh) * 2022-08-31 2022-12-02 华为技术有限公司 用于截屏的方法、电子设备、介质以及程序产品

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107682714A (zh) * 2015-06-05 2018-02-09 广东欧珀移动通信有限公司 一种获取在线视频截图的方法及装置
WO2017028655A1 (zh) * 2015-08-19 2017-02-23 中兴通讯股份有限公司 一种截屏方法、终端及机顶盒
CN106371725A (zh) * 2016-08-26 2017-02-01 乐视控股(北京)有限公司 智能截图的方法及装置、终端设备
KR20220085417A (ko) * 2020-12-15 2022-06-22 주식회사 넥슨코리아 게임 제공 장치 및 게임 제공 방법
CN114721569A (zh) * 2020-12-18 2022-07-08 西安诺瓦星云科技股份有限公司 同步截图方法、装置及系统和服务器
CN112650433A (zh) * 2020-12-29 2021-04-13 展讯通信(天津)有限公司 界面截图方法、装置和电子设备
CN115426521A (zh) * 2022-08-31 2022-12-02 华为技术有限公司 用于截屏的方法、电子设备、介质以及程序产品

Also Published As

Publication number Publication date
CN115426521A (zh) 2022-12-02

Similar Documents

Publication Publication Date Title
WO2021018067A1 (zh) 一种悬浮窗口的管理方法及相关装置
KR102470275B1 (ko) 음성 제어 방법 및 전자 장치
WO2021129326A1 (zh) 一种屏幕显示方法及电子设备
WO2020259452A1 (zh) 一种移动终端的全屏显示方法及设备
WO2021017889A1 (zh) 一种应用于电子设备的视频通话的显示方法及相关装置
WO2021213164A1 (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2021036770A1 (zh) 一种分屏处理方法及终端设备
WO2020155014A1 (zh) 智能家居设备分享系统、方法及电子设备
WO2019072178A1 (zh) 一种通知处理方法及电子设备
CN110489215A (zh) 一种应用程序中等待场景的处理方法和装置
CN109981885B (zh) 一种电子设备在来电时呈现视频的方法和电子设备
WO2020224447A1 (zh) 一种在联系人中添加智能家居设备的方法及系统
WO2024045801A1 (zh) 用于截屏的方法、电子设备、介质以及程序产品
WO2020238759A1 (zh) 一种界面显示方法和电子设备
WO2020192761A1 (zh) 记录用户情感的方法及相关装置
WO2021190524A1 (zh) 截屏处理的方法、图形用户接口及终端
WO2022042326A1 (zh) 显示控制的方法及相关装置
WO2021082815A1 (zh) 一种显示要素的显示方法和电子设备
WO2020107463A1 (zh) 一种电子设备的控制方法及电子设备
WO2022042769A2 (zh) 多屏交互的系统、方法、装置和介质
WO2022037726A1 (zh) 分屏显示方法和电子设备
CN113452945A (zh) 分享应用界面的方法、装置、电子设备及可读存储介质
WO2021143391A1 (zh) 基于视频通话的共享屏幕方法及移动设备
CN114173184B (zh) 投屏方法和电子设备
WO2021052388A1 (zh) 一种视频通信方法及视频通信装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23858840

Country of ref document: EP

Kind code of ref document: A1