WO2023160455A1 - Object deletion method and electronic device - Google Patents

Object deletion method and electronic device Download PDF

Info

Publication number
WO2023160455A1
WO2023160455A1 PCT/CN2023/076461 CN2023076461W WO2023160455A1 WO 2023160455 A1 WO2023160455 A1 WO 2023160455A1 CN 2023076461 W CN2023076461 W CN 2023076461W WO 2023160455 A1 WO2023160455 A1 WO 2023160455A1
Authority
WO
WIPO (PCT)
Prior art keywords
objects
electronic device
priority
user interface
displayed
Prior art date
Application number
PCT/CN2023/076461
Other languages
French (fr)
Chinese (zh)
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 WO2023160455A1 publication Critical patent/WO2023160455A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Definitions

  • the present application relates to the field of computer technology, in particular to a method for deleting an object and an electronic device.
  • a user may install various application programs in an electronic device, and when the user uses the electronic device, the electronic device generates many objects. For example, the notification message from the application program displayed in the notification center; the music software will store the songs the user has listened to; the gallery software will store the saved photos; the shopping software will store the user's shopping records, and so on.
  • the existing method is to delete the above objects one by one or delete them all.
  • deleting one by one will make the deletion inefficient; and deleting all of them is easy to delete important objects by mistake, causing users to miss important information.
  • the embodiment of the present application discloses a method for deleting objects and an electronic device.
  • deleting multiple objects instead of deleting multiple objects at once, multiple objects are deleted in batches, which can leave a pause for the user
  • the timing of deletion improves the user's sense of use.
  • the embodiment of the present application provides a method for deleting an object, which may include:
  • N is a positive integer greater than or equal to 1, and each object in the N objects is marked with a priority
  • the N objects are deleted in batches according to the priorities corresponding to the N objects.
  • each object displayed in the first user interface is marked with a priority level, so when performing the delete operation on the above-mentioned objects, instead of deleting all objects at once, the priority of the objects is Levels are deleted in batches. In this way, even if the user clicks on the operation of deleting all objects, the user can be given an opportunity to suspend deletion, thereby improving the user's sense of use.
  • the method may also include:
  • the N objects after the N objects are deleted in batches according to the priorities corresponding to the N objects, the N objects have been deleted before the deletion behavior is stopped L objects; wherein, the priority of each object in the L objects is less than the priority of each object in the M objects, and L is less than N positive integer of .
  • the notifications that are suspended and deleted in response to the touch operation are notifications with higher priority, and notifications with higher priority may be more important notifications to the user, so immediately click the button to delete all notifications operation, it can also ensure that important notifications are not deleted.
  • the method before deleting the N objects in batches according to the priorities corresponding to the N objects in response to the deletion operation for the N objects, the method further includes:
  • a priority is marked for each of the N objects according to the number of times each of the N objects is opened.
  • the user's usage habits may be considered to mark the priority for each object.
  • the priority of objects opened more times may be marked as high priority, and the priority of objects opened less times may be marked as low priority. In this way, the priority of marking objects can conform to the user's usage habits, thereby improving the user's experience in use.
  • deleting the N objects in batches according to the priorities corresponding to the N objects includes:
  • objects of the third priority among the N objects are deleted, and a fifth user interface is displayed, and objects not displayed in the fifth user interface are displayed.
  • objects with low priority are deleted first, and objects with high priority are deleted after a period of time. That is, the objects with high priority are deleted later, leaving an opportunity for the user to view the objects with high priority, so as to prevent the objects with high priority from being ignored.
  • the object includes one or more of the following: a notification message pushed by an application program, a selected picture in a gallery, a file, a note, a selected song in a music software, and a shopping record.
  • an embodiment of the present application provides an electronic device, which may include one or more processors, a memory, and a communication module; the memory and the communication module are coupled to the one or more processors , the memory is used to store a computer program, and the one or more processors execute the computer program to cause the electronic device to perform:
  • N is a positive integer greater than or equal to 1, and each object in the N objects is marked with a priority
  • the N objects are deleted in batches according to the priorities corresponding to the N objects.
  • the electronic device when the electronic device deletes the N objects in batches according to the priorities corresponding to the N objects, the electronic device responds to the Touching the interface, the electronic device stops deleting and displays a second user interface; M objects are displayed in the second user interface, and M is a positive integer smaller than N.
  • the N objects after the N objects are deleted in batches according to the priorities corresponding to the N objects, the N objects have been deleted before the deletion behavior is stopped L objects; wherein, the priority of each object in the L objects is less than the priority of each object in the M objects, and L is a positive integer smaller than N.
  • the electronic device further executes:
  • a priority is marked for each of the N objects according to the number of times each of the N objects is opened.
  • the electronic device specifically executes:
  • objects of the third priority among the N objects are deleted, and a fifth user interface is displayed, and objects not displayed in the fifth user interface are displayed.
  • the object includes one or more of the following: a notification message pushed by an application program, a selected picture in a gallery, a file, a note, a selected song in a music software, and a shopping record.
  • the embodiment of the present application provides a computer storage medium, the computer storage medium stores a computer program, and when the computer program is executed by a processor, any one of the first aspect and the first aspect of the embodiment of the present application can be realized.
  • an embodiment of the present application provides a computer program product, which, when running on an electronic device, causes the electronic device to execute the first aspect of the embodiment of the present application and any implementation manner of the first aspect provides method for deleting objects.
  • FIG. 1A is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 1B is a software structural block diagram of an electronic device provided in an embodiment of the present application.
  • FIG. 2A is a user interface for an application program menu on an electronic device provided by an embodiment of the present application
  • FIG. 2B is a schematic diagram of an electronic device displaying a notification center provided in an embodiment of the present application.
  • FIG. 2C is a schematic diagram of an electronic device deletion notification message provided by an embodiment of the present application.
  • FIG. 3A is a schematic diagram of an electronic device displaying a first user interface provided in an embodiment of the present application
  • FIG. 3B is a schematic diagram of an electronic device displaying a second user interface according to an embodiment of the present application.
  • FIG. 3C is a third user interface, a fourth user interface, and a fifth user interface displayed by an electronic device provided in an embodiment of the present application;
  • FIG. 4A is a user interface of an application program displayed by an electronic device provided in an embodiment of the present application.
  • Fig. 4B is a schematic diagram of a user deleting pictures in the "Gallery" provided by the embodiment of the present application.
  • FIG. 4C is a schematic diagram of displaying a second user interface by another electronic device provided in an embodiment of the present application.
  • FIG. 4D is a third user interface, a fourth user interface, and a fifth user interface displayed by an electronic device according to an embodiment of the present application;
  • Fig. 5 is a schematic flow chart of deleting an object provided by the embodiment of the present application.
  • the electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and/or a music player, such as a mobile phone, a tablet computer, a wearable electronic device with a wireless communication function (such as a smart watch) wait.
  • portable electronic devices include, but are not limited to Or portable electronic devices with other operating systems.
  • the aforementioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop) with a touch-sensitive surface or a touch panel. It should also be understood that, in some other embodiments, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer with a touch-sensitive surface or a touch panel.
  • UI user interface
  • the term "user interface (UI)" in the specification, claims and drawings of this application is a medium interface for interaction and information exchange between an application program or an operating system and a user, and it realizes the internal form of information Conversion to and from a form acceptable to the user.
  • the user interface of the application program is the source code written in specific computer languages such as java and extensible markup language (XML). Such as pictures, text, buttons and other controls. Controls, also known as widgets, are the basic elements of the user interface. Typical controls include toolbars, menu bars, text boxes, buttons, and scroll bars. (scrollbar), images and text.
  • the properties and contents of the controls in the interface are defined through labels or nodes.
  • XML specifies the controls contained in the interface through nodes such as ⁇ Textview>, ⁇ ImgView>, and ⁇ VideoView>.
  • a node corresponds to a control or property in the interface, and after the node is parsed and rendered, it is presented as the content visible to the user.
  • the interfaces of many applications, such as hybrid applications usually include web pages.
  • a web page, also called a page, can be understood as a special control embedded in an application program interface.
  • a web page is a source code written in a specific computer language, such as hypertext markup language (GTML), cascading style Tables (cascading style sheets, CSS), java scripts (JavaScript, JS), etc., and the source code of the webpage can be loaded and displayed by a browser or a webpage display component similar in function to the browser as content recognizable by the user.
  • the specific content contained in the web page is also defined by the tags or nodes in the source code of the web page.
  • GTML defines the elements and attributes of the web page through ⁇ p>, ⁇ img>, ⁇ video>, and ⁇ canvas>.
  • GUI graphical user interface
  • FIG. 1A shows a schematic structural diagram of an electronic device 100 .
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and A subscriber identification module (subscriber identification module, SIM) card interface 195 and the like.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope 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 180G, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a central processing unit (central processing unit, CPU), a graphics processing unit (graphics processing unit, GPU) , neural network processor (neural-network processing unit, NPU), modem processor, image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors. In some embodiments, the electronic device 100 may also include one or more processors 110 .
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction 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, thereby improving the efficiency of the electronic device 100 .
  • processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (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 be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces.
  • processor 110 can couple touch sensor 180K through I2C interface, make processor 110 and touch sensor
  • the sensor 180K communicates through the I2C bus interface to realize 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 may be coupled to the audio module 170 through an 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, so as to realize the function of answering calls through the Bluetooth headset.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal.
  • 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, so as to realize the function of answering calls through the 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 realize the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the 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 interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 110 communicates with the camera 193 through the CSI interface to realize the camera function of the electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device 100 .
  • the GPIO interface can be configured by 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 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on.
  • 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 conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • 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 and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules shown in the embodiment of the present invention is only a schematic illustration, and does 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 configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also supply power to the electronic device through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be disposed in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be set in the same device.
  • the wireless communication function of the electronic device 100 can be through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module Block 160 is implemented by 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 single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions 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 (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves and radiate them through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be set 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 set in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio equipment (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 from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100.
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • 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 wireless communication module 160 may include a Bluetooth module, a Wi-Fi module, and the like.
  • 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 (general packet radio service, GPRS), code division multiple access (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 techniques, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA broadband Code division multiple access
  • WCDMA wideband code division multiple access
  • time division code division multiple access time-division code division multiple access
  • TD-SCDMA time-division code division multiple access
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a 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
  • Beidou navigation satellite system beidou navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 can realize the display function through the GPU, the display screen 194 , and the application processor.
  • the GPU is a microprocessor for image processing, 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 instructions to generate or alter display information.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel can be 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 emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the electronic device 100 can realize the camera function through the camera 193, ISP, video codec, GPU, display screen 194, application processor AP, neural network processor NPU, and the like.
  • the camera 193 can be used to collect color image data and depth data of the subject.
  • the ISP can be used to process the color image data collected by the camera 193 .
  • the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits 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, etc. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be located in the camera 193 .
  • the camera 193 can be composed of a color camera module and a 3D sensing module.
  • the photosensitive element of the camera head of the color camera module may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (complementary metal-oxide-semiconductor, CMOS) phototransistor.
  • CCD charge coupled device
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other image signals.
  • the 3D sensing module may be a time of flight (TOF) 3D sensing module or a structured light (structured light) 3D sensing module.
  • the structured light 3D sensing is an active depth sensing technology, and the basic components of the structured light 3D sensing module may include an infrared (Infrared) emitter, an IR camera module, and the like.
  • the working principle of the structured light 3D sensing module is to first emit a specific pattern of light spots (pattern) on the object to be photographed, and then receive the light spot pattern code (light coding) on the surface of the object, and then compare the similarities and differences with the original projected light spots. And use the principle of trigonometry to calculate the three-dimensional coordinates of the object.
  • the three-dimensional coordinates include the distance between the electronic device 100 and the object to be photographed.
  • TOF 3D sensing is also an active depth sensing technology.
  • the basic components of TOF 3D sensing module can include infrared (Infrared) emitters, IR camera modules, etc.
  • the working principle of the TOF 3D sensing module is to calculate the distance (that is, depth) between the TOF 3D sensing module and the object to be photographed through the time of infrared ray return to obtain a 3D depth map.
  • the structured light 3D sensing module can also be applied in fields such as face recognition, somatosensory game consoles, and industrial machine vision inspection.
  • TOF 3D sensing modules can also be applied to game consoles, augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) and other fields.
  • the camera 193 may also be composed of two or more cameras.
  • the two or more cameras can include a color camera, which can be used to collect color image data of the object being photographed.
  • the two or more cameras can use stereo vision (stereo vision) technology to collect depth data of the object being photographed.
  • stereo vision technology is based on the principle of human eye parallax. Under natural light, two or more cameras take images of the same object from different angles, and then perform calculations such as triangulation to obtain the electronic device 100 and the object. Distance information between photographed objects, that is, depth information.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • the electronic device 100 may include a front camera 193 and a rear camera 193 .
  • the front camera 193 can usually be used to collect the color image data and depth data of the photographer facing the display screen 194, and the rear 3D camera module can be used to collect the shooting objects (such as people, scenery, etc.) that the photographer is facing. ) color image data with and depth data.
  • the CPU, GPU or NPU in the processor 110 can process the color image data and depth data collected by the camera 193 .
  • the NPU can identify the color image data collected by the camera 193 (specifically, the color camera module) through the neural network algorithm based on the bone point recognition technology, such as a convolutional neural network algorithm (CNN), to Determine the skeletal points of the person being photographed.
  • CNN convolutional neural network algorithm
  • the CPU or GPU can also run the neural network algorithm to determine the skeleton points of the person being photographed according to the color image data.
  • the CPU or GPU or NPU can also be used to confirm the figure (such as body proportion, body parts between the skeletal points), and further determine the body beautification parameters for the photographed person, and finally process the captured image of the photographed person according to the body beautification parameters, so that the photographed person in the captured image
  • the body shape of the person being photographed is beautified. Subsequent embodiments will introduce in detail how to perform body shaping processing on the image of the person being photographed based on the color image data and depth data collected by the camera 193 , which will not be repeated here.
  • 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 energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG)-1, MPEG-2, MPEG-3, MPEG-4, etc.
  • MPEG moving picture experts group
  • the NPU is a neural-network (NN) computing processor.
  • NPU neural-network
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as 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 a data storage function. For example, save data such as music, photos, videos, etc. in an external memory card.
  • the internal memory 121 may be used to store one or more computer programs including instructions.
  • the processor 110 can execute the above-mentioned instructions stored in the internal memory 121, so that the electronic device 100 executes the photo preview method of the electronic device provided in some embodiments of the present application, as well as various functional applications and data processing.
  • the internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system; the stored program area can also store one or more application programs (such as a gallery, contacts, etc.) and the like.
  • the data storage area can store data (such as photos, contacts, etc.) created during the use of the electronic device 100 .
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone 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 signal.
  • the audio module 170 may also be used to encode and decode audio signals.
  • the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
  • Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
  • Electronic device 100 can listen to music through 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 receives the call
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some 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 realize directional recording functions, etc.
  • the earphone interface 170D is used for connecting wired earphones.
  • the earphone interface 170D can be a USB interface 130, or 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 the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 180A may be disposed on display screen 194 .
  • pressure sensors 180A such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
  • a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material.
  • the electronic device 100 determines the intensity of pressure according to 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 according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device 100 .
  • the angular velocity of the electronic device 100 around three axes may be determined by the gyro sensor 180B.
  • the gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking 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.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip leather case.
  • the electronic device 100 may detect opening and closing of the clamshell according to the magnetic sensor 180D.
  • 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).
  • the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the distance sensor 180F is used to measure the distance.
  • the electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 100 emits infrared light 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 may 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 that the user holds the electronic device 100 close to the ear. In order to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
  • the ambient light sensor 180L is used for sensing 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, so as to prevent accidental touch.
  • the fingerprint sensor 180G is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, take pictures with fingerprints, answer incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature treatment strategy. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 may reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by the low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • the touch sensor 180K may also be called a touch panel or a touch-sensitive surface.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
  • the bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined into a bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 180M, so as to realize 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, so as to realize the heart rate detection function.
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
  • the motor 191 can generate a vibrating reminder.
  • the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • the motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card.
  • the SIM card can be connected and 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 and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple 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 calling and data communication.
  • the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100, and cannot be connected with the electronic device 100. Prepare 100 separations.
  • the electronic device 100 exemplarily shown in FIG. 1A can display various user interfaces described in the following various embodiments through a display screen 194 .
  • the electronic device 100 can detect a touch operation in each user interface through the touch sensor 180K, such as a click operation (such as a touch operation on an icon, a double-click operation) in each user interface, and for example, an upward or downward touch operation in each user interface. A swipe down, or a circle gesture, etc.
  • the electronic device 100 can detect motion gestures performed by the user holding the electronic device 100 , such as shaking the electronic device, through the gyroscope sensor 180B, the acceleration sensor 180E, and the like.
  • the electronic device 100 can detect a non-touch gesture operation through the camera 193 (such as a 3D camera, a depth camera).
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
  • the software structure of the electronic device 100 is exemplarily described by taking an Android system with a layered architecture as an example.
  • FIG. 1B is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • the Android system is divided into four layers, which are respectively the application program layer, the application program framework layer, the Android runtime (Android runtime) and system library, and the kernel layer from top to bottom.
  • the application layer can consist of a series of application packages.
  • the application package may include application programs such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
  • application programs such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions. As shown in Fig. 1B, the application framework layer may include 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 get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • a display interface can consist of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide communication functions of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification messages in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a short stay without user interaction.
  • the notification manager is used to notify the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
  • Android Runtime includes core library and virtual machine.
  • Android Runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
  • the virtual machine is used to perform object life cycle management, stack management, thread management, Security and exception management, as well as functions such as garbage collection.
  • a system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: 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 various commonly used audio and video formats, as well as still image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, G.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
  • 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 a display driver, a camera driver, an audio driver, and a sensor driver.
  • the software system shown in Figure 1B involves application presentation using sharing capabilities (such as gallery, file manager), instant sharing modules providing sharing capabilities, printing services (print service) and print spooler providing printing capabilities , and the application framework layer provides printing framework, WLAN service, Bluetooth service, and the kernel and bottom layer provide WLAN Bluetooth capability and basic communication protocol.
  • sharing capabilities such as gallery, file manager
  • instant sharing modules providing sharing capabilities
  • printing services printing services
  • print spooler providing printing capabilities
  • the application framework layer provides printing framework, WLAN service, Bluetooth service
  • the kernel and bottom layer provide WLAN Bluetooth capability and basic communication protocol.
  • FIG. 2A schematically shows an exemplary user interface 21 for an application program menu on the electronic device 100 .
  • the user interface 21 may include: a status bar 201, a tray 202 with frequently used application icons, and other application icons. in:
  • the status bar 201 may include: one or more signal strength indicators 203 for mobile communication signals (also referred to as cellular signals), one or more signal strength indicators 207 for wireless high-fidelity (Wi-Fi) signals , battery status indicator 209, time indicator 211.
  • the tray 202 with commonly used application program icons can display: a camera icon 241 , an address book icon 243 , a phone icon 245 , and an information icon 247 .
  • Other application program icons can be, for example: clock icon 210, calendar icon 211, gallery icon 213, memo icon 215, file management icon 217, email icon 219, music icon 221, wallet icon 223, Huawei Video icon 225, sports and health icon 227, weather icon 229, browser icon 231, smart life icon 233, setting icon 235, recorder icon 237, and application store icon 239.
  • User interface 21 may also include indicator 249 . Icons of other application programs may be distributed on multiple pages, and the page indicator 249 may be used to indicate the application program on which page the user is currently browsing. The user can slide the area of other application icons left and right to browse the application icons in other pages.
  • the user interface 21 exemplarily shown in FIG. 2A may be a main interface (Home screen).
  • the electronic device 100 may also include a home screen key.
  • the home screen key may be a physical key or a virtual key.
  • the home screen key can be used to receive an instruction from the user, and return the currently displayed UI to the home interface, so that the user can view the home screen at any time.
  • the above instruction can specifically be an operation instruction in which the user presses the home screen button once, or an operation instruction in which the user presses the home screen button twice in a short period of time, or an operation instruction in which the user presses the home screen button for a long time within a predetermined period of time. operating instructions.
  • the home screen key may also be integrated with a fingerprint reader, so that when the home screen key is pressed, fingerprint collection and identification are performed thereupon.
  • FIG. 2A only exemplarily shows the user interface of the electronic device 100, and should not constitute a reference to this application. Limitations of the Examples.
  • FIG. 2B exemplarily shows the operation of the electronic device 100 for displaying the notification center.
  • the electronic device 100 may display a notification center 261 on the user interface 21 in response to the gesture.
  • the notification center 261 may display a delete control 271, a window 281 for managing notifications, and one or more notification messages from applications.
  • the electronic device 100 may jump to an application program corresponding to the notification message to display detailed information of the above notification message.
  • notifications displayed in the notification center 261 are important information. With more and more application notifications, important notifications may be overwhelmed by non-important notifications, and it is becoming more and more difficult for users to quickly get important notifications from the notification center.
  • FIG. 2C exemplarily shows a schematic diagram of deleting a notification message of the electronic device 100 .
  • the user can choose to delete notification messages one by one, or quickly delete all notification messages.
  • the electronic device 100 may clear one or more notification messages from the application program displayed in the notification center 261 .
  • the electronic device 100 may display a deletion option of the notification center.
  • the electronic device 100 may delete the current notification message.
  • the deletion efficiency will be low.
  • the user chooses to clear all notification messages through the delete control 271 it is easy to delete important notifications, resulting in missing important information.
  • the main problem to be solved in this application is to help the user quickly delete other notification messages while ensuring that the user does not miss important notifications, thereby ensuring the simplicity of the notification center page.
  • the prior art can quickly delete notification messages, it is easy for users to ignore important notification messages. Over time, when users want to get important information, they will not go to the notification center to get it.
  • FIG. 3A exemplarily shows a first user interface displayed on an electronic device such as a smart phone, that is, a notification center 361 .
  • the notification center 361 is a window for displaying notification messages from one or more application programs on electronic devices such as smart phones and tablet computers, and can be obtained by sliding down the top of the display screen of the electronic device 100 .
  • various application programs can be installed in the electronic device 100 , and these application programs will push notification messages to the electronic device 100 .
  • the electronic device 100 receives the notification message pushed by the application program, it can load the notification message to the notification center 361 to display the notification message in the notification center 361 .
  • N notification messages may be displayed on the first user interface (that is, the notification center 361 ), where N is a positive integer greater than or equal to 1.
  • the notification message specifically includes N notification messages, and the above N notification messages may come from the same application program or different application programs.
  • the above N notification messages can be displayed in the notification center 361 from top to bottom according to the time pushed by the application program to the electronic device 100 or displayed in the notification center 361 from bottom to top according to the time pushed to the electronic device 100 by the application program .
  • the message pushed by the information program to the notification center 361 is displayed at the top; the message pushed to the notification center 261 by the "XX group buying" program 40 minutes ago is displayed at the bottom.
  • the electronic device may update the notification message displayed in the notification center 361 .
  • the notification message updated in response to the sliding operation is a message older than the current time or the notification message updated in response to the sliding operation is a message closer to the current time.
  • the window corresponding to the application program in the notification center 361 can be displayed in a folded manner.
  • the electronic device 100 may delete the N notification messages in batches according to the priorities corresponding to the N notification messages.
  • the notification center 361 includes a delete control 371 , and the delete control 371 is used to delete the N notification messages displayed by the notification center 361 .
  • the electronic device 100 detects the user's operation on the delete control 371 in the notification center 361 , and in response to the operation, the electronic device 100 can delete the N notification messages step by step according to the respective priorities corresponding to them.
  • the level-by-level deletion mentioned in the embodiment of the present application is not to clear the notification messages displayed in the notification center at once, but to delete the notification messages in batches according to the priority.
  • each notification message in the above N notification messages is marked with a priority. As shown in FIG. 3A , it is assumed that the priority of notification message 302, notification message 303 and notification message 306 is lower than the deletion priority of notification message 301, notification message 304 and notification message 305, so the electronic device 100 can be displayed in the notification center 361.
  • notification message 302 notification message 303 and notification message 306, that is, notification message 302, notification message 303 and notification message 306 will first disappear in notification center 361, while notification message 301, notification message 304 and notification message 305 will not disappear in the notification center 361 together with the notification message 302 , the notification message 303 and the notification message 306 .
  • the electronic device 100 may continue to respond to the above operations, and delete the notification message 301, the notification message 304, and the notification message 305, that is, the notification message 301, the notification message 304, and the notification message 305.
  • the notification message 305 may disappear from the notification center 361 after a period of time.
  • FIG. 3B exemplarily shows a second user interface displayed on an electronic device such as a smart phone, that is, a notification center 362 .
  • the electronic device 100 detects a touch operation on the first user interface (ie, the area where the notification center 362 is located).
  • the electronic device 100 stops the deletion and displays the second user interface, that is, the notification center 362 .
  • M notification messages may be displayed on the second user interface, where M is a positive integer smaller than N.
  • the M notification messages may specifically include notification messages retained because the electronic device 100 stops the deletion.
  • the electronic device after the electronic device deletes the N notification messages in batches according to the priorities corresponding to the N notification messages, it has deleted L notification messages among the N notification messages before stopping the above deletion behavior.
  • the priority of each object in the L notification messages is lower than the priority of each object in the M objects, and L is a positive integer smaller than N.
  • the electronic device 100 when the electronic device 100 responds to the deletion operation on the N notification messages displayed by the notification center 361, the electronic device 100 can first delete the N notification messages displayed by the notification center 361 according to the priorities corresponding to the N notification messages.
  • the notification message 302, the notification message 303 and the notification message 306 are deleted.
  • the electronic device 100 in response to detecting a touch operation acting on the first user interface (that is, the area where the notification center 361 is located), the electronic device 100 may stop processing the notification message 301. , the deletion behavior of the notification message 303 and the notification message 306.
  • the electronic device 100 can display the second user interface (ie, the notification center 362), and in the notification center 362, the notification messages that are not deleted after the user's touch operation can be displayed, that is, the notification message 301, the notification message 303, and the notification message 306. .
  • the notification message 301 , the notification message 303 and the notification message 306 can be protected from being deleted, so as to prevent the user from missing messages with higher priority.
  • FIG. 3C exemplarily shows a third user interface, a fourth user interface, and a fifth user interface displayed by an electronic device such as a smart phone.
  • the electronic device 100 responds to the deletion of the above N notification messages Operation, the electronic device 100 may sequentially delete the above N notification messages according to the corresponding priorities.
  • the notification center 361 includes a delete control 371 , and the delete control 371 is used to delete the N notification messages displayed by the notification center 361 . That is, the electronic device 100 may detect the user's operation on the delete control 371 in the notification center 361 , and delete the N notification messages displayed on the notification center 361 step by step and in batches in response to the above operation.
  • the electronic device 100 can first delete the notification message with the first priority among the N notification messages according to the priority (for example, the notification message 302, the notification message 303 and the notification message 306), and display the third user interface, that is, FIG. 3C Notification Center 363 is shown. Therefore, the notification message with the second priority and the notification message with the third priority among the N notification messages are displayed on the third user interface (such as notification message 301 , notification message 304 and notification message 305 ). Among them, the priority programs of the first priority, the second priority and the third priority are incremented sequentially.
  • a countdown control 391 is displayed in the third user interface (that is, the notification center 363), and a first time (for example, 30 seconds) is displayed in the countdown control 391.
  • the countdown control 391 is used to prompt the user to stop the electronic device after the above-mentioned first time interval.
  • 100 will delete the second priority notification message (for example, notification message 305 ) among the N notification messages, and display the fourth user interface, that is, the notification center 364 shown in FIG. 3C . Therefore, notification messages of the third priority among notification messages (for example, notification message 301 and notification message 304 ) are displayed on the fourth user interface.
  • a countdown control 392 is displayed in the fourth user interface (that is, the notification center 364), and a second time (for example, 60 seconds) is displayed in the countdown control 392.
  • the countdown control 392 is used to prompt the user to stop the electronic device after the above-mentioned second time interval.
  • 100 will delete the third-priority notification message (for example, notification message 301 and notification message 304 ) among the N notification messages, and display the fifth user interface, that is, the notification center 365 shown in FIG. 3C .
  • the electronic device 100 deletes the notification message 301, the notification message 302, the notification message 303, the notification message 304 and the notification message 305 displayed in the first user interface (that is, the notification center 361 shown in FIG. 3C ) in order according to the deletion priority, so There is no notification message displayed in the fifth user interface.
  • FIG. 3C exemplarily shows three classifications of priorities (first priority, second priority, and third priority), but this embodiment of the present application is not limited to the above three classifications, and priority Levels are classified in more detail, such as 4 types, 6 types, and so on.
  • the notification messages displayed in the notification center are deleted in order according to the deletion priority, that is, the notification messages with lower priority are deleted first, and the notification messages with higher priority are deleted after a period of time. It can prevent users from missing high-priority notifications while keeping the notification center simple.
  • the priority of each notification message is determined by the number of times the electronic device 100 opens the notification message in response to the first operation on the notification message. That is to say, the electronic device 100 responds to the first operation on the N notification messages respectively, thereby collecting the number of times each notification message in the N notification messages is opened, and then according to the number of times each notification message in the N notification messages is opened The number of times marks a priority for each of the N notification messages.
  • the notification message is pushed to the notification center by one or more application programs installed in the electronic device 100 .
  • the frequency of notification messages pushed by the first application program is opened by the user, it means that the electronic device has performed more operations in response to the notification messages pushed by the first application program, that is, the first application program is collected within a preset time. The number of starts is greater than or equal to the first range value. It shows that the user pays more attention to the notification message pushed by the first application program, and the notification message pushed by the first application program may be important to the user.
  • the electronic device 100 may mark the notification message pushed by the second application as the third priority.
  • the frequency of notification messages pushed by the user when opening the second application program is less, it means that the electronic device has less operations in response to the notification messages pushed by the second application program, that is, the second application program is collected within a preset time.
  • the number of starts is greater than or equal to the second range value and less than the first range value, indicating the user's concern for the notification message pushed by the second application program.
  • the attention is average, and the notification message pushed by the second application program may be of average importance to the user.
  • the electronic device 100 may mark the notification message pushed by the second application as the second priority.
  • the electronic device 100 may mark the notification message pushed by the second application as the first priority.
  • the first range value is greater than the second range value.
  • the electronic device 100 may determine the corresponding priority by counting the number of notification messages pushed by the user opening the application from the notification center.
  • the user can set the priority corresponding to the application program according to his actual needs.
  • the user can set the priority of the application when the application is installed on the electronic device 100; or, in the process of using the application, set the corresponding priority of the application through the "Settings" option; or, through the notification center Notification management to set the corresponding priority of the application.
  • the notification message is pushed by the application program, so when the priority of the application program is determined, the priority of the notification message pushed by the application program is consistent with the priority of the application program.
  • the electronic device when the priority corresponding to the application program is not set, the electronic device will use the priority corresponding to the application program matched according to the user's operation habits.
  • the priority corresponding to the application program set by the user is preferentially adopted. For example, assume that the user only sets the priorities corresponding to the first application program, the second application program, the third application program, the fourth application program and the fifth application program, but the electronic device collects the received information of the sixth application program The number of times it is started, may mark a priority for the sixth application.
  • the first application program includes one or more applications whose number of times of opening the pushed notification message at the preset time is greater than the first range value;
  • the second application program includes opening the pushed notification message at the preset time One or more applications whose number of times is greater than or equal to the second range value and less than the first range value;
  • the third application program includes one or more applications whose times of opening pushed notification messages at a preset time are less than the second range value application.
  • the electronic device can first delete the notification messages pushed by the third application program according to their corresponding priorities, delete the notification messages pushed by the second application program after a period of time, and delete the notification messages pushed by the third application program after a period of time. notification message.
  • FIG. 4A exemplarily shows a user interface 400 of an application program (such as "Gallery") displayed on an electronic device such as a smart phone.
  • "Gallery” is an application program for picture management on electronic devices such as smart phones and tablet computers, and it can also be called “album”.
  • the embodiment of the present application does not limit the name of the application program.
  • the APP can support users to perform various operations on pictures stored on electronic devices, such as browsing, editing, deleting, selecting and other operations. That is, the objects managed by "Gallery” are pictures. In other cases, the APP can also support the user to perform the above-mentioned various operations on the pictures stored on the cloud server. It can be understood that, in this embodiment, the picture may be captured by the electronic device 100 using the camera 193 , or may be obtained from other application programs or downloaded from a web page.
  • One or more pictures may be displayed in the user interface 400 .
  • the electronic device detects an upward or downward sliding operation in the user interface 400, in response to the sliding operation, the electronic device can update the Displayed pictures for users to browse pictures. That is to say, the user can slide up or down in the user interface 400 to browse more pictures. Not limited to the operation of sliding up or down, the user can also slide left or right in the user interface 400 to browse more pictures.
  • Picture 419 may be a thumbnail.
  • the original image corresponding to the image 419 can be stored in the electronic device, or can be stored in the cloud server.
  • the pictures referred to in the following embodiments may be stored in an electronic device or on a cloud server.
  • FIG. 4B exemplarily shows a schematic diagram of a user deleting a picture in the "Gallery".
  • the electronic device may detect in the user interface 400 that the user selects a picture 401 , a picture 402 , and so on, a selection operation of N pictures.
  • the electronic device may display a first user interface 4011 .
  • the selected N pictures, share control 431 , select all control 432 , edit control 433 , delete control 434 and more control 435 can be displayed in the first user interface 4011 . It can be understood that the user can swipe up or down in the first user interface 4011 to browse more selected pictures.
  • the electronic device may delete the N pictures in batches according to the priorities corresponding to the N pictures.
  • the electronic device 100 may display the first user interface 4011 in the user interface 400 in response to the user's selection operation.
  • the selected N pictures are displayed in the first user interface 4011 .
  • the electronic device 100 detects the user's operation on the delete control 434 in the first user interface 4011 , and in response to the operation, the electronic device can delete the N pictures step by step according to the respective priorities corresponding to each of the N pictures.
  • the step-by-step deletion mentioned in the embodiment of the present application is not to clear the pictures displayed in the first user interface 4011 at once, but to delete the pictures in batches according to the priority. Wherein, each of the above N pictures is marked with a priority.
  • the priorities of pictures 401, 402, 405, 410, 425, and 428 are lower than those of other selected pictures displayed in the first user interface 4011, so in the A user interface 4011 may display the operations performed by the electronic device 100 to delete pictures 401, 402, 405, 410, 425, and 428 (for example, pictures 401, 402, 405, 410, 425, The edge of picture 428 is gradually virtualized, or picture 401, picture 402, picture 405, picture 410, picture 425, picture 428 gradually disappear, or other pictures will come forward to supplement picture 401, picture 402, picture 405, picture 410, picture 425 , the position of picture 428).
  • the picture 401 , picture 402 , picture 405 , picture 410 , picture 425 , and picture 428 will first be displayed in the first user interface 4011 . And other photos will not be messaged together with picture 401, picture 402, picture 405, picture 410, picture 425, picture 428.
  • the electronic device may continue to respond to the above operation and perform deletion operations on other photos.
  • FIG. 4C schematically shows a second user interface 4012 displayed on an electronic device such as a smart phone.
  • the electronic device 100 detects a touch operation on the first user interface 4011 during the process of deleting the pictures in batches according to the priorities corresponding to the selected N pictures displayed on the first user interface 4011 .
  • the electronic device 100 stops the deletion and displays the second user interface 4012 .
  • M pictures may be displayed on the second user interface 4012, where M is a positive integer smaller than N.
  • the M pictures may specifically include pictures that are retained because the electronic device 100 stops the deletion.
  • L photos in the N pictures have been deleted.
  • the priority of each object in the L photos is lower than the priority of each object in the M objects, and L is a positive integer smaller than N.
  • the electronic device 100 when the electronic device 100 responds to the deletion operation of the selected N photos displayed on the first user interface 4011, the electronic device can correspond to the selected N photos displayed on the first user interface 4011.
  • the electronic device may stop deleting other pictures.
  • the electronic device first deletes picture 401, picture 402, picture 405, picture 410, picture 425, and picture 428. Therefore, the electronic device may display the second user interface 4012, and the pictures that are not deleted after the user's touch operation may be displayed in the second user interface 4012. It can be understood that the above-mentioned undeleted pictures have a higher priority than the deleted pictures, so that the high-priority pictures can be protected from being accidentally deleted.
  • FIG. 4D exemplarily shows a third user interface, a fourth user interface, and a fifth user interface displayed by an electronic device such as a smart phone.
  • the electronic device 100 may delete the above N pictures sequentially according to the corresponding priorities.
  • the first user interface 4011 includes a delete control 434, and the delete control 434 is used to perform a delete operation on the selected N brother picture displayed on the first user interface 4011. That is, the electronic device may detect the user's operation on the delete control 434 in the first user interface 4011, and delete the N pictures displayed on the first user interface 4011 step by step and in batches in response to the above operation.
  • the electronic device 100 may first delete the first-priority picture among the N pictures according to the priority (for example, the picture 401 , the picture 402 , the picture 405 , the picture 410 , the picture 425 , and the picture 428 ), and display the third user interface 4013 . Therefore, the picture with the second priority and the picture with the third priority among the N pictures are displayed on the third user interface 4013 .
  • the priority levels of the first priority, the second priority and the third priority increase sequentially.
  • a countdown control 491 is displayed in the third user interface 4013, and a first time (for example, 20 seconds) is displayed in the countdown control 491.
  • the countdown control 491 is used to remind the user that after the above-mentioned first time interval, the electronic device 100 will delete N
  • the pictures of the second priority in the picture (such as picture 403, picture 406, picture 407, picture 411, picture 412, picture 413, picture 418, picture 420, picture 422, picture 423, picture 424), display the fourth user interface 4014.
  • the fourth user interface 4014 displays notification messages of the third priority among the N pictures (such as picture 404, picture 408, picture 409, picture 414, picture 415, picture 416, picture 417, picture 419, picture 421, picture 426, picture 427).
  • a countdown control 492 is displayed in the fourth user interface 4014, and a second time (for example, 40 seconds) is displayed in the countdown control 492.
  • the countdown control 492 is used to remind the user that the electronic device 100 will delete N
  • the pictures of the third priority in the pictures (such as pictures 404, pictures 408, pictures 409, pictures 414, pictures 415, pictures 416, pictures 417, pictures 419, pictures 421, pictures 426, pictures displayed in the fourth user interface 4014 427), displaying the fifth user interface 4015. There will be no selected photos to display in the fifth user interface 4015 .
  • the electronic device 100 deletes the selected pictures displayed on the first user interface 4011 sequentially according to the deletion priority, so no selected pictures are displayed on the fifth user interface, and unselected pictures are displayed.
  • FIG. 4D exemplarily shows three classifications of priorities (first priority, second priority, and third priority), but this embodiment of the present application is not limited to the above three classifications, and priority Levels are classified in more detail, such as 4 types, 6 types, and so on.
  • the selected pictures in the gallery are deleted in order according to the deletion priority, that is, the pictures with lower priority are deleted first, and the pictures with higher priority are deleted after a period of time.
  • the gallery is concise and prevents users from missing important pictures.
  • the priority of each picture is determined by the number of times the electronic device opens the picture in response to the first operation on the picture in the gallery. That is to say, the electronic device 100 responds to the first operation on the N pictures respectively, thus collects the number of times each of the N pictures is opened, and then calculates the number of times each of the N pictures is opened according to the number of times each of the N pictures is opened Each picture in is marked with a priority.
  • the picture may be captured by the electronic device 100 using the camera 193, or may be obtained from other application programs or downloaded from a web page.
  • the user uses the camera 193 to continuously capture photos during travel, and the continuously captured photos may be repeated photos, which occupy a large amount of device memory.
  • the photos obtained from other applications or downloaded from the web are duplicate photos. For duplicate photos or photos with high similarity, it is not very important to users, just keep one.
  • the electronic device may mark repeated pictures or pictures of the first type as the third priority.
  • the electronic device may mark repeated pictures or pictures of the first type as the second priority.
  • the electronic device may mark repeated pictures or pictures of the first type as the first priority.
  • the fourth range is greater than the third range value.
  • the electronic device 100 can determine the priority corresponding to the application program by counting the number of times the user can open the picture in the gallery.
  • the user can set the priority corresponding to the pictures in the gallery according to his actual needs.
  • the priority is set according to the time when the pictures are acquired, and the pictures belonging to the first time period are marked as the first priority, and the pictures belonging to the second time period are marked as the second priority.
  • the priority can also be set according to the type of pictures, and the food pictures are marked as the first priority, the people pictures are marked as the second priority, and the landscape pictures are marked as the third priority.
  • the electronic device when the priority corresponding to the picture in the gallery is not set, the electronic device will adopt the priority of the picture matched according to the user's operation habit.
  • the priority of the picture set by the user is given priority.
  • the first category of pictures includes one or more pictures or repeated pictures whose number of times opened at the preset time is less than the third range value; the second category of pictures includes the number of times opened at the preset time is greater than or equal to the fourth range One or more pictures whose range value is smaller than the third range value; the third type of picture includes one or more pictures whose opening times are less than the fourth range value within the preset time. Therefore, when the above-mentioned pictures of the first type, pictures of the second type and pictures of the third type are respectively selected, if the electronic device responds to detecting a deletion operation on the above-mentioned pictures, the electronic device can first delete the pictures of the first type according to their corresponding priorities.
  • FIG. 5 is a schematic flowchart of deleting an object according to an embodiment of the present application.
  • the method can be applied to the electronic device 100 shown in FIG. 1A .
  • This method can be applied to the electronic device 100 shown in FIG. 1B .
  • the method may include, but is not limited to, the following steps:
  • Step S501 displaying a first user interface.
  • N objects displayed in the first user interface there are N objects displayed in the first user interface, and the objects may include one or more of the following: notification messages pushed by applications, pictures in the "Gallery", songs in music software, and shopping records in shopping software , in the folder Notes in files and memos, and more.
  • N is a positive integer greater than or equal to 1.
  • the notification message When the object is a notification message pushed by an application program, the notification message will be displayed in the notification center of the electronic device, so the first user interface is the window where the notification center is located.
  • the first user interface is an interface provided by the "Gallery" for displaying pictures.
  • the first user interface is an interface provided by the music software for the user to display music
  • the song includes but is not limited to: songs downloaded by the user, songs listened to by the user recently, songs collected by the user, etc. wait.
  • the first user interface is the interface provided by the shopping software for displaying the shopping record.
  • the shopping record includes but is not limited to: the shopping record browsed by the user, the shopping record added by the user shopping records, user favorite shopping records, and so on.
  • the first user interface is an interface provided by the folder for displaying files.
  • the first user interface is an interface provided by the memo for displaying notes.
  • each of the above N objects is marked with a priority.
  • the priority can be marked by the user. If the user does not mark the priority, the electronic device can match the corresponding priority according to the usage habit of the user.
  • the electronic device may respond to the first operations on the N objects, thereby collecting the number of times each of the N objects is opened, and then according to the number of times each of the N objects is opened
  • the number of opens marks a priority for each of the N objects. Taking the priority level as an example, it is assumed that it is classified into the first priority level, the second priority level and the third priority level, wherein the priority levels of the first priority level, the second priority level and the third priority level Incremented sequentially.
  • the electronic device may mark the first object as a third priority.
  • the electronic device may mark the second object as a second priority.
  • the electronic device may mark the bulk object as first priority.
  • the first range value is greater than the second range value.
  • the first object includes one or more objects whose number of times the pushed notification message is opened at the preset time is greater than the first range value;
  • the second object includes one or more objects whose number of times the pushed notification message is opened at the preset time is greater than Or one or more objects equal to the second range value and less than the first range value;
  • the third object includes one or more objects whose times of opening the pushed notification message at the preset time are less than the second range value.
  • the object is opened can be understood as the behavior of clicking on the object to perform operations such as viewing and editing on the object. For example, click on the push notification information to view the detailed content of the notification information; click on the thumbnail version of the picture to view the picture; click on the song to play the song; click on the shopping record to view the details of the product.
  • Step S502 in response to the deletion operation on the N objects, delete the N objects in batches according to the priorities corresponding to the N objects.
  • the electronic device in response to the deletion operation for N objects, the electronic device first deletes objects with lower priority among the N objects according to the priorities corresponding to the N objects, and then deletes objects with higher priority among the N objects until Clear the above N objects.
  • the electronic device when the electronic device deletes N objects in batches according to the N corresponding priorities, the user clicks on the display screen of the electronic device, and the electronic device may respond to the to stop the deletion. That is, the deleted batch of objects (for example, objects with higher priority) is stopped, and the second user interface is displayed. There are M objects displayed in the second user interface, where M is a positive integer smaller than N. It can be understood that after the electronic device deletes N objects in batches according to the priorities corresponding to the N objects, before stopping the deletion behavior, L objects among the N objects have been deleted, leaving M objects not deleted. Wherein, the priority of each object in the L objects is less than the priority of each object in the M objects. L is a positive integer smaller than N. Therefore, even in the process of deletion, objects with higher priority can be protected from deletion through user operations.
  • the electronic device In response to the deletion operation on the N objects, the electronic device first deletes the object with the first priority among the N objects according to the priorities corresponding to the N objects, and displays the third user interface. Wherein, objects of the second priority and objects of the third priority are displayed in the third user interface.
  • the electronic device deletes the second-priority object among the N objects after a first time interval, and displays a fourth user interface. Wherein, objects of the third priority are displayed on the fourth user interface.
  • the electronic device deletes the third-priority object among the N objects after a second time interval, and displays a fifth user interface. Wherein, there are no objects displayed in the fifth user interface.
  • the electronic device responds to a touch operation on the first user interface during the process of deleting the first-priority object among the N objects, it will stop deleting the second-priority object and the third-priority object.
  • Objects to display the user interface containing objects of the second priority and objects of the third priority.
  • the electronic device If the electronic device is in the process of deleting objects with the second priority among the N objects after a first time interval, in response to a touch operation on the second user interface, it will stop deleting the objects with the third priority and display the objects containing the third priority. level object user interface.
  • words such as “first” and “second” are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order .
  • Features defined as “first” and “second” may explicitly or implicitly include one or more of these features.
  • words such as “exemplary” or “for example” are used as examples, illustrations or descriptions. Any embodiment or design scheme described as “exemplary” or “for example” in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as “exemplary” or “such as” is intended to present related concepts in a concrete manner.
  • the processes can be completed by computer programs or hardware related to the computer programs.
  • the computer programs can be stored in computer-readable storage media.
  • the computer programs During execution, it may include the processes of the foregoing method embodiments.
  • the aforementioned storage medium includes: various media capable of storing computer program codes such as read-only memory (ROM) or random access memory (RAM), magnetic disk or optical disk.

