WO2025260697A1 - 一种锁屏显示方法及电子设备 - Google Patents
一种锁屏显示方法及电子设备Info
- Publication number
- WO2025260697A1 WO2025260697A1 PCT/CN2024/143274 CN2024143274W WO2025260697A1 WO 2025260697 A1 WO2025260697 A1 WO 2025260697A1 CN 2024143274 W CN2024143274 W CN 2024143274W WO 2025260697 A1 WO2025260697 A1 WO 2025260697A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- electronic device
- application
- information
- content
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/542—Event management; Broadcasting; Multicasting; Notifications
Definitions
- This application relates to the field of terminal technology, and in particular to a lock screen display method and electronic device.
- Electronic devices such as mobile phones and tablets have been widely used in users' daily work and life.
- Electronic devices can provide users with richer functions. Users can experience the functions and services provided by various applications installed on their electronic devices.
- the scenarios in which users use electronic devices are no longer limited to displaying the main interface and application interface when the screen is on. For example, electronic devices can display notification messages on the lock screen to remind users to check relevant information in a timely manner. How to provide users with more interactive experiences in more scenarios has become one of the issues of great concern in the terminal field.
- This application provides a lock screen display method and an electronic device, which provide a solution for displaying application-related content in the lock screen interface.
- this application provides a lock screen display method, which can be executed by an electronic device.
- the electronic device includes a first service module, a first service interface, and a lock screen function module.
- the method includes: the electronic device entering a lock screen state, and a first service in a first application of the electronic device being in a running state; the first application in the electronic device sending first information of the first application to the first service module through the first service interface, the first information including multimedia content or user interface information related to the first service; the first service module in the electronic device sending the first information to the lock screen function module; after receiving the first information, the lock screen function module in the electronic device creating a first window in the lock screen interface; and the lock screen function module in the electronic device displaying the first content of the first application in the first window according to the first information.
- the electronic device can provide the application with the function of displaying application content on the lock screen interface.
- the first application in the electronic device can send the first information of the first application to the first service module through the first service interface provided by the electronic device.
- the lock screen function module can display the first content of the first application in the first window of the lock screen interface.
- the method before the first application in the electronic device sends its first information to the first server module through the first service interface, the method further includes: the first application in the electronic device sending a first request message to the system server, the first request message being used to request screen lock display permission for the first service of the first application from the system server; the first application in the electronic device receiving a response message sent by the system server, the response message being used to instruct the system server to approve the permission request of the first application.
- the first application in the electronic device has a screen lock display requirement, it can request screen lock display permission from the system server. After the system server approves the permission request, the first content of the first application is displayed on the lock screen interface, thereby achieving control over the first application and ensuring the controllability of the content displayed on the lock screen interface of the electronic device.
- the electronic device further includes a service proxy module
- the method further includes: the first service module in the electronic device receiving second information sent by the server through the service proxy module, the second information including multimedia content related to the first service; the first service module in the electronic device sending the second information to the lock screen function module; and the lock screen function module in the electronic device displaying the second content of the first application in the first window according to the second information.
- the electronic device can also provide a service proxy module, allowing the first service module to receive information about the first application sent by the server through the service proxy module, enabling the server to push the content of the first application displayed on the lock screen interface to the electronic device, thus saving the computing power of the electronic device.
- the method before the first service module in the electronic device sends the first information to the lock screen function module, the method further includes: the first service module in the electronic device performing a risk detection on the first information and determining that the risk detection of the first information passes. This design ensures that the electronic device can control the content displayed on the lock screen interface, preventing advertisements and other content from affecting the user experience.
- the method further includes: in response to a first operation triggered by the user in the first window, the electronic device switches to an unlocked state, runs the first application, and displays the user interface of the first task; wherein, the first operation is a click operation triggered by the user in the first window.
- the electronic device displays the first content of the first task on the lock screen
- the user can trigger the electronic device to run the first application and display its user interface.
- the electronic device can directly continue displaying the user interface of the first application in the unlocked state without requiring the user to manually launch the first application to continue viewing its content, improving the user experience.
- the method further includes: in response to a second operation triggered by the user in the first window, the electronic device stops displaying the first content of the first application; the lock screen function module of the electronic device displays a card-style live notification corresponding to the first task in the lock screen interface; wherein, the second operation is a click operation triggered by the user at any location in the area other than the first window in the lock screen interface, or the second operation is a swipe operation triggered by the user in the first window.
- the method further includes: in response to a third operation triggered by the user in the first window, the electronic device stops displaying the first content of the first application; the lock screen function module of the electronic device displays a capsule-style live notification corresponding to the first task in the lock screen interface; wherein, the third operation is a swipe operation triggered by the user in the first window.
- the user when the electronic device displays the first content of the first application in the first window, the user triggers an operation to switch between displaying a card-style or capsule-style live notification corresponding to the first task.
- This allows the user to switch between various styles of live notifications and immersive live content supported by the electronic device, meeting the different needs of the user in different display scenarios.
- the method further includes: in response to a fourth operation triggered by the user in the first window, the lock screen function module of the electronic device displays a third content of the first application in the first window; wherein the fourth operation is a swipe operation triggered by the user in the first window, and the third content is sent to the lock screen function module by the first application after updating the first content according to parameters related to the fourth operation.
- the user can trigger a swipe operation in the first window to adjust the content displayed in the first window. For example, when the first content is a document, a long interface, etc., the user can swipe in the first window to view more content.
- the method before the lock screen function module of the electronic device displays the third content of the first application in the first window, the method further includes: the lock screen function module of the electronic device determining that the permission information of the first application includes a first permission, the first permission being used to indicate that responsive swipe operations are supported when displaying the content corresponding to the first task in the lock screen interface.
- the electronic device further includes an always-on display module.
- the method further includes: when the electronic device enters the always-on display state, the lock screen function module in the electronic device sends information about the lock screen interface to the always-on display module, the information about the lock screen interface including information about the first content of the first application displayed in the first window; the always-on display module of the electronic device displays the first content of the first application in a second window of the always-on display interface based on the information about the lock screen interface.
- the lock screen function module in the electronic device can also send information about the lock screen interface to the always-on display module, so that the always-on display module can display the first content of the first application in the always-on display interface, further enriching the display scenarios of application content and improving the user experience.
- the electronic device further includes an always-on display module.
- the method further includes: when the electronic device enters the always-on display state, the always-on display module in the electronic device receives the first information sent by the system server through the service proxy module; the always-on display module in the electronic device displays the first content of the first application in a second window of the always-on display interface based on the first information.
- the always-on display module can receive the first information of the first application sent by the server through the service proxy module, and the always-on display module can display the first content of the first application in the second window of the always-on display interface, thereby providing a display scheme for displaying application content in the always-on display state, meeting the user's need to understand application information when the electronic device is in the always-on display state.
- the first content is multimedia content
- the service type of the first service is map navigation, delivery information, sports and health, or ride-hailing
- the first content is a user interface
- the first content when the first content is a user interface, the first content includes at least one of text controls, icon controls, and multimedia controls.
- this application provides a lock screen display method, which can be executed by an electronic device.
- the electronic device includes a first service module, a service proxy module, and a lock screen function module.
- the method includes: the electronic device entering a lock screen state, and a first service in a first application of the electronic device being in a running state; the first service module in the electronic device receiving second information sent by a server through the service proxy module, the second information including multimedia content related to the first service; the first service module in the electronic device sending the second information to the lock screen function module; and the lock screen function module in the electronic device displaying the second content of the first application in a first window according to the second information.
- this application provides an electronic device comprising multiple functional modules; the multiple functional modules interact to implement the methods performed by the electronic device in the first aspect and its various embodiments described above.
- the multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementations.
- this application provides an electronic device including at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the electronic device is running, the at least one processor executes the methods executed by the electronic device in the first aspect and its various embodiments described above.
- this application also provides a computer program product containing instructions that, when the computer program product is run on a computer, cause the computer to perform the method executed by the server or electronic device in any of the above aspects and their embodiments.
- this application also provides a computer-readable storage medium storing a computer program that, when executed by a computer, causes the computer to perform the method executed by the server or electronic device in any of the above aspects and embodiments.
- this application also provides a chip for reading a computer program stored in a memory and executing the method performed by a server or electronic device in any of the above aspects and their embodiments.
- this application also provides a chip system including a processor for supporting a computer device in implementing the methods performed by a server or electronic device in any of the above aspects and their embodiments.
- the chip system further includes a memory for storing programs and data necessary for the computer device.
- the chip system may be composed of chips or may include chips and other discrete devices.
- Figure 1 is a schematic diagram of an electronic device displaying notification messages on the lock screen interface according to an embodiment of this application;
- Figure 2 is a schematic diagram of an application scenario for a lock screen display method provided in an embodiment of this application;
- Figure 3 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
- Figure 4 is a software structure block diagram of an electronic device provided in an embodiment of this application.
- Figure 5 is a schematic diagram of a lock screen display method provided in an embodiment of this application.
- Figure 6 is a schematic diagram of a layer position relationship provided in an embodiment of this application.
- Figure 7 is a schematic diagram of an electronic device displaying an immersive live broadcast according to an embodiment of this application.
- Figure 8 is a flowchart illustrating an immersive live-action user operation provided in an embodiment of this application.
- Figure 9 is a schematic diagram of a lock screen interface of an electronic device provided in an embodiment of this application.
- Figure 10 is a schematic diagram of a lock screen interface of an electronic device provided in an embodiment of this application.
- Figure 11 is a schematic diagram of an immersive live broadcast where the first content is an image, provided in an embodiment of this application;
- Figure 12 is a schematic diagram of a lock screen display method provided in an embodiment of this application.
- Figure 13 is a schematic diagram of an immersive live stream where the first content is a user interface, provided in an embodiment of this application;
- Figure 14 is a schematic diagram of a lock screen display method provided in an embodiment of this application.
- Figure 15 is a flowchart of a lock screen display method provided in an embodiment of this application.
- At least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, and c can be single or multiple.
- FIG. 1 is a schematic diagram of an electronic device displaying notification messages on the lock screen according to an embodiment of this application. Referring to Figure 1, the electronic device can display notification messages such as "Messages" application notification 101 and social application notification 102 on the lock screen.
- FIG. 2 is a schematic diagram of an application scenario applicable to the lock screen display method provided in this application embodiment.
- the application scenario includes an electronic device and a system server; optionally, the application scenario also includes an application server.
- displaying application content on the lock screen interface of the electronic device can be referred to as displaying "immersive live content.”
- the electronic device includes an immersive service module, which can provide an immersive service interface for applications installed on the electronic device.
- This interface can also be called an immersive service kit, which can be a software development kit (SDK) installed on the electronic device.
- SDK software development kit
- the immersive service module can receive application content sent by the application through calling the immersive service interface and interact with the lock screen function module in the electronic device, thereby displaying the application content in the first window of the lock screen interface.
- the electronic device may also include an immersive cloud service agent module, which can also be called a push agent. This agent is used to receive application content pushed by the system server.
- the immersive cloud service agent can send the received application content to the immersive service module.
- the immersive service module interacts with the lock screen function module to display the application content pushed by the system server received by the electronic device in the first window of the lock screen interface.
- the system server in the scenario shown in Figure 2 can provide immersive cloud service functionality for electronic devices. It provides cloud service interfaces to applications installed on the electronic devices and application servers, enabling applications to obtain permission to display immersive live content on the electronic devices. Furthermore, the immersive cloud service can also perform risk detection on the application content within the immersive live content.
- the system server shown in Figure 2 can also be a push server for pushing messages to electronic devices.
- the application server in the scenario shown in Figure 2 is used to provide cloud services for applications installed on electronic devices.
- the application server can send application content to the electronic device through the system server so that the electronic device can display the received application content in the first window of the lock screen interface.
- the functions of the system server can be implemented by a cluster of computing devices including at least one computing device, wherein at least one computing device in the cluster of computing devices can be used to provide immersive cloud service functions.
- the immersive cloud service functions can also be implemented by at least one computing device independent of the system server. This application does not limit this aspect.
- an electronic device can request registration from the system server to display the first application for immersive live streaming and at least one corresponding business type. After authorization by the system server, when the electronic device enters the lock screen state, the electronic device determines that the first business in the first application is running. The business type of the first business is the authorized business type corresponding to the first application.
- the lock screen function module in the electronic device can create a first window in the lock screen interface and display the first content of the first application in the first window.
- the first content of the first application can be multimedia content provided by the first application or the user interface of the first application.
- the first content of the first application is determined by the lock screen function module based on the first information of the first application.
- the first information can be sent by the first application in the electronic device to the immersive service module through the immersive service interface, or the first information of the first application can be sent by the application server to the system server, and then sent by the system server to the immersive service module in the electronic device through the immersive cloud service proxy.
- the electronic device can provide the application with the function of displaying application content in the lock screen interface, so that even after the user triggers the lock screen, the display content provided by the running application can still be viewed in the lock screen interface, enriching the display scenarios of the electronic device and improving the user experience.
- the electronic device may further include an AOD module.
- the AOD module can receive lock screen interface information sent by the lock screen function module, thereby displaying the content displayed in the lock screen interface in the AOD interface when the electronic device is in AOD display state.
- the AOD module can receive lock screen interface information sent by the lock screen function module.
- This lock screen interface information includes immersive live streaming information.
- the AOD module can display immersive live streaming in the AOD interface.
- the AOD module can also receive first information of the first application sent by the immersive cloud service in the system server through the immersive cloud service proxy.
- the AOD module can create a second window in the AOD interface and display first content in the second window according to the first information of the first application.
- the electronic device in this application embodiment can be a tablet computer, mobile phone, in-vehicle device, augmented reality (AR)/virtual reality (VR) device, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), wearable device, etc.
- AR augmented reality
- VR virtual reality
- laptop computer laptop computer
- UPC ultra-mobile personal computer
- PDA personal digital assistant
- wearable device etc.
- This application embodiment does not limit the specific type of electronic device.
- the electronic device may also be a portable terminal device that includes other functions such as a personal digital assistant and/or a music player.
- portable terminal device includes, but are not limited to, devices equipped with... Or portable terminal devices with other operating systems.
- FIG. 3 is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of this application.
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
- SIM subscriber identification module
- Processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.
- the controller may serve as the central nervous system and command center of the electronic device 100. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.
- Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory.
- This memory can store instructions or data that the processor 110 has just used or is reusing. If the processor 110 needs to reuse the instruction or data, it can directly retrieve it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves system efficiency.
- USB interface 130 is an interface compliant with the USB standard specification, specifically a Mini USB interface, Micro USB interface, USB Type-C interface, etc.
- USB interface 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices.
- Charging management module 140 receives charging input from the charger.
- Power management module 141 connects battery 142, charging management module 140, and processor 110.
- Power management module 141 receives input from battery 142 and/or charging management module 140, and supplies power to processor 110, internal memory 121, external memory, display screen 194, camera 193, and wireless communication module 160, etc.
- the wireless communication function of electronic device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.
- Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization.
- antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.
- the mobile communication module 150 can provide solutions for wireless communication, including 2G/3G/4G/5G, applied to the electronic device 100.
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
- the mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation.
- the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1.
- at least some functional modules of the mobile communication module 150 may be housed in the processor 110.
- at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
- the wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies.
- WLANs wireless local area networks
- BT Bluetooth
- GNSS global navigation satellite system
- FM frequency modulation
- NFC near field communication
- IR infrared
- the wireless communication module 160 can be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110.
- the wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
- antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology.
- the wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc.
- the GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and/or satellite-based augmentation systems (SBAS).
- GPS Global Positioning System
- GLONASS Global Navigation Satellite System
- BDS BeiDou Navigation Satellite System
- QZSS Quasi-Zenith Satellite System
- SBAS satellite-based augmentation systems
- Display screen 194 is used to display the display interface of an application, such as the display page of an application installed on electronic device 100.
- Display screen 194 includes a display panel.
- the display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc.
- electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.
- Camera 193 is used to capture still images or videos.
- An object is projected onto a photosensitive element by generating an optical image through the lens.
- the photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal.
- the ISP outputs the digital image signal to a DSP for processing.
- the DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats.
- the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
- Internal memory 121 can be used to store computer executable program code, which includes instructions.
- Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121.
- Internal memory 121 may include a program storage area and a data storage area.
- the program storage area may store the operating system and software code for at least one application program.
- the data storage area may store data generated during the use of electronic device 100 (e.g., captured images, recorded videos, etc.).
- internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
- the external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device.
- the external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, images, videos, and other files can be saved on the external memory card.
- Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
- audio module 170 speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
- the sensor module 180 may include a pressure sensor 180A, an acceleration sensor 180B, a touch sensor 180C, etc.
- the pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals.
- the pressure sensor 180A may be disposed on the display screen 194.
- Touch sensor 180C also known as a "touch panel,” can be located on display screen 194.
- the touch sensor 180C and display screen 194 together form a touchscreen, also known as a "touch screen.”
- Touch sensor 180C detects touch operations applied to or near it.
- the touch sensor can transmit 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 display screen 194.
- touch sensor 180C may also be located on the surface of electronic device 100, in a different position than display screen 194.
- Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch buttons.
- Electronic device 100 can receive button inputs and generate key signal inputs related to user settings and function control.
- Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, touch operations applied to different applications (such as taking photos, audio playback, etc.) can correspond to different vibration feedback effects. Touch vibration feedback effects can also be customized.
- Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, or to indicate messages, missed calls, notifications, etc.
- SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with electronic device 100.
- the components shown in Figure 3 do not constitute a specific limitation on the electronic device 100.
- the electronic device may include more or fewer components than shown, or combine some components, or separate some components, or have different component arrangements.
- the combination/connection relationships between the components in Figure 3 can also be adjusted and modified.
- Figure 4 is a software structure block diagram of an electronic device provided in an embodiment of this application.
- the software structure of the electronic device can be a layered architecture.
- the software can be divided into several layers, each with a clear role and division of labor.
- the layers communicate with each other through software interfaces.
- the operating system is divided into four layers, from top to bottom: the application layer, the application framework layer (framework, FWK), the runtime and system libraries, and the kernel layer.
- the application layer may include a series of application packages. As shown in Figure 4, the application layer may include a camera, settings, skin modules, a user interface (UI), third-party applications, etc. Third-party applications may include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS, etc. In this embodiment, the application layer may include an immersive service interface, through which applications installed on the electronic device can utilize the immersive live display function of the electronic device.
- UI user interface
- Third-party applications may include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS, etc.
- the application layer may include an immersive service interface, through which applications installed on the electronic device can utilize the immersive live display function of the electronic device.
- Notification messages displayed on electronic devices can be divided into two types: live notifications and non-live notifications.
- Live notifications are those with high timeliness requirements, such as notifications related to ride-hailing tasks and food delivery tasks.
- Non-live notifications are those with low timeliness requirements, such as notifications from social applications and system version update messages.
- the application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer.
- the application framework layer can include some predefined functions. As shown in Figure 4, the application framework layer can include a window manager, content provider, view system, phone manager, resource manager, notification manager, immersive service module, immersive cloud service proxy, and lock screen functionality module.
- the window manager is used to manage windowed applications. It can obtain the screen size, determine if a status bar is present, lock the screen, and capture screenshots.
- the content provider stores and retrieves data, making this data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
- a view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications.
- a display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
- a phone manager is used to provide communication functions for electronic devices. For example, it manages call status (including connection and disconnection).
- the file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
- the notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts.
- the notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.
- the Immersive Service Module is used to provide immersive live display functionality for applications installed on electronic devices.
- the Immersive Service Module can receive application content sent by applications through the Immersive Service Interface, or receive application content sent by the system server through the Immersive Cloud Service Agent, and send the application content to the Lock Screen Function Module to display the corresponding immersive live content on the lock screen interface.
- the Immersive Cloud Service Proxy is used to receive application content sent by the Immersive Cloud Service from the system server.
- the lock screen function module is used to draw the lock screen interface for electronic devices and manage the content and controls displayed on the lock screen interface.
- the lock screen function module can receive application content sent by the immersive service and display the application content in the first window of the lock screen interface.
- the runtime includes the core libraries and the virtual machine.
- the runtime is responsible for the scheduling and management of the operating system.
- the core library consists of two parts: one part contains the functionalities that the Java language needs to call, and the other part contains the core libraries of the operating system.
- the application layer and application framework layer run in the virtual machine.
- the virtual machine executes the Java files of the application layer and application framework layer as binary files.
- the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
- System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), image processing libraries, etc.
- 3D graphics processing libraries e.g., OpenGL ES
- 2D graphics engines e.g., SGL
- image processing libraries etc.
- the Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
- the media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
- the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
- a 2D graphics engine is a graphics engine for 2D drawing.
- the kernel layer is the layer between hardware and software.
- the kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.
- the hardware layer can include various types of sensors, such as accelerometers, gyroscopes, and touch sensors.
- the electronic device provides an immersive live display scheme.
- This immersive live display refers to the application content displayed by the electronic device in the lock screen state.
- This application content can be, for example, multimedia content or a user interface provided by the application.
- Figure 5 is a schematic diagram of a lock screen display method provided in this application embodiment. Referring to Figure 5, the method may include the following steps:
- S501 The electronic device sends a first request message to the system server.
- the first request message is used to request lock screen display permissions for at least one business type of the first application from the system server, wherein the lock screen display permissions include immersive live display permissions.
- the user can set whether to enable the immersive live streaming function, and the user can set the application permissions of applications installed on the electronic device to determine whether the applications can use the immersive live streaming function.
- Applications installed on the electronic device can also request to use the immersive live streaming function.
- the electronic device can apply to the system server to register the applications requesting to display immersive live streaming and at least one corresponding business type for each application.
- the application can include at least one business type requested in the request message.
- the business types supported by the application may include maps, food delivery, express delivery, flights, sports, etc.
- the first application when a first application in the electronic device is started or a first service within the first application is running, the first application can send a request message to the electronic device.
- This request message requests the electronic device to apply to the system server for immersive live-streaming permission corresponding to the first application.
- the electronic device can send a first request message to the system server, which may include the identifier of the first application and the identifier of the first service. In this way, immersive live-streaming permission for the first application can be requested from the system server only when the application in the electronic device has an immersive display requirement.
- the electronic device can register with the system server upon power-on multiple applications capable of using the immersive live streaming function and at least one corresponding service type for each application.
- the applications installed on the electronic device change, such as installing a new application or uninstalling an application
- the electronic device can register with the system server multiple applications capable of using the immersive live streaming function and at least one corresponding service type for each application.
- the electronic device can register with the system server multiple applications capable of using the immersive live streaming function and at least one corresponding service type for each application according to a preset period. This method ensures that the applications capable of immersive display on the electronic device are consistent with the applications registered on the system server, guaranteeing that subsequent applications can normally request and display immersive live streaming, and also ensuring security.
- the response message sent by the system server to the electronic device is used to instruct the system server to grant permissions through the first application.
- the system server after receiving a first request message from an electronic device, the system server verifies the first application and returns a response message to the electronic device indicating that the permission request for the first application has been approved.
- the server may store permission information corresponding to the electronic device, which includes a set of target applications and at least one authorized service type corresponding to each target application in the target application set.
- the target application set includes the identifier of at least one target application among the multiple applications installed on the electronic device that has permission to display immersive live streaming.
- the electronic device can locally store permission information corresponding to the immersive live display function.
- This permission information includes a set of target applications and at least one authorized service type for each target application in the set.
- the electronic device if it is not connected to the network, it can authenticate the application requesting to use the immersive live display function and store the permission information corresponding to that application.
- the permission information corresponding to the application may include an application identifier and at least one service type corresponding to the application.
- the electronic device When the electronic device is connected to the network, it can send the locally authenticated permission information to the system server.
- the immersive service module in the electronic device sends the first information of the first application to the lock screen function module.
- the electronic device when the electronic device enters a locked screen state, if the first service in the first application within the electronic device is running, the electronic device can determine that the first application belongs to the target application set based on the stored permission information corresponding to the immersive live display function. That is, the electronic device determines that the first application has permission to display immersive live content, and that the first service is an authorized service type corresponding to the first application. Then, the electronic device can obtain the first information of the first application.
- This first information includes multimedia content or user interface information related to the first service.
- the first information may be information about multimedia content such as images, videos, and audio sent by the first application or its corresponding application server to the immersive service module. Another example is information about the user interface related to the first task of the first application, drawn by the first application.
- the first information of the first application can be sent by the first application to the immersive service module through the immersive service interface, or the first information of the first application can be sent by the application server to the system server, and then sent by the system server to the immersive server module through the immersive cloud service proxy in the electronic device.
- S503 may include the following steps:
- S503a The first application sends its first information to the immersive service module through the immersive service interface.
- S503 may include the following steps:
- S503b The first application sends a request message to the application server.
- the request message sent by the first application to the application server is used to request the application server to generate an immersive live stream corresponding to the first service currently running in the first application.
- S503c The application server sends the first information of the first application to the system server.
- S503d The system server sends the first information of the first application to the immersive service module through the immersive cloud service agent of the electronic device.
- the immersive module in the electronic device can send the information of the first content of the first application to the lock screen function module in the electronic device to request the lock screen function module to display the immersive live broadcast on the lock screen interface.
- the first application can send the first information to the immersive service module in the electronic device to request the creation of a first window for displaying the immersive live stream.
- This first window can be an extension component in the lock screen interface.
- the immersive service module can send a request message to the lock screen function module to request the lock screen function module to create the first window in the lock screen interface.
- the lock screen function module creates the first window in the lock screen interface, it can send a request message to the first application.
- This request message includes parameters of the first window, such as the position information and size information of the first window. This request message is used to request the first information of the first application.
- the first application draws the user interface corresponding to the first service based on the parameters of the first window, it can send the user interface of the first service to the lock screen function module.
- the electronic device can perform risk detection on the first information. For example, the electronic device can determine whether there are sensitive words in the text of the first information or whether the first information includes illegal content such as advertisements. After the risk detection of the first information passes, the information is displayed according to the first information, thereby ensuring that the electronic device can control the content displayed on the lock screen interface and prevent the display of advertisements and other content on the lock screen interface from affecting the user experience.
- the risk detection step can also be performed by the system server.
- the system server after receiving the first information of the first application sent by the application server, the system server can perform risk detection on the first information. After the risk detection of the first information passes, the system server then executes S503d to send the first information that has passed the risk detection to the electronic device.
- the lock screen function module of the electronic device displays the first content of the first application in the first window of the lock screen interface based on the first information.
- the first window can be a non-full-screen window in the lock screen interface.
- the electronic device can display an immersive live stream of the first application in the first window, that is, display the first content of the first application in the first window.
- the first window may be located on the layer where the lock screen interface is located.
- Figure 6 is a schematic diagram of a layer position relationship provided in this embodiment. Referring to Figure 6, the layer where the lock screen interface is located is above the layers where the wallpaper, desktop, and application windows are located, while the first window used to display the immersive live stream is located in the layer where the lock screen interface is located.
- Figure 7 is a schematic diagram of an electronic device displaying an immersive live stream according to an embodiment of this application.
- the electronic device displays flight images of a transportation application in the first window 701 of the lock screen interface;
- the electronic device displays a user interface for recording running in a sports application in the first window 702 of the lock screen interface.
- an electronic device displays an immersive live stream on the lock screen
- the immersive live stream will no longer be displayed after the restart, or other images can be used to cover the immersive live stream on the lock screen.
- the electronic device can continue to display the immersive live stream, thereby ensuring user information security.
- the electronic device when the electronic device displays the first content of the first application in the first window of the lock screen interface, the user can trigger an operation in the first window.
- the electronic device can pass the operation triggered by the user to the first application.
- the first application responds to the operation triggered by the user, draws the second content, and sends the second content to the immersive service module.
- the immersive service module can call the lock screen function module to display the second content in the first window, thereby refreshing the content displayed in the first window.
- electronic devices can set application permissions for multiple applications. These permissions include supported user operations when displaying immersive live streams.
- application permissions for displaying immersive live streams on an electronic device could include: supporting clicks to jump to full-screen application interfaces, supporting swipe operations, etc.
- FIG. 8 is a flowchart illustrating a user operation response process in immersive live streaming according to an embodiment of this application.
- the immersive service module, the ability manager service (AMS), the lock screen function module, and the first application in the electronic device can execute the following steps:
- the immersive service module In response to a click action triggered by the user in the first window, the immersive service module sends a request message to AMS.
- the immersive service module sends a request message to AMS to request the launch of the first application.
- S802 AMS sends a startup command to the first application.
- S803 The first application runs and displays the user interface corresponding to the first task.
- the immersive service module determines that the application permissions of the first application include permissions that support swipe operations.
- the immersive service module sends the parameters related to the swipe operation to the first application.
- the first application determines the third content of the first application based on the parameters related to the sliding operation.
- the third content is the content displayed after the first content has been shifted according to the distance corresponding to the sliding operation.
- S807 The first application sends the third content to the lock screen function module.
- the lock screen function module displays third content in the first window.
- the electronic device can also display live notifications of applications on the lock screen interface.
- live notifications on the lock screen interface can have various display styles, such as capsule style, card style, etc.
- Some applications' services on the electronic device can be displayed on the lock screen interface in the form of live notifications, or in an immersive live format.
- Figure 9 is a schematic diagram of the lock screen interface of an electronic device provided in an embodiment of this application.
- Figure 9 uses the ride-hailing service in a ride-hailing application as an example.
- the electronic device can display a capsule-style live notification 901 for the ride-hailing application
- the electronic device can display a card-style live notification 902 for the ride-hailing application.
- the electronic device when displaying the card-style live notification 902 for the ride-hailing application, can also display a notification message on the lock screen interface.
- the electronic device can display an immersive live 903 for the ride-hailing application.
- the electronic device can determine whether to display live notifications or immersive live content on the lock screen based on user habits or usage scenarios. For example, when the electronic device is in working mode, to reduce disturbance to the user, the electronic device can display live notifications for ride-hailing apps in a capsule style as shown in Figure 9(a).
- This application embodiment also provides a method for live notification and immersive live switching for the same service in the same application. For example, for a first task running in a first application, when the electronic device displays an immersive live, in response to a first operation triggered by the user in the immersive live, the electronic device triggers unlocking. After successful unlocking, the electronic device can display the user interface of the first task in the first application.
- the first operation can be a click operation triggered by the user in a non-control display area in the first window.
- the electronic device can switch to displaying a live stream notification in the card style corresponding to the first task.
- the second action could be a click action triggered by the user in any location in the lock screen interface other than the first window, or the second action could be a side swipe or up swipe action triggered by the user in the first window, wherein the side swipe action includes left swipe and right swipe.
- the electronic device When an electronic device displays an immersive live stream, in response to a third action triggered by the user within that immersive live stream, the electronic device can switch to displaying a capsule-style live stream notification corresponding to the immersive live stream.
- the third action could be a swipe-down action triggered by the user in the first window.
- the electronic device can switch to displaying a card-style live notification.
- the fifth action could be a click action triggered by the user in a non-control display area of the live notification, or the second action could be a swipe action triggered by the user on the capsule-style live notification.
- the electronic device can switch to displaying the immersive live content corresponding to the first task.
- the sixth action can be a click action triggered by the user on the first control, or a long press action triggered by the user in the non-control display area of the live notification.
- the first control can be the application icon or image of the first application in the capsule-style live notification.
- the electronic device can switch to displaying an immersive live feed.
- the seventh action can be a click or long press triggered by the user in a non-control display area of the live notification, or the seventh action can be a click triggered by the user on a second control.
- the second control can be the application icon or image of the first application in the card-style live notification.
- an electronic device displays a card-style live notification
- the electronic device in response to an eighth action triggered by the user in that live notification, can switch to displaying a capsule-style live notification, such as a swipe-down action triggered by the user in that live notification.
- the electronic device displays a capsule-style live notification of a ride-hailing app as shown in Figure 9(a)
- the electronic device if the user clicks on any location in the area other than the app icon in the live notification or triggers an up swipe operation in the live notification, the electronic device will switch to displaying a card-style live notification of a ride-hailing app as shown in Figure 9(b); if the user clicks on the app icon in the live notification or long-presses the app icon, the electronic device will switch to displaying an immersive live notification as shown in Figure 9(c).
- an electronic device displays a card-style live notification as shown in Figure 9(b)
- the electronic device switches to displaying an immersive live feed of a ride-hailing application as shown in Figure 9(c); if the user triggers a swipe-down operation in the live notification, the electronic device switches to displaying a capsule-style live notification as shown in Figure 9(a).
- the electronic device displays the immersive live stream shown in Figure 9(c)
- the electronic device triggers an unlock operation and displays the user interface of the ride-hailing application after successful unlocking
- the electronic device switches to displaying a card-style live stream notification as shown in Figure 9(b); if the user triggers a swipe-down operation in the first window, the electronic device switches to displaying a capsule-style live stream notification as shown in Figure 9(a).
- multiple live notifications may exist.
- the electronic device displays a capsule-shaped live notification, it can display one of the multiple live notifications.
- the electronic device switches to displaying the immersive live stream corresponding to the first live notification, and displays the capsule-shaped second live notification in the area used to display the capsule-shaped live notification.
- the fifth operation can be, for example, a swipe-up operation triggered by the user in the first live notification.
- the capsule-shaped live notification displayed on the lock screen can be the highest priority live notification, or the live notification received latest, or it can be determined from multiple live notifications in other ways. This application embodiment does not limit this.
- FIG 10 is a schematic diagram of the lock screen interface of an electronic device provided in an embodiment of this application.
- the electronic device there are multiple live notifications in the current electronic device, including live notifications corresponding to ride-hailing tasks and live notifications corresponding to food delivery tasks. Due to the limited display area, the electronic device only displays one capsule-shaped live notification in the lock screen interface.
- the electronic device displays live notification 1001 corresponding to ride-hailing tasks.
- the electronic device switches to display the lock screen interface shown in Figure 10(b).
- the electronic device displays an immersive live notification 1002 corresponding to ride-hailing tasks in the lock screen interface, and displays a capsule-shaped live notification 1003 corresponding to food delivery tasks in the display area used to display capsule-shaped live notifications.
- the user can trigger a sixth action in the first card-style live notification.
- the electronic device can switch between displaying the immersive live notification corresponding to the first live notification and displaying the capsule-style second live notification.
- the sixth action can be, for example, a long press action triggered by the user in a non-control area of the first live notification.
- the lock screen of the electronic device includes a live notification 1004 for a ride-hailing task and a live notification 1005 for a food delivery task.
- the electronic device can switch to display the lock screen shown in Figure 10(d).
- the electronic device displays an immersive live notification 1006 for the food delivery task in the lock screen, and displays a capsule-style live notification 1007 for the ride-hailing task in the display area used to display capsule-style live notifications.
- the lock screen state of the electronic device also includes an Always-On Display (AOD) scenario.
- AOD Always-On Display
- the lock screen display method provided in the embodiments of this application can also be applied to displaying immersive live content in the AOD interface.
- the AOD scenario can also be called an always-on display scenario.
- the electronic device can display the AOD interface, which can also be called the always-on interface.
- the lock screen function module of the electronic device can send the lock screen interface information to the AOD module.
- the lock screen interface information may include the lock screen background, lock screen elements, and immersive live content information.
- the AOD module can display immersive live content in the AOD interface based on the received lock screen interface information.
- the display effect of the AOD interface can be seen in the above embodiments of the effect of displaying immersive live content in the lock screen interface, such as the display effect of displaying immersive live content in the lock screen interface shown in Figure 8.
- the AOD module in the electronic device can receive the first information of the first application sent by the system server through the immersive cloud service agent.
- the AOD module can create a second window in the AOD interface according to the first information of the first application and display the first content of the first application in the second window, thereby realizing the display of immersive live in the AOD interface.
- the functions performed by the AOD module can refer to the functions performed by the immersive service module and the lock screen function module in the above embodiments, and the repeated parts will not be described again.
- the electronic device when the electronic device is in AOD display mode, the electronic device only displays the layer where the AOD interface is located on the screen.
- the electronic device displays immersive live content in the first window of the AOD interface, the first window is also located in the layer where the AOD interface is located.
- FIG 11 is a schematic diagram of an immersive live stream where the first content is an image, provided by an embodiment of this application.
- the business type of the first application is a business type with a low update frequency, such as travel information, sports scores, package pickup information, meeting notifications, or ticket information
- the immersive live stream displayed in the first window of the first application can be an image.
- FIG 12 is a schematic diagram of a lock screen display method provided in an embodiment of this application.
- this example uses an image as an example of the first content of the first application displayed in the first window of the lock screen interface on an electronic device.
- the desktop of the electronic device can display a lock screen interface when the screen is locked.
- the lock screen interface includes lock screen elements and a lock screen background. Lock screen elements can be, for example, a clock control, a calendar control, etc.
- the lock screen interface may also include a first window, which is used to display the immersive live feed of the application.
- the lock screen interface may also include live notifications of the application.
- the live feed management module of the electronic device can be used to manage the live notifications and immersive live feeds displayed on the lock screen interface.
- the live feed management module can be a sub-module of the lock screen function module in the electronic device shown in Figure 2
- the immersive service module can be the Advanced Notification Service (ANS) module in the operating system.
- ANS Advanced Notification Service
- the first application calls the immersive service interface to send business image information to the immersive service module.
- the first application belongs to the target application set capable of immersive live display, and the business type corresponding to the business image is the authorized business type of the first application.
- the immersive service module performs risk detection on the business image. After the risk detection is passed, the immersive service module sends the business image information of the first application to the immersive live management module of the system user interface (system UI). The immersive live management module can then display the business image of the first application in the first window of the lock screen interface.
- the first application when the electronic device enters the lock screen state, the first application sends a request message to the application server.
- This request message requests the application server to generate an immersive live stream corresponding to the first service currently running in the first application.
- the system server's push service receives the service image information of the first application sent by the application server.
- the first application belongs to the target application set capable of immersive live stream display, and the service type corresponding to the service image is the authorized service type of the first application.
- the push service can perform risk detection on the service image. After the risk detection is passed, the push service can send the service image information of the first application to the immersive service module of the electronic device through the immersive cloud service proxy.
- the immersive service module then sends the service image information of the first application to the immersive live stream management module, which can display the service image of the first application in the first window of the lock screen interface.
- the information sent by the push service or the first application to the immersive service module for the business image can be the business image itself or the URL of the business image located on the local device.
- the system UI obtains the image URL, it can retrieve the image from the resource library.
- FIG. 13 is a schematic diagram of an immersive live stream where the first content is the user interface, provided by an embodiment of this application.
- the business type of the first application is a business type with a high update frequency, such as map navigation, delivery information, sports and health, or ride-hailing
- the immersive live stream displayed in the first window of the first application can be the user interface.
- FIG 14 is a schematic diagram of a lock screen display method provided in an embodiment of this application.
- this example takes the first content of the first application displayed in the first window of the lock screen interface of the electronic device as the user interface.
- the desktop of the electronic device can display a lock screen interface in the lock screen state.
- the lock screen interface includes lock screen elements and a lock screen background.
- the lock screen elements can be, for example, a clock control, a calendar control, etc.
- the lock screen interface may also include a first window, which is used to display the immersive live stream of the application.
- the lock screen interface may also include live notifications of the application.
- the live stream management module of the electronic device can be used to manage the live notifications and immersive live streams displayed in the lock screen interface.
- the first window in the lock screen interface can be an extended component used to display the application interface.
- the live stream management module can manage the position, size, and other parameters of the extended component.
- the live stream management module can be a sub-module of the lock screen function module in the electronic device shown in Figure 2, and the immersive service module can be the ANS module in the operating system.
- the first application can request the immersive service module to create a first window for displaying the immersive live stream.
- This first window can be an extension component in the lock screen interface.
- the immersive service module can send a request message to the live stream management module to request the live stream management module to create the first window in the lock screen interface.
- the live stream management module After the live stream management module creates the first window in the lock screen interface, it can send a request message to the first application.
- This request message includes parameters of the first window, such as its position and size.
- the first application draws the user interface corresponding to the first service and then sends the user interface of the first service to the extension component in the lock screen interface through the system UI.
- the extension component in the lock screen interface can display the user interface of the first application, thereby realizing the display of the user interface of the first application in the first window of the lock screen interface.
- FIG. 15 is a flowchart of a lock screen display method provided by this application. Referring to Figure 15, the method includes the following steps:
- S1501 The electronic device enters the screen lock state, and the first service in the first application of the electronic device is running.
- the first application in the electronic device sends the first information of the first application to the first service module through the first service interface.
- the first information includes multimedia content or user interface information related to the first service
- the first service interface can be the immersive service interface in the electronic device shown in Figure 2
- the first service module can be the immersive service module in the electronic device shown in Figure 2.
- S1502 The first service module in the electronic device sends the first information to the screen lock function module.
- the first window created by the lock screen function module in the lock screen interface can be a non-full-screen window, such as the first window 701 or the first window 702 in the embodiment shown in Figure 7.
- the screen lock module in the electronic device displays the first content of the first application in the first window based on the first information.
- the first content displayed in the first window by the lock screen function module according to the first information can be the immersive live broadcast described in the above embodiment.
- the first content of the first application can be multimedia content or user interface.
- the first content in the first window of the lock screen interface shown in Figure 7(a) is an image; the first content in the first window of the lock screen interface shown in Figure 7(b) is a user interface.
- the first application in the electronic device before the first application in the electronic device sends its first information to the first server module through the first service interface, the first application in the electronic device sends a first request message to the system server.
- This first request message requests the system server for lock screen display permission for the first service of the first application.
- the first application in the electronic device receives a response message from the system server, which instructs the system server to approve the permission request from the first application.
- the lock screen display permission includes immersive live view permission.
- the electronic device further includes a service proxy module.
- the first service module in the electronic device receives second information sent by the server through the service proxy module, the second information including multimedia content related to the first service.
- the first service module in the electronic device sends the second information to the lock screen function module.
- the lock screen function module in the electronic device displays the second content of the first application in the first window according to the second information.
- the service proxy module can be an immersive cloud service proxy as shown in Figure 2.
- the first service module in the electronic device before the first service module in the electronic device sends the first information to the lock screen function module, the first service module in the electronic device performs risk detection on the first information, and only sends the first information to the lock screen function module after determining that the risk detection of the first information has passed.
- the electronic device after the lock screen function module in the electronic device displays the first content of the first application in the first window according to the first information, in response to a first operation triggered by the user in the first window, the electronic device switches to an unlocked state, runs the first application, and displays the user interface of the first task; wherein, the first operation is a click operation triggered by the user in the first window.
- the first operation can be a click operation triggered by the user in a non-control display area of the first window.
- the method further includes: in response to a second operation triggered by the user in the first window, the electronic device stops displaying the first content of the first application; the lock screen function module of the electronic device displays a card-style live notification corresponding to the first task in the lock screen interface; wherein, the second operation is a click operation triggered by the user at any position in the area outside the first window in the lock screen interface, or the second operation is a swipe operation triggered by the user in the first window.
- the second operation can be a click operation triggered by the user at any position in the area outside the first window in the lock screen interface, or the second operation can be a side swipe or an up swipe operation triggered by the user in the first window, wherein the side swipe operation includes a left swipe operation and a right swipe operation.
- the electronic device stops displaying the first content of the first application; the lock screen function module of the electronic device displays a capsule-shaped live notification corresponding to the first task in the lock screen interface; wherein, the third operation is a swipe operation triggered by the user in the first window.
- the third operation can be a swipe-down operation triggered by the user in the first window.
- the lock screen function module of the electronic device displays the first content of the first application in the first window according to the first information
- the lock screen function module of the electronic device displays the third content of the first application in the first window; wherein, the fourth operation is a swipe operation triggered by the user in the first window, and the third content is sent to the lock screen function module by the first application after updating the first content according to parameters related to the fourth operation.
- the screen lock function module of the electronic device determines that the permission information of the first application includes a first permission before displaying the third content of the first application in the first window.
- the first permission is used to indicate that the responsive swipe operation is supported when displaying the content corresponding to the first task in the screen lock interface.
- the electronic device further includes an always-on display module.
- the lock screen function module in the electronic device displays the first content of the first application in the first window according to the first information
- the lock screen function module in the electronic device sends information about the lock screen interface to the always-on display module.
- the information about the lock screen interface includes information about the first content of the first application displayed in the first window.
- the always-on display module of the electronic device displays the first content of the first application in a second window of the always-on display interface according to the information about the lock screen interface.
- the always-on display module can be the AOD module in the electronic device shown in Figure 2.
- the electronic device further includes an always-on display module.
- the method further includes: when the electronic device enters the always-on display state, the always-on display module in the electronic device receives the first information sent by the system server through the service proxy module; the always-on display module in the electronic device displays the first content of the first application in a second window of the always-on display interface according to the first information.
- the first content is multimedia content, as shown in the lock screen interface of Figure 11.
- the service type of the first application is a service type with a low update frequency, such as travel information, sports scores, package pickup information, meeting notifications, or ticket information
- the immersive live feed displayed in the first window of the first application can be an image.
- the service type of the first business is map navigation, delivery information, sports and health, or ride-hailing
- the first content is a user interface.
- the immersive live feed displayed in the first window of the first application can be a user interface.
- the first content when the first content is a user interface, the first content includes at least one of text controls, icon controls, and multimedia controls.
- the first content when the first content is a user interface, the first content includes text controls such as "Picking up, expected to arrive in 5 minutes" and "License plate number XXXXX white sedan".
- the first content may also include icon controls such as user avatars, and may also include map image controls.
- this application also provides a server, including multiple functional modules; the multiple functional modules interact to implement the functions performed by the system server or application server in the various methods described in the embodiments of this application. For example, executing S503c by the application server in the embodiment shown in FIG5, or executing S503d by the system server in the embodiment shown in FIG5.
- the multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementations.
- this application also provides a server, which includes at least one processor and at least one memory, wherein the at least one memory stores computer program instructions.
- the at least one processor performs the functions performed by the server in the various methods described in the embodiments of this application. For example, executing S503c by the application server in the embodiment shown in FIG5, or, for example, executing S503d by the system server in the embodiment shown in FIG5.
- this application also provides an electronic device, which includes multiple functional modules. These multiple functional modules interact to implement the functions performed by the electronic device in the methods described in the embodiments of this application.
- the electronic device may include the immersive service interface, immersive service module, immersive cloud service proxy, and screen lock module shown in FIG5.
- the multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and can be arbitrarily combined or divided based on specific implementations.
- this application also provides an electronic device, which includes at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the electronic device is running, the at least one processor performs the functions performed by the electronic device in the various methods described in the embodiments of this application.
- this application also provides a computer program product containing instructions, which, when run on a computer, causes the computer to execute the methods described in the embodiments of this application.
- this application also provides a computer-readable storage medium storing a computer program, which, when executed by a computer, causes the computer to perform the methods described in the embodiments of this application.
- this application also provides a chip for reading computer programs stored in a memory to implement the methods described in the embodiments of this application.
- this application provides a chip system including a processor for supporting a computer device in implementing the methods described in the embodiments of this application.
- the chip system further includes a memory for storing necessary programs and data of the computer device.
- This chip system may be composed of chips or may include chips and other discrete devices.
- this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
- computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
- These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and/or one or more block diagrams.
- These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable apparatus, provide steps for implementing the functions specified in one or more flowcharts and/or one or more block diagrams.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本申请提供一种锁屏显示方法及电子设备。在该方法中,电子设备进入锁屏状态,且电子设备的第一应用中的第一业务处于运行状态,电子设备中的第一应用通过第一服务接口向第一服务模块发送第一应用的第一信息,第一信息包括与第一业务相关的多媒体内容或用户界面的信息;电子设备中的第一服务模块向锁屏功能模块发送第一信息;锁屏功能模块在锁屏界面中创建第一窗口,锁屏功能模块根据第一信息在第一窗口中显示第一应用的第一内容。通过该方案,电子设备能够为应用提供在锁屏界面中显示应用内容的功能,从而用户在电子设备进入锁屏状态时依然可以在锁屏界面中查看正在运行的应用提供的显示内容,丰富电子设备的显示场景,提升用户体验。
Description
相关申请的交叉引用
本申请要求在2024年06月20日提交中华人民共和国国家知识产权局、申请号为202410805027.1、申请名称为“一种锁屏显示方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及终端技术领域,尤其涉及一种锁屏显示方法及电子设备。
随着终端技术的发展,手机、平板电脑等电子设备已经广泛应用于用户的日常工作、生活中,电子设备能够为用户提供的功能也更加丰富,用户可以通过电子设备中安装的各类应用体验各应用提供的功能和服务,而用户使用电子设备的场景也不再局限于电子设备在亮屏状态下显示主界面、应用界面等场景,如电子设备可以在锁屏界面中显示通知消息,以及时提醒用户查看与用户相关的信息,而如何为用户提供更多场景的交互体验成为终端领域较为关注的问题之一。
本申请提供一种锁屏显示方法及电子设备,用以提供一种在锁屏界面中显示应用相关内容的方案。
第一方面,本申请提供一种锁屏显示方法,该方法可以由电子设备执行,电子设备包括第一服务模块、第一服务接口和锁屏功能模块,该方法包括:所述电子设备进入锁屏状态,且所述电子设备的第一应用中的第一业务处于运行状态,所述电子设备中的所述第一应用通过所述第一服务接口向所述第一服务模块发送所述第一应用的第一信息,所述第一信息包括与所述第一业务相关的多媒体内容或用户界面的信息;所述电子设备中的所述第一服务模块向所述锁屏功能模块发送所述第一信息;所述电子设备中的所述锁屏功能模块在接收到所述第一信息之后,在锁屏界面中创建第一窗口;所述电子设备中的所述锁屏功能模块根据所述第一信息在所述第一窗口中显示所述第一应用的第一内容。
在以上方法中,电子设备能够为应用提供在锁屏界面中显示应用内容的功能,电子设备中的第一应用可以通过电子设备提供的第一服务接口将第一应用的第一信息发送给第一服务模块,第一服务模块将第一信息发送给锁屏功能模块后,锁屏功能模块能够在锁屏界面的第一窗口中显示第一应用的第一内容,从而在电子设备进入锁屏状态后,用户依然可以在锁屏界面中查看正在运行的应用提供的显示内容,丰富电子设备的显示场景,提升用户体验。
在一种可能的设计中,在所述电子设备中的所述第一应用通过所述第一服务接口向所述第一服务器模块发送所述第一应用的第一信息之前,所述方法还包括:所述电子设备中的所述第一应用向系统服务器发送第一请求消息,所述第一请求消息用于向系统服务器申请所述第一应用的所述第一业务的锁屏显示权限;所述电子设备中的所述第一应用接收所述系统服务器发送的响应消息,所述响应消息用于指示所述系统服务器通过所述第一应用的权限申请。通过该设计,当电子设备中的第一应用存在锁屏显示需求时,可以向系统服务器申请第一应用的锁屏显示权限,在系统服务器通过第一应用的权限申请后,再在锁屏界面中显示第一应用的第一内容,从而实现对第一应用的管控,保证电子设备的锁屏界面中显示内容的可控性。
在一种可能的设计中,所述电子设备还包括服务代理模块,所述方法还包括:所述电子设备中的所述第一服务模块接收服务器通过所述服务代理模块发送的第二信息,所述第二信息包括与所述第一业务相关的多媒体内容;所述电子设备中的所述第一服务模块向所述锁屏功能模块发送所述第二信息;所述电子设备中的所述锁屏功能模块根据所述第二信息在所述第一窗口中显示所述第一应用的第二内容。通过该设计,电子设备还可以提供服务代理模块,电子设备的第一服务模块可以接收服务器通过服务代理模块发送的第一应用的信息,实现服务器向电子设备推送锁屏界面中显示的第一应用的内容的方式,节省电子设备的算力。
在一种可能的设计中,在所述电子设备中的所述第一服务模块向所述锁屏功能模块发送所述第一信息之前,所述方法还包括:所述电子设备中的所述第一服务模块对所述第一信息进行风险检测,确定对所述第一信息的风险检测通过。通过该设计,保证电子设备能够管控锁屏界面中显示的内容,防止锁屏界面中显示广告等内容影响用户体验。
在一种可能的设计中,所述电子设备中的所述锁屏功能模块根据所述第一信息在所述第一窗口中显示所述第一应用的第一内容之后,所述方法还包括:响应于用户在所述第一窗口中触发的第一操作,所述电子设备切换至解锁状态,运行所述第一应用并显示所述第一任务的用户界面;其中,所述第一操作为用户在所述第一窗口中触发的点击操作。通过该设计,电子设备在锁屏界面显示第一任务的第一内容时,用户可以触发电子设备运行第一应用并显示第一应用的用户界面,从而电子设备可以直接在解锁状态下继续显示第一应用的用户界面,无需用户手动触发启动第一应用即可继续查看第一应用的内容,提升用户体验。
在一种可能的设计中,所述电子设备中的所述锁屏功能模块根据所述第一信息在所述第一窗口中显示所述第一应用的第一内容之后,所述方法还包括:响应于用户在所述第一窗口中触发的第二操作,所述电子设备停止显示所述第一应用的第一内容;所述电子设备的所述锁屏功能模块在所述锁屏界面中显示所述第一任务对应的卡片样式的实况通知;其中,所述第二操作为用户在所述锁屏界面中除所述第一窗口之外的区域中的任意位置触发的点击操作,或者所述第二操作为所述用户在所述第一窗口中触发的滑动操作。
在一种可能的设计中,所述电子设备中的所述锁屏功能模块根据所述第一信息在所述第一窗口中显示所述第一应用的第一内容之后,所述方法还包括:响应于用户在所述第一窗口中触发的第三操作,所述电子设备停止显示所述第一应用的第一内容;所述电子设备的所述锁屏功能模块在所述锁屏界面中显示所述第一任务对应的胶囊样式的实况通知;其中,所述第三操作为用户在所述第一窗口中触发的滑动操作。
通过以上设计,当电子设备在第一窗口显示第一应用的第一内容时,用户触发操作以切换显示第一任务对应的卡片样式的实况通知或胶囊样式的实况通知,从而能够在电子设备支持显示的多种样式的实况通知和沉浸式实况中进行切换,满足用户在不同显示场景下的不同需求。
在一种可能的设计中,所述电子设备中的所述锁屏功能模块根据所述第一信息在所述第一窗口中显示所述第一应用的第一内容之后,所述方法还包括:响应于用户在所述第一窗口中触发的第四操作,所述电子设备的所述锁屏功能模块在所述第一窗口中显示所述第一应用的第三内容;其中,所述第四操作为所述用户在所述第一窗口中触发的滑动操作,所述第三内容为所述第一应用根据所述第四操作相关的参数对所述第一内容更新后发送给所述锁屏功能模块的。通过该设计,用户可以在第一窗口中触发滑动操作以调整第一窗口中显示的内容,例如第一内容为文档、长界面等内容时,用户可以在第一窗口中滑动查看更多内容。
在一种可能的设计中,所述电子设备的所述锁屏功能模块在所述第一窗口中显示所述第一应用的第三内容之前,所述方法还包括:所述电子设备的所述锁屏功能模块确定所述第一应用的权限信息中包括第一权限,所述第一权限用于指示在所述锁屏界面中显示所述第一任务对应的内容时支持响应滑动操作。
在一种可能的设计中,所述电子设备还包括息屏显示模块,在所述电子设备中的所述锁屏功能模块根据所述第一信息在所述第一窗口中显示所述第一应用的第一内容之后,所述方法还包括:当所述电子设备进入息屏显示状态时,所述电子设备中的所述锁屏功能模块向所述息屏显示模块发送所述锁屏界面的信息,所述锁屏界面的信息包括所述第一窗口中显示的所述第一应用的第一内容的信息;所述电子设备的所述息屏显示模块根据所述锁屏界面的信息在息屏界面的第二窗口中显示所述第一应用的第一内容。通过该设计,电子设备中的锁屏功能模块还可以将锁屏界面的信息发送给息屏功能模块,从而息屏功能模块可以在息屏界面中显示第一应用的第一内容,进一步丰富应用内容的显示场景,提升用户体验。
在一种可能的设计中,所述电子设备还包括息屏显示模块,在所述电子设备中的所述锁屏功能模块根据所述第一信息在所述第一窗口中显示所述第一应用的第一内容之后,所述方法还包括:当所述电子设备进入息屏显示状态时,所述电子设备中的所述息屏显示模块接收系统服务器通过所述服务代理模块发送的所述第一信息;所述电子设备中的所述息屏显示模块根据所述第一信息在息屏界面的第二窗口中显示所述第一应用的第一内容。通过该设计,电子设备处于息屏显示状态时,电子设备的息屏功能模块可以接收服务器通过服务代理模块发送的第一应用的第一信息,息屏功能模块可以在息屏界面的第二窗口中显示第一应用的第一内容,从而提供在息屏显示状态下显示应用内容的显示方案,满足用户在电子设备处于息屏显示状态时想要了解应用信息的需求。
在一种可能的设计中,所述第一业务的业务类型为出行信息、赛事比分、会议通知、票据信息、取件信息时,所述第一内容为多媒体内容;所述第一业务的业务类型为地图导航、配送信息、运动健康、打车时,所述第一内容为用户界面。
在一种可能的设计中,所述第一内容为用户界面时,所述第一内容包括文字控件、图标控件和多媒体控件中的至少一项。
第二方面,本申请提供一种锁屏显示方法,该方法可以由电子设备执行,电子设备包括第一服务模块、服务代理模块和锁屏功能模块,该方法包括:所述电子设备进入锁屏状态,且所述电子设备的第一应用中的第一业务处于运行状态,所述电子设备中的所述第一服务模块接收服务器通过所述服务代理模块发送的第二信息,所述第二信息包括与所述第一业务相关的多媒体内容;所述电子设备中的所述第一服务模块向所述锁屏功能模块发送所述第二信息;所述电子设备中的所述锁屏功能模块根据所述第二信息在所述第一窗口中显示所述第一应用的第二内容。
第三方面,本申请提供一种电子设备,所述电子设备包括多个功能模块;所述多个功能模块相互作用,实现上述第一方面及其各实施方式中电子设备所执行的方法。所述多个功能模块可以基于软件、硬件或软件和硬件的结合实现,且所述多个功能模块可以基于具体实现进行任意组合或分割。
第四方面,本申请提供一种电子设备,包括至少一个处理器和至少一个存储器,所述至少一个存储器中存储计算机程序指令,所述电子设备运行时,所述至少一个处理器执行上述第一方面及其各实施方式中电子设备执行的方法。
第五方面,本申请还提供一种包含指令的计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述任一方面及其各实施方式中的服务器或电子设备执行的方法。
第六方面,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序被计算机执行时,使得所述计算机执行上述任一方面及其各实施方式中的服务器或电子设备执行的方法。
第七方面,本申请还提供一种芯片,所述芯片用于读取存储器中存储的计算机程序,执行上述任一方面及其各实施方式中的服务器或电子设备执行的方法。
第八方面,本申请还提供一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现上述任一方面及其各实施方式中的服务器或电子设备执行的方法。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。
上述第二方面至第八方面中任一方面的技术方案可以达到的技术效果,可以参照上述第一方面的技术方案可以达到的技术效果描述,重复之处不予赘述。
图1为本申请实施例提供的一种电子设备在锁屏界面显示通知消息的示意图;
图2为本申请实施例提供的一种锁屏显示方法适用的应用场景示意图;
图3为本申请实施例提供的一种电子设备的结构示意图;
图4为本申请实施例提供的一种电子设备的软件结构框图;
图5为本申请实施例提供的一种锁屏显示方法的示意图;
图6为本申请实施例提供的一种图层位置关系的示意图;
图7为本申请实施例提供的一种电子设备显示沉浸式实况的示意图;
图8为本申请实施例提供的一种沉浸式实况响应用户操作的流程示意图;
图9为本申请实施例提供的一种电子设备的锁屏界面的示意图;
图10为本申请实施例提供的一种电子设备的锁屏界面的示意图;
图11为本申请实施例提供的一种第一内容为图片的沉浸式实况的示意图;
图12为本申请实施例提供的一种锁屏显示方法的示意图;
图13为本申请实施例提供的一种第一内容为用户界面的沉浸式实况的示意图;
图14为本申请实施例提供的一种锁屏显示方法的示意图;
图15为本申请实施例提供的一种锁屏显示方法的流程图。
为了使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施例作进一步地详细描述。其中,在本申请实施例的描述中,以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。
应理解,本申请实施例中“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一(项)个”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a、b或c中的至少一项(个),可以表示:a,b,c,a和b,a和c,b和c,或a、b和c,其中a、b、c可以是单个,也可以是多个。
随着终端技术的发展,电子设备能够提供给用户的显示方式和交互场景也日益丰富,如电子设备不再局限于在解锁后的亮屏状态下显示内容,电子设备在锁屏状态下,当接收到通知消息时,电子设备可以在锁屏界面或全天候显示(always on display,AOD)界面中显示通知消息。电子设备能够在锁屏界面中显示通知消息,从而电子设备处于锁屏状态时,用户也可以及时获知有待查看的通知消息,而通知消息多数属于被动接收的消息。例如,图1为本申请实施例提供的一种电子设备在锁屏界面显示通知消息的示意图,参考图1,电子设备可以在锁屏界面中显示“信息”应用提醒消息101、社交应用通知消息102等。
可见,用户在锁屏状态显示的通知消息上能够查看的内容以及能够触发的操作均有限,在此基础上,如何为用户提供更多场景的交互体验成为终端领域较为关注的问题之一。
基于上述问题,本申请实施例提供一种锁屏显示方法,用于提供一种在锁屏界面中显示应用相关内容的方案。如图2为本申请实施例提供的一种锁屏显示方法适用的应用场景示意图,参考图2,该应用场景包括电子设备、系统服务器,可选地,该应用场景还包括应用服务器。在本申请实施例中,电子设备在锁屏界面中显示应用内容可以称为显示“沉浸式实况”,如图2所示,电子设备中包括沉浸式服务模块,沉浸式服务模块可以为电子设备中安装的应用提供沉浸式服务接口,该接口又可以称为沉浸式服务工具(kit),该沉浸式服务kit可以为电子设备中安装的软件开发工具包(software development kit,SDK)。沉浸式服务模块可以接收应用通过调用沉浸式服务接口发送的应用内容,并与电子设备中的锁屏功能模块交互,从而将应用内容显示在锁屏界面中的第一窗口中。可选地,如图2中电子设备中还可以包括沉浸式云服务代理模块,该沉浸式云服务代理又可以称为推送代理(push agent),用于接收系统服务器推送的应用内容,该沉浸式云服务代理可以将接收到的应用内容发送给沉浸式服务模块,沉浸式服务模块与锁屏功能模块交互,从而将电子设备接收到的系统服务器推送的应用内容显示在锁屏界面中的第一窗口中。
图2所示场景中的系统服务器可以为电子设备提供沉浸式云服务功能,用于为电子设备中安装的应用和应用服务器提供云服务接口,从而使得应用获取在电子设备中显示沉浸式实况的权限,并且沉浸式云服务还可以对沉浸式实况中的应用内容进行风险检测。可选地,本申请实施例中图2所示的系统服务器还可以为用于向电子设备推送消息的推送服务器。
图2所示场景中的应用服务器用于为电子设备中安装的应用提供云服务,在本申请实施中,应用服务器可以通过系统服务器向电子设备发送应用内容,以使电子设备将接收到的应用内容显示在锁屏界面中的第一窗口中。
可选地,在一些实施方式中,系统服务器的功能可以由包括至少一个计算设备的计算设备集群实现,其中,计算设备集群中的至少一个计算设备可以用于提供沉浸式云服务功能,或者,另一些实施方式中,沉浸式云服务功能还可以由独立于系统服务器的至少一个计算设备实现,本申请实施例对此不作限定。
基于图2所示的应用场景,电子设备可以向系统服务器申请注册请求显示沉浸式实况的第一应用及该第一应用对应的至少一个业务类型,系统服务器授权通过后,当电子设备进入锁屏状态时,电子设备确定第一应用中的第一业务处于运行状态,第一业务的业务类型为第一应用对应的已授权业务类型,电子设备中的锁屏功能模块可以在锁屏界面中创建第一窗口,并在第一窗口中显示第一应用的第一内容。可选地,第一应用的第一内容可以为第一应用提供的多媒体内容或第一应用的用户界面,第一应用的第一内容为锁屏功能模块根据第一应用的第一信息确定的,第一信息可以为电子设备中的第一应用通过沉浸式服务接口发送给沉浸式服务模块的,或者第一应用的第一信息可以为应用服务器发送给系统服务器后、系统服务器通过沉浸式云服务代理发送给电子设备中的沉浸式服务模块的。通过该方案,电子设备能够为应用提供在锁屏界面中显示应用内容的功能,从而在用户触发锁屏后,依然可以在锁屏界面中查看正在运行的应用提供的显示内容,丰富电子设备的显示场景,提升用户体验。
可选地,参考图2,电子设备中还可以包括AOD模块,AOD模块可以用于接收锁屏功能模块发送的锁屏界面的信息,从而在电子设备处于AOD显示状态时,在AOD界面中显示锁屏界面中显示的内容。在本申请实施例中,电子设备在进入AOD显示状态后,AOD模块可以接收锁屏功能模块发送的锁屏界面的信息,该锁屏界面的信息中包括沉浸式实况的信息,则AOD模块在接收到锁屏功能模块发送的锁屏界面的信息后,可以在AOD界面中显示沉浸式实况。在一些实施例中,电子设备处于AOD显示状态时,AOD模块还可以接收系统服务器中的沉浸式云服务通过沉浸式云服务代理发送的第一应用的第一信息,AOD模块可以在AOD界面中创建第二窗口,并根据第一应用的第一信息在第二窗口中显示第一内容。
以下介绍电子设备、和用于使用这样的电子设备的实施例。本申请实施例的电子设备可以为平板电脑、手机、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、可穿戴设备等,本申请实施例对电子设备的具体类型不作任何限制。
在本申请一些实施例中,电子设备还可以是还包含其它功能诸如个人数字助理和/或音乐播放器功能的便携式终端设备。便携式终端设备的示例性实施例包括但不限于搭载
或者其它操作系统的便携式终端设备。
图3为本申请实施例提供的一种电子设备100的结构示意图。如图3所示,电子设备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等。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。充电管理模块140用于从充电器接收充电输入。电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
显示屏194用于显示应用的显示界面,例如显示电子设备100上安装的应用的显示页面等。显示屏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的正整数。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,以及至少一个应用程序的软件代码等。存储数据区可存储电子设备100使用过程中所产生的数据(例如拍摄的图像、录制的视频等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将图片,视频等文件保存在外部存储卡中。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
其中,传感器模块180可以包括压力传感器180A,加速度传感器180B,触摸传感器180C等。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。
触摸传感器180C,也称“触控面板”。触摸传感器180C可以设置于显示屏194,由触摸传感器180C与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180C用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180C也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现与电子设备100的接触和分离。
可以理解的是,图3所示的部件并不构成对电子设备100的具体限定,电子设备还可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。此外,图3中的部件之间的组合/连接关系也是可以调整修改的。
图4为本申请实施例提供的一种电子设备的软件结构框图。如图4所示,电子设备的软件结构可以是分层架构,例如可以将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将操作系统分为四层,从上至下分别为应用程序层,应用程序框架层(framework,FWK),运行时(runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包(application package)。如图4所示,应用程序层可以包括相机、设置、皮肤模块、用户界面(user interface,UI)、三方应用程序等。其中,三方应用程序可以包括图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等。在本申请实施例中,应用程序层可以包括沉浸式服务接口,电子设备中安装的应用可以通过沉浸式服务接口使用电子设备的沉浸式实况的显示功能。
电子设备显示的通知消息可以划分为实况通知和非实况通知两种类型,其中,实况通知为对时效性要求较高的通知消息,如打车任务、外卖任务等相关的通知消息,非实况通知为对时效性要求不高的通知消息,如社交应用通知消息,系统版本更新消息等。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层可以包括一些预先定义的函数。如图4所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器,沉浸式服务模块、沉浸式云服务代理,锁屏功能模块。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
沉浸式服务模块用于为电子设备中安装的应用提供沉浸式实况显示功能,沉浸式服务模块可以接收应用通过沉浸式服务接口发送的应用内容,或接收系统服务器通过沉浸式云服务代理发送的应用内容,并将该应用内容发送给锁屏功能模块,以在锁屏界面中显示应用内容对应的沉浸式实况。
沉浸式云服务代理用于接收系统服务器中的沉浸式云服务发送的应用内容。
锁屏功能模块用于为电子设备绘制锁屏界面,并对锁屏界面中显示的内容、控件进行管理。在本申请实施中,锁屏功能模块可以接收沉浸式服务发送的应用内容,并在锁屏界面中的第一窗口中显示应用内容。
运行时包括核心库和虚拟机。运行时负责操作系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是操作系统的核心库。应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),二维图形引擎(例如:SGL)、图像处理库等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
硬件层可以包括各类传感器,例如加速度传感器、陀螺仪传感器、触摸传感器等。
需要说明的是,图3和图4所示的结构仅作为本申请实施例提供的电子设备的一种示例,并不能对本申请实施例提供的电子设备进行任何限定,具体实施中,电子设备可以具有比图3或图4所示的结构中更多或更少的器件或模块。
下面对本申请实施例提供的锁屏显示方法进行介绍。
在本申请实施例提供的锁屏显示方法中,电子设备提供一种沉浸式实况的显示方案,该沉浸式实况是指电子设备在锁屏状态下显示的应用内容,该应用内容例如可以为应用提供的多媒体内容或者用户界面。基于图2所示的应用场景,图5为本申请实施例提供的一种锁屏显示方法的示意图,参考图5,该方法可以包括以下步骤:
S501:电子设备向系统服务器发送第一请求消息。
其中,第一请求消息用于向系统服务器申请第一应用的至少一个业务类型的锁屏显示权限,其中,锁屏显示权限包括沉浸式实况显示权限。
可选地,本申请实施例中用户可以设置是否打开沉浸式实况显示功能,以及用户可以对电子设备中安装的应用的应用权限进行设置,以设置应用是否能够使用沉浸式实况显示功能,电子设备中安装的应用也可以向电子设备请求使用电子设备的沉浸式实况显示功能。电子设备可以向系统服务器申请注册请求显示沉浸式实况的应用及每个应用对应的至少一个业务类型。其中,当应用支持多种业务类型时,应用在向电子设备请求使用电子设备的沉浸式实况显示功能时,可以在请求消息中携带请求使用电子设备的沉浸式实况显示功能的至少一个业务类型,如应用支持的业务类型可以包括地图、外卖、快递、航班、运动等。
一种可选的实施方式中,当电子设备中的第一应用启动或第一应用中的第一业务运行时,第一应用可以向电子设备发送请求消息,该请求消息用于请求电子设备向系统服务器申请第一应用对应的沉浸式实况显示权限,电子设备可以向系统服务器发送第一请求消息,该第一请求消息中可以包括第一应用的标识、第一业务的标识。通过该方式,可以在当电子设备中的应用存在沉浸式显示需求时,再向系统服务器申请第一应用的沉浸式实况显示权限。
另一种可选的实施方式中,电子设备可以在开机时向系统服务器注册电子设备中能够使用沉浸式实况显示功能的多个应用及每个应用对应的至少一个业务类型,或者,电子设备中安装的应用发生变化时,如安装新应用或卸载应用等,电子设备可以向系统服务器注册电子设备中能够使用沉浸式实况显示功能的多个应用及每个应用对应的至少一个业务类型,又或者,电子设备可以按照预设周期向系统服务器注册电子设备中能够使用沉浸式实况显示功能的多个应用及每个应用对应的至少一个业务类型。通过该方式,可以及时保持电子设备中能够进行沉浸式显示的应用与系统服务器中注册的应用一致,保证后续应用能够正常请求显示沉浸式实况,并且保证安全性。
S502:系统服务器对第一应用校验通过后,向电子设备发送响应消息。
其中,系统服务器向电子设备发送的响应消息用于指示系统服务器通过第一应用的权限申请。
在一些实施例中,系统服务器接收到电子设备发送的第一请求消息,系统服务器对第一应用进行校验通过后,可以向电子设备返回用于指示通过第一应用的权限申请的响应消息。服务器可以存储电子设备对应的权限信息,该权限信息包括目标应用集合及目标应用集合中每个目标应用对应的至少一个已授权业务类型,其中,目标应用集合包括电子设备中安装的多个应用中有权限显示沉浸式实况的至少一个目标应用的标识。
可选地,电子设备可以在本地存储沉浸式实况显示功能对应的权限信息,该权限信息包括目标应用集合及目标应用集合中每个目标应用对应的至少一个已授权业务类型。在一些场景中,若电子设备未接入网络,则电子设备可以对请求使用沉浸式实况显示功能的应用进行鉴权,并且存储该应用对应的权限信息,如该应用对应的权限信息包括应用标识及应用对应的至少一个业务类型,当电子设备接入网络后,电子设备可以将本地鉴权生成的权限信息发送给系统服务器。
S503:当电子设备进入锁屏状态后,电子设备中的沉浸式服务模块获取第一应用的第一信息。
S504:电子设备中的沉浸式服务模块将第一应用的第一信息发送给锁屏功能模块。
一些实施例中,当电子设备进入锁屏状态后,若电子设备中的第一应用中的第一业务处于运行状态,电子设备可以根据存储的沉浸式实况显示功能对应的权限信息确定第一应用属于目标应用集合,即电子设备确定第一应用有权限显示沉浸式实况,且第一业务为第一应用对应的已授权业务类型,则电子设备可以获取第一应用的第一信息,该第一信息包括与第一业务相关的多媒体内容或用户界面的信息。例如,第一信息可以为第一应用或第一应用对应的应用服务器发送给沉浸式服务模块的图片、视频、音频等多媒体内容的信息,又例如,第一信息为第一应用绘制的第一应用的第一任务相关的用户界面的信息。
一种可选的实施方式中,第一信息为第一应用提供的多媒体内容的信息时,第一应用的第一信息可以为第一应用通过沉浸式服务接口发送给沉浸式服务模块的,或者第一应用的第一信息可以为应用服务器发送给系统服务器后,系统服务器通过电子设备中的沉浸式云服务代理发送给的沉浸式服务器模块的。在本申请实施例中,S503可以包括以下步骤:
S503a:第一应用通过沉浸式服务接口向沉浸式服务模块发送第一应用的第一信息。
或者,S503可以包括以下步骤:
S503b:第一应用向应用服务器发送请求消息。
其中,第一应用向应用服务器发送的请求消息用于请求应用服务器生成第一应用当前运行的第一业务对应的沉浸式实况。
S503c:应用服务器向系统服务器发送第一应用的第一信息。
S503d:系统服务器通过电子设备的沉浸式云服务代理向沉浸式服务模块发送第一应用的第一信息。
电子设备中的沉浸式模块通过上述方式接收到第一应用的第一内容的信息后,可以将第一应用的第一内容的信息发送给电子设备中的锁屏功能模块,以请求锁屏功能模块在锁屏界面中显示沉浸式实况。
另一种可选的实施方式中,第一信息为第一应用提供的用户界面的信息时,第一应用可以向电子设备中的沉浸式服务模块发送第一信息,以请求创建用于展示沉浸式实况的第一窗口,该第一窗口可以为锁屏界面中的扩展组件。沉浸式服务模块可以向锁屏功能模块发送请求消息,以请求锁屏功能模块在锁屏界面中创建第一窗口。锁屏功能模块在锁屏界面中创建第一窗口后,可以向第一应用发送请求消息,该请求消息中包括第一窗口的参数,如第一窗口的位置信息、尺寸信息等,该请求消息用于请求获取第一应用的第一信息。第一应用基于第一窗口的参数绘制得到第一业务对应的用户界面后,可以将第一业务的用户界面发送给锁屏功能模块。
一种可选的实施方式中,电子设备在获取到第一应用的第一信息后,可以对第一信息进行风险检测,如电子设备可以判断第一信息中的文字是否存在敏感词、第一信息是否包括如广告等违规内容,在对第一信息进行风险检测通过后,再根据第一信息进行显示,从而保证电子设备能够管控锁屏界面中显示的内容,防止锁屏界面中显示广告等内容影响用户体验。
可选地,当上述的步骤S503包括S503b-S503d时,还可以由系统服务器执行风险检测的步骤。举例来说,在S503c中系统服务器在接收到应用服务器发送的第一应用的第一信息后,可以对第一信息进行风险检测,在对第一信息进行风险检测通过后,系统服务器再执行S503d,将风险检测通过的第一信息发送给电子设备。
S505:电子设备的锁屏功能模块根据第一信息在锁屏界面的第一窗口中显示第一应用的第一内容。
可选地,第一窗口可以为锁屏界面中的非全屏窗口,电子设备可以在第一窗口中显示第一应用的沉浸式实况,也即在第一窗口显示第一应用的第一内容。
可选地,本申请实施例中,第一窗口可以位于锁屏界面所在的图层,例如,图6为本申请实施例提供的一种图层位置关系的示意图。参考图6,锁屏界面所在的图层在壁纸、桌面、应用窗口所在的图层之上,而用于显示沉浸式实况的第一窗口位于锁屏界面所在的图层中。
举例来说,图7为本申请实施例提供的一种电子设备显示沉浸式实况的示意图,参考图7中的(a),电子设备在锁屏界面的第一窗口701中显示交通应用的航班图片;参考图7中的(b),电子设备在锁屏界面的第一窗口702中显示运动应用中的记录跑步用户界面。
可选地,当电子设备在锁屏界面中显示沉浸式实况时,若电子设备重新启动,则电子设备重新启动之后不再显示沉浸式实况,或者使用其他图片遮盖锁屏界面中的沉浸式实况,在用户解锁电子设备、电子设备又进入锁屏状态后,电子设备可以继续显示沉浸式实况,从而保证用户信息安全。
本申请实施例中,电子设备在锁屏界面的第一窗口中显示第一应用的第一内容时,用户可以在第一窗口中触发操作,电子设备可以将用户触发的操作传递给第一应用,第一应用对用户触发操作进行响应,第一应用绘制第二内容,并将第二内容发送给沉浸式服务模块,沉浸式服务模块可以调用锁屏功能模块,以将第二内容显示在第一窗口中,从而实现第一窗口中显示的内容的刷新。
可选地,为了减少沉浸式实况中不规范的用户交互,电子设备可以为多个应用设置应用权限,该应用权限包括显示沉浸式实况时支持的用户操作。例如电子设备显示沉浸式实况时的应用权限可以包括:支持点击跳转全屏显示应用界面、支持滑动操作等。
举例来说,假设电子设备设置的应用权限为支持点击跳转全屏显示应用界面、以及针对沉浸式实况为用户界面时支持滑动操作,如图8为本申请实施例提供的一种沉浸式实况响应用户操作的流程示意图。参考图8,当用户在沉浸式实况中触发操作时,电子设备中的沉浸式服务模块、运行管理服务(ability manager service,AMS)、锁屏功能模块和第一应用可以执行以下步骤:
S801:响应于用户在第一窗口中触发的点击操作,沉浸式服务模块向AMS发送请求消息。
其中,沉浸式服务模块向AMS发送的请求消息用于请求启动第一应用。
S802:AMS向第一应用发送启动指令。
S803:第一应用运行,并显示第一任务对应的用户界面。
S804:响应于用户在第一窗口中触发的滑动操作,沉浸式服务模块确定第一应用的应用权限包括支持滑动操作的权限。
S805:沉浸式服务模块将滑动操作相关的参数发送给第一应用。
S806:第一应用根据滑动操作相关的参数确定第一应用的第三内容。
其中,第三内容为对第一内容根据滑动操作对应的距离平移后的显示内容。
S807:第一应用将第三内容发送给锁屏功能模块。
S808:锁屏功能模块在第一窗口中显示第三内容。
本申请一些实施例中,电子设备还可以在锁屏界面中显示应用的实况通知,锁屏界面中的实况通知可以具有多种显示样式,如胶囊样式、卡片样式等。电子设备中一些应用的业务可以以实况通知的形式显示在锁屏界面上,也可以以沉浸式实况的形式显示在锁屏界面上。例如,图9为本申请实施例提供的一种电子设备的锁屏界面的示意图,图9以打车应用中的打车业务为例进行介绍,参考图9中的(a),电子设备可以显示胶囊样式的打车应用的实况通知901;参考图9中的(b),电子设备可以显示卡片样式的打车应用的实况通知902,可选地,如图9中的(b)所示,电子设备在显示卡片样式的打车应用的实况通知902时,还可以在锁屏界面中显示通知消息。参考图9中的(c),电子设备可以显示打车应用的沉浸式实况903。
可选地,电子设备可以根据用户使用习惯或使用场景确定电子设备在锁屏界面中显示实况通知或沉浸式实况。例如,当电子设备处于工作模式时,为减少为用户的打扰,电子设备可以以图9中的(a)所示的胶囊样式显示打车应用的实况通知。
本申请实施例还提供同一应用的同一业务的实况通知和沉浸式实况切换的方式,如针对第一应用中正在运行的第一任务,当电子设备显示沉浸式实况时,响应于用户在该沉浸式实况中触发的第一操作,电子设备触发解锁,在解锁成功后,电子设备可以显示第一应用中第一任务的用户界面,如第一操作可以为用户在第一窗口中的非控件显示区域触发的点击操作。
当电子设备显示沉浸式实况时,响应于用户在该沉浸式实况中触发的第二操作,电子设备可以切换显示第一任务对应的卡片样式的实况通知,如第二操作可以为用户在锁屏界面中除第一窗口之外的区域中的任意位置触发的点击操作,或者第二操作可以为用户在第一窗口中触发的侧滑操作或上滑操作,其中,侧滑操作包括左滑操作和右滑操作。
当电子设备显示沉浸式实况时,响应于用户在该沉浸式实况中触发的第三操作,电子设备可以切换显示沉浸式实况对应的胶囊样式的实况通知,如第三操作可以为用户在第一窗口中触发的下滑操作。
当电子设备显示胶囊样式的实况通知时,响应于用户在该实况通知中触发的第五操作,电子设备可以切换显示卡片样式的实况通知,如第五操作可以为用户在该实况通知的非控件显示区域触发的点击操作,或者第二操作为用户在胶囊样式的实况通知上触发的上滑操作。
当电子设备显示胶囊样式的实况通知时,响应于用户在该实况通知中触发的第六操作,电子设备可以切换显示第一任务对应的沉浸式实况,如第六操作可以为用户在第一控件上触发的点击操作,或者第六操作为用户在该实况通知的非控件显示区域触发的长按操作;其中,第一控件可以为胶囊样式的实况通知中第一应用的应用图标或图片等。
当电子设备显示卡片样式的实况通知时,响应于用户在该实况通知中触发的第七操作,电子设备可以切换显示沉浸式实况,如第七操作可以为用户在该实况通知的非控件显示区域触发的点击操作或长按操作,或者第七操作可以为用户在第二控件上触发的点击操作;其中,第二控件可以为卡片样式的实况通知中第一应用的应用图标或图片等。
当电子设备显示卡片样式的实况通知时,响应于用户在该实况通知中触发的第八操作,电子设备可以切换显示胶囊样式的实况通知,如第八操作可以为用户在该实况通知上触发的下滑操作。
以图9所示的实况通知和沉浸式实况为例,例如,当电子设备显示图9中的(a)所示的胶囊样式的打车应用实况通知时,用户点击该实况通知中除应用图标之外的区域中的任意位置或用户在实况通知中触发上滑操作,电子设备切换显示图9中的(b)所示的卡片样式的打车应用实况通知;用户点击该实况通知中的应用图标或用户长按该应用图标,电子设备切换显示图9中的(c)所示的沉浸式实况。
又例如,当电子设备显示图9中的(b)所示的卡片样式的实况通知时,用户点击卡片样式的实况通知中的应用图标或用户点击或长按该实况通知中非控件显示区域的任意位置,电子设备切换显示图9中的(c)所示的打车应用的沉浸式实况;用户在该实况通知中触发下滑操作,电子设备切换显示图9中的(a)所示的胶囊样式的实况通知。
又例如,当电子设备显示图9中的(c)所示的沉浸式实况时,用户点击沉浸式实况中非控件显示区域的任意位置,电子设备触发解锁操作,并在解锁成功后,显示打车应用的用户界面;用户点击锁屏界面中除第一窗口之外的任意区域,或者用户在第一窗口中触发左滑操作、右滑操作或上滑操作时,电子设备切换显示图9中的(b)所示的卡片样式的实况通知;用户在第一窗口中触发下滑操作时,电子设备切换显示图9中的(a)所示的胶囊样式的实况通知。
需要说明的是,上述实施例中用户触发电子设备切换显示实况通知样式以及切换显示沉浸式实况和实况通知的方式仅作为一种示例而非限定,具体实施中电子设备还可以支持其他用户操作以在多种样式的实况通知和沉浸式实况中进行切换,本申请实施例对此不做限定。
一些实施例中,电子设备在显示锁屏界面时,可能存在多个实况通知,当电子设备显示胶囊样式的实况通知时,电子设备可以显示多个实况通知中的一个实况通知。假设电子设备中存在第一实况通知和第二实况通知,当用户在胶囊样式的第一实况通知上触发第五操作,电子设备切换显示第一实况通知对应的沉浸式实况,并且电子设备在用于显示胶囊样式的实况通知的区域显示胶囊样式的第二实况通知,其中,第五操作例如可以为用户在该第一实况通知中触发的上滑操作。需要说明的是,当存在多个实况通知时,在锁屏界面中显示的胶囊样式的实况通知可以为优先级最高的实况通知,或者可以为接收时间最晚的实况通知,或者还可以根据其他方式从多个实况通知中确定在锁屏界面中显示的胶囊样式的实况通知,本申请实施例对此不做限定。
举例来说,图10为本申请实施例提供的一种电子设备的锁屏界面的示意图。参考图10中的(a),当前电子设备中存在多个实况通知,该多个实况通知包括打车任务对应的实况通知和外卖任务对应的实况通知,由于显示区域有限,电子设备在锁屏界面中仅显示一个胶囊样式的实况通知,如电子设备显示打车任务对应的实况通知1001,当用户在实况通知1001中触发上滑操作后,电子设备切换显示图10中的(b)所示的锁屏界面,参考图10中的(b),电子设备在锁屏界面中显示打车任务对应的沉浸式实况1002,且电子设备在用于显示胶囊样式的实况通知的显示区域中、显示外卖任务对应的胶囊样式的实况通知1003。
当电子设备在锁屏界面中显示多个卡片样式的实况通知时,假设电子设备在锁屏界面中显示卡片样式的第一实况通知和卡片样式的第二实况通知,用户可以在卡片样式的第一实况通知中触发第六操作,电子设备可以切换显示第一实况通知对应的沉浸式实况,并显示胶囊样式的第二实况通知,其中,第六操作例如可以为用户在第一实况通知中非控件区域触发的长按操作。
举例来说,参考图10中的(c),电子设备的锁屏界面中包括打车任务对应的实况通知1004和外卖任务对应的实况通知1005,用户在实况通知1005中除图标之外的任意区域触发长按操作,电子设备可以切换显示图10中的(d)所示的锁屏界面,参考图10中的(d),电子设备在锁屏界面中显示外卖任务对应的沉浸式实况1006,以及电子设备在用于显示胶囊样式的实况通知的显示区域中、显示打车任务对应的胶囊样式的实况通知1007。
本申请一些示例中,电子设备的锁屏状态还包括AOD显示场景,本申请实施例提供的锁屏显示方法还可以适用于在AOD界面中显示沉浸式实况,其中,AOD显示场景又可以称为息屏显示场景,在AOD显示场景下,电子设备可以显示AOD界面,AOD界面又可以称为息屏界面。一种可选的实施方式中,当电子设备在锁屏界面的第一窗口中显示第一应用的第一内容时,若电子设备进入AOD显示状态,电子设备的锁屏功能模块可以将锁屏界面的信息发送给AOD模块,其中,锁屏界面的信息可以包括锁屏界面的锁屏背景、锁屏元素和沉浸式实况的信息。AOD模块可以根据接收到的锁屏界面的信息在AOD界面中显示沉浸式实况,AOD界面的显示效果可以参见上述实施例中锁屏界面显示沉浸式实况的效果,如参见图8所示的在锁屏界面中显示沉浸式实况的显示效果。
另一种可选的实施方式中,当电子设备处于AOD显示状态时,电子设备中的AOD模块可以接收系统服务器通过沉浸式云服务代理发送的第一应用的第一信息,AOD模块可以根据第一应用的第一信息在AOD界面中创建第二窗口,并在第二窗口中显示第一应用的第一内容,从而实现在AOD界面中显示沉浸式实况,在该实施方式中,AOD模块执行的功能可以参见上述实施例中沉浸式服务模块和锁屏功能模块执行的功能,重复之处不再赘述。
可选地,当电子设备处于AOD显示状态时,电子设备在显示屏中仅显示AOD界面所在的图层,电子设备在AOD界面中的第一窗口中显示沉浸式实况时,第一窗口也位于AOD界面所在的图层。
下面以两个示例对本申请实施例提供的锁屏显示方法进行进一步介绍。
示例1
该示例中以电子设备在锁屏界面的第一窗口中显示的第一应用的第一内容为图片为例,如图11为本申请实施例提供的一种第一内容为图片的沉浸式实况的示意图。参考图11,当第一应用的业务类型为出行信息、赛事比分、取件信息、会议通知、票据信息等更新频率较低的业务类型时,第一应用在第一窗口中显示的沉浸式实况可以为图片。
图12为本申请实施例提供的一种锁屏显示方法的示意图。参考图12,该示例中以电子设备在锁屏界面的第一窗口中显示的第一应用的第一内容为图片为例,参考图12,本申请实施例中电子设备的桌面在锁屏状态下可以显示锁屏界面,如锁屏界面包括锁屏元素、锁屏背景,锁屏元素例如可以为时钟控件、日历控件等。锁屏界面中还可以包括第一窗口,第一窗口用于显示应用的沉浸式实况;可选地,锁屏界面中还可以包括应用的实况通知,电子设备的实况管理模块可以用于对锁屏界面中显示的实况通知、沉浸式实况进行管理。该示例中实况管理模块可以为图2所示的电子设备中的锁屏功能模块中的子模块,沉浸式服务模块可以为操作系统中的通知增强服务(advanced notification service,ANS)模块。
在图12中的(a)所示的示例中,当电子设备进入锁屏状态时,第一应用调用沉浸式服务接口将业务图片信息发送给沉浸式服务模块,其中,第一应用属于能够进行沉浸式实况显示的目标应用集合,且业务图片对应的业务类型为第一应用对应的已授权业务类型。沉浸式服务模块对业务图片进行风险检测,在对业务图片进行风险检测通过后,沉浸式服务模块将第一应用的业务图片的信息发送给系统用户界面(system UI)的沉浸式实况管理模块,沉浸式实况管理模块可以在锁屏界面的第一窗口中显示第一应用的业务图片。
在图12中的(b)所示的示例中,当电子设备进入锁屏状态时,第一应用向应用服务器发送请求消息,该请求消息用于请求应用服务器生成第一应用当前运行的第一业务对应的沉浸式实况。系统服务器的推送服务接收应用服务器发送的第一应用的业务图片的信息,其中,第一应用属于能够进行沉浸式实况显示的目标应用集合,且业务图片对应的业务类型为第一应用对应的已授权业务类型。推送服务可以对业务图片进行风险检测,在对业务图片进行风险检测通过后,推送服务可以将第一应用的业务图片的信息通过电子设备的沉浸式云服务代理发送给电子设备的沉浸式服务模块,沉浸式服务模块将第一应用的业务图片的信息发送给沉浸式实况管理模块,沉浸式实况管理模块可以在锁屏界面的第一窗口中显示第一应用的业务图片。
需要说明的是,推送服务或第一应用向沉浸式服务模块发送业务图片的信息可以为发送业务图片或发送业务图片在电子设备本地的统一资源定位系统(uniform resource locator,URL),当系统用户界面(system UI)获取到图片URL后,可以从资源库中获取图片。
示例2
该示例中以电子设备在锁屏界面的第一窗口中显示的第一应用的第一内容为用户界面为例,如图13为本申请实施例提供的一种第一内容为用户界面的沉浸式实况的示意图。参考图13,当第一应用的业务类型为地图导航、配送信息、运动健康、打车等更新频率较高的业务类型时,第一应用在第一窗口中显示的沉浸式实况可以为用户界面。
图14为本申请实施例提供的一种锁屏显示方法的示意图。参考图14,该示例中以电子设备在锁屏界面的第一窗口中显示的第一应用的第一内容为用户界面为例,参考图14,本申请实施例中电子设备的桌面在锁屏状态下可以显示锁屏界面,如锁屏界面包括锁屏元素、锁屏背景,锁屏元素例如可以为时钟控件、日历控件等。锁屏界面中还可以包括第一窗口,第一窗口用于显示应用的沉浸式实况;可选地,锁屏界面中还可以包括应用的实况通知,电子设备的实况管理模块可以用于对锁屏界面中显示的实况通知、沉浸式实况进行管理。在图14所示的示例中,锁屏界面中的第一窗口可以为用于显示应用界面的扩展组件,实况管理模块可以对扩展组件的位置、尺寸等参数进行管理。该示例中实况管理模块可以为图2所示的电子设备中的锁屏功能模块中的子模块,沉浸式服务模块可以为操作系统中的ANS模块。
参考图14,当电子设备进入锁屏状态时,第一应用可以向沉浸式服务模块请求创建用于展示沉浸式实况的第一窗口,该第一窗口可以为锁屏界面中的扩展组件。沉浸式服务模块可以向实况管理模块发送请求消息,以请求实况管理模块在锁屏界面中创建第一窗口。实况管理模块在锁屏界面中创建第一窗口后,可以向第一应用发送请求消息,该请求消息中包括第一窗口的参数,如第一窗口的位置信息、尺寸信息等,第一应用基于第一窗口的参数绘制得到第一业务对应的用户界面后,可以将第一业务的用户界面通过系统UI发送给锁屏界面中的扩展组件,锁屏界面中的扩展组件可以显示第一应用的用户界面,从而实现在锁屏界面的第一窗口中显示第一应用的用户界面。
基于相同构思,本申请实施例还提供一种锁屏显示方法,该方法可以由电子设备执行,如图15为本申请实施例提供的一种锁屏显示方法的流程图,参考图15,该方法包括以下步骤:
S1501:电子设备进入锁屏状态,且电子设备的第一应用中的第一业务处于运行状态,电子设备中的第一应用通过第一服务接口向第一服务模块发送第一应用的第一信息。
其中,第一信息包括与第一业务相关的多媒体内容或用户界面的信息,第一服务接口可以为图2所示电子设备中的沉浸式服务接口,第一服务模块可以图2所示的电子设备中的沉浸式服务模块。
S1502:电子设备中的第一服务模块向锁屏功能模块发送第一信息。
S1503:电子设备中的锁屏功能模块在接收到第一信息之后,在锁屏界面中创建第一窗口。
其中,锁屏功能模块在锁屏界面中创建的第一窗口可以为非全屏窗口,如第一窗口可以为图7所示的实施例中的第一窗口701或第一窗口702。
S1504:电子设备中的锁屏功能模块根据第一信息在第一窗口中显示第一应用的第一内容。
本申请实施例中锁屏功能模块根据第一信息在第一窗口中显示的第一内容可以为上述实施例中介绍的沉浸式实况,第一应用的第一内容可以为多媒体内容或用户界面,如在图7中的(a)所示的锁屏界面的第一窗口中的第一内容为图片;在图7中的(b)所示的锁屏界面的第一窗口中的第一内容为用户界面。
一种可选的实施方式中,在所述电子设备中的所述第一应用通过所述第一服务接口向所述第一服务器模块发送所述第一应用的第一信息之前,所述电子设备中的所述第一应用向系统服务器发送第一请求消息,所述第一请求消息用于向系统服务器申请所述第一应用的所述第一业务的锁屏显示权限;所述电子设备中的所述第一应用接收所述系统服务器发送的响应消息,所述响应消息用于指示所述系统服务器通过所述第一应用的权限申请。其中,锁屏显示权限包括沉浸式实况显示权限。
一种可选的实施方式中,所述电子设备还包括服务代理模块,所述电子设备中的所述第一服务模块接收服务器通过所述服务代理模块发送的第二信息,所述第二信息包括与所述第一业务相关的多媒体内容;所述电子设备中的所述第一服务模块向所述锁屏功能模块发送所述第二信息;所述电子设备中的所述锁屏功能模块根据所述第二信息在所述第一窗口中显示所述第一应用的第二内容。其中,服务代理模块可以为图2所示的电子设备中的沉浸式云服务代理。
一种可选的实施方式中,在所述电子设备中的所述第一服务模块向所述锁屏功能模块发送所述第一信息之前,所述电子设备中的所述第一服务模块对所述第一信息进行风险检测,确定对所述第一信息的风险检测通过后,再将第一信息发送给锁屏功能模块。
一种可选的实施方式中,所述电子设备中的所述锁屏功能模块根据所述第一信息在所述第一窗口中显示所述第一应用的第一内容之后,响应于用户在所述第一窗口中触发的第一操作,所述电子设备切换至解锁状态,运行所述第一应用并显示所述第一任务的用户界面;其中,所述第一操作为用户在所述第一窗口中触发的点击操作。例如,第一操作可以为用户在第一窗口中的非控件显示区域触发的点击操作。
一种可选的实施方式中,所述电子设备中的所述锁屏功能模块根据所述第一信息在所述第一窗口中显示所述第一应用的第一内容之后,所述方法还包括:响应于用户在所述第一窗口中触发的第二操作,所述电子设备停止显示所述第一应用的第一内容;所述电子设备的所述锁屏功能模块在所述锁屏界面中显示所述第一任务对应的卡片样式的实况通知;其中,所述第二操作为用户在所述锁屏界面中除所述第一窗口之外的区域中的任意位置触发的点击操作,或者所述第二操作为所述用户在所述第一窗口中触发的滑动操作。例如,第二操作可以为用户在锁屏界面中除第一窗口之外的区域中的任意位置触发的点击操作,或者第二操作可以为用户在第一窗口中触发的侧滑操作或上滑操作,其中,侧滑操作包括左滑操作和右滑操作。
一种可选的实施方式中,所述电子设备中的所述锁屏功能模块根据所述第一信息在所述第一窗口中显示所述第一应用的第一内容之后,响应于用户在所述第一窗口中触发的第三操作,所述电子设备停止显示所述第一应用的第一内容;所述电子设备的所述锁屏功能模块在所述锁屏界面中显示所述第一任务对应的胶囊样式的实况通知;其中,所述第三操作为用户在所述第一窗口中触发的滑动操作。例如第三操作可以为用户在第一窗口中触发的下滑操作。
一种可选的实施方式中,所述电子设备中的所述锁屏功能模块根据所述第一信息在所述第一窗口中显示所述第一应用的第一内容之后,响应于用户在所述第一窗口中触发的第四操作,所述电子设备的所述锁屏功能模块在所述第一窗口中显示所述第一应用的第三内容;其中,所述第四操作为所述用户在所述第一窗口中触发的滑动操作,所述第三内容为所述第一应用根据所述第四操作相关的参数对所述第一内容更新后发送给所述锁屏功能模块的。
一种可选的实施方式中,其特征在于,所述电子设备的所述锁屏功能模块在所述第一窗口中显示所述第一应用的第三内容之前,所述电子设备的所述锁屏功能模块确定所述第一应用的权限信息中包括第一权限,所述第一权限用于指示在所述锁屏界面中显示所述第一任务对应的内容时支持响应滑动操作。
一种可选的实施方式中,所述电子设备还包括息屏显示模块,在所述电子设备中的所述锁屏功能模块根据所述第一信息在所述第一窗口中显示所述第一应用的第一内容之后,当所述电子设备进入息屏显示状态时,所述电子设备中的所述锁屏功能模块向所述息屏显示模块发送所述锁屏界面的信息,所述锁屏界面的信息包括所述第一窗口中显示的所述第一应用的第一内容的信息;所述电子设备的所述息屏显示模块根据所述锁屏界面的信息在息屏界面的第二窗口中显示所述第一应用的第一内容。其中,息屏显示模块可以为图2所示电子设备中的AOD模块。
一种可选的实施方式中,所述电子设备还包括息屏显示模块,在所述电子设备中的所述锁屏功能模块根据所述第一信息在所述第一窗口中显示所述第一应用的第一内容之后,所述方法还包括:当所述电子设备进入息屏显示状态时,所述电子设备中的所述息屏显示模块接收系统服务器通过所述服务代理模块发送的所述第一信息;所述电子设备中的所述息屏显示模块根据所述第一信息在息屏界面的第二窗口中显示所述第一应用的第一内容。
示例性的,所述第一业务的业务类型为出行信息、赛事比分、会议通知、票据信息、取件信息时,所述第一内容为多媒体内容,如参考图11所示的锁屏界面,当第一应用的业务类型为出行信息、赛事比分、取件信息、会议通知、票据信息等更新频率较低的业务类型时,第一应用在第一窗口中显示的沉浸式实况可以为图片。所述第一业务的业务类型为地图导航、配送信息、运动健康、打车时,所述第一内容为用户界面。如参考图13所示的锁屏界面,当第一应用的业务类型为地图导航、配送信息、运动健康、打车等更新频率较高的业务类型时,第一应用在第一窗口中显示的沉浸式实况可以为用户界面。
示例性的,所述第一内容为用户界面时,所述第一内容包括文字控件、图标控件、多媒体控件中的至少一项。如参考图9中的(c),当第一内容为用户界面时,第一内容包括“接驾中,预计5分钟后到达”、“车牌号XXXXX白色轿车”等文字控件,第一内容中还可以包括用户头像等图标控件,第一内容中还可以包括地图图片控件。
基于以上实施例,本申请还提供一种服务器,包括多个功能模块;所述多个功能模块相互作用,实现本申请实施例所描述的各方法中的系统服务器或应用服务器所执行的功能。如执行图5所示实施例中的应用服务器执行的S503c,又例如执行图5所示实施例中系统服务器执行的S503d。所述多个功能模块可以基于软件、硬件或软件和硬件的结合实现,且所述多个功能模块可以基于具体实现进行任意组合或分割。
基于以上实施例,本申请还提供一种服务器,该服务器包括至少一个处理器和至少一个存储器,所述至少一个存储器中存储计算机程序指令,所述服务器运行时,所述至少一个处理器执行本申请实施例所描述的各方法中服务器所执行的功能。如执行图5所示实施例中的应用服务器执行的S503c,又例如执行图5所示实施例中系统服务器执行的S503d。
基于以上实施例,本申请还提供一种电子设备,所述电子设备包括多个功能模块;所述多个功能模块相互作用,实现本申请实施例所描述的各方法中电子设备所执行的功能。如电子设备可以包括图5所示的沉浸式服务接口、沉浸式服务模块、沉浸式云服务代理、锁屏功能模块。所述多个功能模块可以基于软件、硬件或软件和硬件的结合实现,且所述多个功能模块可以基于具体实现进行任意组合或分割。
基于以上实施例,本申请还提供一种电子设备,该电子设备包括至少一个处理器和至少一个存储器,所述至少一个存储器中存储计算机程序指令,所述电子设备运行时,所述至少一个处理器执行本申请实施例所描述的各方法中电子设备所执行的功能。
基于以上实施例,本申请还提供一种包含指令的计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行本申请实施例所描述的各方法。
基于以上实施例,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序被计算机执行时,使得所述计算机执行本申请实施例所描述的各方法。
基于以上实施例,本申请还提供了一种芯片,所述芯片用于读取存储器中存储的计算机程序,实现本申请实施例所描述的各方法。
基于以上实施例,本申请提供了一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现本申请实施例所描述的各方法。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的保护范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。
Claims (16)
- 一种锁屏显示方法,其特征在于,应用于电子设备,所述电子设备包括第一服务模块、第一服务接口和锁屏功能模块,所述方法包括:所述电子设备进入锁屏状态,且所述电子设备的第一应用中的第一业务处于运行状态,所述电子设备中的所述第一应用通过所述第一服务接口向所述第一服务模块发送所述第一应用的第一信息,所述第一信息包括与所述第一业务相关的多媒体内容或用户界面的信息;所述电子设备中的所述第一服务模块向所述锁屏功能模块发送所述第一信息;所述电子设备中的所述锁屏功能模块在接收到所述第一信息之后,在锁屏界面中创建第一窗口;所述电子设备中的所述锁屏功能模块根据所述第一信息在所述第一窗口中显示所述第一应用的第一内容。
- 如权利要求1所述的方法,其特征在于,在所述电子设备中的所述第一应用通过所述第一服务接口向所述第一服务器模块发送所述第一应用的第一信息之前,所述方法还包括:所述电子设备中的所述第一应用向系统服务器发送第一请求消息,所述第一请求消息用于向系统服务器申请所述第一应用的所述第一业务的锁屏显示权限;所述电子设备中的所述第一应用接收所述系统服务器发送的响应消息,所述响应消息用于指示所述系统服务器通过所述第一应用的权限申请。
- 如权利要求1或2所述的方法,其特征在于,所述电子设备还包括服务代理模块,所述方法还包括:所述电子设备中的所述第一服务模块接收服务器通过所述服务代理模块发送的第二信息,所述第二信息包括与所述第一业务相关的多媒体内容;所述电子设备中的所述第一服务模块向所述锁屏功能模块发送所述第二信息;所述电子设备中的所述锁屏功能模块根据所述第二信息在所述第一窗口中显示所述第一应用的第二内容。
- 如权利要求1-3任一项所述的方法,其特征在于,在所述电子设备中的所述第一服务模块向所述锁屏功能模块发送所述第一信息之前,所述方法还包括:所述电子设备中的所述第一服务模块对所述第一信息进行风险检测,确定对所述第一信息的风险检测通过。
- 如权利要求1-4任一项所述的方法,其特征在于,所述电子设备中的所述锁屏功能模块根据所述第一信息在所述第一窗口中显示所述第一应用的第一内容之后,所述方法还包括:响应于用户在所述第一窗口中触发的第一操作,所述电子设备切换至解锁状态,运行所述第一应用并显示所述第一任务的用户界面;其中,所述第一操作为用户在所述第一窗口中触发的点击操作。
- 如权利要求1-4任一项所述的方法,其特征在于,所述电子设备中的所述锁屏功能模块根据所述第一信息在所述第一窗口中显示所述第一应用的第一内容之后,所述方法还包括:响应于用户在所述第一窗口中触发的第二操作,所述电子设备停止显示所述第一应用的第一内容;所述电子设备的所述锁屏功能模块在所述锁屏界面中显示所述第一任务对应的卡片样式的实况通知;其中,所述第二操作为用户在所述锁屏界面中除所述第一窗口之外的区域中的任意位置触发的点击操作,或者所述第二操作为所述用户在所述第一窗口中触发的滑动操作。
- 如权利要求1-4任一项所述的方法,其特征在于,所述电子设备中的所述锁屏功能模块根据所述第一信息在所述第一窗口中显示所述第一应用的第一内容之后,所述方法还包括:响应于用户在所述第一窗口中触发的第三操作,所述电子设备停止显示所述第一应用的第一内容;所述电子设备的所述锁屏功能模块在所述锁屏界面中显示所述第一任务对应的胶囊样式的实况通知;其中,所述第三操作为用户在所述第一窗口中触发的滑动操作。
- 如权利要求1-4任一项所述的方法,其特征在于,所述电子设备中的所述锁屏功能模块根据所述第一信息在所述第一窗口中显示所述第一应用的第一内容之后,所述方法还包括:响应于用户在所述第一窗口中触发的第四操作,所述电子设备的所述锁屏功能模块在所述第一窗口中显示所述第一应用的第三内容;其中,所述第四操作为所述用户在所述第一窗口中触发的滑动操作,所述第三内容为所述第一应用根据所述第四操作相关的参数对所述第一内容更新后发送给所述锁屏功能模块的。
- 如权利要求8所述的方法,其特征在于,所述电子设备的所述锁屏功能模块在所述第一窗口中显示所述第一应用的第三内容之前,所述方法还包括:所述电子设备的所述锁屏功能模块确定所述第一应用的权限信息中包括第一权限,所述第一权限用于指示在所述锁屏界面中显示所述第一任务对应的内容时支持响应滑动操作。
- 如权利要求1-9任一项所述的方法,其特征在于,所述电子设备还包括息屏显示模块,在所述电子设备中的所述锁屏功能模块根据所述第一信息在所述第一窗口中显示所述第一应用的第一内容之后,所述方法还包括:当所述电子设备进入息屏显示状态时,所述电子设备中的所述锁屏功能模块向所述息屏显示模块发送所述锁屏界面的信息,所述锁屏界面的信息包括所述第一窗口中显示的所述第一应用的第一内容的信息;所述电子设备的所述息屏显示模块根据所述锁屏界面的信息在息屏界面的第二窗口中显示所述第一应用的第一内容。
- 如权利要求1-9任一项所述的方法,其特征在于,所述电子设备还包括息屏显示模块,在所述电子设备中的所述锁屏功能模块根据所述第一信息在所述第一窗口中显示所述第一应用的第一内容之后,所述方法还包括:当所述电子设备进入息屏显示状态时,所述电子设备中的所述息屏显示模块接收系统服务器通过所述服务代理模块发送的所述第一信息;所述电子设备中的所述息屏显示模块根据所述第一信息在息屏界面的第二窗口中显示所述第一应用的第一内容。
- 如权利要求1-11任一项所述的方法,其特征在于,所述第一业务的业务类型为出行信息、赛事比分、会议通知、票据信息、取件信息时,所述第一内容为多媒体内容;所述第一业务的业务类型为地图导航、配送信息、运动健康、打车时,所述第一内容为用户界面。
- 如权利要求1-12任一项所述的方法,其特征在于,所述第一内容为用户界面时,所述第一内容包括文字控件、图标控件和多媒体控件中的至少一项。
- 一种电子设备,其特征在于,所述电子设备包括存储器、处理器;其中,所述存储器和所述处理器耦合,所述存储器用于存储计算机程序,当所述处理器执行调用所述计算机程序,使得所述电子设备执行权利要求1-13中任一项所述的方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行如权利要求1-13中任一所述的方法。
- 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-13中任一所述的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410805027.1 | 2024-06-20 | ||
| CN202410805027.1A CN121187682A (zh) | 2024-06-20 | 2024-06-20 | 一种锁屏显示方法及电子设备 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2025260697A1 true WO2025260697A1 (zh) | 2025-12-26 |
Family
ID=95979446
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2024/143274 Pending WO2025260697A1 (zh) | 2024-06-20 | 2024-12-27 | 一种锁屏显示方法及电子设备 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN121187682A (zh) |
| WO (1) | WO2025260697A1 (zh) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102393807A (zh) * | 2011-10-24 | 2012-03-28 | 深圳市智慧宇宙管理咨询有限公司 | 移动终端锁屏界面显示方法、装置及移动终端 |
| CN104615350A (zh) * | 2015-01-14 | 2015-05-13 | 小米科技有限责任公司 | 在锁屏界面上展示信息的方法及装置 |
| CN105243326A (zh) * | 2015-09-29 | 2016-01-13 | 北京金山安全软件有限公司 | 一种锁屏界面的显示方法、装置以及电子设备 |
| CN105975224A (zh) * | 2016-04-19 | 2016-09-28 | 北京东方车云信息技术有限公司 | 一种在锁屏状态下显示打车应用相关信息的方法及装置 |
| WO2022021068A1 (zh) * | 2020-07-28 | 2022-02-03 | 深圳传音控股股份有限公司 | 锁屏交互方法、移动终端和计算机存储介质 |
| CN118200432A (zh) * | 2022-12-13 | 2024-06-14 | 华为技术有限公司 | 一种卡片显示方法及电子设备 |
-
2024
- 2024-06-20 CN CN202410805027.1A patent/CN121187682A/zh active Pending
- 2024-12-27 WO PCT/CN2024/143274 patent/WO2025260697A1/zh active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102393807A (zh) * | 2011-10-24 | 2012-03-28 | 深圳市智慧宇宙管理咨询有限公司 | 移动终端锁屏界面显示方法、装置及移动终端 |
| CN104615350A (zh) * | 2015-01-14 | 2015-05-13 | 小米科技有限责任公司 | 在锁屏界面上展示信息的方法及装置 |
| CN105243326A (zh) * | 2015-09-29 | 2016-01-13 | 北京金山安全软件有限公司 | 一种锁屏界面的显示方法、装置以及电子设备 |
| CN105975224A (zh) * | 2016-04-19 | 2016-09-28 | 北京东方车云信息技术有限公司 | 一种在锁屏状态下显示打车应用相关信息的方法及装置 |
| WO2022021068A1 (zh) * | 2020-07-28 | 2022-02-03 | 深圳传音控股股份有限公司 | 锁屏交互方法、移动终端和计算机存储介质 |
| CN118200432A (zh) * | 2022-12-13 | 2024-06-14 | 华为技术有限公司 | 一种卡片显示方法及电子设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN121187682A (zh) | 2025-12-23 |
| CN120144217A (zh) | 2025-06-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112351412B (zh) | 一种内容接续方法、系统及电子设备 | |
| WO2020143408A1 (zh) | 显示方法及相关装置 | |
| WO2020103764A1 (zh) | 一种语音控制方法及电子设备 | |
| CN110572431A (zh) | 一种卡片分享方法、装置及系统 | |
| WO2022089207A1 (zh) | 一种跨设备应用交互方法、电子设备与服务器 | |
| WO2021253975A1 (zh) | 应用程序的权限管理方法、装置和电子设备 | |
| EP4354270B1 (en) | Service recommendation method and electronic device | |
| WO2020134892A1 (zh) | 一种媒体文件裁剪的方法、电子设备和服务器 | |
| CN114244955B (zh) | 服务的分享方法、系统、电子设备及计算机可读存储介质 | |
| WO2023088093A1 (zh) | 显示方法和电子设备 | |
| WO2023005900A1 (zh) | 一种投屏方法、电子设备及系统 | |
| CN114610419B (zh) | 添加widget的方法、装置及计算机可读存储介质 | |
| US20240419421A1 (en) | Application development system and method, and device | |
| EP4553640A1 (en) | Control method, and device | |
| WO2025260697A1 (zh) | 一种锁屏显示方法及电子设备 | |
| CN115442875B (zh) | 一种应用访问方法、服务停止方法及电子设备 | |
| CN120144217B (zh) | 一种锁屏显示方法及电子设备 | |
| CN119729422A (zh) | 一种多设备协同方法及电子设备 | |
| CN118200432A (zh) | 一种卡片显示方法及电子设备 | |
| WO2023142935A1 (zh) | 应用组件管理方法及相关设备 | |
| WO2022267786A1 (zh) | 一种快捷图标展示方法与终端设备 | |
| CN117130696B (zh) | 应用程序的界面跳转方法、设备及存储介质 | |
| WO2026061061A1 (zh) | 一种卡片显示方法及电子设备 | |
| CN120196458A (zh) | 一种应用消息处理方法及电子设备 | |
| WO2025260690A1 (zh) | 一种实况通知分享方法、电子设备及服务器 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 24945421 Country of ref document: EP Kind code of ref document: A1 |