EP-4738080-A1 - INTERACTION METHOD, ELECTRONIC DEVICE AND COMPUTER-READABLE STORAGE MEDIUM
Abstract
This application is applied to the field of terminal technologies, and especially relates to an interaction method, an electronic device, and a computer-readable storage medium. In the method, a current status of a vehicle can be determined when first content needs to be displayed on a display interface of an in-vehicle device based on an interaction instruction of a user. If the current status is a parking state, a first component can be displayed on the display interface of the in-vehicle device, so that the first content is presented on the larger first component when the vehicle is in the parking state, to help the user quickly obtain a large amount of information. If the current status is a driving state, a second component can be displayed on the display interface of the in-vehicle device, so that the first content is presented on the smaller second component when the vehicle is in the driving state, that is, the first content can be presented in a shrunk view, to prevent excessive content from being displayed on the display interface. This avoids affecting driving attention of a driver and improves driving safety.
Inventors
- CHEN, Jiacheng
- DENG, YUE
- XU, JIE
Assignees
- Huawei Technologies Co., Ltd.
Dates
- Publication Date
- 20260506
- Application Date
- 20240830
Claims (18)
- An interaction method, comprising: determining a current status of a vehicle when obtaining a first interaction instruction of a user; and displaying a first component on a display interface if the current status is a parking state; or displaying a second component on the display interface if the current status is a driving state, wherein the second component is smaller than the first component, and first content displayed on the first component or the second component is content in response to the first interaction instruction.
- The method according to claim 1, wherein displaying the first component on the display interface comprises: determining a first position of the user in the vehicle; and displaying the first component on the display interface based on the first position.
- The method according to claim 2, wherein displaying the first component on the display interface based on the first position comprises: displaying the first component on a left side of the display interface when the first position is a driver seat; or displaying the first component on a right side of the display interface when the first position is not a driver seat.
- The method according to any one of claims 1 to 3, wherein displaying the first component on the display interface comprises: determining a second position of a target toolbar on the display interface; and displaying the first component on the display interface based on the second position, wherein the first component and the target toolbar do not overlap.
- The method according to any one of claims 1 to 4, wherein displaying the first component on the display interface comprises: determining a type of the first content; and when the type of the first content comprises a target type, displaying the first component based on a width of the first content.
- The method according to claim 5, wherein the target type is a chart type.
- The method according to any one of claims 1 to 6, wherein after displaying the first component on the display interface, the method further comprises: obtaining a second interaction instruction, wherein the second interaction instruction is an instruction for starting a first application; and collapsing the first component based on the second interaction instruction.
- The method according to any one of claims 1 to 7, wherein after displaying the first component on the display interface if the current status is the parking state, the method further comprises: when detecting that the current status is switched from the parking state to the driving state, switching the first component displayed on the display interface to the second component.
- The method according to any one of claims 1 to 8, wherein displaying the second component on the display interface comprises: displaying the second component at a middle position of the display interface.
- The method according to any one of claims 1 to 9, wherein after displaying the second component on the display interface, the method further comprises: determining the first position of the user in the vehicle when obtaining a third interaction instruction, wherein the third interaction instruction is an instruction for displaying content in the second component; and outputting prompt information when the first position is the driver seat, wherein the prompt information indicates that display of the content in the second component is unachievable; or when the first position is not the driver seat, switching the second component to the first component, and displaying the first component on the right side of the display interface.
- The method according to any one of claims 1 to 10, wherein the method further comprises: if obtaining a fourth interaction instruction in a process of generating the first content, responding to the fourth interaction instruction when generating the first content.
- The method according to any one of claims 1 to 11, wherein the method further comprises: displaying second content in the second component after display of the first content in the second component is completed, wherein the second content is content determined based on the first content, or the second content is content fed back based on an execution status of the first interaction instruction.
- The method according to any one of claims 1 to 12, wherein the first content is content generated based on first data corresponding to the vehicle, the first data is data generated during use of the vehicle, and the first data is obtained based on the first interaction instruction.
- The method according to any one of claims 1 to 13, wherein the first component is a window.
- The method according to any one of claims 1 to 14, wherein the second component is a card.
- An electronic device, comprising a memory, a processor, and a computer program that is stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic device is caused to implement the interaction method according to any one of claims 1 to 15.
- A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a computer, the computer is caused to implement the interaction method according to any one of claims 1 to 15.
- A computer program product, wherein when the computer program product runs on an electronic device, the electronic device is caused to perform the interaction method according to any one of claims 1 to 15.
Description
This application claims priority to Chinese Patent Application No. 202311615702.6, filed with the China National Intellectual Property Administration on November 28, 2023 and entitled "INTERACTION METHOD, ELECTRONIC DEVICE, AND COMPUTER-READABLE STORAGE MEDIUM", which is incorporated herein by reference in its entirety. TECHNICAL FIELD This application belongs to the field of terminal technologies, and especially relates to an interaction method, an electronic device, and a computer-readable storage medium. BACKGROUND With development of vehicle intelligence, a voice interaction system (also referred to as a voice assistant) is widely applied to vehicles. After waking up the voice assistant by using a specified wake-up word, a user can perform voice interaction with the voice assistant to use a required function. Currently, voice interaction with the voice assistant is primarily based on a streaming word-by-word visual interface. To be specific, during voice interaction, the voice assistant generally returns a large amount of text content for the user to view on a display interface, for example, returns the large amount of text content for the user in a window by displaying the window on the display interface. This manner of returning the large amount of text content in the window is likely to cause a driver to lose concentration, affecting driving safety. SUMMARY Embodiments of this application provide an interaction method, an electronic device, and a computer-readable storage medium, to improve driving safety when content is displayed in a driving state. According to a first aspect, an embodiment of this application provides an interaction method, including: determining a current status of a vehicle when obtaining a first interaction instruction of a user; anddisplaying a first component on a display interface if the current status is a parking state; ordisplaying a second component on the display interface if the current status is a driving state, wherethe second component is smaller than the first component, and first content displayed on the first component or the second component is content in response to the first interaction instruction. In the interaction method provided above, when the first interaction instruction of the user is obtained, the current status of the vehicle can be determined. If the current status is the parking state, the first component can be displayed on a display interface of an in-vehicle device. If the current status is the driving state, the second component can be displayed on a display interface of an in-vehicle device. The second component is smaller than the first component, and the first content displayed on the first component or the second component can be the content in response to the first interaction instruction, so that when the vehicle is in the parking state, the first content can be presented on the larger first component, to help the user quickly obtain a large amount of information. When the vehicle is in the driving state, the first content can be presented on the smaller second component, so that the first content is presented in a shrunk view, to prevent excessive content from being displayed on the display interface. This avoids affecting driving attention of a driver and improves driving safety. In a possible implementation, displaying the first component on the display interface includes: determining a first position of the user in the vehicle; anddisplaying the first component on the display interface based on the first position. In the interaction method provided in this implementation, when the current status of the vehicle is the parking state, a user who needs to perform voice interaction with a voice assistant may be determined, and the first component may be displayed at a position close to the user on the display interface. This can facilitate interaction between the user and the first component, help the user view the first content displayed on the first component, enhance efficiency of viewing the first content by the user, and improve user experience. Optionally, displaying the first component on the display interface based on the first position includes: displaying the first component on a left side of the display interface when the first position is a driver seat; ordisplaying the first component on a right side of the display interface when the first position is not a driver seat. In the interaction method provided in this implementation, when the current status of the vehicle is the parking state, if it is determined that the user who needs to perform voice interaction with the voice assistant is a user in the driver seat, the first component may be displayed on the left side of the display interface, to facilitate interaction between the user in the driver seat and the first component. If it is determined that the user who needs to perform voice interaction with the voice assistant is not a user in the driver seat, the first component