Landscapes

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

Abstract

Embodiments of the present application provide an object deletion method and an electronic device. The method may comprise: displaying a first user interface, wherein N objects are displayed in the first user interface, N is a positive integer greater than or equal to 1, and each object among the N objects is marked with a priority; and in response to a deletion operation for the N objects, deleting the N objects in batches according to the priorities corresponding to the N objects. By means of the embodiments of the present application, during a process of deleting a plurality of objects, the plurality of objects can be deleted in batches rather than at one time, so that an opportunity of pausing deletion can be provided for a user, thereby improving use experience of a user.

Description

删除对象的方法及电子设备Method and electronic device for deleting object
本申请要求于2022年02月25日提交中国专利局、申请号为202210180310.0、申请名称为“删除对象的方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202210180310.0 and the application title "Method and Electronic Device for Deleting Objects" filed with the China Patent Office on February 25, 2022, the entire contents of which are incorporated herein by reference .
技术领域technical field
本申请涉及计算机技术领域,尤其涉及一种删除对象的方法及电子设备。The present application relates to the field of computer technology, in particular to a method for deleting an object and an electronic device.
背景技术Background technique
随着科技的进步,越来越多的应用程序应运而生。用户可以安装各种各样的应用程序在电子设备中,在用户使用电子设备的时候,电子设备会产生很多对象。比如说通知中心所显示的来自应用程序的通知消息;音乐软件会存在用户听过的歌曲;图库软件会存在保存的照片;购物软件会存在用户的购物记录,等等。As technology advances, more and more apps are created. A user may install various application programs in an electronic device, and when the user uses the electronic device, the electronic device generates many objects. For example, the notification message from the application program displayed in the notification center; the music software will store the songs the user has listened to; the gallery software will store the saved photos; the shopping software will store the user's shopping records, and so on.
而电子设备的内存有限,上述对象会占用较多内存。现有的方式是对上述对象进行逐条删除或者全部删除。当上述对象非常多时,逐条删除会使得删除效率低下;而全部删除很容易误删除重要的对象,导致用户错过重要信息。However, the memory of an electronic device is limited, and the above-mentioned objects will occupy a large amount of memory. The existing method is to delete the above objects one by one or delete them all. When there are many objects mentioned above, deleting one by one will make the deletion inefficient; and deleting all of them is easy to delete important objects by mistake, causing users to miss important information.
发明内容Contents of the invention
本申请实施例公开了一种删除对象的方法及电子设备,在删除多个对象的过程中,不是一次性删除多个对象,而是分批对多个对象进行删除,可以给用户留有暂停删除的时机,提高用户的使用感。The embodiment of the present application discloses a method for deleting objects and an electronic device. In the process of deleting multiple objects, instead of deleting multiple objects at once, multiple objects are deleted in batches, which can leave a pause for the user The timing of deletion improves the user's sense of use.
第一方面,本申请实施例提供了一种删除对象的方法,该方法可包括:In the first aspect, the embodiment of the present application provides a method for deleting an object, which may include:
显示第一用户界面,所述第一用户界面中显示有N个对象,N为大于或等于1的正整数,所述N个对象中的每个对象被标记了一种优先级;Displaying a first user interface, where N objects are displayed in the first user interface, N is a positive integer greater than or equal to 1, and each object in the N objects is marked with a priority;
响应于针对所述N个对象的删除操作,根据所述N个对象对应的优先级对所述N个对象进行分批删除。In response to the deletion operation on the N objects, the N objects are deleted in batches according to the priorities corresponding to the N objects.
在本申请实施例中,第一用户界面中所显示的每个对象都被标记了一种优先级,因此在对上述对象执行删除操作时,不是一下删除所有的对象,而是根据对象的优先级进行分批删除。这样,即使用户点击了删除全部对象的操作,也可以给用户留有暂停删除的时机,提高用户的使用感。In the embodiment of the present application, each object displayed in the first user interface is marked with a priority level, so when performing the delete operation on the above-mentioned objects, instead of deleting all objects at once, the priority of the objects is Levels are deleted in batches. In this way, even if the user clicks on the operation of deleting all objects, the user can be given an opportunity to suspend deletion, thereby improving the user's sense of use.
在一种可能的实现方式中,该方法还可以包括:In a possible implementation manner, the method may also include:
在根据所述N个对象对应的优先级对所述N个对象进行分批删除的过程中,响应于针对所述第一用户界面的触摸操作,停止删除行为,显示第二用户界面;所述第二用户界面中显示有M个对象,M为小于N的正整数。In the process of deleting the N objects in batches according to the priorities corresponding to the N objects, in response to a touch operation on the first user interface, stop the deletion behavior, and display a second user interface; There are M objects displayed in the second user interface, where M is a positive integer smaller than N.
在本申请实施例中,对N个对象进行分批删除的过程中,为用户留有后悔的操作,用户可以通过触摸操作来停止删除行为,从而在保护后续的通知不被删除。In the embodiment of this application, in the process of deleting N objects in batches, there is an operation for the user to regret, and the user can stop the deletion behavior through a touch operation, thereby protecting subsequent notifications from being deleted.
在一种可能的实现方式中,所述在根据所述N个对象对应的优先级对所述N个对象进行分批删除之后,在停止所述删除行为之前,已经删除了所述N个对象中的L个对象;其中,所述L个对象中的每个对象的优先级小于所述M个对象中的每个对象的优先级,L为小于N 的正整数。In a possible implementation manner, after the N objects are deleted in batches according to the priorities corresponding to the N objects, the N objects have been deleted before the deletion behavior is stopped L objects; wherein, the priority of each object in the L objects is less than the priority of each object in the M objects, and L is less than N positive integer of .
在本申请实施例中,在响应触摸操作而暂停删除的通知是优先级较高的通知,而优先级较好的通知可以是对用户来说比较重要的通知,因此即时点击了删除全部通知的操作,也可以保证重要通知不被删除。In this embodiment of the application, the notifications that are suspended and deleted in response to the touch operation are notifications with higher priority, and notifications with higher priority may be more important notifications to the user, so immediately click the button to delete all notifications operation, it can also ensure that important notifications are not deleted.
在一种可能的实现方式中,所述响应于针对所述N个对象的删除操作,所述根据所述N个对象对应的优先级对所述N个对象进行分批删除之前,还包括:In a possible implementation manner, before deleting the N objects in batches according to the priorities corresponding to the N objects in response to the deletion operation for the N objects, the method further includes:
响应于分别针对所述N个对象的第一操作,采集所述N个对象中每个对象被打开的次数;Collecting the number of times each of the N objects is opened in response to the first operations on the N objects respectively;
根据所述N个对象中每个对象被打开的次数对所述N个对象中的每个对象标记一种优先级。A priority is marked for each of the N objects according to the number of times each of the N objects is opened.
在本申请实施例中,可以考虑用户的使用习惯(比如说分别针对N个对象的操作次数)来为每个对象标记优先级。可以将被打开次数多的对象的优先级标记为高优先级,将打开次数少的对象的优先级标记为低优先级。这样,为对象标记的优先级可以符合用户的使用习惯,从而可以提高用户的使用感受。In the embodiment of the present application, the user's usage habits (for example, the number of operations on N objects respectively) may be considered to mark the priority for each object. The priority of objects opened more times may be marked as high priority, and the priority of objects opened less times may be marked as low priority. In this way, the priority of marking objects can conform to the user's usage habits, thereby improving the user's experience in use.
在一种可能的实现方式中,所述响应于针对所述N个对象的删除操作,所根据所述N个对象对应的优先级对所述N个对象进行分批删除,包括:In a possible implementation manner, in response to the deletion operation on the N objects, deleting the N objects in batches according to the priorities corresponding to the N objects includes:
响应于针对所述N个对象的删除操作,根据所述N个对象对应的优先级先删除所述N个对象中第一优先级的对象,显示第三用户界面,所述第三用户界面中显示有第二优先级的对象和第三优先级的对象;其中,所述第一优先级、所述第二优先级和所述第三优先级的优先级程度依次递增。In response to the deletion operation on the N objects, according to the priorities corresponding to the N objects, first delete the object with the first priority among the N objects, and display a third user interface, in the third user interface Objects with a second priority and objects with a third priority are displayed; wherein, the priority degrees of the first priority, the second priority, and the third priority increase sequentially.
间隔第一时间后删除所述N个对象中所述第二优先级的对象,显示第四用户界面,所述第四用户界面中显示有所述第三优先级的对象;deleting the objects of the second priority among the N objects after a first time interval, and displaying a fourth user interface in which the objects of the third priority are displayed;
间隔第二时间后删除所述N个对象中所述第三优先级的对象,显示第五用户界面,所述第五用户界面中没有显示的对象。After a second time interval, objects of the third priority among the N objects are deleted, and a fifth user interface is displayed, and objects not displayed in the fifth user interface are displayed.
在本申请实施例中,在对N个对象进行分批删除的过程中,是先删除优先级低的对象,间隔一段时候后再删除优先级高的。也即,将优先级高的对象放在后面删除,给用户留有查看优先级高的对象的机会,避免优先级高的对象被忽略。In the embodiment of the present application, in the process of deleting N objects in batches, objects with low priority are deleted first, and objects with high priority are deleted after a period of time. That is, the objects with high priority are deleted later, leaving an opportunity for the user to view the objects with high priority, so as to prevent the objects with high priority from being ignored.
在一种可能的实现方式中,所述对象包含以下一种或多种:应用程序推送的通知消息、图库中已选择的图片、文件、笔记、音乐软件中已选择的歌曲和购物记录。In a possible implementation manner, the object includes one or more of the following: a notification message pushed by an application program, a selected picture in a gallery, a file, a note, a selected song in a music software, and a shopping record.
第二方面,本申请实施例提供了一种电子设备,该电子设备可以包括一个或多个处理器、存储器以及通信模块;所述存储器以及所述通信模块与所述一个或多个处理器耦合,所述存储器用于存储计算机程序,所述一个或多个处理器执行所述计算机程序以使所述电子设备执行:In a second aspect, an embodiment of the present application provides an electronic device, which may include one or more processors, a memory, and a communication module; the memory and the communication module are coupled to the one or more processors , the memory is used to store a computer program, and the one or more processors execute the computer program to cause the electronic device to perform:
显示第一用户界面,所述第一用户界面中显示有N个对象,N为大于或等于1的正整数,所述N个对象中的每个对象被标记了一种优先级;Displaying a first user interface, where N objects are displayed in the first user interface, N is a positive integer greater than or equal to 1, and each object in the N objects is marked with a priority;
响应于针对所述N个对象的删除操作,根据所述N个对象对应的优先级对所述N个对象进行分批删除。In response to the deletion operation on the N objects, the N objects are deleted in batches according to the priorities corresponding to the N objects.
在一种可能的实现方式中,在所述电子设备根据所述N个对象对应的优先级对所述N个对象进行分批删除的过程中,所述电子设备响应于针对所述第一用户界面的触摸操作,所述电子设备停止删除行为,显示第二用户界面;所述第二用户界面中显示有M个对象,M为小于N的正整数。 In a possible implementation manner, when the electronic device deletes the N objects in batches according to the priorities corresponding to the N objects, the electronic device responds to the Touching the interface, the electronic device stops deleting and displays a second user interface; M objects are displayed in the second user interface, and M is a positive integer smaller than N.
在一种可能的实现方式中,所述在根据所述N个对象对应的优先级对所述N个对象进行分批删除之后,在停止所述删除行为之前,已经删除了所述N个对象中的L个对象;其中,所述L个对象中的每个对象的优先级小于所述M个对象中的每个对象的优先级,L为小于N的正整数。In a possible implementation manner, after the N objects are deleted in batches according to the priorities corresponding to the N objects, the N objects have been deleted before the deletion behavior is stopped L objects; wherein, the priority of each object in the L objects is less than the priority of each object in the M objects, and L is a positive integer smaller than N.
在一种可能的实现方式中,所述电子设备还执行:In a possible implementation manner, the electronic device further executes:
响应于分别针对所述N个对象的第一操作,采集所述N个对象中每个对象被打开的次数;Collecting the number of times each of the N objects is opened in response to the first operations on the N objects respectively;
根据所述N个对象中每个对象被打开的次数对所述N个对象中的每个对象标记一种优先级。A priority is marked for each of the N objects according to the number of times each of the N objects is opened.
在一种可能的实现方式中,电子设备具体执行:In a possible implementation manner, the electronic device specifically executes:
响应于针对所述N个对象的删除操作,根据所述N个对象对应的优先级先删除所述N个对象中第一优先级的对象,显示第三用户界面,所述第三用户界面中显示有第二优先级的对象和第三优先级的对象;其中,所述第一优先级、所述第二优先级和所述第三优先级的优先级程度依次递增。In response to the deletion operation on the N objects, according to the priorities corresponding to the N objects, first delete the object with the first priority among the N objects, and display a third user interface, in the third user interface Objects with a second priority and objects with a third priority are displayed; wherein, the priority degrees of the first priority, the second priority, and the third priority increase sequentially.
间隔第一时间后删除所述N个对象中所述第二优先级的对象,显示第四用户界面,所述第四用户界面中显示有所述第三优先级的对象;deleting the objects of the second priority among the N objects after a first time interval, and displaying a fourth user interface in which the objects of the third priority are displayed;
间隔第二时间后删除所述N个对象中所述第三优先级的对象,显示第五用户界面,所述第五用户界面中没有显示的对象。After a second time interval, objects of the third priority among the N objects are deleted, and a fifth user interface is displayed, and objects not displayed in the fifth user interface are displayed.
在一种可能的实现方式中,所述对象包含以下一种或多种:应用程序推送的通知消息、图库中已选择的图片、文件、笔记、音乐软件中已选择的歌曲和购物记录。In a possible implementation manner, the object includes one or more of the following: a notification message pushed by an application program, a selected picture in a gallery, a file, a note, a selected song in a music software, and a shopping record.
第三方面,本申请实施例提供了一种计算机存储介质,该计算机存储介质存储有计算机程序,该计算机程序被处理器执行时,实现本申请实施例第一方面以及第一方面的任意一种实现方式提供的删除对象的方法。In the third aspect, the embodiment of the present application provides a computer storage medium, the computer storage medium stores a computer program, and when the computer program is executed by a processor, any one of the first aspect and the first aspect of the embodiment of the present application can be realized. The method provided by the implementation to delete the object.
第四方面,本申请实施例提供了一种计算机程序产品,当该计算机程序产品在电子设备上运行时,使得该电子设备执行本申请实施例第一方面以及第一方面任意一种实现方式提供的删除对象的方法。In a fourth aspect, an embodiment of the present application provides a computer program product, which, when running on an electronic device, causes the electronic device to execute the first aspect of the embodiment of the present application and any implementation manner of the first aspect provides method for deleting objects.
应当理解的是,本申请中对技术特征、技术方案、有益效果或类似语言的描述并不是暗示在任意的单个实施例中可以实现所有的特点和优点。相反,可以理解的是对于特征或有益效果的描述意味着在至少一个实施例中包括特定的技术特征、技术方案或有益效果。因此,本说明书中对于技术特征、技术方案或有益效果的描述并不一定是指相同的实施例。进而,还可以任何适当的方式组合本实施例中所描述的技术特征、技术方案和有益效果。本领域技术人员将会理解,无需特定实施例的一个或多个特定的技术特征、技术方案或有益效果即可实现实施例。在其他实施例中,还可在没有体现所有实施例的特定实施例中识别出额外的技术特征和有益效果。It should be understood that descriptions of technical features, technical solutions, beneficial effects or similar language in this application do not imply that all features and advantages can be realized in any single embodiment. On the contrary, it can be understood that the description of features or beneficial effects means that specific technical features, technical solutions or beneficial effects are included in at least one embodiment. Therefore, descriptions of technical features, technical solutions or beneficial effects in this specification do not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions and beneficial effects described in this embodiment may also be combined in any appropriate manner. Those skilled in the art will understand that the embodiments can be implemented without one or more specific technical features, technical solutions or advantageous effects of the specific embodiments. In other embodiments, additional technical features and beneficial effects may also be identified in certain embodiments that do not embody all embodiments.
附图说明Description of drawings
以下对本申请实施例用到的附图进行介绍。The accompanying drawings used in the embodiments of the present application are introduced below.
图1A是本申请实施例提供的一种电子设备的结构示意图;FIG. 1A is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图1B是本申请实施例提供的一种电子设备的软件结构框图;FIG. 1B is a software structural block diagram of an electronic device provided in an embodiment of the present application;
图2A是本申请实施例提供的一种电子设备上的用于应用程序菜单的用户界面;FIG. 2A is a user interface for an application program menu on an electronic device provided by an embodiment of the present application;
图2B是本申请实施例提供的一种电子设备显示通知中心的操作示意图;FIG. 2B is a schematic diagram of an electronic device displaying a notification center provided in an embodiment of the present application;
图2C是本申请实施例提供的一种电子设备删除通知消息的示意图; FIG. 2C is a schematic diagram of an electronic device deletion notification message provided by an embodiment of the present application;
图3A是本申请实施例提供的一种电子设备显示第一用户界面的示意图;FIG. 3A is a schematic diagram of an electronic device displaying a first user interface provided in an embodiment of the present application;
图3B是本申请实施例提供的一种电子设备显示第二用户界面的示意图;FIG. 3B is a schematic diagram of an electronic device displaying a second user interface according to an embodiment of the present application;
图3C是本申请实施例提供的一种电子设备显示的第三用户界面、第四用户界面和第五用户界面;FIG. 3C is a third user interface, a fourth user interface, and a fifth user interface displayed by an electronic device provided in an embodiment of the present application;
图4A是本申请实施例提供的一种电子设备显示的应用程序的用户界面;FIG. 4A is a user interface of an application program displayed by an electronic device provided in an embodiment of the present application;
图4B是本申请实施例提供的一种用户删除“图库”中的图片的示意图;Fig. 4B is a schematic diagram of a user deleting pictures in the "Gallery" provided by the embodiment of the present application;
图4C是本申请实施例提供的另一种电子设备显示第二用户界面的示意图;FIG. 4C is a schematic diagram of displaying a second user interface by another electronic device provided in an embodiment of the present application;
图4D是本申请实施例提供的令一种电子设备显示的第三用户界面、第四用户界面和第五用户界面;FIG. 4D is a third user interface, a fourth user interface, and a fifth user interface displayed by an electronic device according to an embodiment of the present application;
图5是本申请实施例提供的一种删除对象的流程示意图。Fig. 5 is a schematic flow chart of deleting an object provided by the embodiment of the present application.
具体实施方式Detailed ways
本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本申请中使用的术语“和/或”是指并包含一个或多个所列出项目的任何或所有可能组合。The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. As used in the specification and appended claims of this application, the singular expressions "a", "an", "said", "above", "the" and "this" are intended to also Plural expressions are included unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in this application refers to and includes any and all possible combinations of one or more of the listed items.
以下介绍了电子设备、用于这样的电子设备的用户界面、和用于使用这样的电子设备的实施例。在一些实施例中,电子设备可以是还包含其他功能诸如个人数字助理和/或音乐播放器功能的便携式电子设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴电子设备(如智能手表)等。便携式电子设备的示例性实施例包括但不限于搭载 或者其他操作***的便携式电子设备。上述便携式电子设备也可以是其他便携式电子设备,诸如具有触敏表面或触控面板的膝上型计算机(Laptop)等。还应当理解的是,在其他一些实施例中,上述电子设备也可以不是便携式电子设备,而是具有触敏表面或触控面板的台式计算机。Electronic devices, user interfaces for such electronic devices, and embodiments for using such electronic devices are described below. In some embodiments, the electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and/or a music player, such as a mobile phone, a tablet computer, a wearable electronic device with a wireless communication function (such as a smart watch) wait. Exemplary embodiments of portable electronic devices include, but are not limited to Or portable electronic devices with other operating systems. The aforementioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop) with a touch-sensitive surface or a touch panel. It should also be understood that, in some other embodiments, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer with a touch-sensitive surface or a touch panel.
本申请的说明书和权利要求书及附图中的术语“用户界面(user interface,UI)”,是应用程序或操作***与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。应用程序的用户界面是通过java、可扩展标记语言(extensible markup language,XML)等特定计算机语言编写的源代码,界面源代码在终端设备上经过解析,渲染,最终呈现为用户可以识别的内容,比如图片、文字、按钮等控件。控件(control)也称为部件(widget),是用户界面的基本元素,典型的控件有工具栏(toolbar)、菜单栏(menu bar)、文本框(text box)、按钮(button)、滚动条(scrollbar)、图片和文本。界面中的控件的属性和内容是通过标签或者节点来定义的,比如XML通过<Textview>、<ImgView>、<VideoView>等节点来规定界面所包含的控件。一个节点对应界面中一个控件或属性,节点经过解析和渲染之后呈现为用户可视的内容。此外,很多应用程序,比如混合应用(hybrid application)的界面中通常还包含有网页。网页,也称为页面,可以理解为内嵌在应用程序界面中的一个特殊的控件,网页是通过特定计算机语言编写的源代码,例如超文本标记语言(hyper text markup language,GTML),层叠样式表(cascading style sheets,CSS),java脚本(JavaScript,JS)等,网页源代码可以由浏览器或与浏览器功能类似的网页显示组件加载和显示为用户可识别的内容。网页所包含的具体内容也是通过网页源代码中的标签或者节点来定义的,比如GTML通过<p>、<img>、<video>、<canvas>来定义网页的元素和属性。 The term "user interface (UI)" in the specification, claims and drawings of this application is a medium interface for interaction and information exchange between an application program or an operating system and a user, and it realizes the internal form of information Conversion to and from a form acceptable to the user. The user interface of the application program is the source code written in specific computer languages such as java and extensible markup language (XML). Such as pictures, text, buttons and other controls. Controls, also known as widgets, are the basic elements of the user interface. Typical controls include toolbars, menu bars, text boxes, buttons, and scroll bars. (scrollbar), images and text. The properties and contents of the controls in the interface are defined through labels or nodes. For example, XML specifies the controls contained in the interface through nodes such as <Textview>, <ImgView>, and <VideoView>. A node corresponds to a control or property in the interface, and after the node is parsed and rendered, it is presented as the content visible to the user. In addition, the interfaces of many applications, such as hybrid applications, usually include web pages. A web page, also called a page, can be understood as a special control embedded in an application program interface. A web page is a source code written in a specific computer language, such as hypertext markup language (GTML), cascading style Tables (cascading style sheets, CSS), java scripts (JavaScript, JS), etc., and the source code of the webpage can be loaded and displayed by a browser or a webpage display component similar in function to the browser as content recognizable by the user. The specific content contained in the web page is also defined by the tags or nodes in the source code of the web page. For example, GTML defines the elements and attributes of the web page through <p>, <img>, <video>, and <canvas>.
用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个图标、窗口、控件等界面元素,其中控件可以包括图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。The commonly used form of user interface is the graphical user interface (graphic user interface, GUI), which refers to the user interface related to computer operation displayed in a graphical way. It can be an icon, window, control and other interface elements displayed on the display screen of the electronic device, where the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. visual interface elements.
首先介绍本申请以下实施例中提供的示例性电子设备100。Firstly, the exemplary electronic device 100 provided in the following embodiments of the present application is introduced.
图1A示出了电子设备100的结构示意图。FIG. 1A shows a schematic structural diagram of an electronic device 100 .
电子设备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,指纹传感器180G,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and A subscriber identification module (subscriber identification module, SIM) card interface 195 and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope 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 180G, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),中央处理器(central processing unit,CPU),图形处理器(graphics processing unit,GPU),神经网络处理器(neural-network processing unit,NPU),调制解调处理器,图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。在一些实施例中,电子设备100也可以包括一个或多个处理器110。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a central processing unit (central processing unit, CPU), a graphics processing unit (graphics processing unit, GPU) , neural network processor (neural-network processing unit, NPU), modem processor, image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors. In some embodiments, the electronic device 100 may also include one or more processors 110 .
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Wherein, the controller may be the nerve center and command center of the electronic device 100 . The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了电子设备100的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction 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, thereby improving the efficiency of the electronic device 100 .
在一些实施例中,处理器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)接口等。In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传 感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces. For example: processor 110 can couple touch sensor 180K through I2C interface, make processor 110 and touch sensor The sensor 180K communicates through the I2C bus interface to realize the touch function of the electronic device 100 .
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。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. In some embodiments, a UART interface is generally used to connect the processor 110 and the wireless communication module 160 . For example: the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等***器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的摄像功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。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 interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc. In some embodiments, the processor 110 communicates with the camera 193 through the CSI interface to realize the camera function of the electronic device 100 . The processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device 100 .
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与***设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. 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 and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 . In other embodiments, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is configured to receive a charging input from a charger. Wherein, the charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also supply power to the electronic device through the power management module 141 .
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 . The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be disposed in the processor 110 . In some other embodiments, the power management module 141 and the charging management module 140 may also be set in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模 块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module Block 160 is implemented by the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。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 single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch. The mobile communication module 150 can provide wireless communication solutions 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 (low noise amplifier, LNA) and the like. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves and radiate them through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 . In some embodiments, 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 set in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In some other embodiments, the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
无线通信模块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转为电磁波辐射出去。示例性地,无线通信模块160可以包括蓝牙模块、Wi-Fi模块等。The wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. 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. Exemplarily, the wireless communication module 160 may include a Bluetooth module, a Wi-Fi module, and the like.
在一些实施例中,电子设备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)。In some embodiments, 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 (general packet radio service, GPRS), code division multiple access (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 techniques, etc. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等可以实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行指令以生成或改变显示信息。 The electronic device 100 can realize the display function through the GPU, the display screen 194 , and the application processor. The GPU is a microprocessor for image processing, 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 instructions to generate or alter display information.
显示屏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的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel can be 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 emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
电子设备100可以通过摄像头193,ISP,视频编解码器,GPU,显示屏194以及应用处理器AP、神经网络处理器NPU等实现摄像功能。The electronic device 100 can realize the camera function through the camera 193, ISP, video codec, GPU, display screen 194, application processor AP, neural network processor NPU, and the like.
摄像头193可用于采集拍摄对象的彩色图像数据以及深度数据。ISP可用于处理摄像头193采集的彩色图像数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度等进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The camera 193 can be used to collect color image data and depth data of the subject. The ISP can be used to process the color image data collected by the camera 193 . For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits 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, etc. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 193 .
在一些实施例中,摄像头193可以由彩色摄像模组和3D感测模组组成。In some embodiments, the camera 193 can be composed of a color camera module and a 3D sensing module.
在一些实施例中,彩色摄像模组的摄像头的感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。In some embodiments, the photosensitive element of the camera head of the color camera module may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (complementary metal-oxide-semiconductor, CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals.
在一些实施例中,3D感测模组可以是(time of flight,TOF)3D感测模块或结构光(structured light)3D感测模块。其中,结构光3D感测是一种主动式深度感测技术,结构光3D感测模组的基本零组件可包括红外线(Infrared)发射器、IR相机模等。结构光3D感测模组的工作原理是先对被拍摄物体发射特定图案的光斑(pattern),再接收该物体表面上的光斑图案编码(light coding),进而比对与原始投射光斑的异同,并利用三角原理计算出物体的三维坐标。该三维坐标中就包括电子设备100距离被拍摄物体的距离。其中,TOF 3D感测也是主动式深度感测技术,TOF 3D感测模组的基本组件可包括红外线(Infrared)发射器、IR相机模等。TOF 3D感测模组的工作原理是通过红外线折返的时间去计算TOF 3D感测模组跟被拍摄物体之间的距离(即深度),以得到3D景深图。In some embodiments, the 3D sensing module may be a time of flight (TOF) 3D sensing module or a structured light (structured light) 3D sensing module. Among them, the structured light 3D sensing is an active depth sensing technology, and the basic components of the structured light 3D sensing module may include an infrared (Infrared) emitter, an IR camera module, and the like. The working principle of the structured light 3D sensing module is to first emit a specific pattern of light spots (pattern) on the object to be photographed, and then receive the light spot pattern code (light coding) on the surface of the object, and then compare the similarities and differences with the original projected light spots. And use the principle of trigonometry to calculate the three-dimensional coordinates of the object. The three-dimensional coordinates include the distance between the electronic device 100 and the object to be photographed. Among them, TOF 3D sensing is also an active depth sensing technology. The basic components of TOF 3D sensing module can include infrared (Infrared) emitters, IR camera modules, etc. The working principle of the TOF 3D sensing module is to calculate the distance (that is, depth) between the TOF 3D sensing module and the object to be photographed through the time of infrared ray return to obtain a 3D depth map.
结构光3D感测模组还可应用于人脸识别、体感游戏机、工业用机器视觉检测等领域。TOF 3D感测模组还可应用于游戏机、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)等领域。The structured light 3D sensing module can also be applied in fields such as face recognition, somatosensory game consoles, and industrial machine vision inspection. TOF 3D sensing modules can also be applied to game consoles, augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) and other fields.
在另一些实施例中,摄像头193还可以由两个或更多个摄像头构成。这两个或更多个摄像头可包括彩色摄像头,彩色摄像头可用于采集被拍摄物体的彩色图像数据。这两个或更多个摄像头可采用立体视觉(stereo vision)技术来采集被拍摄物体的深度数据。立体视觉技术是基于人眼视差的原理,在自然光源下,透过两个或两个以上的摄像头从不同的角度对同一物体拍摄影像,再进行三角测量法等运算来得到电子设备100与被拍摄物之间的距离信息,即深度信息。In some other embodiments, the camera 193 may also be composed of two or more cameras. The two or more cameras can include a color camera, which can be used to collect color image data of the object being photographed. The two or more cameras can use stereo vision (stereo vision) technology to collect depth data of the object being photographed. Stereo vision technology is based on the principle of human eye parallax. Under natural light, two or more cameras take images of the same object from different angles, and then perform calculations such as triangulation to obtain the electronic device 100 and the object. Distance information between photographed objects, that is, depth information.
在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。具体的,电子设备100可以包括1个前置摄像头193以及1个后置摄像头193。其中,前置摄像头193通常可用于采集面对显示屏194的拍摄者自己的彩色图像数据以及深度数据,后置3D摄像模组可用于采集拍摄者所面对的拍摄对象(如人物、风景等)的彩色图像数据以 及深度数据。In some embodiments, the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1. Specifically, the electronic device 100 may include a front camera 193 and a rear camera 193 . Among them, the front camera 193 can usually be used to collect the color image data and depth data of the photographer facing the display screen 194, and the rear 3D camera module can be used to collect the shooting objects (such as people, scenery, etc.) that the photographer is facing. ) color image data with and depth data.
在一些实施例中,处理器110中的CPU或GPU或NPU可以对摄像头193所采集的彩色图像数据和深度数据进行处理。在一些实施例中,NPU可以通过骨骼点识别技术所基于的神经网络算法,例如卷积神经网络算法(CNN),来识别摄像头193(具体是彩色摄像模组)所采集的彩色图像数据,以确定被拍摄人物的骨骼点。CPU或GPU也可来运行神经网络算法以实现根据彩色图像数据确定被拍摄人物的骨骼点。在一些实施例中,CPU或GPU或NPU还可用于根据摄像头193(具体是3D感测模组)所采集的深度数据和已识别出的骨骼点来确认被拍摄人物的身材(如身体比例、骨骼点之间的身体部位的胖瘦情况),并可以进一步确定针对该被拍摄人物的身体美化参数,最终根据该身体美化参数对被拍摄人物的拍摄图像进行处理,以使得该拍摄图像中该被拍摄人物的体型被美化。后续实施例中会详细介绍如何基于摄像头193所采集的彩色图像数据和深度数据对被拍摄人物的图像进行美体处理,这里先不赘述。In some embodiments, the CPU, GPU or NPU in the processor 110 can process the color image data and depth data collected by the camera 193 . In some embodiments, the NPU can identify the color image data collected by the camera 193 (specifically, the color camera module) through the neural network algorithm based on the bone point recognition technology, such as a convolutional neural network algorithm (CNN), to Determine the skeletal points of the person being photographed. The CPU or GPU can also run the neural network algorithm to determine the skeleton points of the person being photographed according to the color image data. In some embodiments, the CPU or GPU or NPU can also be used to confirm the figure (such as body proportion, body parts between the skeletal points), and further determine the body beautification parameters for the photographed person, and finally process the captured image of the photographed person according to the body beautification parameters, so that the photographed person in the captured image The body shape of the person being photographed is beautified. Subsequent embodiments will introduce in detail how to perform body shaping processing on the image of the person being photographed based on the color image data and depth data collected by the camera 193 , which will not be repeated here.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。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 energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)-1,MPEG-2,MPEG-3,MPEG-4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG)-1, MPEG-2, MPEG-3, MPEG-4, etc.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐、照片、视频等数据保存在外部存储卡中。The NPU is a neural-network (NN) computing processor. By referring to the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process input information and continuously learn by itself. Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like. The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as 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 a data storage function. For example, save data such as music, photos, videos, etc. in an external memory card.
内部存储器121可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。处理器110可以通过运行存储在内部存储器121的上述指令,从而使得电子设备100执行本申请一些实施例中所提供的电子设备的拍照预览方法,以及各种功能应用以及数据处理等。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作***;该存储程序区还可以存储一个或多个应用程序(比如图库、联系人等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如照片,联系人等)。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store one or more computer programs including instructions. The processor 110 can execute the above-mentioned instructions stored in the internal memory 121, so that the electronic device 100 executes the photo preview method of the electronic device provided in some embodiments of the present application, as well as various functional applications and data processing. The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system; the stored program area can also store one or more application programs (such as a gallery, contacts, etc.) and the like. The data storage area can store data (such as photos, contacts, etc.) created during the use of the electronic device 100 . In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。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 signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also referred to as a "horn", is used to convert audio electrical signals into sound signals. Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电 话或语音信息时,可以通过将受话器170B靠近人耳接听语音。Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives the call When talking or voice information, you can listen to the voice by placing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some 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 realize directional recording functions, etc.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used for connecting wired earphones. The earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may be comprised of at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of pressure according to the change in capacitance. When a touch operation acts on the display screen 194, 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 according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B can be used to determine the motion posture of the electronic device 100 . In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, x, y and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking 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.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a clamshell machine, the electronic device 100 may detect opening and closing of the clamshell according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。The distance sensor 180F is used to measure the distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳 朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The electronic device 100 emits infrared light 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 may 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 that the user holds the electronic device 100 close to the ear. In order to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used for sensing 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, so as to prevent accidental touch.
指纹传感器180G用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180G is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, take pictures with fingerprints, answer incoming calls with fingerprints, and the like.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature treatment strategy. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 may reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by the low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也可称触控面板或触敏表面。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。The touch sensor 180K may also be called a touch panel or a touch-sensitive surface. The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined into a bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 180M, so as to realize 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, so as to realize the heart rate detection function.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power key, a volume key and the like. The key 190 may be a mechanical key. It can also be a touch button. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate a vibrating reminder. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
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分离。The SIM card interface 195 is used for connecting a SIM card. The SIM card can be connected and 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 and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple 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 calling and data communication. In some embodiments, the electronic device 100 adopts an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100, and cannot be connected with the electronic device 100. Prepare 100 separations.
图1A示例性所示的电子设备100可以通过显示屏194显示以下各个实施例中所描述的各个用户界面。电子设备100可以通过触摸传感器180K在各个用户界面中检测触控操作,例如在各个用户界面中的点击操作(如在图标上的触摸操作、双击操作),又例如在各个用户界面中的向上或向下的滑动操作,或执行画圆圈手势的操作,等等。在一些实施例中,电子设备100可以通过陀螺仪传感器180B、加速度传感器180E等检测用户手持电子设备100执行的运动手势,例如晃动电子设备。在一些实施例中,电子设备100可以通过摄像头193(如3D摄像头、深度摄像头)检测非触控的手势操作。The electronic device 100 exemplarily shown in FIG. 1A can display various user interfaces described in the following various embodiments through a display screen 194 . The electronic device 100 can detect a touch operation in each user interface through the touch sensor 180K, such as a click operation (such as a touch operation on an icon, a double-click operation) in each user interface, and for example, an upward or downward touch operation in each user interface. A swipe down, or a circle gesture, etc. In some embodiments, the electronic device 100 can detect motion gestures performed by the user holding the electronic device 100 , such as shaking the electronic device, through the gyroscope sensor 180B, the acceleration sensor 180E, and the like. In some embodiments, the electronic device 100 can detect a non-touch gesture operation through the camera 193 (such as a 3D camera, a depth camera).
电子设备100的软件***可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android***为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the software structure of the electronic device 100 is exemplarily described by taking an Android system with a layered architecture as an example.
图1B是本发明实施例的电子设备100的软件结构框图。FIG. 1B is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present invention.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android***分为四层,从上至下分别为应用程序层,应用程序框架层,Android运行时(Android runtime)和***库,以及内核层。应用程序层可以包括一系列应用程序包。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, which are respectively the application program layer, the application program framework layer, the Android runtime (Android runtime) and system library, and the kernel layer from top to bottom. The application layer can consist of a series of application packages.
如图1B所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in FIG. 1B, the application package may include application programs such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。如图1B所示,应用程序框架层可以包括窗口管理器,内容提供器,视图***,电话管理器,资源管理器,通知管理器等。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. As shown in Fig. 1B, the application framework layer may include 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 get the size of the display screen, 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 it accessible to applications. Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. The view system can be used to build applications. A display interface can consist 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 pictures.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The phone manager is used to provide communication functions of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.). The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知消息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在***顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables the application to display notification messages in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify the download completion, message reminder, etc. The notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
Android Runtime包括核心库和虚拟机。Android Runtime负责Android***的调度和管理。核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是Android的核心库。应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理, 安全和异常的管理,以及垃圾回收等功能。Android Runtime includes core library and virtual machine. Android Runtime is responsible for the scheduling and management of the Android system. The core library consists of two parts: one part is the functions that the java language needs to call, and the other part is the core library of Android. The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application program layer and the application program framework layer as binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, Security and exception management, as well as functions such as garbage collection.
***库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。A system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
表面管理器用于对显示子***进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,G.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, G.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
2D图形引擎是2D绘图的绘图引擎。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 a display driver, a camera driver, an audio driver, and a sensor driver.
图1B所示的软件***涉及到使用分享能力的应用呈现(如图库,文件管理器),提供分享能力的即时分享模块,提供打印能力的打印服务(print service)和打印后台服务(print spooler),以及应用框架层提供打印框架、WLAN服务、蓝牙服务,以及内核和底层提供WLAN蓝牙能力和基本通信协议。The software system shown in Figure 1B involves application presentation using sharing capabilities (such as gallery, file manager), instant sharing modules providing sharing capabilities, printing services (print service) and print spooler providing printing capabilities , and the application framework layer provides printing framework, WLAN service, Bluetooth service, and the kernel and bottom layer provide WLAN Bluetooth capability and basic communication protocol.
下面介绍电子设备100上的用于应用程序菜单的示例性用户界面。An exemplary user interface for the application menu on the electronic device 100 is described below.
请参见图2A,图2A示例性示出了电子设备100上的用于应用程序菜单的示例性用户界面21。Please refer to FIG. 2A , which schematically shows an exemplary user interface 21 for an application program menu on the electronic device 100 .
用户界面21可包括:状态栏201,具有常用应用程序图标的托盘202,以及其他应用程序图标。其中:The user interface 21 may include: a status bar 201, a tray 202 with frequently used application icons, and other application icons. in:
状态栏201可包括:移动通信信号(又可称为蜂窝信号)的一个或多个信号强度指示符203、无线高保真(wireless fidelity,Wi-Fi)信号的一个或多个信号强度指示符207,电池状态指示符209,时间指示符211。The status bar 201 may include: one or more signal strength indicators 203 for mobile communication signals (also referred to as cellular signals), one or more signal strength indicators 207 for wireless high-fidelity (Wi-Fi) signals , battery status indicator 209, time indicator 211.
具有常用应用程序图标的托盘202可展示:相机图标241、通讯录图标243、电话图标245、信息图标247。The tray 202 with commonly used application program icons can display: a camera icon 241 , an address book icon 243 , a phone icon 245 , and an information icon 247 .
其他应用程序图标可例如:时钟的图标210、日历的图标211、图库的图标213、备忘录的图标215、文件管理的图标217、电子邮件的图标219、音乐的图标221、钱包的图标223、华为视频的图标225、运动健康的图标227、天气的图标229、浏览器的图标231、智慧生活的图标233、设置的图标235、录音机的图标237、应用商城的图标239。用户界面21还可以包括指示符249。其他应用程序图标可分布在多个页面,页面指示符249可用于指示用户当前浏览的是哪一个页面中的应用程序。用户可以左右滑动其他应用程序图标的区域,来浏览其他页面中的应用程序图标。Other application program icons can be, for example: clock icon 210, calendar icon 211, gallery icon 213, memo icon 215, file management icon 217, email icon 219, music icon 221, wallet icon 223, Huawei Video icon 225, sports and health icon 227, weather icon 229, browser icon 231, smart life icon 233, setting icon 235, recorder icon 237, and application store icon 239. User interface 21 may also include indicator 249 . Icons of other application programs may be distributed on multiple pages, and the page indicator 249 may be used to indicate the application program on which page the user is currently browsing. The user can slide the area of other application icons left and right to browse the application icons in other pages.
在一些实施例中,图2A示例性所示的用户界面21可以为主界面(Home screen)。In some embodiments, the user interface 21 exemplarily shown in FIG. 2A may be a main interface (Home screen).
在其他一些实施例中,电子设备100还可以包括主屏幕键。该主屏幕键可以是实体按键,也可以是虚拟按键。该主屏幕键可用于接收用户的指令,将当前显示的UI返回到主界面,这样可以方便用户随时查看主屏幕。上述指令具体可以是用户单次按下主屏幕键的操作指令,也可以是用户在短时间内连续两次按下主屏幕键的操作指令,还可以是用户在预定时间内长按主屏幕键的操作指令。在本申请其他一些实施例中,主屏幕键还可以集成指纹识别器,以便用于在按下主屏幕键的时候,随之进行指纹采集和识别。In some other embodiments, the electronic device 100 may also include a home screen key. The home screen key may be a physical key or a virtual key. The home screen key can be used to receive an instruction from the user, and return the currently displayed UI to the home interface, so that the user can view the home screen at any time. The above instruction can specifically be an operation instruction in which the user presses the home screen button once, or an operation instruction in which the user presses the home screen button twice in a short period of time, or an operation instruction in which the user presses the home screen button for a long time within a predetermined period of time. operating instructions. In some other embodiments of the present application, the home screen key may also be integrated with a fingerprint reader, so that when the home screen key is pressed, fingerprint collection and identification are performed thereupon.
可以理解的是,图2A仅仅示例性示出了电子设备100的用户界面,不应构成对本申请 实施例的限定。It can be understood that FIG. 2A only exemplarily shows the user interface of the electronic device 100, and should not constitute a reference to this application. Limitations of the Examples.
下面分别描述本申请涉及的应用场景以及电子设备100实现的用户界面的一些实施例。The application scenarios involved in this application and some embodiments of the user interface implemented by the electronic device 100 are respectively described below.
用户删除通知消息的场景Scenarios where a user deletes a notification message
图2B示例性示出电子设备100显示通知中心的操作。FIG. 2B exemplarily shows the operation of the electronic device 100 for displaying the notification center.
如图2B所示,当检测到在状态栏201上的向下滑动手势时,响应于该手势,电子设备100可以在用户界面21上显示通知中心261。通知中心261中可以显示删除控件271、管理通知的窗口281,以及一条或多条来自应用程序的通知消息。当检测到作用于通知中心261中的任意一条通知消息的操作,响应于该操作,电子设备100可以跳转到该通知消息对应的应用程序中,以显示上述通知消息的详细信息。As shown in FIG. 2B , when a downward swipe gesture on the status bar 201 is detected, the electronic device 100 may display a notification center 261 on the user interface 21 in response to the gesture. The notification center 261 may display a delete control 271, a window 281 for managing notifications, and one or more notification messages from applications. When an operation acting on any notification message in the notification center 261 is detected, in response to the operation, the electronic device 100 may jump to an application program corresponding to the notification message to display detailed information of the above notification message.
一般来说,通知中心261中显示的通知中其中一些是重要信息。随着应用通知越来越多,重要通知可能会被非重要通知淹没,用户越来越难从通知中心中快速获得重要通知。Generally, some of the notifications displayed in the notification center 261 are important information. With more and more application notifications, important notifications may be overwhelmed by non-important notifications, and it is becoming more and more difficult for users to quickly get important notifications from the notification center.
现有的方式中,图2C示例性示出了电子设备100删除通知消息的示意图。如图2C所示,在通知中心261中,用户既可以选择逐条删除通知消息,也可以快速删除所有的通知消息。现有技术中,当检测到作用于通知中心261中的删除控件271时,电子设备100可以清空通知中心261中显示的一条或多条来自应用程序的通知消息。当检测到作用于通知中心261中的任意一条通知消息上的向左滑动手势时,电子设备100可以显示当条通知中心的删除选项。当电子设备100响应于作用在当条通知中心的删除选项时,电子设备100可以删除当条通知消息。In an existing method, FIG. 2C exemplarily shows a schematic diagram of deleting a notification message of the electronic device 100 . As shown in FIG. 2C , in the notification center 261 , the user can choose to delete notification messages one by one, or quickly delete all notification messages. In the prior art, when detecting the delete control 271 acting on the notification center 261 , the electronic device 100 may clear one or more notification messages from the application program displayed in the notification center 261 . When a leftward sliding gesture acting on any notification message in the notification center 261 is detected, the electronic device 100 may display a deletion option of the notification center. When the electronic device 100 responds to the delete option acting on the current notification center, the electronic device 100 may delete the current notification message.
如上所述,当用户选择逐条删除通知中心261中所显示的通知消息时,会使得删除效率低下。当用户选择通过删除控件271清空所有的通知消息时,容易删除重要通知,导致错过重要信息。As mentioned above, when the user chooses to delete the notification messages displayed in the notification center 261 one by one, the deletion efficiency will be low. When the user chooses to clear all notification messages through the delete control 271, it is easy to delete important notifications, resulting in missing important information.
因此,本申请主要解决的问题是:保障用户不错过重要通知的同时,帮助用户快速删除其他通知消息,从而可以保障通知中心页面的简洁。现有技术虽然可以快速地删除通知消息,但是容易让用户忽略重要的通知消息。久而久之,用户想要获取重要信息时,将不会到通知中心中获取。Therefore, the main problem to be solved in this application is to help the user quickly delete other notification messages while ensuring that the user does not miss important notifications, thereby ensuring the simplicity of the notification center page. Although the prior art can quickly delete notification messages, it is easy for users to ignore important notification messages. Over time, when users want to get important information, they will not go to the notification center to get it.
因此,如何帮助用户快速地删除通知消息,同时保障重要的通知消息能被用户获取,将提高通知中心的实用性与使用效率。Therefore, how to help users quickly delete notification messages while ensuring that important notification messages can be obtained by users will improve the practicability and efficiency of the notification center.
对象为应用程序推送的通知消息时,图3A示例性示出了智能手机等电子设备显示的第一用户界面,即通知中心361。通知中心361是智能手机、平板电脑等电子设备上的用于显示来自一个或多个应用程序的通知消息的窗口,可由电子设备100的显示屏的顶部下滑获得。可以理解的是,电子设备100中可以安装各种各样的应用程序,这些应用程序会向电子设备100推送通知消息。当电子设备100接收到应用程序推送的通知消息,可以将该通知消息加载至通知中心361,以在通知中心361中显示该通知消息。When the object is a notification message pushed by an application program, FIG. 3A exemplarily shows a first user interface displayed on an electronic device such as a smart phone, that is, a notification center 361 . The notification center 361 is a window for displaying notification messages from one or more application programs on electronic devices such as smart phones and tablet computers, and can be obtained by sliding down the top of the display screen of the electronic device 100 . It can be understood that various application programs can be installed in the electronic device 100 , and these application programs will push notification messages to the electronic device 100 . When the electronic device 100 receives the notification message pushed by the application program, it can load the notification message to the notification center 361 to display the notification message in the notification center 361 .
第一用户界面(即通知中心361)中可显示有N个通知消息,N为大于或等于1的正整数。通知消息具体包含N个通知消息,上述N个通知消息可能来自于同一应用程序或者不同应用程序。上述N个通知消息可以按照应用程序向电子设备100推送的先后时间由上往下地显示在通知中心361中或者按照应用程序向电子设备100推送的先后时间从下往上地显示在通知中心361中。比如说,从图3A可以看出,由信息程序刚刚向通知中心361推送的消息显示在最上面;由“XX团购”程序40分钟前向通知中心261推送的消息显示在最下面。N notification messages may be displayed on the first user interface (that is, the notification center 361 ), where N is a positive integer greater than or equal to 1. The notification message specifically includes N notification messages, and the above N notification messages may come from the same application program or different application programs. The above N notification messages can be displayed in the notification center 361 from top to bottom according to the time pushed by the application program to the electronic device 100 or displayed in the notification center 361 from bottom to top according to the time pushed to the electronic device 100 by the application program . For example, as can be seen from FIG. 3A, the message pushed by the information program to the notification center 361 is displayed at the top; the message pushed to the notification center 261 by the "XX group buying" program 40 minutes ago is displayed at the bottom.
可以理解的是,当电子设备在通知中心361所显示的区域中检测到向上或向下的滑动操作时,响应于该滑动操作,电子设备可以更新通知中心361中显示的通知消息。一般来说, 响应于该滑动操作而更新的通知消息为距离当前时间更久的消息或者响应于该滑动操作而更新的通知消息为距离当前时间更近的消息。其中,对于来自于同一应用程序的不同通知消息可以折叠显示在通知中心361中该应用程序所对应的窗口。It can be understood that when the electronic device detects an upward or downward sliding operation in the area displayed by the notification center 361 , in response to the sliding operation, the electronic device may update the notification message displayed in the notification center 361 . Generally speaking, The notification message updated in response to the sliding operation is a message older than the current time or the notification message updated in response to the sliding operation is a message closer to the current time. Wherein, for different notification messages from the same application program, the window corresponding to the application program in the notification center 361 can be displayed in a folded manner.
在本申请中,电子设备100响应于针到对上述N个通知消息的删除操作,电子设备100可以根据N个通知消息对应的优先级对N个通知消息进行分批删除。可以理解的是,通知中心361中包含有删除控件371,删除控件371用于对通知中心361所显示的N个通知消息进行删除操作。In this application, in response to the deletion operation on the aforementioned N notification messages, the electronic device 100 may delete the N notification messages in batches according to the priorities corresponding to the N notification messages. It can be understood that the notification center 361 includes a delete control 371 , and the delete control 371 is used to delete the N notification messages displayed by the notification center 361 .
也即,电子设备100在通知中心361中检测到用户针对删除控件371的操作,响应于该操作,电子设备100可以根据N个通知消息分别对应的优先级进行逐级删除。可以理解的是,本申请实施例所提及的逐级删除不是一下清空通知中心中所显示的通知消息,而是按照优先级依次分批地对通知消息进行删除。其中,上述N个通知消息中的每个通知消息被标记了一种优先级。如图3A所示,假设通知消息302、通知消息303和通知消息306的优先级比通知消息301、通知消息304和通知消息305的删除优先级低,所以在通知中心361中可显示电子设备100对通知消息302、通知消息303和通知消息306进行删除的操作,也即通知消息302、通知消息303和通知消息306会首先在通知中心361中消失,而通知消息301、通知消息304和通知消息305不会与通知消息302、通知消息303和通知消息306一起在通知中心361中消失。在一种可能的实施方式中,间隔一段时间后,电子设备100可以继续响应上述操作,对通知消息301、通知消息304和通知消息305进行删除的操作,也即通知消息301、通知消息304和通知消息305可以在间隔一段时间后从通知中心361中消失。That is, the electronic device 100 detects the user's operation on the delete control 371 in the notification center 361 , and in response to the operation, the electronic device 100 can delete the N notification messages step by step according to the respective priorities corresponding to them. It can be understood that the level-by-level deletion mentioned in the embodiment of the present application is not to clear the notification messages displayed in the notification center at once, but to delete the notification messages in batches according to the priority. Wherein, each notification message in the above N notification messages is marked with a priority. As shown in FIG. 3A , it is assumed that the priority of notification message 302, notification message 303 and notification message 306 is lower than the deletion priority of notification message 301, notification message 304 and notification message 305, so the electronic device 100 can be displayed in the notification center 361. The operation of deleting notification message 302, notification message 303 and notification message 306, that is, notification message 302, notification message 303 and notification message 306 will first disappear in notification center 361, while notification message 301, notification message 304 and notification message 305 will not disappear in the notification center 361 together with the notification message 302 , the notification message 303 and the notification message 306 . In a possible implementation manner, after a period of time, the electronic device 100 may continue to respond to the above operations, and delete the notification message 301, the notification message 304, and the notification message 305, that is, the notification message 301, the notification message 304, and the notification message 305. The notification message 305 may disappear from the notification center 361 after a period of time.
在另一种可能的实施方式中,图3B示例性示出了智能手机等电子设备显示的第二用户界面,即通知中心362。电子设备100根据通知中心362显示的N个通知消息对应的优先级分别对通知消息进行分批删除的过程中,检测到针对第一用户界面(即通知中心362所在的区域)的触摸操作。电子设备100响应于该触摸操作,从而停止删除行为,显示第二用户界面,即通知中心362。第二用户界面中可以显示有M个通知消息,M为小于N的正整数。其中,M个通知消息具体可以包含由于电子设备100停止了删除行为而保留的通知消息。也即电子设备在根据N个通知消息对应的优先级对N个通知消息进行分批删除之后,在停止上述删除行为之前,已经删除了N个通知消息中的L个通知消息。其中,L个通知消息中的每个对象的优先级小于M个对象中的每个对象的优先级,L为小于N的正整数。In another possible implementation manner, FIG. 3B exemplarily shows a second user interface displayed on an electronic device such as a smart phone, that is, a notification center 362 . During the process of deleting notification messages in batches according to the priorities corresponding to the N notification messages displayed by the notification center 362 , the electronic device 100 detects a touch operation on the first user interface (ie, the area where the notification center 362 is located). In response to the touch operation, the electronic device 100 stops the deletion and displays the second user interface, that is, the notification center 362 . M notification messages may be displayed on the second user interface, where M is a positive integer smaller than N. Wherein, the M notification messages may specifically include notification messages retained because the electronic device 100 stops the deletion. That is, after the electronic device deletes the N notification messages in batches according to the priorities corresponding to the N notification messages, it has deleted L notification messages among the N notification messages before stopping the above deletion behavior. Wherein, the priority of each object in the L notification messages is lower than the priority of each object in the M objects, and L is a positive integer smaller than N.
从图3B可以看出,在电子设备100响应于针到对通知中心361显示的N个通知消息的删除操作时,电子设备100可以根据通知中心361显示的N个通知消息对应的优先级先对通知消息302、通知消息303和通知消息306进行删除。在删除通知消息302、通知消息303和通知消息306的过程中,响应于检测到作用于第一用户界面(即通知中心361所在的区域)的触摸操作,电子设备100可以停止即将对通知消息301、通知消息303和通知消息306的删除行为。可以理解的是,因为通知消息302、通知消息303和通知消息306的优先级比通知消息301、通知消息303和通知消息306的优先级低,所以电子设备先删除通知消息302、通知消息303和通知消息306。因此,电子设备100可以显示第二用户界面(即通知中心362),在通知中心362中可以显示在用户的触摸操作之后未被删除的通知消息,即通知消息301、通知消息303和通知消息306。这样可以保护通知消息301、通知消息303和通知消息306不被删除,避免用户漏掉优先级较高的消息。It can be seen from FIG. 3B that when the electronic device 100 responds to the deletion operation on the N notification messages displayed by the notification center 361, the electronic device 100 can first delete the N notification messages displayed by the notification center 361 according to the priorities corresponding to the N notification messages. The notification message 302, the notification message 303 and the notification message 306 are deleted. In the process of deleting the notification message 302, the notification message 303, and the notification message 306, in response to detecting a touch operation acting on the first user interface (that is, the area where the notification center 361 is located), the electronic device 100 may stop processing the notification message 301. , the deletion behavior of the notification message 303 and the notification message 306. It can be understood that, because the priority of the notification message 302, the notification message 303 and the notification message 306 is lower than the priority of the notification message 301, the notification message 303 and the notification message 306, the electronic device deletes the notification message 302, the notification message 303 and the notification message first. Notification message 306. Therefore, the electronic device 100 can display the second user interface (ie, the notification center 362), and in the notification center 362, the notification messages that are not deleted after the user's touch operation can be displayed, that is, the notification message 301, the notification message 303, and the notification message 306. . In this way, the notification message 301 , the notification message 303 and the notification message 306 can be protected from being deleted, so as to prevent the user from missing messages with higher priority.
在另一种可能的实施方式中,图3C示例性示出了智能手机等电子设备显示的第三用户界面、第四用户界面和第五用户界面。电子设备100响应于针对对上述N个通知消息的删除 操作,电子设备100可以按照对应的优先级依次删除上述N个通知消息。可以理解的是,通知中心361中包含有删除控件371,删除控件371用于对通知中心361所显示的N个通知消息进行删除操作。也即,电子设备100可以在通知中心361中检测到用户对删除控件371的操作,响应于该上述操作以对通知中心361显示的N个通知消息进行逐级分批删除。所以,电子设备100可以根照优先级先删除N个通知消息中第一优先级的通知消息(比如说通知消息302、通知消息303和通知消息306),显示第三用户界面,也即图3C所示的通知中心363。因此,在第三用户界面中显示有N个通知消息中第二优先级的通知消息和第三优先级的通知消息(比如说通知消息301、通知消息304和通知消息305)。其中,第一优先级、第二优先级和第三优先级的优先级程序依次递增。In another possible implementation manner, FIG. 3C exemplarily shows a third user interface, a fourth user interface, and a fifth user interface displayed by an electronic device such as a smart phone. The electronic device 100 responds to the deletion of the above N notification messages Operation, the electronic device 100 may sequentially delete the above N notification messages according to the corresponding priorities. It can be understood that the notification center 361 includes a delete control 371 , and the delete control 371 is used to delete the N notification messages displayed by the notification center 361 . That is, the electronic device 100 may detect the user's operation on the delete control 371 in the notification center 361 , and delete the N notification messages displayed on the notification center 361 step by step and in batches in response to the above operation. Therefore, the electronic device 100 can first delete the notification message with the first priority among the N notification messages according to the priority (for example, the notification message 302, the notification message 303 and the notification message 306), and display the third user interface, that is, FIG. 3C Notification Center 363 is shown. Therefore, the notification message with the second priority and the notification message with the third priority among the N notification messages are displayed on the third user interface (such as notification message 301 , notification message 304 and notification message 305 ). Among them, the priority programs of the first priority, the second priority and the third priority are incremented sequentially.
第三用户界面(即通知中心363)中显示有倒计时控件391,倒计时控件391中显示有第一时间(比如说30秒),倒计时控件391用于提示用户在间隔上述第一时间后,电子设备100将删除N个通知消息中第二优先级的通知消息(比如说通知消息305),显示第四用户界面,也即图3C所示的通知中心364。因此,第四用户界面中显示有通知消息中的第三优先级的通知消息(比如说通知消息301、通知消息304)。A countdown control 391 is displayed in the third user interface (that is, the notification center 363), and a first time (for example, 30 seconds) is displayed in the countdown control 391. The countdown control 391 is used to prompt the user to stop the electronic device after the above-mentioned first time interval. 100 will delete the second priority notification message (for example, notification message 305 ) among the N notification messages, and display the fourth user interface, that is, the notification center 364 shown in FIG. 3C . Therefore, notification messages of the third priority among notification messages (for example, notification message 301 and notification message 304 ) are displayed on the fourth user interface.
第四用户界面(即通知中心364)中显示有倒计时控件392,倒计时控件392中显示有第二时间(比如说60秒),倒计时控件392用于提示用户在间隔上述第二时间后,电子设备100将删除N个通知消息中第三优先级的通知消息(比如说通知消息301、通知消息304),显示第五用户界面,也即图3C所示的通知中心365。A countdown control 392 is displayed in the fourth user interface (that is, the notification center 364), and a second time (for example, 60 seconds) is displayed in the countdown control 392. The countdown control 392 is used to prompt the user to stop the electronic device after the above-mentioned second time interval. 100 will delete the third-priority notification message (for example, notification message 301 and notification message 304 ) among the N notification messages, and display the fifth user interface, that is, the notification center 365 shown in FIG. 3C .
至此,电子设备100按照删除优先级依次删除第一用户界面(即图3C所示的通知中心361)中显示的通知消息301、通知消息302、通知消息303、通知消息304和通知消息305,所以在第五用户界面中没有显示的通知消息。So far, the electronic device 100 deletes the notification message 301, the notification message 302, the notification message 303, the notification message 304 and the notification message 305 displayed in the first user interface (that is, the notification center 361 shown in FIG. 3C ) in order according to the deletion priority, so There is no notification message displayed in the fifth user interface.
可以理解的,图3C示例性示出了对优先级的三种分类(第一优先级、第二优先级和第三优先级),但是本申请实施例不限于上述三种分类,可以对优先级进行更为细致的分类,比如说分为4种、6种,等等。It can be understood that FIG. 3C exemplarily shows three classifications of priorities (first priority, second priority, and third priority), but this embodiment of the present application is not limited to the above three classifications, and priority Levels are classified in more detail, such as 4 types, 6 types, and so on.
需要说明的是,本申请实施例是按照删除优先级依次删除通知中心所显示的通知消息,也即先删除优先级较低的通知消息,间隔一段时间再删除优先级较高的通知消息,这样可以在保持通知中心简洁的同时防止用户漏掉优先级高的通知。It should be noted that, in this embodiment of the present application, the notification messages displayed in the notification center are deleted in order according to the deletion priority, that is, the notification messages with lower priority are deleted first, and the notification messages with higher priority are deleted after a period of time. It can prevent users from missing high-priority notifications while keeping the notification center simple.
在一种可能的实施方式中,每个通知消息的优先级为电子设备100响应于针对该通知消息的第一操作而打开该通知消息的次数所确定的。也即,电子设备100响应于分别针对N个通知消息的第一操作,从而采集N个通知消息中每个通知消息被打开的次数,然后再根据N个通知消息中每个通知消息被打开的次数对N个通知消息中的每个通知消息标记一种优先级。In a possible implementation manner, the priority of each notification message is determined by the number of times the electronic device 100 opens the notification message in response to the first operation on the notification message. That is to say, the electronic device 100 responds to the first operation on the N notification messages respectively, thereby collecting the number of times each notification message in the N notification messages is opened, and then according to the number of times each notification message in the N notification messages is opened The number of times marks a priority for each of the N notification messages.
本申请以三种优先级为例进行说明:This application uses three priority levels as examples for illustration:
其中,通知消息为电子设备100中安装的一个或多个应用程序所推送到通知中心。若用户打开第一应用程序所推送的通知消息的频率较多,说明电子设备响应于针对第一应用程序所推送的通知消息的操作较多,也即在预设时间内采集第一应用程序被启动的次数大于或等于第一范围值。说明用户对第一应用程序所推送的通知消息的关注度较高,对用户来说第一应用程序所推送的通知消息可能是重要的。电子设备100可以为第二应用程序所推送的通知消息标记为第三优先级。Wherein, the notification message is pushed to the notification center by one or more application programs installed in the electronic device 100 . If the frequency of notification messages pushed by the first application program is opened by the user, it means that the electronic device has performed more operations in response to the notification messages pushed by the first application program, that is, the first application program is collected within a preset time. The number of starts is greater than or equal to the first range value. It shows that the user pays more attention to the notification message pushed by the first application program, and the notification message pushed by the first application program may be important to the user. The electronic device 100 may mark the notification message pushed by the second application as the third priority.
若用户打开第二应用程序所推送的通知消息的频率较少,说明电子设备响应于针对第二应用程序所推送的通知消息的操作较少,也即在预设时间内采集第二应用程序被启动的次数大于或等于第二范围值且小于第一范围值,说明用户对第二应用程序所推送的通知消息的关 注度一般,对用户来说第二应用程序所推送的通知消息可能是一般重要的。电子设备100可以为第二应用程序所推送的通知消息标记为第二优先级。If the frequency of notification messages pushed by the user when opening the second application program is less, it means that the electronic device has less operations in response to the notification messages pushed by the second application program, that is, the second application program is collected within a preset time. The number of starts is greater than or equal to the second range value and less than the first range value, indicating the user's concern for the notification message pushed by the second application program. The attention is average, and the notification message pushed by the second application program may be of average importance to the user. The electronic device 100 may mark the notification message pushed by the second application as the second priority.
若用户打开第三应用程序所推送的通知消息的频率更少,说明电子设备响应于针对第三应用程序所推送的通知消息的操作更少,也即在预设时间内采集第三应用程序被启动的次数小于第二范围值,说明用户对第三应用程序所推送的通知消息的关注度较低,对用户来说第二应用程序所推送的通知消息可能是不重要的。电子设备100可以为第二应用程序所推送的通知消息标记为第一优先级。If the user opens the notification message pushed by the third application program less frequently, it means that the electronic device has fewer operations in response to the notification message pushed by the third application program, that is, collects the third application program within the preset time. The number of activation times is less than the second range value, indicating that the user pays less attention to the notification message pushed by the third application program, and the notification message pushed by the second application program may not be important to the user. The electronic device 100 may mark the notification message pushed by the second application as the first priority.
其中,第一范围值大于第二范围值。Wherein, the first range value is greater than the second range value.
因此,电子设备100可以通过统计用户从通知中心打开应用程序所推送的通知消息的次数来确定对应的优先级。Therefore, the electronic device 100 may determine the corresponding priority by counting the number of notification messages pushed by the user opening the application from the notification center.
在另一种可能的实现方式中,用户可以根据自己的实际需求来设置应用程序对应的优先级。用户可在应用程序安装到电子设备100时设置该应用程序的优先级;或者,在使用应用程序的过程中,通过“设置”选项对应用程序对应的优先级进行设置;或者,通过通知中心中的通知管理来设置应用程序对应的优先级。In another possible implementation manner, the user can set the priority corresponding to the application program according to his actual needs. The user can set the priority of the application when the application is installed on the electronic device 100; or, in the process of using the application, set the corresponding priority of the application through the "Settings" option; or, through the notification center Notification management to set the corresponding priority of the application.
需要说明的是,通知消息是应用程序所推送得到的,所以当应用程序的优先级被确定后,应用程序所推送的通知消息的优先级与该应用程序的优先级保持一致。It should be noted that the notification message is pushed by the application program, so when the priority of the application program is determined, the priority of the notification message pushed by the application program is consistent with the priority of the application program.
可以理解的是,在一种可能的实施方式中,在未设置应用程序对应的优先级时,电子设备将采用根据用户的操作习惯而匹配得到的应用程序对应的优先级。在用户设置了应用程序对应的优先级时,则优先采用用户设置的应用程序对应的优先级。举例来说,假设用户只设置了第一应用程序、第二应用程序、第三应用程序、第四应用程序和第五应用程序所对应的优先级,但是电子设备通过采集第六应用程序的被启动的次数,可以为第六应用程序标记一种优先级。It can be understood that, in a possible implementation manner, when the priority corresponding to the application program is not set, the electronic device will use the priority corresponding to the application program matched according to the user's operation habits. When the user sets the priority corresponding to the application program, the priority corresponding to the application program set by the user is preferentially adopted. For example, assume that the user only sets the priorities corresponding to the first application program, the second application program, the third application program, the fourth application program and the fifth application program, but the electronic device collects the received information of the sixth application program The number of times it is started, may mark a priority for the sixth application.
需要说明的是,第一应用程序包含在预设时间打开所推送的通知消息的次数大于第一范围值的一个或多个应用程序;第二应用程序包含在预设时间打开所推送的通知消息的次数大于或者等于第二范围值且小于第一范围值的一个或多个应用程序;第三应用程序包含在预设时间打开所推送的通知消息的次数小于第二范围值的一个或多个应用程序。因此,当上述第一应用程序、第二应用程序和第三应用程序推送的通知消息分别显示在电子设备100的通知中心中时,若电子设备响应于检测到对上述通知消息的删除操作时,电子设备可以按照各自对应的优先级先删除第三应用程序所推送的通知消息,间隔一段时间后再删除第二应用程序所推送的通知消息,再间隔一段时间后删除第三应用程序所推送的通知消息。It should be noted that the first application program includes one or more applications whose number of times of opening the pushed notification message at the preset time is greater than the first range value; the second application program includes opening the pushed notification message at the preset time One or more applications whose number of times is greater than or equal to the second range value and less than the first range value; the third application program includes one or more applications whose times of opening pushed notification messages at a preset time are less than the second range value application. Therefore, when the notification messages pushed by the first application, the second application and the third application are respectively displayed in the notification center of the electronic device 100, if the electronic device detects a deletion operation on the notification message in response, The electronic device can first delete the notification messages pushed by the third application program according to their corresponding priorities, delete the notification messages pushed by the second application program after a period of time, and delete the notification messages pushed by the third application program after a period of time. notification message.
用户删除图片的场景The scene where the user deletes the picture
当对象为“图库”中的图片时,图4A示例性示出了智能手机等电子设备显示的应用程序(例如“图库”)的用户界面400。“图库”是智能手机、平板电脑等电子设备上的一款图片管理的应用程序,又可以称为“相册”,本申请实施例对该应用程序的名称不做限制。该APP可以支持用户对存储于电子设备上的图片进行各种操作,例如浏览、编辑、删除、选择等操作。即“图库”管理的对象是图片。在另一些情况下,该APP也可以支持用户对存储在云端服务器上的图片进行上述各种操作。可以理解的是,在本实施例中,图片可以是电子设备100利用摄像头193捕捉到的,也可以是从其他应用程序中获取到的或者从网页上下载的。When the object is a picture in the "Gallery", FIG. 4A exemplarily shows a user interface 400 of an application program (such as "Gallery") displayed on an electronic device such as a smart phone. "Gallery" is an application program for picture management on electronic devices such as smart phones and tablet computers, and it can also be called "album". The embodiment of the present application does not limit the name of the application program. The APP can support users to perform various operations on pictures stored on electronic devices, such as browsing, editing, deleting, selecting and other operations. That is, the objects managed by "Gallery" are pictures. In other cases, the APP can also support the user to perform the above-mentioned various operations on the pictures stored on the cloud server. It can be understood that, in this embodiment, the picture may be captured by the electronic device 100 using the camera 193 , or may be obtained from other application programs or downloaded from a web page.
用户界面400中可显示有一个或多个图片,例如图片419。当电子设备在用户界面400中检测到向上或向下的滑动操作时,响应于该滑动操作,电子设备可以更新用户界面400中 显示的图片,以便用户浏览图片。也即是说,用户可以在用户界面400中向上或向下滑动来浏览更多的图片。不限于向上或向下滑动操作,用户还可以在用户界面400中向左或向右滑动来浏览更多的图片。图片419可以是缩略图。此时,图片419对应的原图可以存储于电子设备中,也可以存储于云端服务器上。如无另外说明,以下实施例中所指的图片可以是存储电子设备中,也可以是存储在云端服务器上的。One or more pictures, such as picture 419 , may be displayed in the user interface 400 . When the electronic device detects an upward or downward sliding operation in the user interface 400, in response to the sliding operation, the electronic device can update the Displayed pictures for users to browse pictures. That is to say, the user can slide up or down in the user interface 400 to browse more pictures. Not limited to the operation of sliding up or down, the user can also slide left or right in the user interface 400 to browse more pictures. Picture 419 may be a thumbnail. At this time, the original image corresponding to the image 419 can be stored in the electronic device, or can be stored in the cloud server. Unless otherwise stated, the pictures referred to in the following embodiments may be stored in an electronic device or on a cloud server.
图4B示例性示出了用户删除“图库”中的图片的示意图。如图4B所示,电子设备可以在用户界面400中检测到用户选择图片401、图片402,等等N张图片的选择操作。响应于该操作,电子设备可以显示第一用户界面4011。在第一用户界面4011中可以显示所选择的N个图片,分享控件431、全选控件432、编辑控件433、删除控件434和更多控件435。可以理解的是,用户可以在第一用户界面4011中向上或向下滑动来浏览更多已选择的图片。电子设备响应于针对所选择的N个图片的删除操作,电子设备可以根据N个图片对应的优先级对N个图片进行分批删除。FIG. 4B exemplarily shows a schematic diagram of a user deleting a picture in the "Gallery". As shown in FIG. 4B , the electronic device may detect in the user interface 400 that the user selects a picture 401 , a picture 402 , and so on, a selection operation of N pictures. In response to this operation, the electronic device may display a first user interface 4011 . The selected N pictures, share control 431 , select all control 432 , edit control 433 , delete control 434 and more control 435 can be displayed in the first user interface 4011 . It can be understood that the user can swipe up or down in the first user interface 4011 to browse more selected pictures. In response to the deletion operation on the selected N pictures, the electronic device may delete the N pictures in batches according to the priorities corresponding to the N pictures.
也即,电子设备100可以在用户界面400中响应于用户的选择操作,显示第一用户界面4011。第一用户界面4011中显示有已选中的N个图片。随后,电子设备100在第一用户界面4011中检测到用户针对删除控件434的操作,响应于该操作,电子设备可以根据N个图片分别对应的优先级进行逐级删除。可以理解的是,本申请实施例所提及的逐级删除不是一下清空第一用户界面4011中所显示的图片,而是按照优先级依次分批地对图片进行删除。其中,上述N个图片中的每个图片被标记了一种优先级。如图4B所示,假设图片401、图片402、图片405、图片410、图片425、图片428的优先级比第一用户界面4011中所显示的已选中的其他图片的优先级低,所以在第一用户界面4011中可显示电子设备100对图片401、图片402、图片405、图片410、图片425、图片428进行删除的操作(比如说图片401、图片402、图片405、图片410、图片425、图片428的边缘逐渐虚拟化,或者图片401、图片402、图片405、图片410、图片425、图片428逐渐消失,或者其他照片将上前补充图片401、图片402、图片405、图片410、图片425、图片428的位置)。也即,图片401、图片402、图片405、图片410、图片425、图片428会首先在第一用户界面4011中消息。而其他照片不会与图片401、图片402、图片405、图片410、图片425、图片428一起消息。在一种可能的实施方式中,间隔一段时间后,电子设备可以继续响应上述操作,对其他照片进行删除操作。That is, the electronic device 100 may display the first user interface 4011 in the user interface 400 in response to the user's selection operation. The selected N pictures are displayed in the first user interface 4011 . Subsequently, the electronic device 100 detects the user's operation on the delete control 434 in the first user interface 4011 , and in response to the operation, the electronic device can delete the N pictures step by step according to the respective priorities corresponding to each of the N pictures. It can be understood that the step-by-step deletion mentioned in the embodiment of the present application is not to clear the pictures displayed in the first user interface 4011 at once, but to delete the pictures in batches according to the priority. Wherein, each of the above N pictures is marked with a priority. As shown in Figure 4B, it is assumed that the priorities of pictures 401, 402, 405, 410, 425, and 428 are lower than those of other selected pictures displayed in the first user interface 4011, so in the A user interface 4011 may display the operations performed by the electronic device 100 to delete pictures 401, 402, 405, 410, 425, and 428 (for example, pictures 401, 402, 405, 410, 425, The edge of picture 428 is gradually virtualized, or picture 401, picture 402, picture 405, picture 410, picture 425, picture 428 gradually disappear, or other pictures will come forward to supplement picture 401, picture 402, picture 405, picture 410, picture 425 , the position of picture 428). That is, the picture 401 , picture 402 , picture 405 , picture 410 , picture 425 , and picture 428 will first be displayed in the first user interface 4011 . And other photos will not be messaged together with picture 401, picture 402, picture 405, picture 410, picture 425, picture 428. In a possible implementation manner, after a period of time, the electronic device may continue to respond to the above operation and perform deletion operations on other photos.
在另一种可能的实施方式中,图4C示例性示意出了智能手机等电子设备显示的第二用户界面4012。电子设备100根据第一用户界面4011显示的已选择的N个图片对应的优先级分别对图片进行分批删除的过程中,检测到针对第一用户界面4011的触摸操作。电子设备100响应于该触摸操作,从而停止删除行为,显示第二用户界面4012。第二用户界面4012中可以显示有M个图片,M为小于N的正整数。其中,M个图片具体可以包含由于电子设备100停止了删除行为而保留的图片。也即电子设备在根据N个图片对应的优先级对N个图片进行分批删除之后,在停止上述删除行为之前,已经删除了N个图片中的L个照片。其中,L个照片中的每个对象的优先级小于M个对象中的每个对象的优先级,L为小于N的正整数。In another possible implementation manner, FIG. 4C schematically shows a second user interface 4012 displayed on an electronic device such as a smart phone. The electronic device 100 detects a touch operation on the first user interface 4011 during the process of deleting the pictures in batches according to the priorities corresponding to the selected N pictures displayed on the first user interface 4011 . In response to the touch operation, the electronic device 100 stops the deletion and displays the second user interface 4012 . M pictures may be displayed on the second user interface 4012, where M is a positive integer smaller than N. Wherein, the M pictures may specifically include pictures that are retained because the electronic device 100 stops the deletion. That is to say, after the electronic device deletes the N pictures in batches according to the priorities corresponding to the N pictures, before stopping the deletion behavior, L photos in the N pictures have been deleted. Wherein, the priority of each object in the L photos is lower than the priority of each object in the M objects, and L is a positive integer smaller than N.
从图4C可以看出,在电子设备100响应于针对第一用户界面4011显示的已选择的N个照片的删除操作时,电子设备可以根据第一用户界面4011显示的已选择的N个照片对应的优先级先删除图片401、图片402、图片405、图片410、图片425、图片428。在删除图片401、图片402、图片405、图片410、图片425、图片428的过程中,响应于检测到作用于第一用户界面4011的触摸操,电子设备可以停止即将对其他照片的删除行为。可以理解的是,因为图片401、图片402、图片405、图片410、图片425、图片428比其他图片的优先级低, 所以电子设备先删除图片401、图片402、图片405、图片410、图片425、图片428。因此,电子设备可以显示第二用户界面4012,在第二用户界面4012中可以显示在用户的触摸操之后未被删除的图片。可以理解的是,上述未被删除的图片相较于已删除图片来说,是优先级较高的,这样可以保护高优先级的照片不被误删除。It can be seen from FIG. 4C that when the electronic device 100 responds to the deletion operation of the selected N photos displayed on the first user interface 4011, the electronic device can correspond to the selected N photos displayed on the first user interface 4011. The priority of deleting picture 401, picture 402, picture 405, picture 410, picture 425, picture 428 first. In the process of deleting picture 401, picture 402, picture 405, picture 410, picture 425, picture 428, in response to detection of a touch operation acting on the first user interface 4011, the electronic device may stop deleting other pictures. It is understandable that because picture 401, picture 402, picture 405, picture 410, picture 425, and picture 428 have lower priority than other pictures, Therefore, the electronic device first deletes picture 401, picture 402, picture 405, picture 410, picture 425, and picture 428. Therefore, the electronic device may display the second user interface 4012, and the pictures that are not deleted after the user's touch operation may be displayed in the second user interface 4012. It can be understood that the above-mentioned undeleted pictures have a higher priority than the deleted pictures, so that the high-priority pictures can be protected from being accidentally deleted.
在另一种可能的实施方式中,图4D示例性示出了智能手机等电子设备显示的第三用户界面、第四用户界面和第五用户界面。电子设备100响应于针对上述N个图片的删除操作,电子设备100可以按照对应的优先级依次删除上述N个图片。可以理解的是,第一用户界面4011中包含删除控件434,删除控件434用于对第一用户界面4011所显示的已选择的N哥图片进行删除操作。也即,电子设备可以在第一用户界面4011中检测到用户对删除控件434的操作,响应于上述操作以对第一用户界面4011显示的N个图片进行逐级分批删除。所以,电子设备100可以按照优先级先删除N个图片中第一优先级的图片(比如说图片401、图片402、图片405、图片410、图片425、图片428),显示第三用户界面4013。因此,在第三用户界面4013中显示有N个图片中第二优先级的图片和第三优先级的图片。其中,第一优先级、第二优先级和第三优先级的优先级程度依次递增。In another possible implementation manner, FIG. 4D exemplarily shows a third user interface, a fourth user interface, and a fifth user interface displayed by an electronic device such as a smart phone. In response to the deletion operation on the above N pictures, the electronic device 100 may delete the above N pictures sequentially according to the corresponding priorities. It can be understood that the first user interface 4011 includes a delete control 434, and the delete control 434 is used to perform a delete operation on the selected N brother picture displayed on the first user interface 4011. That is, the electronic device may detect the user's operation on the delete control 434 in the first user interface 4011, and delete the N pictures displayed on the first user interface 4011 step by step and in batches in response to the above operation. Therefore, the electronic device 100 may first delete the first-priority picture among the N pictures according to the priority (for example, the picture 401 , the picture 402 , the picture 405 , the picture 410 , the picture 425 , and the picture 428 ), and display the third user interface 4013 . Therefore, the picture with the second priority and the picture with the third priority among the N pictures are displayed on the third user interface 4013 . Wherein, the priority levels of the first priority, the second priority and the third priority increase sequentially.
第三用户界面4013中显示有倒计时控件491,倒计时控件491中显示有第一时间(比如说20秒),倒计时控件491用于提示用户在间隔上述第一时间后,电子设备100将删除N个图片中第二优先级的图片(比如说图片403、图片406、图片407、图片411、图片412、图片413、图片418、图片420、图片422、图片423、图片424),显示第四用户界面4014。因此,第四用户界面4014中显示有N个图片中的第三优先级的通知消息(比如说图片404、图片408、图片409、图片414、图片415、图片416、图片417、图片419、图片421、图片426、图片427)。A countdown control 491 is displayed in the third user interface 4013, and a first time (for example, 20 seconds) is displayed in the countdown control 491. The countdown control 491 is used to remind the user that after the above-mentioned first time interval, the electronic device 100 will delete N The pictures of the second priority in the picture (such as picture 403, picture 406, picture 407, picture 411, picture 412, picture 413, picture 418, picture 420, picture 422, picture 423, picture 424), display the fourth user interface 4014. Therefore, the fourth user interface 4014 displays notification messages of the third priority among the N pictures (such as picture 404, picture 408, picture 409, picture 414, picture 415, picture 416, picture 417, picture 419, picture 421, picture 426, picture 427).
第四用户界面4014中显示有倒计时控件492,倒计时控件492中显示有第二时间(比如说40秒),倒计时控件492用于提示用户在间隔上述第二时间后,电子设备100将删除N个图片中第三优先级的图片(比如说第四用户界面4014中所显示图片404、图片408、图片409、图片414、图片415、图片416、图片417、图片419、图片421、图片426、图片427),显示第五用户界面4015。第五用户界面4015中将没有可显示的已选择的照片。A countdown control 492 is displayed in the fourth user interface 4014, and a second time (for example, 40 seconds) is displayed in the countdown control 492. The countdown control 492 is used to remind the user that the electronic device 100 will delete N The pictures of the third priority in the pictures (such as pictures 404, pictures 408, pictures 409, pictures 414, pictures 415, pictures 416, pictures 417, pictures 419, pictures 421, pictures 426, pictures displayed in the fourth user interface 4014 427), displaying the fifth user interface 4015. There will be no selected photos to display in the fifth user interface 4015 .
至此,电子设备100按照删除优先级依次删除第一用户界面4011显示的已选择的图片,所以在第五用户界面中没有显示已选择的图片,显示的未选择的图片。So far, the electronic device 100 deletes the selected pictures displayed on the first user interface 4011 sequentially according to the deletion priority, so no selected pictures are displayed on the fifth user interface, and unselected pictures are displayed.
可以理解的,图4D示例性示出了对优先级的三种分类(第一优先级、第二优先级和第三优先级),但是本申请实施例不限于上述三种分类,可以对优先级进行更为细致的分类,比如说分为4种、6种,等等。It can be understood that FIG. 4D exemplarily shows three classifications of priorities (first priority, second priority, and third priority), but this embodiment of the present application is not limited to the above three classifications, and priority Levels are classified in more detail, such as 4 types, 6 types, and so on.
需要说明的是,本申请实施例是按照删除优先级依次删除图库中已选择的图片,也即先删除优先级较低的图片,间隔一段时间再删除优先级较高的图片,这样可以在保持图库简洁的同时防止用户漏掉重要的图片。It should be noted that in this embodiment of the application, the selected pictures in the gallery are deleted in order according to the deletion priority, that is, the pictures with lower priority are deleted first, and the pictures with higher priority are deleted after a period of time. The gallery is concise and prevents users from missing important pictures.
在一种可能的实施方式中,每个图片的优先级为电子设备响应于针对图库中图片的第一操作而打开该图片的次数所确定的。也即,电子设备100响应于分别针对N个图片的第一操作,从而采集N个图片中每个图片被打开的次数,然后再根据N个图片中每个图片被打开的次数对N个图片中的每个图片标记一种优先级。In a possible implementation manner, the priority of each picture is determined by the number of times the electronic device opens the picture in response to the first operation on the picture in the gallery. That is to say, the electronic device 100 responds to the first operation on the N pictures respectively, thus collects the number of times each of the N pictures is opened, and then calculates the number of times each of the N pictures is opened according to the number of times each of the N pictures is opened Each picture in is marked with a priority.
在本实施例中,图片可以是电子设备100利用摄像头193捕捉到的,也可以是从其他应用程序中获取到的或者从网页上下载的。在一些情况下,比如说用户在外出旅游的过程中利用摄像头193连续捕捉照片,而连续捕捉到的照片可能是重复照片,大量占用设备内存。另 外,由于重复的保存操作,导致从其他应用程序中获取到的或者从网页上下载的照片是重复的照片。对于重复照片或者相似度极高的照片来说,对用户来说不是很重要的,保留一张即可。In this embodiment, the picture may be captured by the electronic device 100 using the camera 193, or may be obtained from other application programs or downloaded from a web page. In some cases, for example, the user uses the camera 193 to continuously capture photos during travel, and the continuously captured photos may be repeated photos, which occupy a large amount of device memory. Other In addition, due to repeated saving operations, the photos obtained from other applications or downloaded from the web are duplicate photos. For duplicate photos or photos with high similarity, it is not very important to users, just keep one.
本申请以三种优先级为例进行说明:This application uses three priority levels as examples for illustration:
若用户没有或很少打开图库中的第一类图片,也即在预设时间内采集第一类图片被打开的次数小于第二范围值。说明用户对第一类图片的关注度较低,对用户来说第一类图片可能是不重要的。电子设备可以将重复的图片或者第一类图片标记为第三优先级。If the user does not or rarely opens the first type of picture in the gallery, that is, the number of times the first type of picture is opened within the preset time is less than the second range value. It shows that the user pays less attention to the first type of pictures, and the first type of pictures may not be important to the user. The electronic device may mark repeated pictures or pictures of the first type as the third priority.
若用户打开过图库中的第二类图片但是打开次数较少,也即在预设时间内采集第二类图片被打开的次数大于或者等于第二范围值且小于第一范围值。说明用户对第二类图片的关注度一般,对用户来说第二类图片可能是一般重要的。电子设备可以将重复的图片或者第一类图片标记为第二优先级。If the user has opened the second type of pictures in the gallery but the opening times are less, that is, the number of times the second type of pictures are opened within the preset time is greater than or equal to the second range value and less than the first range value. It shows that the user pays general attention to the second type of pictures, and the second type of pictures may be generally important to the user. The electronic device may mark repeated pictures or pictures of the first type as the second priority.
若用户打开图库中的第三类图片的次数较多,也即在预设时间内采集第三类图片被打开的次数大于或等于第一范围值。说明用户对第三类图片的关注度较高,对用户来说第三类图片可能是重要的。电子设备可以将重复的图片或者第一类图片标记为第一优先级。If the user opens the third type of picture in the gallery more times, that is, the number of times the third type of picture is opened within the preset time is greater than or equal to the first range value. It shows that the user pays more attention to the third type of pictures, and the third type of pictures may be important to the user. The electronic device may mark repeated pictures or pictures of the first type as the first priority.
其中,第四范围大于第三范围值。Wherein, the fourth range is greater than the third range value.
因此,电子设备100可以通过统计用户才能够图库中打开图片的次数来确定应用程序对应的优先级。Therefore, the electronic device 100 can determine the priority corresponding to the application program by counting the number of times the user can open the picture in the gallery.
在另一种可能的实现方式中,用户可以根据自己的实际需求来设置图库中的图片对应的优先级。比如说按照获取图片的时间来设置优先级,将属于第一时间段内的图片标记为第一优先级,将属于第二时间段内的图片标记为第二优先级。或者,还可以按照图片的类型设置优先级,将食物类图片标记为第一优先级,将人物类图片标记为第二优先级,将风景类图片标记为第三优先级。In another possible implementation manner, the user can set the priority corresponding to the pictures in the gallery according to his actual needs. For example, the priority is set according to the time when the pictures are acquired, and the pictures belonging to the first time period are marked as the first priority, and the pictures belonging to the second time period are marked as the second priority. Alternatively, the priority can also be set according to the type of pictures, and the food pictures are marked as the first priority, the people pictures are marked as the second priority, and the landscape pictures are marked as the third priority.
可以理解的是,在一种可能的实施方式中,在未设置图库中的图片对应的优先级时,电子设备将采用根据用户的操作习惯而匹配得到的图片的优先级。在用户设置了图片对应的优先级时,则优先采用用户设置的图片的优先级。It can be understood that, in a possible implementation manner, when the priority corresponding to the picture in the gallery is not set, the electronic device will adopt the priority of the picture matched according to the user's operation habit. When the user sets the priority corresponding to the picture, the priority of the picture set by the user is given priority.
需要说明的是,第一类图片包含在预设时间打开的次数小于第三范围值的一个或多个图片或者重复的图片;第二类图片包含在预设时间打开的次数大于或者等于第四范围值且小于第三范围值的一个或多个图片;第三类图片包含在预设时间打开的次数小于第四范围值的一个或多个图片。因此,当上述第一类图片、第二类图片和第三图片分别被选中时,若电子设备响应于检测到对上述图片的删除操作时,电子设备可以按照各自对应的优先级先删除第以类图片,间隔一段时间后再删除第二类图片,再间隔一段时间后删除第三类图片。因此,用户在批量删除图片的过程,即使点击了删除全部图片的操作,也可以保证重要的图片不被删除。It should be noted that the first category of pictures includes one or more pictures or repeated pictures whose number of times opened at the preset time is less than the third range value; the second category of pictures includes the number of times opened at the preset time is greater than or equal to the fourth range One or more pictures whose range value is smaller than the third range value; the third type of picture includes one or more pictures whose opening times are less than the fourth range value within the preset time. Therefore, when the above-mentioned pictures of the first type, pictures of the second type and pictures of the third type are respectively selected, if the electronic device responds to detecting a deletion operation on the above-mentioned pictures, the electronic device can first delete the pictures of the first type according to their corresponding priorities. After a period of time, delete the second category of pictures, and then delete the third category of pictures after a period of time. Therefore, in the process of deleting pictures in batches, even if the user clicks the operation of deleting all pictures, important pictures can be guaranteed not to be deleted.
基于上述图1A至图4D所示的一些实施例,接下来介绍本申请提供的删除对象的方法。Based on some of the above embodiments shown in FIG. 1A to FIG. 4D , the method for deleting an object provided by this application is introduced next.
基于图5,图5是本申请实施例提供的一种删除对象的流程示意图。该方法可应用于图1A所示的电子设备100。该方法可应用于图1B所示的电子设备100。该方法可以包括但不限于如下步骤:Based on FIG. 5 , FIG. 5 is a schematic flowchart of deleting an object according to an embodiment of the present application. The method can be applied to the electronic device 100 shown in FIG. 1A . This method can be applied to the electronic device 100 shown in FIG. 1B . The method may include, but is not limited to, the following steps:
步骤S501,显示第一用户界面。Step S501, displaying a first user interface.
具体地,第一用户界面中显示有N个对象,对象可以包含以下一种或多种:应用程序推送的通知消息、“图库”中的图片、音乐软件中的歌曲、购物软件中的购物记录、文件夹中的 文件和备忘录中的笔记,等等。其中,N为大于或等于1的正整数。Specifically, there are N objects displayed in the first user interface, and the objects may include one or more of the following: notification messages pushed by applications, pictures in the "Gallery", songs in music software, and shopping records in shopping software , in the folder Notes in files and memos, and more. Wherein, N is a positive integer greater than or equal to 1.
当对象为应用程序推送的通知消息时,通知消息将显示在电子设备的通知中心中,所以第一用户界面为通知中心所在的窗口。When the object is a notification message pushed by an application program, the notification message will be displayed in the notification center of the electronic device, so the first user interface is the window where the notification center is located.
当对象为“图库”中的图片时,第一用户界面为“图库”所提供的用于显示图片的界面。When the object is a picture in the "Gallery", the first user interface is an interface provided by the "Gallery" for displaying pictures.
当对象为音乐软件中的歌曲时,第一用户界面为音乐软件所提供的用户显示音乐的界面,歌曲包括但不限于:用户下载的歌曲,用户最近听过的歌曲,用户收藏的歌曲,等等。When the object is a song in the music software, the first user interface is an interface provided by the music software for the user to display music, and the song includes but is not limited to: songs downloaded by the user, songs listened to by the user recently, songs collected by the user, etc. wait.
当对象为购物软件中的购物记录时,第一用户界面为购物软件所提供的用于显示购物记录的界面,购物记录包括但不限于:用户浏览过的购物记录、用户添加到“购物车”的购物记录、用户收藏的购物记录,等等。When the object is the shopping record in the shopping software, the first user interface is the interface provided by the shopping software for displaying the shopping record. The shopping record includes but is not limited to: the shopping record browsed by the user, the shopping record added by the user shopping records, user favorite shopping records, and so on.
当对象为文件夹中的文件时,第一用户界面为文件夹所提供的用于显示文件的界面。When the object is a file in the folder, the first user interface is an interface provided by the folder for displaying files.
当对象为备忘录中的笔记时,第一用户界面为备忘录所提供的用于显示笔记的界面。When the object is a note in the memo, the first user interface is an interface provided by the memo for displaying notes.
其中,上述N个对象中的每个对象被标记了一种优先级。该优先级可由用户对其进行标记,在用户没有对其标记优先级的情况下,可由电子设备根据用户的使用习惯来匹配对应的优先级。Wherein, each of the above N objects is marked with a priority. The priority can be marked by the user. If the user does not mark the priority, the electronic device can match the corresponding priority according to the usage habit of the user.
在一种可能的实现方式中,电子设备可以响应于分别针对N个对象的第一操作,从而采集N个对象中的每个对象被打开的次数,然后再根据N个对象中每个对象被打开的次数对N个对象中的每个对象标记一种优先级。以优先级被分为三种为例,假设被分类为第一优先级,第二优先级和第三优先级,其中,第一优先级、第二优先级和第三优先级的优先级程度依次递增。In a possible implementation manner, the electronic device may respond to the first operations on the N objects, thereby collecting the number of times each of the N objects is opened, and then according to the number of times each of the N objects is opened The number of opens marks a priority for each of the N objects. Taking the priority level as an example, it is assumed that it is classified into the first priority level, the second priority level and the third priority level, wherein the priority levels of the first priority level, the second priority level and the third priority level Incremented sequentially.
当N个对象中的第一对象在预设时间内被打开次数大于或等于第一范围值,说明用户对第一对象的关注度较高,对用户来说第一对象可能是重要的。电子设备可以将第一对象标记为第三优先级。When the number of times the first object among the N objects is opened within the preset time is greater than or equal to the first range value, it indicates that the user pays more attention to the first object, and the first object may be important to the user. The electronic device may mark the first object as a third priority.
当N个对象中的第二对象在预设时间内被打开次数大于或等于第二范围值且小于第一范围值,说明用户对第一对象的关注度一般,对用户来说第一对象可能是一般重要的。电子设备可以将第二对象标记为第二优先级。When the number of times the second object among the N objects is opened within the preset time is greater than or equal to the second range value and less than the first range value, it means that the user's attention to the first object is average, and the first object may is generally important. The electronic device may mark the second object as a second priority.
当N个对象中的第三对象在预设时间内被打开次数小于第二范围值,说明用户对第三对象的关注度较低,对用户来说第一对象可能是不重要的。电子设备可以将第散对象标记为第一优先级。When the third object among the N objects is opened less than the second range value within the preset time, it indicates that the user pays less attention to the third object, and the first object may not be important to the user. The electronic device may mark the bulk object as first priority.
其中,第一范围值大于第二范围值。Wherein, the first range value is greater than the second range value.
需要说明的是,第一对象包含在预设时间打开所推送的通知消息的次数大于第一范围值的一个或多个对象;第二对象包含在预设时间打开所推送的通知消息的次数大于或者等于第二范围值且小于第一范围值的一个或多个对象;第三对象包含在预设时间打开所推送的通知消息的次数小于第二范围值的一个或多个对象。It should be noted that the first object includes one or more objects whose number of times the pushed notification message is opened at the preset time is greater than the first range value; the second object includes one or more objects whose number of times the pushed notification message is opened at the preset time is greater than Or one or more objects equal to the second range value and less than the first range value; the third object includes one or more objects whose times of opening the pushed notification message at the preset time are less than the second range value.
需要说明的点,“对象被打开”可以理解为点击对象以对该对象进行查看、编辑等操作的行为。比如说,点击推送的通知信息以查看该通知信息的详细内容;点击图片的缩略版以查看该图片;点击歌曲以播放该歌曲;点击购物记录以查看该商品的详情。It needs to be explained that "the object is opened" can be understood as the behavior of clicking on the object to perform operations such as viewing and editing on the object. For example, click on the push notification information to view the detailed content of the notification information; click on the thumbnail version of the picture to view the picture; click on the song to play the song; click on the shopping record to view the details of the product.
步骤S502,响应于针对N个对象的删除操作,根据N个对象对应的优先级对N个对象进行分批删除。Step S502, in response to the deletion operation on the N objects, delete the N objects in batches according to the priorities corresponding to the N objects.
具体地,电子设备响应于针对N个对象的删除操作,根据N个对象对应的优先级先删除N个对象中优先级较低的对象,再删除N个对象中优先级较高的对象,直至清空上述N个对象。 Specifically, in response to the deletion operation for N objects, the electronic device first deletes objects with lower priority among the N objects according to the priorities corresponding to the N objects, and then deletes objects with higher priority among the N objects until Clear the above N objects.
在一种可能的实现方式中,电子设备在根据N个对应的优先级对N个对象进行分批删除的过程中,用户点按电子设备的显示屏,电子设备可以响应于针对第一用户界面的触摸操作,停止删除行为。也即停止删除后批次的对象(比如说优先级较高的对象),显示第二用户界面。第二用户界面中显示有M个对象,M为小于N的正整数。可以理解的是,电子设备在根据N个对象对应的优先级对N个对象进行分批删除之后,在停止删除行为之前,已经删除了N个对象中的L个对象,还剩下M个对象没有被删除。其中,L个对象中的每个对象的优先级小于M个对象中每个对象的优先级。L为小于N的正整数。因此,即使在删除过程中,也可以通过用户的操作来保护优先级级较高的对象不被删除。In a possible implementation, when the electronic device deletes N objects in batches according to the N corresponding priorities, the user clicks on the display screen of the electronic device, and the electronic device may respond to the to stop the deletion. That is, the deleted batch of objects (for example, objects with higher priority) is stopped, and the second user interface is displayed. There are M objects displayed in the second user interface, where M is a positive integer smaller than N. It can be understood that after the electronic device deletes N objects in batches according to the priorities corresponding to the N objects, before stopping the deletion behavior, L objects among the N objects have been deleted, leaving M objects not deleted. Wherein, the priority of each object in the L objects is less than the priority of each object in the M objects. L is a positive integer smaller than N. Therefore, even in the process of deletion, objects with higher priority can be protected from deletion through user operations.
在一种可能的实现方式中,以优先级被分为三种为例,假设被分类为第一优先级,第二优先级和第三优先级,其中,第一优先级、第二优先级和第三优先级的优先级程度依次递增。In a possible implementation manner, taking the priority levels as an example, it is assumed that they are classified into the first priority level, the second priority level and the third priority level, wherein the first priority level, the second priority level and the priority degree of the third priority increase in order.
电子设备响应于针对N个对象的删除操作,根据N个对象对应的优先级先删除N个对象中第一优先级的对象,显示第三用户界面。其中,第三用户界面中显示有第二优先级的对象和第三优先级的对象。In response to the deletion operation on the N objects, the electronic device first deletes the object with the first priority among the N objects according to the priorities corresponding to the N objects, and displays the third user interface. Wherein, objects of the second priority and objects of the third priority are displayed in the third user interface.
电子设备在间隔第一时间后删除N个对象中第二优先级的对象,显示第四用户界面。其中,第四用户界面中显示有第三优先级的对象。The electronic device deletes the second-priority object among the N objects after a first time interval, and displays a fourth user interface. Wherein, objects of the third priority are displayed on the fourth user interface.
电子设备在间隔第二时间后删除N个对象中第三优先级的对象,显示第五用户界面。其中,第五用户界面中没有显示的对象。The electronic device deletes the third-priority object among the N objects after a second time interval, and displays a fifth user interface. Wherein, there are no objects displayed in the fifth user interface.
可以理解的是,若电子设备在删除N个对象中第一优先级的对象的过程中,响应于针对第一用户界面的触摸操作,将停止删除第二优先级的对象和第三优先级的对象,显示包含第二优先级的对象和第三优先级的对象的用户界面。It can be understood that, if the electronic device responds to a touch operation on the first user interface during the process of deleting the first-priority object among the N objects, it will stop deleting the second-priority object and the third-priority object. Objects to display the user interface containing objects of the second priority and objects of the third priority.
若电子设备在间隔第一时间后删除N个对象中第二优先级的对象的过程中,响应于针对第二用户界面的触摸操作,将停止删除第三优先级的对象,显示包含第三优先级的对象的用户界面。If the electronic device is in the process of deleting objects with the second priority among the N objects after a first time interval, in response to a touch operation on the second user interface, it will stop deleting the objects with the third priority and display the objects containing the third priority. level object user interface.
需要说明的是,本申请实施例中“至少一个”是指一个或者多个,多个是指两个或两个以上。除非另有定义,本文所使用的所有的技术和科学术语与属于本申请中的技术领域的技术人员通常理解的含义相同。本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。应理解,本申请中除非另有说明,“/”表示或的意思。例如,A/B可以表示A或B。本申请中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系。需要说明的是,本申请实施例中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that "at least one" in the embodiments of the present application refers to one or more, and multiple refers to two or more. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field of this application. The terms used in the description of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. It should be understood that unless otherwise stated in this application, "/" means or. For example, A/B can mean either A or B. The "and/or" in this application is only an association relationship describing associated objects, indicating that there may be three relationships. It should be noted that in the embodiments of the present application, words such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order . Features defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来计算机程序相关的硬件完成,该计算机程序可存储于计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:只读存储器(read-only memory,ROM)或随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可存储计算机程序代码的介质。 Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments are realized. The processes can be completed by computer programs or hardware related to the computer programs. The computer programs can be stored in computer-readable storage media. The computer programs During execution, it may include the processes of the foregoing method embodiments. The aforementioned storage medium includes: various media capable of storing computer program codes such as read-only memory (ROM) or random access memory (RAM), magnetic disk or optical disk.

Claims (11)

  1. 一种删除对象的方法,其特征在于,所述方法包括:A method for deleting an object, characterized in that the method comprises:
    显示第一用户界面,所述第一用户界面中显示有N个对象,N为大于或等于1的正整数,所述N个对象中的每个对象被标记了一种优先级;Displaying a first user interface, where N objects are displayed in the first user interface, N is a positive integer greater than or equal to 1, and each object in the N objects is marked with a priority;
    响应于针对所述N个对象的删除操作,根据所述N个对象对应的优先级对所述N个对象进行分批删除。In response to the deletion operation on the N objects, the N objects are deleted in batches according to the priorities corresponding to the N objects.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    在根据所述N个对象对应的优先级对所述N个对象进行分批删除的过程中,响应于针对所述第一用户界面的触摸操作,停止删除行为,显示第二用户界面;所述第二用户界面中显示有M个对象,M为小于N的正整数。In the process of deleting the N objects in batches according to the priorities corresponding to the N objects, in response to a touch operation on the first user interface, stop the deletion behavior, and display a second user interface; There are M objects displayed in the second user interface, where M is a positive integer smaller than N.
  3. 根据权利要求2所述的方法,其特征在于,所述在根据所述N个对象对应的优先级对所述N个对象进行分批删除之后,在停止所述删除行为之前,已经删除了所述N个对象中的L个对象;其中,所述L个对象中的每个对象的优先级小于所述M个对象中的每个对象的优先级,L为小于N的正整数。The method according to claim 2, characterized in that, after the N objects are deleted in batches according to the priorities corresponding to the N objects, all the objects have been deleted before the deletion behavior is stopped. L objects among the N objects; wherein, the priority of each object among the L objects is lower than the priority of each object among the M objects, and L is a positive integer smaller than N.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述响应于针对所述N个对象的删除操作,所述根据所述N个对象对应的优先级对所述N个对象进行分批删除之前,还包括:The method according to any one of claims 1 to 3, wherein in response to the deletion operation on the N objects, the N objects are deleted according to the priorities corresponding to the N objects Before batch deletion, also include:
    响应于分别针对所述N个对象的第一操作,采集所述N个对象中每个对象被打开的次数;Collecting the number of times each of the N objects is opened in response to the first operations on the N objects respectively;
    根据所述N个对象中每个对象被打开的次数对所述N个对象中的每个对象标记一种优先级。A priority is marked for each of the N objects according to the number of times each of the N objects is opened.
  5. 根据权利要求1至4任一项所述的方法,其特征在于,所述响应于针对所述N个对象的删除操作,所根据所述N个对象对应的优先级对所述N个对象进行分批删除,包括:The method according to any one of claims 1 to 4, wherein in response to the deletion operation on the N objects, the N objects are deleted according to the priorities corresponding to the N objects Delete in batches, including:
    响应于针对所述N个对象的删除操作,根据所述N个对象对应的优先级先删除所述N个对象中第一优先级的对象,显示第三用户界面,所述第三用户界面中显示有第二优先级的对象和第三优先级的对象;其中,所述第一优先级、所述第二优先级和所述第三优先级的优先级程度依次递增;In response to the deletion operation on the N objects, according to the priorities corresponding to the N objects, first delete the object with the first priority among the N objects, and display a third user interface, in the third user interface displaying objects with a second priority and objects with a third priority; wherein, the priority levels of the first priority, the second priority, and the third priority increase in sequence;
    间隔第一时间后删除所述N个对象中所述第二优先级的对象,显示第四用户界面,所述第四用户界面中显示有所述第三优先级的对象;deleting the objects of the second priority among the N objects after a first time interval, and displaying a fourth user interface in which the objects of the third priority are displayed;
    间隔第二时间后删除所述N个对象中所述第三优先级的对象,显示第五用户界面,所述第五用户界面中没有显示的对象。After a second time interval, objects of the third priority among the N objects are deleted, and a fifth user interface is displayed, and objects not displayed in the fifth user interface are displayed.
  6. 根据权利要求1至5任一项所述的方法,其特征在于,所述对象包含以下一种或多种:应用程序推送的通知消息、图库中的图片、文件、笔记、音乐软件中的歌曲和购物软件中的购物记录。 The method according to any one of claims 1 to 5, wherein the object includes one or more of the following: notification messages pushed by applications, pictures in the gallery, files, notes, and songs in music software and shopping records in shopping software.
  7. 一种电子设备,其特征在于,所述电子设备包括一个或多个处理器、存储器以及通信模块;所述存储器以及所述通信模块与所述一个或多个处理器耦合,所述存储器用于存储计算机程序,所述一个或多个处理器执行所述计算机程序以使所述电子设备执行:An electronic device, characterized in that the electronic device includes one or more processors, memory and communication module; the memory and the communication module are coupled to the one or more processors, and the memory is used for storing a computer program, the one or more processors executing the computer program to cause the electronic device to perform:
    显示第一用户界面,所述第一用户界面中显示有N个对象,N为大于或等于1的正整数,所述N个对象中的每个对象被标记了一种优先级;Displaying a first user interface, where N objects are displayed in the first user interface, N is a positive integer greater than or equal to 1, and each object in the N objects is marked with a priority;
    响应于针对所述N个对象的删除操作,根据所述N个对象对应的优先级对所述N个对象进行分批删除。In response to the deletion operation on the N objects, the N objects are deleted in batches according to the priorities corresponding to the N objects.
  8. 根据权利要求7所述的电子设备,其特征在于,The electronic device according to claim 7, wherein,
    在所述电子设备根据所述N个对象对应的优先级对所述N个对象进行分批删除的过程中,所述电子设备响应于针对所述第一用户界面的触摸操作,所述电子设备停止删除行为,显示第二用户界面;所述第二用户界面中显示有M个对象,M为小于N的正整数。During the process that the electronic device deletes the N objects in batches according to the priorities corresponding to the N objects, the electronic device responds to a touch operation on the first user interface, and the electronic device The deletion behavior is stopped, and a second user interface is displayed; M objects are displayed in the second user interface, and M is a positive integer smaller than N.
  9. 根据权利要求8所述的电子设备,其特征在于,所述在根据所述N个对象对应的优先级对所述N个对象进行分批删除之后,在停止所述删除行为之前,已经删除了所述N个对象中的L个对象;其中,所述L个对象中的每个对象的优先级小于所述M个对象中的每个对象的优先级,L为小于N的正整数。The electronic device according to claim 8, characterized in that, after the N objects are deleted in batches according to the priorities corresponding to the N objects, before the deletion behavior is stopped, the L objects among the N objects; wherein, the priority of each object among the L objects is lower than the priority of each object among the M objects, and L is a positive integer smaller than N.
  10. 根据权利要求7至9任一项所述的电子设备,其特征在于,所述电子设备还执行:The electronic device according to any one of claims 7 to 9, wherein the electronic device further executes:
    响应于分别针对所述N个对象的第一操作,采集所述N个对象中每个对象被打开的次数;Collecting the number of times each of the N objects is opened in response to the first operations on the N objects respectively;
    根据所述N个对象中每个对象被打开的次数对所述N个对象中的每个对象标记一种优先级。A priority is marked for each of the N objects according to the number of times each of the N objects is opened.
  11. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-至6中任一项所述的删除对象的方法。 A computer-readable storage medium, characterized in that it includes computer instructions, and when the computer instructions are run on an electronic device, the electronic device executes the deletion object according to any one of claims 1-6 Methods.
PCT/CN2023/076461 2022-02-25 2023-02-16 Object deletion method and electronic device WO2023160455A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210180310.0 2022-02-25
CN202210180310.0A CN116700568A (en) 2022-02-25 2022-02-25 Method for deleting object and electronic equipment

Publications (1)

Publication Number Publication Date
WO2023160455A1 true WO2023160455A1 (en) 2023-08-31

Family

ID=87764676

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/076461 WO2023160455A1 (en) 2022-02-25 2023-02-16 Object deletion method and electronic device

Country Status (2)

Country Link
CN (1) CN116700568A (en)
WO (1) WO2023160455A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104793938A (en) * 2015-04-23 2015-07-22 广州视源电子科技股份有限公司 Notification bar message display method and system
CN105094538A (en) * 2015-06-30 2015-11-25 联想(北京)有限公司 Information processing method and electronic equipment
US20190035067A1 (en) * 2017-07-26 2019-01-31 Canon Kabushiki Kaisha Image data management method, production apparatus, production system, image data management method for production system, and non-transitory computer-readable recording medium
CN112260936A (en) * 2020-10-22 2021-01-22 Oppo广东移动通信有限公司 Notification message management method, device, terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104793938A (en) * 2015-04-23 2015-07-22 广州视源电子科技股份有限公司 Notification bar message display method and system
CN105094538A (en) * 2015-06-30 2015-11-25 联想(北京)有限公司 Information processing method and electronic equipment
US20190035067A1 (en) * 2017-07-26 2019-01-31 Canon Kabushiki Kaisha Image data management method, production apparatus, production system, image data management method for production system, and non-transitory computer-readable recording medium
CN112260936A (en) * 2020-10-22 2021-01-22 Oppo广东移动通信有限公司 Notification message management method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN116700568A (en) 2023-09-05

Similar Documents

Publication Publication Date Title
WO2021013158A1 (en) Display method and related apparatus
CN109814766B (en) Application display method and electronic equipment
WO2021103981A1 (en) Split-screen display processing method and apparatus, and electronic device
WO2021036571A1 (en) Desktop editing method and electronic device
WO2021000881A1 (en) Screen splitting method and electronic device
WO2021000839A1 (en) Screen splitting method and electronic device
WO2021139768A1 (en) Interaction method for cross-device task processing, and electronic device and storage medium
WO2021000804A1 (en) Display method and apparatus in locked state
JP2024020334A (en) Screen taking-in method and related device
CN110119296B (en) Method for switching parent page and child page and related device
WO2021082835A1 (en) Method for activating function and electronic device
WO2022068483A1 (en) Application startup method and apparatus, and electronic device
WO2019072178A1 (en) Method for processing notification, and electronic device
WO2022068819A1 (en) Interface display method and related apparatus
EP4261680A1 (en) Widget display method and electronic device
WO2020155875A1 (en) Display method for electronic device, graphic user interface and electronic device
WO2021190524A1 (en) Screenshot processing method, graphic user interface and terminal
WO2022057852A1 (en) Method for interaction between multiple applications
CN112068907A (en) Interface display method and electronic equipment
US20230236714A1 (en) Cross-Device Desktop Management Method, First Electronic Device, and Second Electronic Device
WO2023138305A1 (en) Card display method, electronic device, and computer readable storage medium
WO2023160455A1 (en) Object deletion method and electronic device
WO2022089276A1 (en) Collection processing method and related apparatus
WO2023207799A1 (en) Message processing method and electronic device
WO2023116411A1 (en) Management method for application card, electronic device, and storage medium

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: 23759080

Country of ref document: EP

Kind code of ref document: A1