WO2021082835A1 - Method for activating function and electronic device - Google Patents

Method for activating function and electronic device Download PDF

Info

Publication number
WO2021082835A1
WO2021082835A1 PCT/CN2020/117909 CN2020117909W WO2021082835A1 WO 2021082835 A1 WO2021082835 A1 WO 2021082835A1 CN 2020117909 W CN2020117909 W CN 2020117909W WO 2021082835 A1 WO2021082835 A1 WO 2021082835A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
option
user
function
user interface
Prior art date
Application number
PCT/CN2020/117909
Other languages
French (fr)
Chinese (zh)
Inventor
蒋喆西
谢鲁冰
杨楚琳
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021082835A1 publication Critical patent/WO2021082835A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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
    • G06F3/04817Interaction 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 using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • This application relates to the field of electronic technology, and in particular to methods and electronic devices for starting functions.
  • An APP can be composed of multiple functions. For example, as shown in Figures 1A-1D, WeChat has functions such as “initiate a group chat", “add friends”, “scan”, and “receive payments”. A function can also be composed of multiple sub-functions. For example, the "Add Friend” function can be composed of "Enter WeChat ID or mobile phone number to find friends”, “Radar add friends”, “Face-to-face group building", “Scan”, "Mobile phone” Multiple sub-functions such as “Contacts and Friends” and "Official Account”.
  • the user needs to first open the WeChat APP to enter the WeChat main interface 10A shown in FIG. 1A. Then, as shown in FIG. 1A, the user clicks on the control 105, the electronic device displays the user interface 10B shown in FIG. 1B, and the user interface 10B shows the control 107 for starting the "add friend” function. Next, as shown in FIG. 1C, the user clicks the control 107, and the electronic device refreshes the user interface 10C shown in FIG. 1C to the user interface 10D shown in FIG. 1D.
  • the user interface 10D shows a control 112 for starting the "face-to-face group building" function. Finally, the user needs to click the control 112 before the electronic device starts the "face-to-face group building" function. In this way, the user needs to perform multiple operations, the operations are cumbersome, and the user experience is poor.
  • the present application provides a method for starting a function and an electronic device.
  • the user can make the electronic device execute the function corresponding to the option selected by the user according to the content selected by the user through a simple operation.
  • the present application provides a method for starting a function, including: an electronic device displays a first user interface, and the first user interface includes a first object; the electronic device receives a first user operation on the first object; A user operation, the electronic device displays at least one option according to the first object, and the function corresponding to the at least one option is associated with the first object; the electronic device receives the second user who moves the first object to the first option of the at least one option Operation; In response to a second user operation, the electronic device performs a first function corresponding to the first option on the content of the first object.
  • the first user operation may be an operation of long pressing the first object with two fingers
  • the second user operation may be an operation of dragging the first object with two fingers.
  • a and/or B can mean: A alone exists, A and B exist at the same time, and B exists alone.
  • the electronic device when the electronic device receives the user's operation on the first object, it can display the options corresponding to the first object, and then the electronic device receives the user's movement to the first object.
  • the electronic device can execute the first function corresponding to the first option according to the content selected by the user. In this way, user operations are simple and user experience can be improved.
  • the first user operation and the second user operation are continuous operations, that is, the time interval between the first user operation and the second user operation does not exceed the first preset time, and the first preset time can be It's 5 seconds, 10 seconds, etc.
  • the user can execute the method of this application with only one operation.
  • the electronic device does not receive the second user operation of the user within the preset time, the electronic device can make the displayed options disappear. In this way, it is avoided that at least one option called by the first user operation will affect the user's viewing of the first user operation.
  • the first object in a user interface.
  • the method further includes: the electronic device displays the first user interface and the second user interface in different areas, and the second user interface is the second user interface.
  • the content of an object performs the first function of the user interface. In this way, it is convenient for the user to view the result after the execution of the first function, and it does not affect the user to continue to view the content in the first user interface.
  • the electronic device displays the first user interface and the second user interface in different areas, including: in response to the electronic device changing from a folded state to an unfolded state, the electronic device displays the first user interface and the second user in different areas interface.
  • the electronic device displays the first user interface and the second user interface in the two areas of the electronic device, so that the first user interface is not reduced, It does not affect the user to continue to view the first user interface, and it is also convenient for the user to view the second user interface, which improves the user experience.
  • displaying the at least one option according to the first object includes: the electronic device determines the type of the first object, and determines the at least one option according to the type of the first object. In this way, the electronic device can ensure that the displayed at least one option is associated with the first object.
  • the first object includes a video object, an audio object, a text object, a web page link object, an APP object, and an image object.
  • the electronic device can divide the first object into a video object, an audio object, a text object, a webpage link object, an APP object, and an image object according to the type.
  • the electronic device determining the type of the first object includes: the electronic device determines the type of the first object according to the characteristic value of the first object, and the characteristic value is used to identify the type of the first object. In this way, the electronic device can more accurately determine the type of the first object.
  • determining the at least one option according to the type of the first object includes: if the first object is the video object, the at least one option includes one or more of the following: Option of sharing function, option of downloading function, option of uploading function, option of listening to music function, option of inserting video function, option of adding attachment function, option of video editing function; if said first object is said A web page link object, the at least one option includes one or more of the following: an option of sharing function, an option of download function, an option of upload function, an option of reading later function, an option of exporting a PDF document, an option of adding an attachment function , Options for the printing function; if the first object is the APP object, the at least one option includes one or more of the following: options for uninstalling functions, options for setting functions, options for using statistical functions, options for sharing functions , Option of authority management function.
  • the option of the A (for example, listening to songs, recognizing music, downloading, etc.) function may be an option corresponding to the A function, through which the A function can be entered.
  • the first object is a first video; the electronic device displays at least one option according to the first object, including: the electronic device displays an option of a sharing function and a download function in the first user interface Option, upload function option, song recognition function option, insert video function option, add attachment function option, and/or video editing option; when the option of listening song recognition function is displayed, the electronic device receives Move the first video to the second user operation of the function of listening to songs and recognizing music; in response to the second user operation, the electronic device recognizes the song information of the first audio included in the first video, and the song information includes song name, song lyrics, Song artist, song creator, and/or song link.
  • the user can know the song information in the selected video through a simple operation, and does not need to exit the first user interface, which does not affect the user to continue watching the video in the first user interface, which improves the user experience.
  • the second user operation may be an operation in which the user moves a certain video object to an option corresponding to the sharing function.
  • the electronic device may display a second user interface, and the second user interface may be used by the user to select a contact to share content corresponding to the selected video object.
  • the second user operation may be an operation in which the user moves a certain video object to an option corresponding to the download function.
  • the electronic device may display a second user interface, and the second user interface may be used by the user to specify the option.
  • the second user operation may be an operation in which the user moves a certain video object to an option corresponding to the upload function.
  • the electronic device may display a second user interface, and the second user interface may be used by the user to specify the option.
  • the second user operation may be an operation in which the user moves a certain video object to an option corresponding to the insert video function.
  • the electronic device may display a second user interface, and the second user interface may be used by the user to specify the The insertion position of the content corresponding to the selected video object (for example, a memo, document, etc.); or the electronic device creates a new mail or document to insert the content corresponding to the selected video object.
  • the second user operation may be an operation in which the user moves a certain video object to an option corresponding to the add accessory function.
  • the electronic device may display a second user interface, which may be used by the user to select a certain An email to add the content corresponding to the selected video object.
  • the second user operation may be an operation in which the user moves a certain video object to an option corresponding to the video editing function.
  • the electronic device may display a second user interface, which may be used by the user to select Edit the content corresponding to the specified video object.
  • the user can perform simple operations on the electronic device to perform the function corresponding to the option selected by the user according to the content selected by the user, without exiting the first user interface, and does not affect the user from continuing to watch the video in the first user interface. Improve the user experience.
  • the first object is the first audio
  • the electronic device displays at least one option according to the first object, including: the electronic device displays an option of a sharing function and a download function in the first user interface Option, upload function option, song recognition function option, insert audio function option, add accessory function option, and/or audio editing option; when the option of listening song recognition function is displayed, the electronic device receives Move the first audio to the second user operation of the function of listening to songs and recognizing music; in response to the second user operation, the electronic device recognizes the song information in the first audio, and the song information includes song name, song lyrics, song singer, Song creator, and/or song link.
  • the user can perform simple operations on the played audio when listening to the audio, and can identify the song information in the audio without having to exit the user interface for playing the audio. In this way, the user is not affected to continue listening to the audio, and the user experience is improved.
  • the second user operation may be an operation in which the user moves an audio object to an option corresponding to the sharing function.
  • the electronic device may display a second user interface, which may be used by the user to select contacts Share the content corresponding to the selected audio object.
  • the second user operation may be an operation in which the user moves an audio object to an option corresponding to the download function.
  • the electronic device may display a second user interface, and the second user interface may be used by the user to specify the option.
  • the second user operation may be an operation in which the user moves an audio object to an option corresponding to the upload function.
  • the electronic device may display a second user interface, and the second user interface may be used by the user to specify the option.
  • the upload location of the content corresponding to the selected audio object; or the electronic device can upload the content corresponding to the selected audio to the default location.
  • the second user operation may be an operation in which the user moves an audio object to an option corresponding to the insert audio function.
  • the electronic device may display a second user interface, and the second user interface may be used by the user to specify the The insertion position of the content corresponding to the selected audio object (eg, insert the first page of document 1, or the first page of document 2); or the electronic device can create a new mail or document and insert the content corresponding to the selected audio object.
  • the second user operation may be an operation in which the user moves an audio object to an option corresponding to the add accessory function.
  • the electronic device may display a second user interface, and the second user interface may be used by the user to select a certain An email to add the content corresponding to the selected audio object.
  • the second user operation may be an operation of the user moving a certain audio object to the drinking option of the audio editing function.
  • the electronic device may display a second user interface, which may be used by the user to The content corresponding to the selected audio object is edited.
  • the user can share, upload, download, etc. the audio selected by the user through simple operations, and can also insert the audio selected by the user into a memo or document, or insert the selected audio into an email. And edit the selected audio to enhance the user experience.
  • the first object is a first webpage link; the electronic device displays at least one option according to the first object, including: the electronic device displays the download function option, the upload function option, and the option of the upload function in the first user interface.
  • the second user operation of the option of the function in response to the second user operation, the electronic device saves the content of the first webpage link and generates an entry for viewing the content of the first webpage link.
  • the entry may include a link and a shortcut, and the user can view the content of the first webpage link through the entry of the content of the first webpage link.
  • the user can add the content of the selected webpage link to later reading through simple operations, and can read the content of the selected webpage link at any time, and does not need to exit the first user interface, and does not affect the user to continue to browse the first user
  • Other content in the interface enhances the user experience.
  • the second user operation may be an operation in which the user moves a certain webpage link object to an option corresponding to the sharing function.
  • the electronic device may display a second user interface, which may be used by the user to select a connection People share the content corresponding to the selected web page link object.
  • the second user operation may be an operation in which the user moves a certain webpage link object to an option corresponding to the download function.
  • the electronic device displays a second user interface, and the second user interface may be used by the user to specify the option.
  • the download location of the content corresponding to the selected webpage link object; or, the electronic device can download the content corresponding to the selected webpage link object to the default location.
  • the second user operation may be an operation in which the user moves a certain webpage link object to an option corresponding to the upload function.
  • the electronic device may display a second user interface, and the second user interface may be used by the user to specify the The upload location of the content corresponding to the selected webpage link object; or, the electronic device can upload the webpage content corresponding to the selected webpage link object to the default location.
  • the second user operation may be an operation of the user moving a certain webpage link object to an option corresponding to the function of exporting PDF documents, and in response to this operation, the electronic device exports the content corresponding to the webpage link object selected by the user as PDF Documentation.
  • the second user operation may be an operation in which the user moves a certain webpage link object to an option corresponding to the add attachment function.
  • the electronic device may display a second user interface, which may be used for user selection An email to add the content corresponding to the selected web page link object to the email in the form of an attachment.
  • the second user operation may be an operation in which the user moves a certain webpage link object to an option corresponding to the printing function.
  • the electronic device may display a second user interface, which may be used for the user to preview the selection.
  • the electronic device can execute the function corresponding to the option selected by the user according to the content selected by the user, without exiting the first user interface, without affecting the user to continue browsing other content in the first user interface, and improving user experience.
  • the first object is an icon of the first application; the electronic device displays at least one option according to the first object, including: the electronic device displays options and settings of the uninstall function in the first user interface Options for functions, options for using statistical functions, options for sharing functions, and/or options for rights management functions; when the options for using statistical functions are displayed, the electronic device receives the move from the icon of the first application to the options for using statistical functions A second user operation; in response to the second user operation, the electronic device counts the usage of the first application. In this way, the user can check the usage of the first application program through a simple operation, which improves the user experience.
  • the second user operation may be an operation of moving an icon of an application to an option corresponding to the uninstall function.
  • the electronic device may display a second user interface, which may be used by the user to confirm whether Uninstall the selected application; or, the electronic device can uninstall the selected application.
  • the second user operation may be an operation in which the user moves the icon of a certain application to the option corresponding to the setting function.
  • the electronic device may display a second user interface, which may be used for user settings The selected application.
  • the second user operation may be an operation in which the user moves an icon of an application to an option corresponding to the sharing function.
  • the electronic device may display a second user interface, which may be used for user selection The contact shares the selected application.
  • the second user operation may be an operation in which the user moves the icon of the first application program to the option corresponding to the authority management function.
  • the electronic device may display a second user interface, which may be used by the user Permission management for selected applications.
  • the user can uninstall or share the selected application program, or perform permission management and settings on the application program through simple operations, which improves the user experience.
  • the electronic device determines that at least one option is in the first user according to the display position of the first object on the first user interface.
  • the at least one option may move with the movement of the user's finger, so that the option at the center position corresponds to the first object or the first object being operated.
  • the first control is on the same horizontal line. In this way, it is convenient for the user to move the first object to the option selected by the user, and the user experience is improved.
  • the method includes: in response to the first user operation, the electronic device displays at least one option according to the first object and the first object corresponding to the first object. Control, the function corresponding to the at least one option is associated with the first object; the electronic device receives a second user operation of moving the first object to the first option in the at least one option; wherein the first object is moved to the first option in the at least one option.
  • the first option includes moving the first control corresponding to the first object to the first option, or moving the first object itself to the first option.
  • the electronic device can generate a control corresponding to the first object, so that the user can freely move the control generated by the electronic device in the user interface.
  • the electronic device may also display an animation effect of the control being moved as a feedback of the user's movement operation. In this way, it is convenient for users to operate and can improve user experience.
  • the present application provides a graphical user interface, the graphical user interface is stored in an electronic device, the electronic device includes a display screen, a memory, one or more processors, the one or more processors are used to execute the storage One or more computer programs in the memory, wherein the graphical interface includes: displaying a first user interface, the first user interface includes a first object; receiving a first user operation on the first object; and responding In the first user operation, at least one option is displayed according to the first object, and the function corresponding to the at least one option is associated with the first object; the second user operation of moving the first object to the first option in the at least one option is received, and the The content of the first object executes the user interface of the first function.
  • the beneficial effects here are the same as those described in the first aspect above, and will not be repeated here.
  • this application provides an electronic device, including a communication interface, a memory, and a processor; the communication interface, the memory are coupled with the processor, and the memory is used to store computer program codes.
  • the computer program codes include computer instructions.
  • the computer instructions are read from the memory, so that the electronic device executes the method for starting the function in any one of the possible implementations of the first aspect described above.
  • the beneficial effects here are the same as those described in the first aspect above, and will not be repeated here.
  • the present application provides an electronic device that includes a unit for executing the method for starting a function in any one of the possible implementation manners of the first aspect.
  • the beneficial effects here are the same as those described in the first aspect above, and will not be repeated here.
  • the present application provides a computer-readable storage medium, including: computer instructions, when the computer instructions run on an electronic device, cause the electronic device to execute any one of the possible implementations of the first aspect above The method of starting the function in.
  • the beneficial effects here are the same as those described in the first aspect above, and will not be repeated here.
  • the present application provides a computer program product that, when the computer program product runs on a computer, causes the computer to execute the method for starting the function in any one of the possible implementations of the first aspect.
  • the beneficial effects here are the same as those described in the first aspect above, and will not be repeated here.
  • Figures 1A-1D are schematic diagrams of a set of user interfaces in the prior art provided by this application;
  • 2A-2B are schematic diagrams of a set of user interfaces in the prior art provided by this application.
  • FIG. 3 is a flowchart of a method for starting a function provided by an embodiment of the application
  • 4A-4I are schematic diagrams of a set of user interfaces provided in Example 1 of this application.
  • 5A-5K are schematic diagrams of a set of user interfaces provided in Example 2 of this application.
  • 6A-6M are schematic diagrams of a set of user interfaces provided in Example 3 of this application.
  • FIGS. 7A-7B are schematic diagrams of a set of user interfaces provided by an embodiment of the application.
  • FIG. 8A is a schematic structural diagram of an electronic device provided by an embodiment of this application.
  • 8B-8D are schematic diagrams of a display screen of an electronic device provided by an embodiment of the application.
  • FIG. 9 is a schematic diagram of the software structure of an electronic device provided by an embodiment of the application.
  • FIG. 10 is a schematic diagram of the software and hardware of the electronic device provided by this application to realize the display user interface of this application;
  • FIG. 11 is a schematic diagram of the structure of the electronic device provided by this application.
  • first and second are only used for descriptive purposes, and cannot be understood as implying or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, “multiple” The meaning is two or more.
  • UI user interface
  • the term "user interface (UI)" in the description, claims and drawings of this application is a medium interface for interaction and information exchange between applications or operating systems and users, which implements the internal form of information And the user can accept the conversion between the forms.
  • the user interface of the application is the source code written in a specific computer language such as java, extensible markup language (XML), etc.
  • the interface source code is parsed and rendered on the terminal device, and finally presented as content that can be recognized by the user.
  • Control also called widget, is the basic element of the user interface. Typical controls include toolbar, menu bar, input box, button, scrollbar, Images and text.
  • the attributes and content of the controls in the interface are defined by tags or nodes.
  • XML specifies the controls contained in the interface through nodes such as ⁇ Textview>, ⁇ ImgView>, and ⁇ VideoView>.
  • a node corresponds to a control or attribute in the interface. After the node is parsed and rendered, it is presented as user-visible content.
  • applications such as hybrid applications, usually include web pages in their interfaces.
  • a web page, also called a page, can be understood as a special control embedded in the application program interface.
  • the web page is source code written in a specific computer language, such as hypertext markup language (GTML), cascading style Tables (cascading style sheets, CSS), java scripts (JavaScript, JS), etc.
  • web page source code can be loaded and displayed as user-recognizable content by a browser or a web page display component with similar functions to the browser.
  • the specific content contained in a web page is also defined by tags or nodes in the source code of the web page.
  • GTML uses ⁇ p>, ⁇ img>, ⁇ video>, and ⁇ canvas> to define the elements and attributes of the web page.
  • GUI graphical user interface
  • the "functions” involved in the embodiments of the present application include functions provided by the system (for example, “voice assistant” functions, “uninstall” functions, etc.) and functions provided by applications.
  • the functions provided by the application program refer to the functions that make up the application program or the sub-functions of these functions.
  • the functions such as “add friend” and “scanning” that compose WeChat shown in Figure 1B, and some sub-functions of “add friend” shown in Figure 1D (such as “radar add friend”, “face-to-face construction”, etc. Groups, etc.) can be referred to as “functions" in this application.
  • “Listening to songs and recognizing music” referred to in the embodiments of the present application refers to the audio collected by an electronic device, searching for a song matching the audio in a song library, and returning the result of recognizing the music.
  • the result of recognizing the song may include, but is not limited to: the song name, creator, singer, source of the song (such as the song playing web page, link, etc.) of the song found, and so on.
  • the found song is identified based on the collected audio, and has the same or similar frequency spectrum or lyrics as the audio.
  • the song library can be stored on a cloud server or in an electronic device.
  • the "read later" mentioned in the embodiments of this application means that the electronic device saves the content (for example, text, image, etc.) of the object (for example, webpage link object) that the user operates on in the server or electronic device, and provides it to the user The entry to view the saved content.
  • the user can view the previously saved content through this portal.
  • FIGS. 2A-2B provide schematic diagrams of user interfaces in the prior art.
  • FIG. 1 For example, the music APP icon
  • FIGS. 2A-2B provide schematic diagrams of user interfaces in the prior art.
  • the user interface 20A includes a music APP icon 201.
  • the electronic device receives the user's single-finger long press operation on the music APP icon 201 in the user interface 20A, the electronic device presents the user interface 20B to the user.
  • the user interface 20B presents some controls corresponding to the quick-start function corresponding to the music APP, such as the control 202 corresponding to the "play local” function, the control 203 corresponding to the "recently played” function, and the control 204 corresponding to the "search song” function.
  • the control 205 corresponding to the "listen to songs and recognize music” function
  • the control 206 corresponding to the "application information” function
  • the control 207 corresponding to the "uninstall” function, and so on. Users can quickly start the corresponding functions through these controls, such as "listen to songs and recognize songs”.
  • the user cannot specify an object to execute the function while activating the function. For example, as shown in FIG. 2B, the user cannot specify the "listening to the song” to the video being played while starting the “listening to the song to recognize the song”.
  • the user needs to activate the function of "listening to songs and recognizing music” first, and then select which audio (for example, the audio played in another electronic device) to perform the function of "listening to songs and recognizing music”.
  • Fig. 3 shows an overall flow chart of the method of initiating a function. As shown in Figure 3, the method may include:
  • the electronic device displays a first user interface, and the first user interface includes a first object.
  • the first user interface may be: an application user interface, a desktop, a lock screen interface, and so on.
  • the first user interface may include at least one object.
  • Each object can correspond to one or more content.
  • the "content corresponding to each object" may refer to the content displayed and/or controlled by the object (hereinafter also referred to as "content of the object").
  • Objects can include: controls or windows, etc.
  • the content can include: video, audio, text, web link, APP, image, etc.
  • the content may be the content stored by the electronic device itself, or the content obtained by the electronic device from other devices; it may be the content that has been obtained or the content that has not been obtained.
  • the objects can be divided into the following types: video objects, audio objects, text objects, web link objects, APP objects, and image objects.
  • the electronic device displays a user interface 40A.
  • the user interface 40A is a user interface of a video playing APP.
  • the user interface 40A includes objects 401-403.
  • the object 401 is used to display the video A being played.
  • the user can click on object 402 to display video B, and click on object 403 to display video C. It can be seen that the content of the object 401 is video A, the content of the object 402 is video B, and the content of the object 403 is video C.
  • the electronic device displays a user interface 50A.
  • the user interface 50A is a user interface of a browser APP.
  • the user interface 50A includes an object 501.
  • the content of the object 501 may be a web page link of "Golf World Cup Final Collection". That is, the user can click on the object 501 to display a web page of "Golf World Cup Final Highlights".
  • the electronic device displays a user interface 60A.
  • the user interface 60A is a desktop.
  • the user interface 60A includes an object 601.
  • Object 601 is the icon of Alipay.
  • the content of the object 601 is "Alipay APP".
  • the electronic device receives a first user operation on the first object.
  • the "first object” is the object selected by the user to perform the selected function.
  • the “first object” can be any object in the first user interface.
  • the first user operation can be a two-finger long press operation, a two-finger heavy press operation, or a finger hovering operation, etc., which is not limited here.
  • the user long presses the object 401 with two fingers. Then the object 401 is the first object.
  • the object 501 is the first object.
  • the user long presses the object 501 with two fingers, and the object 501 is the first object.
  • the user long presses the object 601 with two fingers, and the object 601 is the first object.
  • the electronic device displays at least one option according to the first object.
  • the electronic device may display one or more options. Each option corresponds to one or more functions.
  • the one or more functions may be provided by the APP installed on the electronic device, or may be provided by the system.
  • the electronic device displays at least one option according to the first object, which may specifically include:
  • each type of object in the electronic device may correspond to a characteristic value.
  • the feature value of the video object is "0000”
  • the feature value of the audio object is "0001”
  • the feature value of the image object is "0002”
  • the feature value of the text object is "0003”
  • the feature value of the web link is "0004" "
  • the characteristic value of the APP icon is "0005".
  • the electronic device determines the type of the first object according to the characteristic value of the first object. For example, if the characteristic value of the first object is “0000”, the electronic device determines that the first object is a video object.
  • Step 3032 Determine the at least one option according to the type of the first object.
  • Table 1 shows the functions that the electronic device can perform when the first object is an audio object, a video object, an image object, a text object, a webpage link object, or an application object, and applications that provide these functions. That is to say, after determining the type of the first object, it can be determined according to Table 1 which functions can be performed on the first object, and then which options are displayed.
  • the electronic device may display a function bar 405 including options 406-412.
  • the functions corresponding to option 406 to option 412 are "share”, “download”, “upload”, “listen to song”, “insert video”, “add attachment”, and "video edit”.
  • the electronic device may display a function bar 503 including options 504 to 510.
  • the functions corresponding to option 504 to option 510 are "share”, “download”, “upload”, “read later”, “export PDF document”, “add attachment”, and “print” respectively.
  • the electronic device may display a function bar 607 including option 602-option 606.
  • the functions corresponding to option 602 to option 606 are "uninstall”, “settings”, “usage statistics”, “sharing”, and “authority management” respectively.
  • the function corresponding to the option may be provided by the APP (video playback APP) corresponding to the user interface being displayed, or may be provided by an APP (such as music) different from the APP corresponding to the displayed user interface of.
  • option 406-option 412, option 504-option 510, and option 602-option 606 are only examples.
  • the first object is the option displayed when the video object is the first object
  • the option displayed when the first object is the webpage link object
  • the second The options displayed when an object is an APP object are not limited to this.
  • the " ⁇ kind of APP” mentioned in the above table is used to broadly refer to a certain kind of application with corresponding functions.
  • communication apps can include “WeChat”, “Lian Me” and “QQ”.
  • the “system” in the above table means that the function is provided by the system.
  • the "function corresponding to APP or system” in the above table is only an example, and does not limit whether the function is provided is an APP or a system; an application or a certain type of application in the table can be replaced with other applications with corresponding functions One or more applications.
  • the APP corresponding to "set phone ringtone" can be "music”.
  • the electronic device may display the options corresponding to each function according to the use times and/or use time of each function.
  • option 409 is displayed in the center position
  • “sharing” and “video editing” are used less frequently
  • option 406 is displayed In a location away from the center.
  • the electronic device may pause the play of the content after detecting the operation of the first user, thereby preventing the user from performing the operation When you miss the video playing content.
  • the content e.g., video A
  • the electronic device may pause the play of the content after detecting the operation of the first user, thereby preventing the user from performing the operation When you miss the video playing content.
  • the electronic device receives a second user operation of moving the first object to the first option among the at least one option.
  • the "first option” refers to any one option selected by the user from the at least one option.
  • the function corresponding to the first option is the function selected by the user to perform on the first object.
  • the second user operation may be a two-finger drag operation, that is, two fingers are used to move the first object to a certain option in the function bar.
  • the second user operation may also be a single-finger drag operation, a two-finger shaking operation, etc.
  • the specific implementation gesture and form of the second user operation are not limited here.
  • the first user operation and the second user operation may be continuous operations. For example, after the first user's operation, the user's finger always touches the display screen before the second user's operation.
  • moving the first object to the first option can include the following two methods:
  • Manner a Move the first control corresponding to the first object to the first option.
  • the electronic device may display a first control (eg, control 404, control 502) corresponding to the first object.
  • the content displayed by the first control may be the same as the content of the first object (eg, object 401, object 501).
  • the display position of the first control can move with the movement of the user's finger. The user can move the first control to the first option.
  • the electronic device may no longer display the first control, so as to prevent the user from giving up on executing a certain item in the function bar on the first object.
  • the first control displayed affects the user's viewing of the content shown on the display screen.
  • the initial display position of the first control may be the position of the first user operation (for example, the position of a two-finger long press, position 500, etc.), so that the user can perform the first user operation on the first object. , Continue to perform the second user operation on the first object.
  • Method b Move the first object itself to the first option.
  • the electronic device moves the first object itself (for example, the object 601) to the first option.
  • the “moving of the first object” described below may refer to moving “the first object itself” or “the first control corresponding to the first object”.
  • the display position of the at least one option may change as the position of the user's finger (or the first object, or the first control) changes, for example, as the user's finger moves up to move up, and moves down to move down.
  • the display position of the at least one option may change as the position of the user's finger (or the first object, or the first control) changes, for example, as the user's finger moves up to move up, and moves down to move down.
  • FIGS. 4H to 4I as shown in FIGS. 5J to 5K, or as shown in FIGS.
  • the At least one option when the lateral distance between the first object and at least one option is greater than the preset distance, the At least one option (option 406-option 412, option 504-option 510, option 602-option 606) can move up and down as the user's finger moves up, so that the centrally located option (ie, option 409, Option 507, option 604) and the first object or first control operated by the user are on the same horizontal line.
  • the electronic device executes the first function corresponding to the first option on the content of the first object.
  • the control 404 For example, as shown in FIG. 4C, if the user moves the control 404 to the option 409, it indicates that the user wants to perform the function corresponding to the option 409 on the content corresponding to the control 404 (ie, video A), that is, the user wants to use the listening song
  • the music recognition function recognizes the audio information in the video corresponding to the control 404. It is understandable that if the user moves the first control 404 to the option 406, it indicates that the user wants to perform the function corresponding to the option 406 on the content corresponding to the first control 404, that is, the user wants to use the sharing function to change the first control 404 Share the corresponding video with other contacts.
  • executing the "listen to songs and recognize music" function corresponding to the option 409 on the object 401 may specifically include: the electronic device acquiring control 404 corresponds to the audio 15 seconds before the video is paused. The electronic device performs Fourier transform on the audio to obtain the frequency spectrum of the audio. The electronic device searches the song library for the song corresponding to the frequency spectrum of the audio.
  • the user moves the control 502 to the option 507, it indicates that the user wants to perform the function corresponding to the option 507 on the content corresponding to the control 502. In other words, the user wants to use the reading later function to add the webpage content of the webpage link corresponding to the control 502 to the reading later list.
  • the user moves the object 601 to the option 604, it indicates that the user wants to perform the function corresponding to the option 604 on the content corresponding to the object 601 (ie, Alipay APP).
  • the user wants to use the usage statistics function to count the usage time, the number of usage, and the like of the application corresponding to the object 601.
  • the electronic device may indicate the option currently selected by the user by zooming in on the icon of the option. For example, as shown in FIG. 4D, the icon of option 409 is enlarged. As another example, as shown in FIG. 5D, the icon of option 507 is selected. For another example, as shown in FIG. 6D, the icon of option 604 is enlarged.
  • the electronic device may display the animation of the first object or the first control corresponding to the first object shrinking into the first option. As a result, it is convenient for the user to know which object the electronic device should perform the function corresponding to which option.
  • the method may further include:
  • the electronic device displays the first user interface and the second user interface corresponding to the first function in regions.
  • the second user interface is a user interface that performs the first function on the content of the first object. In this way, it is convenient for the user to view the result of performing the selected function processing on the first object selected by the user.
  • the first user interface displayed in step 306 may be the same as the first user interface displayed in step 301, or may not be completely the same as the first user interface displayed in step 301.
  • the electronic device displays a user interface 40E and a user interface 40A.
  • the user interface 40E is a user interface of "listening to songs and recognizing music" of the "music APP".
  • the user interface 40E shows the recognition result of the song in the video 401, that is, the song at 9 minutes and 21 seconds in the video 401 is "Rolling in the deep".
  • the electronic device may display a user interface 50A and a user interface 50E.
  • the user interface 50E is the "read later" user interface of the "e-book APP".
  • the user interface 50E displays a later reading list, including a plurality of webpage links arranged in the order of addition time. The time when each web page link was added to the reading later list can be displayed in the reading later list.
  • web page link 512 is added to the later reading list.
  • the text 513 shows the time when the web page link 512 was added to the reading later list ("just now"). It is understandable that the user can operate the second user interface.
  • the user can click a webpage link 512, and the electronic device as shown in FIG. 5G displays a user interface 50G, and the webpage link corresponds to the webpage content.
  • the webpage content may specifically include a title 514, a webpage publishing author 515 (such as ABC News), a control 516, and body content 517, and so on.
  • the electronic device may display an interface 60A and an interface 60D.
  • the user interface 60D is a user interface corresponding to the function of the option 604.
  • the user interface 60D shows the usage statistics interface of Alipay, including the last usage time 607 and the total usage time 608.
  • the electronic device may execute step 306 in response to the electronic device changing from the folded state to the unfolded state.
  • FIG. 6G shows the electronic device in an expanded state.
  • the electronic device 100 in response to the electronic device 100 being changed from the folded state to the unfolded state, displays a first user interface (user interface 40A) on screen A and a second user interface (user interface 40A) on screen B. Interface 40E).
  • the electronic device may resume the playback of the video that was paused after the first user's operation.
  • video A can be in the playing state at this time.
  • the electronic device may end the display of the second user interface in response to a preset user operation.
  • the second user interface may include an interface for ending the second user interface (eg, interface 40E, interface 50E, interface 60E) Displayed close controls (eg, control 413, control 511, control 611). The user can close the display of the second user interface by clicking the close control.
  • the electronic device may also end the display of the second user interface in response to the electronic device changing from the expanded state to the collapsed state.
  • the electronic device may respond to the electronic device changing from an expanded state to a folded state, or in response to a preset user operation, reduce the second user interface to a floating window, or move to a negative screen for display, which is convenient
  • the user can display the second user interface again after finishing the display of the second user interface.
  • This application uses a folding screen device as an example to illustrate the embodiments of this application, but it is not limited to a folding screen device.
  • the embodiments of this application can also be applied to tablet devices and other electronic devices.
  • the single-screen device shown in FIGS. 6J-6L and the tablet device shown in FIG. 6M can be respectively displayed in the display area A and the display area B as shown in FIG. 6J; the display area C and the display area D as shown in FIG. 6K; The display area E and the display area F shown in 6L; or the display area G and the display area H shown in FIG. 6M.
  • the user can quickly start the functions in the electronic device (such as listening to songs and recognizing music) with less operations.
  • the functions in the electronic device such as listening to songs and recognizing music
  • the video object for example, a two-finger long press operation
  • the user only needs to move the video object to the function of listening to songs to recognize the music. Audio information for music recognition.
  • the electronic device performs the function of listening to songs and recognizing music
  • the video playback interface is still displayed on the electronic device, and the user does not need to exit the video playback interface. This not only simplifies the user's operation, but also does not affect the user to continue watching the video.
  • the electronic device displaying the second user interface (for example, the result interface of listening to songs and recognizing music) helps the user to know the result of performing the first function on the first object.
  • FIG. 8A shows a schematic diagram of the structure of the electronic device 100.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that the processor 110 has just used or used cyclically. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter/receiver (universal asynchronous) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter/receiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the I2C interface is a bidirectional synchronous serial bus, which includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may couple the touch sensor 180K, the charger, the flash, the camera 193, etc., respectively through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement the touch function of the electronic device 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
  • the MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on.
  • the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100.
  • the processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect to other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like 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 by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can use liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the display screen 194 in FIG. 8A may be bent.
  • the above-mentioned display screen 194 can be bent means that the display screen can be bent to any angle at any part (hereinafter referred to as the "bent part” as the "bend part"), and can be maintained at this angle, for example ,
  • the display screen 194 can be folded in half from the center. You can also fold up and down from the middle.
  • FIG. 8B when the display screen 194 is bent, the display area can be divided into an A screen, a B screen, and a side screen with the bending part as a boundary.
  • a display screen that can be bent is referred to as a foldable display screen.
  • the foldable display screen may be one screen, or a display screen formed by patching together multiple screens, which is not limited here.
  • the electronic device can be divided into a folded state (as shown in FIG. 8B and FIG. 8C) and an unfolded state (as shown in FIG. 8D).
  • the included angle ⁇ is less than the first angle (for example, 180 degrees) and greater than or equal to the second angle (for example, 90 degrees)
  • the included angle ⁇ is less than the third angle (for example, 90 degrees) and greater than or equal to the fourth angle (for example, 0 degrees)
  • the electronic device is in the folded state.
  • the electronic device 100 can measure the size of the included angle through an angle sensor (not shown in FIG. 8A) disposed at the bending part of the foldable display screen. Or the electronic device can also use other methods to measure the included angle, which is not limited here.
  • the electronic device may only display content on a partial area of the display screen. For example, it is possible to display content only on screen A, and screen B in an off-screen state. At this time, if the electronic device changes from the folded state to the unfolded state, the electronic device can light up the B screen, and the electronic device uses the entire area of the display screen for display.
  • the electronic device 100 can realize a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back by the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include one or N cameras 193, and N is a positive integer greater than one.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store one or more computer programs, and the one or more computer programs include instructions.
  • the processor 110 may execute the above-mentioned instructions stored in the internal memory 121 to enable the electronic device 100 to execute the methods provided in some embodiments of the present application.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA, CTIA
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application option, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application option, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and be used in applications such as horizontal and vertical screen switching, pedometers and so on.
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 100 emits infrared light to the outside through the light emitting diode.
  • the electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100.
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations that act on different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 may also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 uses an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present invention takes an Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 by way of example.
  • FIG. 9 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides an application programming interface (APPlication programming interface, API) and a programming framework for applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and so on.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text, controls that display images, and so on.
  • the view system can be used to construct the display interface of the application.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays images.
  • the phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, images, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can disappear automatically after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, and so on.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text information is prompted in the status bar, a prompt sound is emitted, the electronic device 100 vibrates, and the indicator light flashes.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes the touch operation into the original input event (including touch coordinates, time stamp of the touch operation, etc.).
  • the original input events are stored in the kernel layer.
  • the application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and the control corresponding to the click operation is the control of the camera application icon as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer.
  • the camera 193 captures still images or videos.
  • the kernel layer, application framework layer, and application layer in Fig. 10 correspond to the kernel layer, application framework layer, and application layer in Fig. 9 respectively.
  • the sensor driver can be used to detect user operations (such as two-finger long-press operations, two-finger drag operations, etc.), and report the detected user operations to generate input events to the application framework layer.
  • user operations such as two-finger long-press operations, two-finger drag operations, etc.
  • the quick start function manager can be used to determine the functions related to the object operated by the user (for example, the user long presses the video object with two fingers, the related functions can be listening to music, video sharing, video editing, and uploading the video to the cloud disk. Etc.) and determine which function to run according to user operation (for example, the user drags the video object with two fingers to the corresponding option of listening to songs and recognizing songs, then the function of listening to songs and recognizing songs is run).
  • the resource manager can be used to save the video files played in the video APP and provide the video files to the quick start function manager.
  • the display driver is used to display the user interface of playing video and the display interface of the results of listening to songs.
  • FIG 11 shows a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device may include: a first display unit 101, a first receiving unit 102, a second display unit 103, a second receiving unit 104, and an execution unit 105.
  • the first display unit 101 is configured to display a first user interface, and the first user interface includes a first object.
  • the first user interface includes a first object.
  • the first receiving unit 102 is configured to receive a first user operation on the first object. For details about the first user operation, refer to step S302, which will not be repeated here.
  • the second display unit 103 is configured to display at least one option according to the first object in response to the first user operation, and the function corresponding to the at least one option is associated with the first object.
  • the at least one option please refer to step S303, which will not be omitted here. Go into details.
  • the second receiving unit 104 is configured to receive a second user operation of moving the first object to the first option of the at least one option. For details of the second user operation, refer to step S304, which will not be repeated here.
  • the execution unit 105 is configured to execute the first function corresponding to the first option on the content of the first object in response to the second user operation. For details, please refer to step S305, which will not be repeated here.
  • the embodiment of the present application also provides a computer-readable storage medium. All or part of the processes in the foregoing method embodiments may be completed by a computer program instructing relevant hardware.
  • the program may be stored in the foregoing computer storage medium. When the program is executed, it may include the processes of the foregoing method embodiments.
  • the computer-readable storage medium includes: read-only memory (ROM) or random access memory (RAM), magnetic disks or optical disks and other media that can store program codes.
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it can be implemented in the form of a computer program product in whole or in part.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
  • the units in the electronic equipment in the embodiments of the present application may be combined, divided, and deleted according to actual needs.

Abstract

Disclosed in the present application is a method for activating a function, comprising: an electronic device displays a first user interface, the first user interface comprising a first object; the electronic device receives a first user operation on the first object; in response to the first user operation, the electronic device displays at least one option on the basis of the first object, a function corresponding to the at least one option being associated with the first object; the electronic device receives a second user operation to move the first object to a first option in the at least one option; and, in response to the second user operation, the electronic device executes a first function corresponding to the first option on the content of the first object. By means of a simple operation, the user can make the electronic device execute a function corresponding to the option selected by the user on the basis of content selected by the user. Thus, the user operation is simple and can enhance the user experience.

Description

启动功能的方法及电子设备Method for starting function and electronic equipment
本申请要求于2019年10月31日提交中国专利局、申请号为201911056326.5、申请名称为“启动功能的方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on October 31, 2019, the application number is 201911056326.5, and the application name is "Method and Electronic Device for Starting Function", the entire content of which is incorporated into this application by reference .
技术领域Technical field
本申请涉及电子技术领域,尤其涉及启动功能的方法及电子设备。This application relates to the field of electronic technology, and in particular to methods and electronic devices for starting functions.
背景技术Background technique
目前,电子设备中可以安装各种各样的应用程序(Application,APP)。一个APP可由多个功能组成,例如,图1A-图1D所示,微信中具有“发起群聊”、“添加朋友”、“扫一扫”、“收付款”等功能。一个功能还可以由多个子功能构成,例如,“添加朋友”功能可以由“输入微信号或手机号查找朋友”、“雷达加朋友”、“面对面建群”、“扫一扫”、“手机联系人加朋友”以及“公众号”等多个子功能构成。At present, various application programs (Application, APP) can be installed in electronic devices. An APP can be composed of multiple functions. For example, as shown in Figures 1A-1D, WeChat has functions such as "initiate a group chat", "add friends", "scan", and "receive payments". A function can also be composed of multiple sub-functions. For example, the "Add Friend" function can be composed of "Enter WeChat ID or mobile phone number to find friends", "Radar add friends", "Face-to-face group building", "Scan", "Mobile phone" Multiple sub-functions such as "Contacts and Friends" and "Official Account".
现有技术中,进入APP的特定功能,例如微信中“面对面建群”功能,用户需要先打开微信APP进入图1A示出的微信主界面10A。然后,如图1A所示用户点击控件105,电子设备显示图1B示出的用户界面10B,用户界面10B示出了用于启动“添加朋友”功能的控件107。接着,如图1C所示用户点击控件107,电子设备将图1C示出的用户界面10C刷新为图1D中示出的用户界面10D。用户界面10D中示出了用于启动“面对面建群”功能的控件112。最后,用户需要点击控件112,电子设备才启动“面对面建群”功能。这样,用户需要进行多次操作,操作繁琐,用户体验差。In the prior art, to enter a specific function of the APP, such as the "face-to-face group building" function in WeChat, the user needs to first open the WeChat APP to enter the WeChat main interface 10A shown in FIG. 1A. Then, as shown in FIG. 1A, the user clicks on the control 105, the electronic device displays the user interface 10B shown in FIG. 1B, and the user interface 10B shows the control 107 for starting the "add friend" function. Next, as shown in FIG. 1C, the user clicks the control 107, and the electronic device refreshes the user interface 10C shown in FIG. 1C to the user interface 10D shown in FIG. 1D. The user interface 10D shows a control 112 for starting the "face-to-face group building" function. Finally, the user needs to click the control 112 before the electronic device starts the "face-to-face group building" function. In this way, the user needs to perform multiple operations, the operations are cumbersome, and the user experience is poor.
发明内容Summary of the invention
本申请提供了一种启动功能的方法及电子设备,用户通过简单的操作就可以使得电子设备根据用户选定的内容来执行用户选择的选项对应的功能。The present application provides a method for starting a function and an electronic device. The user can make the electronic device execute the function corresponding to the option selected by the user according to the content selected by the user through a simple operation.
第一方面,本申请提供了一种启动功能的方法,包括:电子设备显示第一用户界面,第一用户界面包含第一对象;电子设备接收对第一对象的第一用户操作;响应于第一用户操作,电子设备根据第一对象显示至少一个选项,至少一个选项对应的功能与第一对象相关联;电子设备接收将第一对象移动至至少一个选项中的第一选项处的第二用户操作;响应于第二用户操作,电子设备对第一对象的内容执行与第一选项对应的第一功能。In a first aspect, the present application provides a method for starting a function, including: an electronic device displays a first user interface, and the first user interface includes a first object; the electronic device receives a first user operation on the first object; A user operation, the electronic device displays at least one option according to the first object, and the function corresponding to the at least one option is associated with the first object; the electronic device receives the second user who moves the first object to the first option of the at least one option Operation; In response to a second user operation, the electronic device performs a first function corresponding to the first option on the content of the first object.
其中,第一用户操作可以是双指长按第一对象的操作,和/或,第二用户操作可以双指拖动第一对象的操作。这里,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。The first user operation may be an operation of long pressing the first object with two fingers, and/or the second user operation may be an operation of dragging the first object with two fingers. Here, A and/or B can mean: A alone exists, A and B exist at the same time, and B exists alone.
通过本申请提供的一种启动功能的方法,可以在电子设备接收到用户对第一对象的操作时,显示出第一对象对应的选项,然后,电子设备在接收到用户对第一对象移动到第一选项中时,电子设备可以根据用户选定的内容执行与第一选项对应的第一功能。这样,用户操作简单,可以提升用户体验。With the method for starting a function provided by the present application, when the electronic device receives the user's operation on the first object, it can display the options corresponding to the first object, and then the electronic device receives the user's movement to the first object. When in the first option, the electronic device can execute the first function corresponding to the first option according to the content selected by the user. In this way, user operations are simple and user experience can be improved.
在一种可能的实现方式中,第一用户操作和第二用户操作是连续的操作,即第一用户操作和第二用户操作的时间间隔不超过第一预设时间,第一预设时间可以是5秒、10秒等等。这样,用户只需要一步操作就可以执行本申请的方法。进一步地,电子设备如果在预设时间内未接收到用户的第二用户操作,电子设备可以使得显示的选项消失,这样,避免了由于第 一用户操作调出的至少一个选项会影响用户查看第一用户界面中的第一对象。In a possible implementation manner, the first user operation and the second user operation are continuous operations, that is, the time interval between the first user operation and the second user operation does not exceed the first preset time, and the first preset time can be It's 5 seconds, 10 seconds, etc. In this way, the user can execute the method of this application with only one operation. Further, if the electronic device does not receive the second user operation of the user within the preset time, the electronic device can make the displayed options disappear. In this way, it is avoided that at least one option called by the first user operation will affect the user's viewing of the first user operation. The first object in a user interface.
在一种可能的实现方式中,电子设备执行与第一选项对应的第一功能之后,该方法还包括:电子设备分区域显示第一用户界面和第二用户界面,第二用户界面为对第一对象的内容执行第一功能的用户界面。这样,方便用户查看第一功能执行后的结果,并且,也不影响用户继续查看第一用户界面中的内容。In a possible implementation manner, after the electronic device executes the first function corresponding to the first option, the method further includes: the electronic device displays the first user interface and the second user interface in different areas, and the second user interface is the second user interface. The content of an object performs the first function of the user interface. In this way, it is convenient for the user to view the result after the execution of the first function, and it does not affect the user to continue to view the content in the first user interface.
在一种可能的实现方式中,电子设备分区域显示第一用户界面和第二用户界面,包括:响应于电子设备由折叠态到展开态,电子设备分区域显示第一用户界面和第二用户界面。这样,当用户的将电子设备从折叠态展开成展开态的时候,电子设备在电子设备的两个区域中分别显示第一用户界面和第二用户界面,这样,既没有缩小第一用户界面,不影响用户继续查看第一用户界面,还可以方便用户查看第二用户界面,提升了用户体验。In a possible implementation manner, the electronic device displays the first user interface and the second user interface in different areas, including: in response to the electronic device changing from a folded state to an unfolded state, the electronic device displays the first user interface and the second user in different areas interface. In this way, when the user unfolds the electronic device from the folded state to the unfolded state, the electronic device displays the first user interface and the second user interface in the two areas of the electronic device, so that the first user interface is not reduced, It does not affect the user to continue to view the first user interface, and it is also convenient for the user to view the second user interface, which improves the user experience.
在一种可能的实现方式中,根据第一对象显示至少一个选项包括:电子设备确定第一对象的类型,根据第一对象的类型确定至少一个选项。这样,电子设备可以确保显示出的至少一个选项与第一对象是相关联的。In a possible implementation manner, displaying the at least one option according to the first object includes: the electronic device determines the type of the first object, and determines the at least one option according to the type of the first object. In this way, the electronic device can ensure that the displayed at least one option is associated with the first object.
在一种可能的实现方式中,第一对象包括视频对象、音频对象、文本对象、网页链接对象、APP对象、图像对象。这里,电子设备可以根据类型将第一对象分为视频对象、音频对象、文本对象、网页链接对象、APP对象、图像对象。In a possible implementation manner, the first object includes a video object, an audio object, a text object, a web page link object, an APP object, and an image object. Here, the electronic device can divide the first object into a video object, an audio object, a text object, a webpage link object, an APP object, and an image object according to the type.
在一种可能的实现方式中,电子设备确定第一对象的类型包括:电子设备根据第一对象的特征值确定第一对象的类型,特征值用于标识第一对象的类型。这样,电子设备可以更准确的确定第一对象的类型。In a possible implementation manner, the electronic device determining the type of the first object includes: the electronic device determines the type of the first object according to the characteristic value of the first object, and the characteristic value is used to identify the type of the first object. In this way, the electronic device can more accurately determine the type of the first object.
在一种可能的实现方式中,根据所述第一对象的类型确定所述至少一个选项,包括:若所述第一对象为所述视频对象,所述至少一个选项包括以下一个或多个:分享功能的选项、下载功能的选项、上传功能的选项、听歌识曲功能的选项、插入视频功能的选项、添加附件功能的选项、视频编辑功能的选项;若所述第一对象为所述网页链接对象,所述至少一个选项包括以下一个或多个:分享功能的选项、下载功能的选项、上传功能的选项、稍后阅读功能的选项、导出PDF文档功能的选项、添加附件功能的选项、打印功能的选项;若所述第一对象为所述APP对象,所述至少一个选项包括以下一个或多个:卸载功能的选项、设置功能的选项、使用统计功能的选项、分享功能的选项、权限管理功能的选项。In a possible implementation manner, determining the at least one option according to the type of the first object includes: if the first object is the video object, the at least one option includes one or more of the following: Option of sharing function, option of downloading function, option of uploading function, option of listening to music function, option of inserting video function, option of adding attachment function, option of video editing function; if said first object is said A web page link object, the at least one option includes one or more of the following: an option of sharing function, an option of download function, an option of upload function, an option of reading later function, an option of exporting a PDF document, an option of adding an attachment function , Options for the printing function; if the first object is the APP object, the at least one option includes one or more of the following: options for uninstalling functions, options for setting functions, options for using statistical functions, options for sharing functions , Option of authority management function.
这里,A(例如,听歌识曲、下载等等)功能的选项可以为A功能对应的选项,通过该选项可以进入A功能。Here, the option of the A (for example, listening to songs, recognizing music, downloading, etc.) function may be an option corresponding to the A function, through which the A function can be entered.
在一种可能的实现方式中,第一对象为第一视频;电子设备根据所述第一对象显示至少一个选项,包括:电子设备在所述第一用户界面中显示分享功能的选项、下载功能的选项、上传功能的选项、听歌识曲功能的选项、插入视频功能的选项、添加附件功能的选项、和/或视频编辑的选项;在显示听歌识曲功能的选项时,电子设备接收将第一视频移动至听歌识曲功能的选项的第二用户操作;响应于第二用户操作,电子设备识别第一视频包括的第一音频的歌曲信息,歌曲信息包括歌曲名称、歌曲歌词、歌曲演唱者、歌曲创作者、和/或歌曲链接。这样,用户可以通过简单的操作就可以知道选定视频中的歌曲信息,并且不用退出第一用户界面,不影响用户继续观看第一用户界面中的视频,提升了用户体验。In a possible implementation manner, the first object is a first video; the electronic device displays at least one option according to the first object, including: the electronic device displays an option of a sharing function and a download function in the first user interface Option, upload function option, song recognition function option, insert video function option, add attachment function option, and/or video editing option; when the option of listening song recognition function is displayed, the electronic device receives Move the first video to the second user operation of the function of listening to songs and recognizing music; in response to the second user operation, the electronic device recognizes the song information of the first audio included in the first video, and the song information includes song name, song lyrics, Song artist, song creator, and/or song link. In this way, the user can know the song information in the selected video through a simple operation, and does not need to exit the first user interface, which does not affect the user to continue watching the video in the first user interface, which improves the user experience.
可选地,第二用户操作可以是用户将某一视频对象移动至分享功能对应的选项的操作。响应于该操作,电子设备可以显示第二用户界面,第二用户界面可用于用户选择联系人来分享选定的视频对象对应的内容。Optionally, the second user operation may be an operation in which the user moves a certain video object to an option corresponding to the sharing function. In response to this operation, the electronic device may display a second user interface, and the second user interface may be used by the user to select a contact to share content corresponding to the selected video object.
可选地,第二用户操作可以是用户将某一视频对象移动至下载功能对应的选项的操作,响应于该操作,电子设备可以显示第二用户界面,第二用户界面可用于用户指定该选定的视频对象的内容的下载位置;或者电子设备将选定的视频对象对应的内容下载至默认位置。Optionally, the second user operation may be an operation in which the user moves a certain video object to an option corresponding to the download function. In response to this operation, the electronic device may display a second user interface, and the second user interface may be used by the user to specify the option. The download location of the content of the selected video object; or the electronic device downloads the content corresponding to the selected video object to the default location.
可选地,第二用户操作可以是用户将某一视频对象移动至上传功能对应的选项的操作,响应于该操作,电子设备可以显示第二用户界面,第二用户界面可用于用户指定该选定的视频对象对应的内容的上传位置;或者,电子设备将选定的视频对象对应的内容上传到默认位置。Optionally, the second user operation may be an operation in which the user moves a certain video object to an option corresponding to the upload function. In response to this operation, the electronic device may display a second user interface, and the second user interface may be used by the user to specify the option. The upload location of the content corresponding to the selected video object; or, the electronic device uploads the content corresponding to the selected video object to the default location.
可选地,第二用户操作可以是用户将某一视频对象移动至插入视频功能对应的选项的操作,响应于该操作,电子设备可以显示第二用户界面,第二用户界面可用于用户指定该选定的视频对象对应的内容的插入位置(如,备忘录、文档等);或者电子设备新建邮件或者文档插入该选定的视频对象对应的内容。Optionally, the second user operation may be an operation in which the user moves a certain video object to an option corresponding to the insert video function. In response to this operation, the electronic device may display a second user interface, and the second user interface may be used by the user to specify the The insertion position of the content corresponding to the selected video object (for example, a memo, document, etc.); or the electronic device creates a new mail or document to insert the content corresponding to the selected video object.
可选地,第二用户操作可以是用户将某一视频对象移动至添加附件功能对应的选项的操作,响应于该操作,电子设备可以显示第二用户界面,第二用户界面可用于用户选择某一封邮件来添加选定的视频对象对应的内容。Optionally, the second user operation may be an operation in which the user moves a certain video object to an option corresponding to the add accessory function. In response to this operation, the electronic device may display a second user interface, which may be used by the user to select a certain An email to add the content corresponding to the selected video object.
可选地,第二用户操作可以是用户将某一视频对象移动至视频编辑功能对应的选项的操作,响应于该操作,电子设备可以显示第二用户界面,第二用户界面可用于用户对选定的视频对象对应的内容进行编辑。Optionally, the second user operation may be an operation in which the user moves a certain video object to an option corresponding to the video editing function. In response to this operation, the electronic device may display a second user interface, which may be used by the user to select Edit the content corresponding to the specified video object.
这样,用户可以通过简单的操作,电子设备就可以根据用户选定的内容执行用户选择的选项对应的功能,并且不用退出第一用户界面,不影响用户继续观看第一用户界面中的视频,提升了用户体验。In this way, the user can perform simple operations on the electronic device to perform the function corresponding to the option selected by the user according to the content selected by the user, without exiting the first user interface, and does not affect the user from continuing to watch the video in the first user interface. Improve the user experience.
在一种可能的实现方式中,第一对象为第一音频;电子设备根据所述第一对象显示至少一个选项,包括:电子设备在所述第一用户界面中显示分享功能的选项、下载功能的选项、上传功能的选项、听歌识曲功能的选项、插入音频功能的选项、添加附件功能的选项、和/或音频编辑的选项;在显示听歌识曲功能的选项时,电子设备接收将第一音频移动至听歌识曲功能的选项的第二用户操作;响应于第二用户操作,电子设备识别第一音频中的歌曲信息,歌曲信息包括歌曲名称、歌曲歌词、歌曲演唱者、歌曲创作者、和/或歌曲链接。这样,用户可在收听音频的时候,对播放的音频进行简单操作,就可以识别出该音频中的歌曲信息,并且不用退出播放音频的用户界面。这样,不影响用户继续收听音频,提升了用户体验。In a possible implementation manner, the first object is the first audio; the electronic device displays at least one option according to the first object, including: the electronic device displays an option of a sharing function and a download function in the first user interface Option, upload function option, song recognition function option, insert audio function option, add accessory function option, and/or audio editing option; when the option of listening song recognition function is displayed, the electronic device receives Move the first audio to the second user operation of the function of listening to songs and recognizing music; in response to the second user operation, the electronic device recognizes the song information in the first audio, and the song information includes song name, song lyrics, song singer, Song creator, and/or song link. In this way, the user can perform simple operations on the played audio when listening to the audio, and can identify the song information in the audio without having to exit the user interface for playing the audio. In this way, the user is not affected to continue listening to the audio, and the user experience is improved.
可选地,第二用户操作可以是用户将某一音频对象移动至分享功能对应的选项的操作,响应于该操作,电子设备可以显示第二用户界面,第二用户界面可用于用户选择联系人分享该选定的音频对象对应的内容。Optionally, the second user operation may be an operation in which the user moves an audio object to an option corresponding to the sharing function. In response to this operation, the electronic device may display a second user interface, which may be used by the user to select contacts Share the content corresponding to the selected audio object.
可选地,第二用户操作可以是用户将某一音频对象移动至下载功能对应的选项的操作,响应于该操作,电子设备可以显示第二用户界面,第二用户界面可用于用户指定该选定的音频对象的内容的下载位置;或者电子设备将选定的音频对象对应的内容下载至默认位置。Optionally, the second user operation may be an operation in which the user moves an audio object to an option corresponding to the download function. In response to this operation, the electronic device may display a second user interface, and the second user interface may be used by the user to specify the option. The download location of the content of the selected audio object; or the electronic device downloads the content corresponding to the selected audio object to the default location.
可选地,第二用户操作可以是用户将某一音频对象移动至上传功能对应的选项的操作,响应于该操作,电子设备可以显示第二用户界面,第二用户界面可用于用户指定该选定的音频对象对应的内容的上传位置;或者电子设备可以将选定的音频对应的内容上传到默认位置。Optionally, the second user operation may be an operation in which the user moves an audio object to an option corresponding to the upload function. In response to this operation, the electronic device may display a second user interface, and the second user interface may be used by the user to specify the option. The upload location of the content corresponding to the selected audio object; or the electronic device can upload the content corresponding to the selected audio to the default location.
可选地,第二用户操作可以是用户将某一音频对象移动至插入音频功能对应的选项的操作,响应于该操作,电子设备可以显示第二用户界面,第二用户界面可用于用户指定该选定的音频对象对应的内容的插入位置(如,插入文档1的第一页,或插入文档2的首页);或者 电子设备可以新建邮件或者文档插入该选定的音频对象对应的内容。Optionally, the second user operation may be an operation in which the user moves an audio object to an option corresponding to the insert audio function. In response to this operation, the electronic device may display a second user interface, and the second user interface may be used by the user to specify the The insertion position of the content corresponding to the selected audio object (eg, insert the first page of document 1, or the first page of document 2); or the electronic device can create a new mail or document and insert the content corresponding to the selected audio object.
可选地,第二用户操作可以是用户将某一音频对象移动至添加附件功能对应的选项的操作,响应于该操作,电子设备可以显示第二用户界面,第二用户界面可用于用户选择某一封邮件来添加选定的音频对象对应的内容。Optionally, the second user operation may be an operation in which the user moves an audio object to an option corresponding to the add accessory function. In response to this operation, the electronic device may display a second user interface, and the second user interface may be used by the user to select a certain An email to add the content corresponding to the selected audio object.
可选地,第二用户操作可以是用户将某一音频对象移动至音频编辑功能对饮的选项的操作,响应于该操作,电子设备可以显示第二用户界面,第二用户界面可用于用户对选定的音频对象对应的内容进行编辑。Optionally, the second user operation may be an operation of the user moving a certain audio object to the drinking option of the audio editing function. In response to this operation, the electronic device may display a second user interface, which may be used by the user to The content corresponding to the selected audio object is edited.
这样,用户通过简单的操作可以对用户选定的音频进行分享、上传、下载等等,并且还可以将用户选定的音频插入到备忘录或者文档中,或者将选定的音频插入到邮件中,以及对选定的音频进行编辑,提升了用户体验。In this way, the user can share, upload, download, etc. the audio selected by the user through simple operations, and can also insert the audio selected by the user into a memo or document, or insert the selected audio into an email. And edit the selected audio to enhance the user experience.
在一种可能的实现方式中,第一对象为第一网页链接;电子设备根据第一对象显示至少一个选项,包括:电子设备在第一用户界面中显示下载功能的选项、上传功能的选项、听歌识曲功能的选项、插入音频功能的选项、添加附件功能的选项、和/或音频编辑的选项;显示稍后阅读功能的选项时,电子设备接收将第一网页链接移动至稍后阅读功能的选项的第二用户操作;响应于所述第二用户操作,所述电子设备保存所述第一网页链接的内容和生成用于查看第一网页链接的内容的入口。其中,入口可以包括链接、快捷方式,用户可以通过第一网页链接的内容的入口查看第一网页链接的内容。In a possible implementation manner, the first object is a first webpage link; the electronic device displays at least one option according to the first object, including: the electronic device displays the download function option, the upload function option, and the option of the upload function in the first user interface. The option of listening to songs and recognizing music, the option of inserting audio, the option of adding attachments, and/or the option of audio editing; when the option of reading later function is displayed, the electronic device receives and moves the first webpage link to read later The second user operation of the option of the function; in response to the second user operation, the electronic device saves the content of the first webpage link and generates an entry for viewing the content of the first webpage link. Wherein, the entry may include a link and a shortcut, and the user can view the content of the first webpage link through the entry of the content of the first webpage link.
这样,用户可以通过简单操作可以将选定的网页链接的内容添加到稍后阅读,可以随时阅读选定的网页链接中的内容,并且不用退出第一用户界面,不影响用户继续浏览第一用户界面中的其他内容,提升了用户体验。In this way, the user can add the content of the selected webpage link to later reading through simple operations, and can read the content of the selected webpage link at any time, and does not need to exit the first user interface, and does not affect the user to continue to browse the first user Other content in the interface enhances the user experience.
可选地,第二用户操作可以是用户将某一网页链接对象移动至分享功能对应的选项的操作,响应于该操作,电子设备可以显示第二用户界面,第二用户界面可用于用户选择联系人分享选定的网页链接对象对应的内容。Optionally, the second user operation may be an operation in which the user moves a certain webpage link object to an option corresponding to the sharing function. In response to this operation, the electronic device may display a second user interface, which may be used by the user to select a connection People share the content corresponding to the selected web page link object.
可选地,第二用户操作可以是用户将某一网页链接对象移动至下载功能对应的选项的操作,响应于该操作,电子设备显示第二用户界面,第二用户界面可用于用户指定该选定的网页链接对象对应的内容的下载位置;或者,电子设备可以将选定的网页链接对象对应的内容下载至默认位置。Optionally, the second user operation may be an operation in which the user moves a certain webpage link object to an option corresponding to the download function. In response to this operation, the electronic device displays a second user interface, and the second user interface may be used by the user to specify the option. The download location of the content corresponding to the selected webpage link object; or, the electronic device can download the content corresponding to the selected webpage link object to the default location.
可选地,第二用户操作可以是用户将某一网页链接对象移动至上传功能对应的选项的操作,响应于该操作,电子设备可以显示第二用户界面,第二用户界面可用于用户指定该选定的网页链接对象对应的内容的上传位置;或者,电子设备可以将选定的网页链接对象对应的网页内容上传到默认位置。Optionally, the second user operation may be an operation in which the user moves a certain webpage link object to an option corresponding to the upload function. In response to this operation, the electronic device may display a second user interface, and the second user interface may be used by the user to specify the The upload location of the content corresponding to the selected webpage link object; or, the electronic device can upload the webpage content corresponding to the selected webpage link object to the default location.
可选地,第二用户操作可以是用户将某一网页链接对象移动至导出PDF文档功能对应的选项的操作,响应于该操作,电子设备将用户选定的网页链接对象对应的内容导出为PDF文档。Optionally, the second user operation may be an operation of the user moving a certain webpage link object to an option corresponding to the function of exporting PDF documents, and in response to this operation, the electronic device exports the content corresponding to the webpage link object selected by the user as PDF Documentation.
可选地,第二用户操作可以是用户将某一网页链接对象移动至添加附件功能对应的选项的操作,响应于该操作,电子设备可以显示第二用户界面,第二用户界面可用于用户选择某一封邮件来将选定的网页链接对象对应的内容以附件的形式添加到该邮件中。Optionally, the second user operation may be an operation in which the user moves a certain webpage link object to an option corresponding to the add attachment function. In response to this operation, the electronic device may display a second user interface, which may be used for user selection An email to add the content corresponding to the selected web page link object to the email in the form of an attachment.
可选地,第二用户操作可以是用户将某一网页链接对象移动至打印功能对应的选项的操作,响应于该操作,电子设备可以显示第二用户界面,第二用户界面可用于用户预览选定的网页链接对象对应的内容的打印格式;或者电子设备可以打印该用户选定的网页链接对象对 应的内容。Optionally, the second user operation may be an operation in which the user moves a certain webpage link object to an option corresponding to the printing function. In response to this operation, the electronic device may display a second user interface, which may be used for the user to preview the selection. The print format of the content corresponding to the specified webpage link object; or the electronic device can print the content corresponding to the webpage link object selected by the user.
这样,电子设备就可以根据用户选定的内容执行用户选择的选项对应的功能,并且不用退出第一用户界面,不影响用户继续浏览第一用户界面中的其他内容,提升了用户体验。In this way, the electronic device can execute the function corresponding to the option selected by the user according to the content selected by the user, without exiting the first user interface, without affecting the user to continue browsing other content in the first user interface, and improving user experience.
在一种可能的实现方式中,第一对象为第一应用程序的图标;电子设备根据所述第一对象显示至少一个选项,包括:电子设备在第一用户界面中显示卸载功能的选项、设置功能的选项、使用统计功能的选项、分享功能的选项、和/或权限管理功能的选项;显示使用统计功能的选项时,电子设备接收将第一应用程序的图标移动至使用统计功能的选项的第二用户操作;响应于所述第二用户操作,所述电子设备统计所述第一应用程序的使用情况。这样,用户通过简单操作可以查看第一应用程序的使用情况,提升了用户体验。In a possible implementation manner, the first object is an icon of the first application; the electronic device displays at least one option according to the first object, including: the electronic device displays options and settings of the uninstall function in the first user interface Options for functions, options for using statistical functions, options for sharing functions, and/or options for rights management functions; when the options for using statistical functions are displayed, the electronic device receives the move from the icon of the first application to the options for using statistical functions A second user operation; in response to the second user operation, the electronic device counts the usage of the first application. In this way, the user can check the usage of the first application program through a simple operation, which improves the user experience.
可选地,第二用户操作可以是将某一应用程序的图标移动至卸载功能对应的选项的操作,响应于该操作,电子设备可以显示第二用户界面,第二用户界面可用于用户确认是否卸载选定的应用程序;或者,电子设备可以卸载该选定的应用程序。Optionally, the second user operation may be an operation of moving an icon of an application to an option corresponding to the uninstall function. In response to this operation, the electronic device may display a second user interface, which may be used by the user to confirm whether Uninstall the selected application; or, the electronic device can uninstall the selected application.
可选地,第二用户操作可以是用户将某一应用程序的图标移动至设置功能对应的选项的操作,响应于该操作,电子设备可以显示第二用户界面,第二用户界面可用于用户设置选定的应用程序。Optionally, the second user operation may be an operation in which the user moves the icon of a certain application to the option corresponding to the setting function. In response to this operation, the electronic device may display a second user interface, which may be used for user settings The selected application.
可选地,第二用户操作可以是用户将某一应用程序的图标移动至分享功能对应的选项的操作,响应于该操作,电子设备可以显示第二用户界面,第二用户界面可用于用户选择联系人分享选定的应用程序。Optionally, the second user operation may be an operation in which the user moves an icon of an application to an option corresponding to the sharing function. In response to this operation, the electronic device may display a second user interface, which may be used for user selection The contact shares the selected application.
可选地,第二用户操作可以是用户将第一应用程序的图标移动至权限管理功能对应的选项的操作,响应于该操作,电子设备可以显示第二用户界面,第二用户界面可用于用户对选定的应用程序进行权限管理。Optionally, the second user operation may be an operation in which the user moves the icon of the first application program to the option corresponding to the authority management function. In response to this operation, the electronic device may display a second user interface, which may be used by the user Permission management for selected applications.
这样,用户通过简单操作,就可以卸载或者分享选定的应用程序,或者对应用程序进行权限管理以及设置,提升了用户体验。In this way, the user can uninstall or share the selected application program, or perform permission management and settings on the application program through simple operations, which improves the user experience.
在一种可能的实现方式中,在电子设备接收第一用户操作之后,电子设备接收第二用户操作之前,电子设备根据第一对象在第一用户界面的显示位置确定至少一个选项在第一用户界面中的显示位置。这样,可以方便用户将第一对象移动至第一选项中。例如,当第一对象与至少一个选项的横向距离大于预设的距离时,至少一个选项可以随用户手指移动而移动,以使中心位置的选项和所操作的第一对象或者第一对象对应的第一控件处于同一条水平线。这样,方便用户将第一对象移动至用户选定的选项中,提升用户体验。In a possible implementation manner, after the electronic device receives the first user operation and before the electronic device receives the second user operation, the electronic device determines that at least one option is in the first user according to the display position of the first object on the first user interface. The display position in the interface. In this way, it is convenient for the user to move the first object to the first option. For example, when the lateral distance between the first object and the at least one option is greater than the preset distance, the at least one option may move with the movement of the user's finger, so that the option at the center position corresponds to the first object or the first object being operated. The first control is on the same horizontal line. In this way, it is convenient for the user to move the first object to the option selected by the user, and the user experience is improved.
在一种可能的实现方式中,电子设备接收对第一对象的第一用户操作之后,包括:响应于第一用户操作,电子设备根据第一对象显示至少一个选项和第一对象对应的第一控件,至少一个选项对应的功能与第一对象相关联;电子设备接收将第一对象移动到至少一个选项中的第一选项的第二用户操作;其中,第一对象移动到至少一个选项中的第一选项包括第一对象对应的第一控件移动至第一选项,或第一对象本身移动至第一选项。电子设备可以生成与第一对象对应的控件,由此用户可以在用户界面中自由移动电子设备生成的控件。电子设备还可以显示该控件被移动的动画效果作为用户移动操作的反馈。这样,方便用户操作,可以提升用户体验。In a possible implementation manner, after the electronic device receives the first user operation on the first object, the method includes: in response to the first user operation, the electronic device displays at least one option according to the first object and the first object corresponding to the first object. Control, the function corresponding to the at least one option is associated with the first object; the electronic device receives a second user operation of moving the first object to the first option in the at least one option; wherein the first object is moved to the first option in the at least one option The first option includes moving the first control corresponding to the first object to the first option, or moving the first object itself to the first option. The electronic device can generate a control corresponding to the first object, so that the user can freely move the control generated by the electronic device in the user interface. The electronic device may also display an animation effect of the control being moved as a feedback of the user's movement operation. In this way, it is convenient for users to operate and can improve user experience.
第二方面,本申请提供了一种图形用户界面,该图形用户界面存储在电子设备中,该电子设备包括显示屏、存储器、一个或多个处理器,该一个或多个处理器用于执行存储在该存储器中的一个或多个计算机程序,其特征在于,该图形用界面包括:显示第一用户界面,第 一用户界面中包含第一对象;接收对第一对象的第一用户操作;响应于第一用户操作,根据第一对象显示至少一个选项,至少一个选项对应的功能与第一对象相关联;接收将第一对象移动到至少一个选项中第一选项的第二用户操作,显示对第一对象的内容执行第一功能的用户界面。此处有益效果与上述第一方面中叙述的有益效果相同,不再赘述。In a second aspect, the present application provides a graphical user interface, the graphical user interface is stored in an electronic device, the electronic device includes a display screen, a memory, one or more processors, the one or more processors are used to execute the storage One or more computer programs in the memory, wherein the graphical interface includes: displaying a first user interface, the first user interface includes a first object; receiving a first user operation on the first object; and responding In the first user operation, at least one option is displayed according to the first object, and the function corresponding to the at least one option is associated with the first object; the second user operation of moving the first object to the first option in the at least one option is received, and the The content of the first object executes the user interface of the first function. The beneficial effects here are the same as those described in the first aspect above, and will not be repeated here.
第三方面,本申请提供了一种电子设备,包括通信接口、存储器和处理器;通信接口、存储器与处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当处理器从所述存储器中读取计算机指令,以使得电子设备执行上述第一方面任一项可能的实现方式中的启动功能的方法。此处有益效果与上述第一方面中叙述的有益效果相同,不再赘述。In the third aspect, this application provides an electronic device, including a communication interface, a memory, and a processor; the communication interface, the memory are coupled with the processor, and the memory is used to store computer program codes. The computer program codes include computer instructions. The computer instructions are read from the memory, so that the electronic device executes the method for starting the function in any one of the possible implementations of the first aspect described above. The beneficial effects here are the same as those described in the first aspect above, and will not be repeated here.
第四方面,本申请提供了一种电子设备,该电子设备包括用于执行上述第一方面任一项可能的实现方式中的启动功能的方法的单元。此处有益效果与上述第一方面中叙述的有益效果相同,不再赘述。In a fourth aspect, the present application provides an electronic device that includes a unit for executing the method for starting a function in any one of the possible implementation manners of the first aspect. The beneficial effects here are the same as those described in the first aspect above, and will not be repeated here.
第五方面,本申请提供了一种计算机可读存储介质,包括:计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行上述第一方面任一项可能的实现方式中的启动功能的方法。此处有益效果与上述第一方面中叙述的有益效果相同,不再赘述。In a fifth aspect, the present application provides a computer-readable storage medium, including: computer instructions, when the computer instructions run on an electronic device, cause the electronic device to execute any one of the possible implementations of the first aspect above The method of starting the function in. The beneficial effects here are the same as those described in the first aspect above, and will not be repeated here.
第六方面,本申请提供了一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述第一方面任一项可能的实现方式中的启动功能的方法。此处有益效果与上述第一方面中叙述的有益效果相同,不再赘述。In a sixth aspect, the present application provides a computer program product that, when the computer program product runs on a computer, causes the computer to execute the method for starting the function in any one of the possible implementations of the first aspect. The beneficial effects here are the same as those described in the first aspect above, and will not be repeated here.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对本申请实施例中所需要使用的附图进行说明。In order to more clearly describe the technical solutions in the embodiments of the present application, the drawings required to be used in the embodiments of the present application will be described below.
图1A-图1D为本申请提供的现有技术中一组用户界面示意图;Figures 1A-1D are schematic diagrams of a set of user interfaces in the prior art provided by this application;
图2A-图2B为本申请提供的现有技术中的一组用户界面示意图;2A-2B are schematic diagrams of a set of user interfaces in the prior art provided by this application;
图3为本申请实施例提供的一种启动功能的方法流程图;FIG. 3 is a flowchart of a method for starting a function provided by an embodiment of the application;
图4A-图4I为本申请示例1提供的一组用户界面示意图;4A-4I are schematic diagrams of a set of user interfaces provided in Example 1 of this application;
图5A-图5K为本申请示例2提供的一组用户界面示意图;5A-5K are schematic diagrams of a set of user interfaces provided in Example 2 of this application;
图6A-图6M为本申请示例3提供的一组用户界面示意图;6A-6M are schematic diagrams of a set of user interfaces provided in Example 3 of this application;
图7A-图7B为本申请实施例提供的一组用户界面示意图;7A-7B are schematic diagrams of a set of user interfaces provided by an embodiment of the application;
图8A为本申请实施例提供的一种电子设备的结构示意图;FIG. 8A is a schematic structural diagram of an electronic device provided by an embodiment of this application;
图8B-图8D为本申请实施例提供的电子设备的显示屏示意图;8B-8D are schematic diagrams of a display screen of an electronic device provided by an embodiment of the application;
图9为本申请实施例提供的电子设备的软件结构的示意图;FIG. 9 is a schematic diagram of the software structure of an electronic device provided by an embodiment of the application;
图10为本申请提供的电子设备的软硬件实现本申请的显示用户界面的示意图;FIG. 10 is a schematic diagram of the software and hardware of the electronic device provided by this application to realize the display user interface of this application;
图11为本申请提供的电子设备的结构示意图。FIG. 11 is a schematic diagram of the structure of the electronic device provided by this application.
具体实施方式Detailed ways
下面将结合附图对本申请实施例中的技术方案进行清除、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的 “和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。The technical solutions in the embodiments of the present application will be cleared and described in detail below in conjunction with the accompanying drawings. Among them, in the description of the embodiments of the present application, unless otherwise specified, "/" means or, for example, A/B can mean A or B; the "and/or" in the text is only a description of related objects The association relationship of indicates that there may be three relationships, for example, A and/or B, which may indicate: A alone exists, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application , "Multiple" means two or more than two.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms “first” and “second” are only used for descriptive purposes, and cannot be understood as implying or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, “multiple” The meaning is two or more.
本申请的说明书和权利要求书及附图中的术语“用户界面(user interface,UI)”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。应用程序的用户界面是通过java、可扩展标记语言(extensible markup language,XML)等特定计算机语言编写的源代码,界面源代码在终端设备上经过解析,渲染,最终呈现为用户可以识别的内容,比如图像、文本、按钮等控件。控件(control)也称为部件(widget),是用户界面的基本元素,典型的控件有工具栏(toolbar)、菜单栏(menu bar)、输入框、按钮(button)、滚动条(scrollbar)、图像和文本。界面中的控件的属性和内容是通过标签或者节点来定义的,比如XML通过<Textview>、<ImgView>、<VideoView>等节点来规定界面所包含的控件。一个节点对应界面中一个控件或属性,节点经过解析和渲染之后呈现为用户可视的内容。此外,很多应用程序,比如混合应用(hybrid APPlication)的界面中通常还包含有网页。网页,也称为页面,可以理解为内嵌在应用程序界面中的一个特殊的控件,网页是通过特定计算机语言编写的源代码,例如超文本标记语言(hyper text markup language,GTML),层叠样式表(cascading style sheets,CSS),java脚本(JavaScript,JS)等,网页源代码可以由浏览器或与浏览器功能类似的网页显示组件加载和显示为用户可识别的内容。网页所包含的具体内容也是通过网页源代码中的标签或者节点来定义的,比如GTML通过<p>、<img>、<video>、<canvas>来定义网页的元素和属性。The term "user interface (UI)" in the description, claims and drawings of this application is a medium interface for interaction and information exchange between applications or operating systems and users, which implements the internal form of information And the user can accept the conversion between the forms. The user interface of the application is the source code written in a specific computer language such as java, extensible markup language (XML), etc. The interface source code is parsed and rendered on the terminal device, and finally presented as content that can be recognized by the user. Such as images, text, buttons and other controls. Control, also called widget, is the basic element of the user interface. Typical controls include toolbar, menu bar, input box, button, scrollbar, Images and text. The attributes and content of the controls in the interface are defined by tags or nodes. For example, XML specifies the controls contained in the interface through nodes such as <Textview>, <ImgView>, and <VideoView>. A node corresponds to a control or attribute in the interface. After the node is parsed and rendered, it is presented as user-visible content. In addition, many applications, such as hybrid applications, usually include web pages in their interfaces. A web page, also called a page, can be understood as a special control embedded in the application program interface. The web page is source code written in a specific computer language, such as hypertext markup language (GTML), cascading style Tables (cascading style sheets, CSS), java scripts (JavaScript, JS), etc., web page source code can be loaded and displayed as user-recognizable content by a browser or a web page display component with similar functions to the browser. The specific content contained in a web page is also defined by tags or nodes in the source code of the web page. For example, GTML uses <p>, <img>, <video>, and <canvas> to define the elements and attributes of the web page.
用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个窗口、控件等界面元素。The commonly used form of the user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be a window, control and other interface elements displayed on the display screen of an electronic device.
本申请实施例涉及的“功能”包括系统提供的功能(例如“语音助手”功能,“卸载”功能等等)和应用程序提供的功能。应用程序提供的功能是指组成应用程序的功能或者这些功能的子功能。例如,图1B中示出的组成微信的“添加朋友”、“扫一扫”等功能,以及图1D中示出的“添加朋友”的一些子功能(如“雷达加朋友”、“面对面建群”等),都可以称为本申请中的“功能”。The "functions" involved in the embodiments of the present application include functions provided by the system (for example, "voice assistant" functions, "uninstall" functions, etc.) and functions provided by applications. The functions provided by the application program refer to the functions that make up the application program or the sub-functions of these functions. For example, the functions such as “add friend” and “scanning” that compose WeChat shown in Figure 1B, and some sub-functions of “add friend” shown in Figure 1D (such as “radar add friend”, “face-to-face construction”, etc. Groups, etc.) can be referred to as "functions" in this application.
本申请实施例涉及的“听歌识曲”是指,电子设备采集的音频,在歌曲库中查找该音频所匹配的歌曲,并返回识曲结果。识曲结果可以包括但不限于:查找到的该歌曲的歌曲名、创作者、演唱者、歌曲来源(如歌曲播放网页、链接等),等等。查找到的该歌曲即根据所采集的音频识别出的,具有和该音频相同的或相近的频谱或歌词。歌曲库可以存储于云服务器上,也可以存储于电子设备中。"Listening to songs and recognizing music" referred to in the embodiments of the present application refers to the audio collected by an electronic device, searching for a song matching the audio in a song library, and returning the result of recognizing the music. The result of recognizing the song may include, but is not limited to: the song name, creator, singer, source of the song (such as the song playing web page, link, etc.) of the song found, and so on. The found song is identified based on the collected audio, and has the same or similar frequency spectrum or lyrics as the audio. The song library can be stored on a cloud server or in an electronic device.
本申请实施例涉及的“稍后阅读”是指,电子设备将用户操作作用的对象(例如,网页链接对象)的内容(例如,文本,图像等)保存在服务器或者电子设备,并提供给用户查看保存的内容的入口。用户通过该入口可以查看之前保存的内容。The "read later" mentioned in the embodiments of this application means that the electronic device saves the content (for example, text, image, etc.) of the object (for example, webpage link object) that the user operates on in the server or electronic device, and provides it to the user The entry to view the saved content. The user can view the previously saved content through this portal.
现有技术中,为了解决用户打开APP中某个功能操作繁琐的问题,提供了一种快速启动应用程序功能的方法,用户用手指长按APP图标(例如音乐APP图标)可以调出该APP(如音乐APP)的快捷功能栏,可供用户快速的进入到该APP(例如音乐APP)中的某个功能(例如“听歌识曲”功能)。如图2A-图2B所示,图2A-图2B提供了现有技术中的用户界面示意图。图2A示出了应用程序菜单界面20A,用户界面20A中包括音乐APP图标201。当电子设备接收用户在用户界面20A中音乐APP图标201上的单指长按操作,电子设备向用户呈现用户界面20B。用户界面20B呈现了一些音乐APP对应的可快速启动的功能对应的控件,如“播放本地”功能对应的控件202、“最近播放”功能对应的控件203、“搜索歌曲”功能对应的控件204、“听歌识曲”功能对应的控件205、“应用信息”功能对应的控件206、“卸载”功能对应的控件207等等。用户可以通过这些控件快速启动对应的功能,例如“听歌识曲”。In the prior art, in order to solve the problem of cumbersome operation of a certain function of the user to open an APP, a method of quickly starting the function of the application is provided. The user can call up the APP (for example, the music APP icon) by pressing and holding the APP icon (for example, the music APP icon) with a finger. For example, the shortcut function bar of the music APP, which allows the user to quickly enter a certain function (for example, the "listen to songs and recognize music" function) in the APP (for example, the music APP). As shown in FIGS. 2A-2B, FIGS. 2A-2B provide schematic diagrams of user interfaces in the prior art. FIG. 2A shows an application menu interface 20A, and the user interface 20A includes a music APP icon 201. When the electronic device receives the user's single-finger long press operation on the music APP icon 201 in the user interface 20A, the electronic device presents the user interface 20B to the user. The user interface 20B presents some controls corresponding to the quick-start function corresponding to the music APP, such as the control 202 corresponding to the "play local" function, the control 203 corresponding to the "recently played" function, and the control 204 corresponding to the "search song" function. The control 205 corresponding to the "listen to songs and recognize music" function, the control 206 corresponding to the "application information" function, the control 207 corresponding to the "uninstall" function, and so on. Users can quickly start the corresponding functions through these controls, such as "listen to songs and recognize songs".
但是,现有技术中,用户无法在启动功能的同时指定执行该功能的对象。例如,如图2B中所示,用户无法在启动“听歌识曲”的同时指定对正在播放的视频进行“听歌识曲”。现有技术中,用户需要先启动“听歌识曲”功能,再选择对哪一个音频(例如,另一台电子设备中播放的音频)执行“听歌识曲”这一功能。However, in the prior art, the user cannot specify an object to execute the function while activating the function. For example, as shown in FIG. 2B, the user cannot specify the "listening to the song" to the video being played while starting the "listening to the song to recognize the song". In the prior art, the user needs to activate the function of "listening to songs and recognizing music" first, and then select which audio (for example, the audio played in another electronic device) to perform the function of "listening to songs and recognizing music".
本申请提供了一种启动应用程序的功能的方法,可以在启动选定的功能的同时指定对哪一个对象执行该选定功能。下面结合具体实施例对本申请实施例提供的启动功能的方法进行详细说明。图3示出了启动功能的方法的总体流程图。如图3所示,该方法可以包括:This application provides a method for starting the function of an application program, which can specify which object to execute the selected function while starting the selected function. The method for starting the function provided by the embodiment of the present application will be described in detail below in conjunction with specific embodiments. Fig. 3 shows an overall flow chart of the method of initiating a function. As shown in Figure 3, the method may include:
S301、电子设备显示第一用户界面,第一用户界面包含第一对象。S301. The electronic device displays a first user interface, and the first user interface includes a first object.
其中,第一用户界面可以是:应用程序的用户界面,桌面,锁屏界面等。第一用户界面可以包括至少一个对象。每个对象可以对应一个或多个内容。“每个对象对应的内容”可以指:对象显示和/或控制的内容(下文中也称“对象的内容”)。对象可以包括:控件或窗口等等。内容可以包括:视频,音频,文本,网页链接,APP,图像等。该内容可以是电子设备自身存储的内容,也可以是电子设备从其他设备获取的内容;可以是已获取的内容,也可以是未获取的内容。根据对象的内容可以将对象分为以下类型:视频对象、音频对象、文本对象、网页链接对象、APP对象、图像对象。Among them, the first user interface may be: an application user interface, a desktop, a lock screen interface, and so on. The first user interface may include at least one object. Each object can correspond to one or more content. The "content corresponding to each object" may refer to the content displayed and/or controlled by the object (hereinafter also referred to as "content of the object"). Objects can include: controls or windows, etc. The content can include: video, audio, text, web link, APP, image, etc. The content may be the content stored by the electronic device itself, or the content obtained by the electronic device from other devices; it may be the content that has been obtained or the content that has not been obtained. According to the content of the object, the objects can be divided into the following types: video objects, audio objects, text objects, web link objects, APP objects, and image objects.
例如,如图4A所示,电子设备显示用户界面40A。用户界面40A为一视频播放APP的用户界面。用户界面40A包括对象401-403。对象401用于显示正在播放的视频A。用户可以点击对象402以显示视频B,点击对象403以显示视频C。由此可知,对象401的内容为视频A,对象402的内容为视频B,对象403的内容为视频C。For example, as shown in FIG. 4A, the electronic device displays a user interface 40A. The user interface 40A is a user interface of a video playing APP. The user interface 40A includes objects 401-403. The object 401 is used to display the video A being played. The user can click on object 402 to display video B, and click on object 403 to display video C. It can be seen that the content of the object 401 is video A, the content of the object 402 is video B, and the content of the object 403 is video C.
又如,如图5A所示,电子设备显示用户界面50A。用户界面50A为一浏览器APP的用户界面。用户界面50A包含对象501。对象501的内容可以是“高尔夫世界杯决赛集锦”的网页链接。也就是说,用户可以点击对象501以显示“高尔夫世界杯决赛集锦”的网页。As another example, as shown in FIG. 5A, the electronic device displays a user interface 50A. The user interface 50A is a user interface of a browser APP. The user interface 50A includes an object 501. The content of the object 501 may be a web page link of "Golf World Cup Final Collection". That is, the user can click on the object 501 to display a web page of "Golf World Cup Final Highlights".
再如,如图6A所示,电子设备显示用户界面60A。用户界面60A为桌面。用户界面60A包括对象601。对象601为支付宝的图标。也就是说,对象601的内容为“支付宝APP”。As another example, as shown in FIG. 6A, the electronic device displays a user interface 60A. The user interface 60A is a desktop. The user interface 60A includes an object 601. Object 601 is the icon of Alipay. In other words, the content of the object 601 is "Alipay APP".
S302、电子设备接收对第一对象的第一用户操作。S302. The electronic device receives a first user operation on the first object.
其中,“第一对象”为用户选择的用于执行选定功能的对象。“第一对象”可以是第一用户界面中任意的一个对象。第一用户操作可以是双指长按操作,双指重压操作,或者手指悬浮 操作等,此处不作限定。Among them, the "first object" is the object selected by the user to perform the selected function. The "first object" can be any object in the first user interface. The first user operation can be a two-finger long press operation, a two-finger heavy press operation, or a finger hovering operation, etc., which is not limited here.
例如,如图4A所示,用户双指长按对象401。则对象401为第一对象。又如,如图5A所示,用户双指长按对象501,则对象501为第一对象。再如,如图6A所示,用户双指长按对象601,则对象601为第一对象。For example, as shown in FIG. 4A, the user long presses the object 401 with two fingers. Then the object 401 is the first object. For another example, as shown in FIG. 5A, the user long presses the object 501 with two fingers, and the object 501 is the first object. For another example, as shown in FIG. 6A, the user long presses the object 601 with two fingers, and the object 601 is the first object.
需要说明的是,以“双指长按操作”作为第一用户操,可以避免和现有操作(例如图7A-图7B示出的双指拖动)的冲突。It should be noted that using the "two-finger long press operation" as the first user operation can avoid conflicts with existing operations (for example, the two-finger drag shown in FIGS. 7A-7B).
S303、响应于第一用户操作,电子设备根据第一对象显示至少一个选项。S303. In response to the first user operation, the electronic device displays at least one option according to the first object.
具体地,当电子设备接收到用户的第一操作时,电子设备可以显示一个或多个选项。每个选项对应一项或多项功能。所述一项或多项功能可以是电子设备安装的APP提供的,也可以是系统提供的。Specifically, when the electronic device receives the user's first operation, the electronic device may display one or more options. Each option corresponds to one or more functions. The one or more functions may be provided by the APP installed on the electronic device, or may be provided by the system.
电子设备根据第一对象显示至少一个选项,具体可以包括:The electronic device displays at least one option according to the first object, which may specifically include:
S3031、确定第一对象的类型。S3031. Determine the type of the first object.
在一种可能的实现方式中,电子设备中每一种类型的对象可以对应一种特征值。如,视频对象的特征值为“0000”,音频对象的特征值为“0001”,图像对象的特征值为“0002”、文本对象的特征值为“0003”、网页链接的特征值为“0004”,APP图标的特征值为“0005”。由此,电子设备根据第一对象的特征值来确定第一对象的类型。例如,第一对象的特征值为“0000”,则电子设备确定第一对象为视频对象。In a possible implementation manner, each type of object in the electronic device may correspond to a characteristic value. For example, the feature value of the video object is "0000", the feature value of the audio object is "0001", the feature value of the image object is "0002", the feature value of the text object is "0003", and the feature value of the web link is "0004" ", the characteristic value of the APP icon is "0005". Thus, the electronic device determines the type of the first object according to the characteristic value of the first object. For example, if the characteristic value of the first object is “0000”, the electronic device determines that the first object is a video object.
步骤3032、根据第一对象的类型确定所述至少一个选项。Step 3032. Determine the at least one option according to the type of the first object.
示例性的,表1示出了第一对象为音频对象,视频对象,图像对象,文本对象,网页链接对象,或者应用对象时,电子设备可以执行的功能,以及提供这些功能的应用。也就是说,确定第一对象的类型后,根据表1可以确定能够对第一对象执行哪些功能,进而确定显示哪些选项。Exemplarily, Table 1 shows the functions that the electronic device can perform when the first object is an audio object, a video object, an image object, a text object, a webpage link object, or an application object, and applications that provide these functions. That is to say, after determining the type of the first object, it can be determined according to Table 1 which functions can be performed on the first object, and then which options are displayed.
例如,如图4B所示,第一对象为视频对象(如,对象401)时,电子设备可以显示包括选项406-选项412的功能栏405。其中,选项406-选项412对应的功能分别为“分享”,“下载”,“上传”,“听歌识曲”,“插入视频”,“添加附件”,“视频编辑”。For example, as shown in FIG. 4B, when the first object is a video object (for example, the object 401), the electronic device may display a function bar 405 including options 406-412. Among them, the functions corresponding to option 406 to option 412 are "share", "download", "upload", "listen to song", "insert video", "add attachment", and "video edit".
又如,如图5B所示,第一对象为网页链接对象(如,对象501)时,电子设备可以显示包括选项504-选项510的功能栏503。其中,选项504-选项510对应的功能分别为“分享”,“下载”,“上传”,“稍后阅读”,“导出PDF文档”,“添加附件”,“打印”。For another example, as shown in FIG. 5B, when the first object is a webpage link object (eg, object 501), the electronic device may display a function bar 503 including options 504 to 510. Among them, the functions corresponding to option 504 to option 510 are "share", "download", "upload", "read later", "export PDF document", "add attachment", and "print" respectively.
再如,如图6B所示,第一对象为应用对象(如,对象601)时,电子设备可以显示包括选项602-选项606的功能栏607。其中,选项602-选项606对应的功能分别为“卸载”,“设置”,“使用统计”,“分享”,“权限管理”。For another example, as shown in FIG. 6B, when the first object is an application object (for example, object 601), the electronic device may display a function bar 607 including option 602-option 606. Among them, the functions corresponding to option 602 to option 606 are "uninstall", "settings", "usage statistics", "sharing", and "authority management" respectively.
需要说明的是,所述选项对应的功能可以是由正在显示的用户界面对应的APP(视频播放APP)提供的,也可以是由与显示的用户界面对应的APP不同的APP(如音乐)提供的。It should be noted that the function corresponding to the option may be provided by the APP (video playback APP) corresponding to the user interface being displayed, or may be provided by an APP (such as music) different from the APP corresponding to the displayed user interface of.
需要说明的是,选项406-选项412、选项504-选项510、选项602-选项606仅为示例,第一对象为视频对象时显示的选项,第一对象为网页链接对象时显示的选项以及第一对象为APP对象时显示的选项并不限于此。It should be noted that option 406-option 412, option 504-option 510, and option 602-option 606 are only examples. The first object is the option displayed when the video object is the first object, the option displayed when the first object is the webpage link object, and the second The options displayed when an object is an APP object are not limited to this.
表1Table 1
Figure PCTCN2020117909-appb-000001
Figure PCTCN2020117909-appb-000001
Figure PCTCN2020117909-appb-000002
Figure PCTCN2020117909-appb-000002
上述表中涉及的“~类APP”用于泛指具备相应功能的某一类应用。例如通讯类APP可以包括“微信”“连我”“QQ”。上述表中的“系统”表示该功能由系统提供。需要说明的是,上述表中的“功能对应APP或系统”仅为示例,并不限定提供该功能是APP,还是系统;表中的某个应用或某类应用可以被替换为其他具备相应功能的一个或多个应用程序。例如,“设置手机铃声”对应的APP可以是“音乐”。The "~ kind of APP" mentioned in the above table is used to broadly refer to a certain kind of application with corresponding functions. For example, communication apps can include "WeChat", "Lian Me" and "QQ". The "system" in the above table means that the function is provided by the system. It should be noted that the "function corresponding to APP or system" in the above table is only an example, and does not limit whether the function is provided is an APP or a system; an application or a certain type of application in the table can be replaced with other applications with corresponding functions One or more applications. For example, the APP corresponding to "set phone ringtone" can be "music".
可选地,电子设备可以根据各功能的使用次数和/或使用时间显示各功能对应的选项。示例性的,如图4B所示,“听歌识曲”的使用次数较多,故选项409被显示在中心位置,“分享”和“视频编辑”的使用次数较少,故选项406被显示在远离中心的位置。Optionally, the electronic device may display the options corresponding to each function according to the use times and/or use time of each function. Exemplarily, as shown in FIG. 4B, "listening to songs and recognizing music" has been used more frequently, so option 409 is displayed in the center position, and "sharing" and "video editing" are used less frequently, so option 406 is displayed In a location away from the center.
可选地,若第一对象(如,对象401)的内容(如,视频A)正在播放,电子设备可以在检测到第一用户操作后,暂停所述内容的播放,从而避免用户在进行操作时错过视频中播放内容。Optionally, if the content (e.g., video A) of the first object (e.g., object 401) is being played, the electronic device may pause the play of the content after detecting the operation of the first user, thereby preventing the user from performing the operation When you miss the video playing content.
S304、电子设备接收将第一对象移动到至少一个选项中的第一选项的第二用户操作。S304. The electronic device receives a second user operation of moving the first object to the first option among the at least one option.
其中,“第一选项”指用户从所述至少一个选项中选择的任意的一个选项。第一选项对应的功能为用户选择对第一对象执行的功能。第二用户操作可以是双指拖动操作,即用双指将第一对象移动到功能栏中某一个选项处。或者,第二用户操作也可以是单指拖动操作,双指甩动操作等等,此处对第二用户操作的具体实现手势以及形式不作限定。Wherein, the "first option" refers to any one option selected by the user from the at least one option. The function corresponding to the first option is the function selected by the user to perform on the first object. The second user operation may be a two-finger drag operation, that is, two fingers are used to move the first object to a certain option in the function bar. Alternatively, the second user operation may also be a single-finger drag operation, a two-finger shaking operation, etc. The specific implementation gesture and form of the second user operation are not limited here.
其中,第一用户操作和第二用户操作可以为连续的操作。举例来说,在第一用户操作之后,第二用户操作之前,用户的手指始终触摸显示屏。Wherein, the first user operation and the second user operation may be continuous operations. For example, after the first user's operation, the user's finger always touches the display screen before the second user's operation.
需要说明的是,“第一对象移动到第一选项”可以包括以下两种方式:It should be noted that "moving the first object to the first option" can include the following two methods:
方式a:将第一对象对应的第一控件移至第一选项。Manner a: Move the first control corresponding to the first object to the first option.
示例性的,如图4B、图5B所示,接收对第一对象的第一用户操作后,电子设备可以显示与所述第一对象对应的第一控件(如,控件404,控件502)。第一控件显示的内容可以与第一对象(如,对象401,对象501)的内容相同。第一控件的显示位置可以随用户手指的移动而移动。用户可以将第一控件移至第一选项处。Exemplarily, as shown in FIG. 4B and FIG. 5B, after receiving a first user operation on a first object, the electronic device may display a first control (eg, control 404, control 502) corresponding to the first object. The content displayed by the first control may be the same as the content of the first object (eg, object 401, object 501). The display position of the first control can move with the movement of the user's finger. The user can move the first control to the first option.
可选地,若将第一控件移至第一选项之前,用户不再接触显示屏,则电子设备可以不再显示所述第一控件,从而避免用户放弃对第一对象执行功能栏中的某选项对应的功能时,显示的第一控件影响用户观看显示屏中示出的内容。Optionally, if the user no longer touches the display screen before moving the first control to the first option, the electronic device may no longer display the first control, so as to prevent the user from giving up on executing a certain item in the function bar on the first object. When selecting the corresponding function, the first control displayed affects the user's viewing of the content shown on the display screen.
可选地,所述第一控件的初始显示位置可以为第一用户操作作用的位置(如,双指长按的位置,位置500等),以便用户在对第一对象进行第一用户操作后,继续对第一对象进行第二用户操作。Optionally, the initial display position of the first control may be the position of the first user operation (for example, the position of a two-finger long press, position 500, etc.), so that the user can perform the first user operation on the first object. , Continue to perform the second user operation on the first object.
方式b:将第一对象本身移至第一选项。Method b: Move the first object itself to the first option.
示例性的,如图6B所示,电子设备将第一对象本身(如,对象601)移至第一选项处。Exemplarily, as shown in FIG. 6B, the electronic device moves the first object itself (for example, the object 601) to the first option.
为了方便说明,除特别说明外,下文中所述的移动“第一对象”既可以指移动“第一对象本身”也可以指移动“第一对象对应的第一控件”。For the convenience of description, unless otherwise specified, the “moving of the first object” described below may refer to moving “the first object itself” or “the first control corresponding to the first object”.
可选地,所述至少一个选项的显示位置可以随用户手指的位置(或第一对象,或第一控件)变化而变化,如随用户手指上移而上移,下移而下移。示例性的,如图4H至图4I所示,图5J-图5K所示,或图6H-图6I所示,当第一对象与至少一个选项的横向距离大于预设的距离时,所述至少一个选项(选项406-选项412、选项504-选项510、选项602-选项606)可以随用户手指上移而上移,下移而下移,以使中心位置的选项(即,选项409,选项507,选项604)和被用户操作的第一对象或第一控件处于同一条水平线。Optionally, the display position of the at least one option may change as the position of the user's finger (or the first object, or the first control) changes, for example, as the user's finger moves up to move up, and moves down to move down. Exemplarily, as shown in FIGS. 4H to 4I, as shown in FIGS. 5J to 5K, or as shown in FIGS. 6H to 6I, when the lateral distance between the first object and at least one option is greater than the preset distance, the At least one option (option 406-option 412, option 504-option 510, option 602-option 606) can move up and down as the user's finger moves up, so that the centrally located option (ie, option 409, Option 507, option 604) and the first object or first control operated by the user are on the same horizontal line.
S305、响应于第二用户操作,电子设备对第一对象的内容执行第一选项对应的第一功能。S305. In response to the second user operation, the electronic device executes the first function corresponding to the first option on the content of the first object.
例如,如图4C所示,若用户将控件404移动至选项409,则表明用户想对控件404对应的内容(即、视频A)执行选项409对应的功能,也就是说,用户想利用听歌识曲功能识别出控件404对应的视频中的音频信息。可以理解的是,若用户将第一控件404移动至选项406,则表明用户想对第一控件404对应的内容执行选项406对应的功能,也就是说,用户想利用分享功能将第一控件404对应的视频分享给其他联系人。For example, as shown in FIG. 4C, if the user moves the control 404 to the option 409, it indicates that the user wants to perform the function corresponding to the option 409 on the content corresponding to the control 404 (ie, video A), that is, the user wants to use the listening song The music recognition function recognizes the audio information in the video corresponding to the control 404. It is understandable that if the user moves the first control 404 to the option 406, it indicates that the user wants to perform the function corresponding to the option 406 on the content corresponding to the first control 404, that is, the user wants to use the sharing function to change the first control 404 Share the corresponding video with other contacts.
示例性的,对对象401执行选项409对应的“听歌识曲”功能,具体可以包括:电子设备获取控件404对应视频暂停前15秒的音频。电子设备对该音频进行傅里叶变换得到该音频的频谱。电子设备在歌曲库中查找该音频的频谱对应的歌曲。Exemplarily, executing the "listen to songs and recognize music" function corresponding to the option 409 on the object 401 may specifically include: the electronic device acquiring control 404 corresponds to the audio 15 seconds before the video is paused. The electronic device performs Fourier transform on the audio to obtain the frequency spectrum of the audio. The electronic device searches the song library for the song corresponding to the frequency spectrum of the audio.
又如,如图5C所示,若用户将控件502移至选项507,则表明用户想对控件502对应的内容执行选项507对应的功能。也即是说,用户想利用稍后阅读功能将控件502对应的网页链接的网页内容添加到稍后阅读列表中。For another example, as shown in FIG. 5C, if the user moves the control 502 to the option 507, it indicates that the user wants to perform the function corresponding to the option 507 on the content corresponding to the control 502. In other words, the user wants to use the reading later function to add the webpage content of the webpage link corresponding to the control 502 to the reading later list.
再如,如图6C所示,若用户将对象601移至选项604,则表明用户想对对象601对应的内容(即、支付宝APP)执行选项604对应的功能。也就是说,用户想利用使用统计功能统计对象601对应的应用的使用时长、使用次数等使用情况。For another example, as shown in FIG. 6C, if the user moves the object 601 to the option 604, it indicates that the user wants to perform the function corresponding to the option 604 on the content corresponding to the object 601 (ie, Alipay APP). In other words, the user wants to use the usage statistics function to count the usage time, the number of usage, and the like of the application corresponding to the object 601.
可选地,电子设备可以通过放大选项的图标来指示用户当前选择的选项。例如,图4D所示,选项409的图标被放大。又如,图5D所示,选项507的图标被方法。再如,图6D所示,选项604的图标被放大。可选地,用户松开双指时,电子设备可以显示第一对象或第一对象对应的第一控件收缩进入第一选项的动效。由此,方便用户知道电子设备要对哪一个对象执行哪一个选项对应的功能。Optionally, the electronic device may indicate the option currently selected by the user by zooming in on the icon of the option. For example, as shown in FIG. 4D, the icon of option 409 is enlarged. As another example, as shown in FIG. 5D, the icon of option 507 is selected. For another example, as shown in FIG. 6D, the icon of option 604 is enlarged. Optionally, when the user releases the two fingers, the electronic device may display the animation of the first object or the first control corresponding to the first object shrinking into the first option. As a result, it is convenient for the user to know which object the electronic device should perform the function corresponding to which option.
可选地,所述方法还可以包括:Optionally, the method may further include:
S306、电子设备分区域显示第一用户界面和第一功能对应的第二用户界面。S306. The electronic device displays the first user interface and the second user interface corresponding to the first function in regions.
其中,第二用户界面为对第一对象的内容执行第一功能的用户界面。这样,方便用户查看对用户选择的第一对象执行选定的功能处理后的结果。需要说明的是,步骤306中显示的第一用户界面可以与步骤301中显示的第一用户界面相同,也可以与步骤301中显示的第一用户界面不完全相同。Wherein, the second user interface is a user interface that performs the first function on the content of the first object. In this way, it is convenient for the user to view the result of performing the selected function processing on the first object selected by the user. It should be noted that the first user interface displayed in step 306 may be the same as the first user interface displayed in step 301, or may not be completely the same as the first user interface displayed in step 301.
例如,如图4E所示,电子设备显示用户界面40E和用户界面40A。其中,用户界面40E为“音乐APP”的“听歌识曲”的用户界面。用户界面40E示出了对视频401中的歌曲的识别结果,即视频401中9分21秒处的歌曲为“Rolling in the deep”。For example, as shown in FIG. 4E, the electronic device displays a user interface 40E and a user interface 40A. Among them, the user interface 40E is a user interface of "listening to songs and recognizing music" of the "music APP". The user interface 40E shows the recognition result of the song in the video 401, that is, the song at 9 minutes and 21 seconds in the video 401 is "Rolling in the deep".
又如,如图5E所示,电子设备可以显示用户界面50A和用户界面50E。其中,用户界面50E为“电子书APP”的“稍后阅读”的用户界面。用户界面50E显示有稍后阅读列表,包括按照添加时间顺序排列的多个网页链接。稍后阅读的列表中可以显示有每一条网页链接添加到稍后阅读列表的时间。例如,如用户界面50E所示,响应于将控件502移至选项507的第二用户操作,网页链接512被添加至稍后阅读列表。文本513示出了将网页链接512添加至稍后阅读列表的时间(“刚刚”)。可以理解的是,用户可以对第二用户界面进行操作。例如,如图5F所示用户可以点击网页链接512,则如图5G所示电子设备显示用户界面50G,该网页链接对应的网页内容。该网页内容具体可以包括标题514,网页发布作者515(如ABC新闻)、控件516以及正文内容517等等。As another example, as shown in FIG. 5E, the electronic device may display a user interface 50A and a user interface 50E. Among them, the user interface 50E is the "read later" user interface of the "e-book APP". The user interface 50E displays a later reading list, including a plurality of webpage links arranged in the order of addition time. The time when each web page link was added to the reading later list can be displayed in the reading later list. For example, as shown in user interface 50E, in response to a second user operation of moving control 502 to option 507, web page link 512 is added to the later reading list. The text 513 shows the time when the web page link 512 was added to the reading later list ("just now"). It is understandable that the user can operate the second user interface. For example, as shown in FIG. 5F, the user can click a webpage link 512, and the electronic device as shown in FIG. 5G displays a user interface 50G, and the webpage link corresponds to the webpage content. The webpage content may specifically include a title 514, a webpage publishing author 515 (such as ABC News), a control 516, and body content 517, and so on.
再如,如图6E所示,电子设备可以显示界面60A和界面60D。其中,用户界面60D为选项604对应功能的用户界面。用户界面60D示出了支付宝的使用情况统计界面,包括最近一次使用时长607,以及总使用时长608。As another example, as shown in FIG. 6E, the electronic device may display an interface 60A and an interface 60D. Among them, the user interface 60D is a user interface corresponding to the function of the option 604. The user interface 60D shows the usage statistics interface of Alipay, including the last usage time 607 and the total usage time 608.
可选地,电子设备可以响应于电子设备由折叠态变为展开态,执行步骤306。如图6G所示,图6G中示出了展开态的电子设备。Optionally, the electronic device may execute step 306 in response to the electronic device changing from the folded state to the unfolded state. As shown in FIG. 6G, FIG. 6G shows the electronic device in an expanded state.
示例性的,如图4E所示,响应于电子设备100由折叠态变为展开态,电子设备100在A屏显示第一用户界面(用户界面40A),在B屏显示第二用户界面(用户界面40E)。Exemplarily, as shown in FIG. 4E, in response to the electronic device 100 being changed from the folded state to the unfolded state, the electronic device 100 displays a first user interface (user interface 40A) on screen A and a second user interface (user interface 40A) on screen B. Interface 40E).
需要说明的,电子设备可以恢复第一用户操作后暂停播放的视频的播放。也就是说,此时视频A可以处于正在播放状态。It should be noted that the electronic device may resume the playback of the video that was paused after the first user's operation. In other words, video A can be in the playing state at this time.
可选地,电子设备可以响应于预设的用户操作结束所述第二用户界面的显示。如图4F-图4G,如图5H-图5I,或如图6E-图6F所示,第二用户界面可以包含用于结束第二用户界面(如,界面40E,界面50E,界面60E)的显示的关闭控件(如,控件413,控件511,控件611)。用户可以通过点击所述关闭控件关闭所述第二用户界面的显示。Optionally, the electronic device may end the display of the second user interface in response to a preset user operation. 4F-FIG. 4G, FIG. 5H-FIG. 5I, or as shown in FIG. 6E-FIG. 6F, the second user interface may include an interface for ending the second user interface (eg, interface 40E, interface 50E, interface 60E) Displayed close controls (eg, control 413, control 511, control 611). The user can close the display of the second user interface by clicking the close control.
或者,可选地,电子设备也可以响应于电子设备由展开态变为折叠态结束所述第二用户 界面的显示。Or, optionally, the electronic device may also end the display of the second user interface in response to the electronic device changing from the expanded state to the collapsed state.
可选地,电子设备可以响应于电子设备由展开态变为折叠态,或者响应于预设的用户操作,将所述第二用户界面缩小为悬浮窗口,或者移至负一屏进行显示,方便用户可以通过在结束所述第二用户界面的显示后再次显示第二用户界面。Optionally, the electronic device may respond to the electronic device changing from an expanded state to a folded state, or in response to a preset user operation, reduce the second user interface to a floating window, or move to a negative screen for display, which is convenient The user can display the second user interface again after finishing the display of the second user interface.
本申请以折叠屏设备为例来阐述本申请的实施例,但是不限于折叠屏设备,本申请实施例还可以应用在平板设备以及其他电子设备上。例如图6J-图6L示出的单屏设备以及图6M示出的平板设备。需要说明的是,此时第一用户界面和第二用户界面可以分别显示在如图6J所示的显示区域A和显示区域B;如图6K所示的显示区域C和显示区域D;如图6L所示的显示区域E和显示区域F;或者如图6M所示的显示区域G和显示区域H。This application uses a folding screen device as an example to illustrate the embodiments of this application, but it is not limited to a folding screen device. The embodiments of this application can also be applied to tablet devices and other electronic devices. For example, the single-screen device shown in FIGS. 6J-6L and the tablet device shown in FIG. 6M. It should be noted that at this time, the first user interface and the second user interface can be respectively displayed in the display area A and the display area B as shown in FIG. 6J; the display area C and the display area D as shown in FIG. 6K; The display area E and the display area F shown in 6L; or the display area G and the display area H shown in FIG. 6M.
由此可知,本申请提出的方法,用户通过较少的操作就可以快速启动电子设备中的功能(如听歌识曲)。例如,用户在观看视频时,通过对视频对象操作(例如双指长按操作)调出听歌识曲功能选项,用户只需将视频对象移动至听歌识曲功能选项就可以对视频中的音频信息进行识曲。电子设备在执行听歌识曲功能时,视频播放界面仍然显示在电子设备上,用户不需要退出视频播放界面。这样,不仅简化了用户的操作,还不影响用户继续观看视频。电子设备显示第二用户界面(如,听歌识曲的结果界面)有助于用户获知对第一对象执行第一功能的结果。It can be seen from this that with the method proposed in the present application, the user can quickly start the functions in the electronic device (such as listening to songs and recognizing music) with less operations. For example, when a user is watching a video, he can call up the function of listening to songs and recognizing music by operating on the video object (for example, a two-finger long press operation). The user only needs to move the video object to the function of listening to songs to recognize the music. Audio information for music recognition. When the electronic device performs the function of listening to songs and recognizing music, the video playback interface is still displayed on the electronic device, and the user does not need to exit the video playback interface. This not only simplifies the user's operation, but also does not affect the user to continue watching the video. The electronic device displaying the second user interface (for example, the result interface of listening to songs and recognizing music) helps the user to know the result of performing the first function on the first object.
下面结合附图对本申请实施例提供的电子设备进行介绍。The electronic equipment provided in the embodiments of the present application will be introduced below with reference to the accompanying drawings.
图8A示出了电子设备100的结构示意图。FIG. 8A shows a schematic diagram of the structure of the electronic device 100.
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2. , Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(APPlication processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc. Among them, the different processing units may be independent devices or integrated in one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110 中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can store instructions or data that the processor 110 has just used or used cyclically. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter/receiver (universal asynchronous) interface. receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / Or Universal Serial Bus (USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, which includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple sets of I2C buses. The processor 110 may couple the touch sensor 180K, the charger, the flash, the camera 193, etc., respectively through different I2C bus interfaces. For example, the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement the touch function of the electronic device 100.
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices. The MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on. In some embodiments, the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect to other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不 构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like 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 by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic waves to radiate through the antenna 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)。In some embodiments, the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like. The GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, and the like. The display screen 194 includes a display panel. The display panel can use liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
在本申请的一些实施例中,当显示面板采用OLED、AMOLED、FLED等材料时,上述图8A中的显示屏194可以被弯折。这里,上述显示屏194可以被弯折是指显示屏可以在任意部位被弯折到任意角度(下文称“被弯折的部位”为“弯折部位”),并可以在该角度保持,例如,显示屏194可以从中部左右对折。也可以从中部上下对折。如图8B所示,显示屏194被弯折时,以弯折部位为界,其显示区域可以被划分为A屏、B屏和侧边屏。本申请中,将可以被弯折的显示屏称为可折叠显示屏。其中,该可折叠显示屏可以是一块屏幕,也可以是多块屏幕拼凑在一起组合成的显示屏,在此不做限定。In some embodiments of the present application, when the display panel uses materials such as OLED, AMOLED, FLED, etc., the display screen 194 in FIG. 8A may be bent. Here, the above-mentioned display screen 194 can be bent means that the display screen can be bent to any angle at any part (hereinafter referred to as the "bent part" as the "bend part"), and can be maintained at this angle, for example , The display screen 194 can be folded in half from the center. You can also fold up and down from the middle. As shown in FIG. 8B, when the display screen 194 is bent, the display area can be divided into an A screen, a B screen, and a side screen with the bending part as a boundary. In this application, a display screen that can be bent is referred to as a foldable display screen. Wherein, the foldable display screen may be one screen, or a display screen formed by patching together multiple screens, which is not limited here.
根据A屏和B屏的夹角θ的大小,电子设备可以被分为折叠态(如图8B、图8C所示)和展开态(如图8D所示)。示例性的,若夹角θ小于第一角度(如,180度)大于等于第二角度(如,90度),则确定电子设备为展开态。若夹角θ小于第三角度(如,90度)大于等于第四角度(如,0度),则确定电子设备为折叠态。其中第一角度>第二角度≥第三角度>第四角度。电子设备100可以通过设置在该可折叠显示屏的弯折部位的角度传感器(图8A中未示出)测量所成夹角的大小。或者电子设备也可采用其他方法测量所述夹角,在此不做限定。According to the size of the angle θ between the A screen and the B screen, the electronic device can be divided into a folded state (as shown in FIG. 8B and FIG. 8C) and an unfolded state (as shown in FIG. 8D). Exemplarily, if the included angle θ is less than the first angle (for example, 180 degrees) and greater than or equal to the second angle (for example, 90 degrees), it is determined that the electronic device is in the expanded state. If the included angle θ is less than the third angle (for example, 90 degrees) and greater than or equal to the fourth angle (for example, 0 degrees), it is determined that the electronic device is in the folded state. Wherein the first angle>the second angle≥the third angle>the fourth angle. The electronic device 100 can measure the size of the included angle through an angle sensor (not shown in FIG. 8A) disposed at the bending part of the foldable display screen. Or the electronic device can also use other methods to measure the included angle, which is not limited here.
当电子设备为折叠态时,电子设备可以仅在显示屏的部分区域显示内容。例如,可以仅在A屏显示内容,B屏为灭屏状态。此时,若电子设备由折叠态变为展开态,电子设备可以点亮B屏,电子设备将显示屏的全部区域用于显示。When the electronic device is in the folded state, the electronic device may only display content on a partial area of the display screen. For example, it is possible to display content only on screen A, and screen B in an off-screen state. At this time, if the electronic device changes from the folded state to the unfolded state, the electronic device can light up the B screen, and the electronic device uses the entire area of the display screen for display.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can realize a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递 到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye. ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and is projected to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats of image signals. In some embodiments, the electronic device 100 may include one or N cameras 193, and N is a positive integer greater than one.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, for example, the transfer mode between human brain neurons, it can quickly process input information, and it can also continuously self-learn. Through the NPU, applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
内部存储器121可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。处理器110可以通过运行存储在内部存储器121的上述指令,从而使得电子设备100执行本申请一些实施例中所提供的方法。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。The internal memory 121 may be used to store one or more computer programs, and the one or more computer programs include instructions. The processor 110 may execute the above-mentioned instructions stored in the internal memory 121 to enable the electronic device 100 to execute the methods provided in some embodiments of the present application. The internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function. The data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。The speaker 170A, also called "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone", "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used to connect wired earphones. The earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用选项时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用选项时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be provided on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors and so on. The capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application option, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application option, an instruction to create a new short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the movement posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the holster or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and be used in applications such as horizontal and vertical screen switching, pedometers and so on.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F, used to measure distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳 朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense the brightness of the ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”. The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. The visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal. In some embodiments, the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone. The audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function. The application processor can analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The button 190 includes a power-on button, a volume button, and so on. The button 190 may be a mechanical button. It can also be a touch button. The electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback. For example, touch operations that act on different applications (such as photographing, audio playback, etc.) can correspond to different vibration feedback effects. Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminding, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子 设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect to the SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. The same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication. In some embodiments, the electronic device 100 uses an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present invention takes an Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 by way of example.
图9是本发明实施例的电子设备100的软件结构框图。FIG. 9 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present invention.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图9所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in Figure 9, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
应用程序框架层为应用程序层的应用程序提供应用编程接口(APPlication programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (APPlication programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图9所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 9, the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and so on.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。The window manager is used to manage window programs. The window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。The content provider is used to store and retrieve data and make these data accessible to applications. The data may include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
视图系统包括可视控件,例如显示文本的控件,显示图像的控件等。视图系统可用于构建应用程序的显示界面。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文本的视图以及显示图像的视图。The view system includes visual controls, such as controls that display text, controls that display images, and so on. The view system can be used to construct the display interface of the application. The display interface can be composed of one or more views. For example, a display interface that includes a short message notification icon may include a view that displays text and a view that displays images.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图像,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, images, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备100振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, and so on. The notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text information is prompted in the status bar, a prompt sound is emitted, the electronic device 100 vibrates, and the indicator light flashes.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in a virtual machine. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。The system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融 合。The surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
2D图形引擎是2D绘图的绘图引擎。The 2D graphics engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
下面结合捕获拍照场景,示例性说明电子设备100软件以及硬件的工作流程。In the following, the workflow of the software and hardware of the electronic device 100 will be exemplified in conjunction with capturing a photo scene.
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into the original input event (including touch coordinates, time stamp of the touch operation, etc.). The original input events are stored in the kernel layer. The application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and the control corresponding to the click operation is the control of the camera application icon as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer. The camera 193 captures still images or videos.
结合本申请的启动功能的方法,示例性说明电子设备100的软件和硬件的工作流程。Combined with the method of starting the function of the present application, the working process of the software and hardware of the electronic device 100 is exemplified.
参见图10,图10中的内核层、应用程序框架层、应用层分别对应图9中的内核层、应用程序框架层、应用程序层。Referring to Fig. 10, the kernel layer, application framework layer, and application layer in Fig. 10 correspond to the kernel layer, application framework layer, and application layer in Fig. 9 respectively.
传感器驱动可以用于检测用户操作(如双指长按操作、双指拖动操作等等),并将检测到的用户操作生成输入事件上报到应用程序框架层。The sensor driver can be used to detect user operations (such as two-finger long-press operations, two-finger drag operations, etc.), and report the detected user operations to generate input events to the application framework layer.
快速启动功能管理器可以用于确定与被用户操作的对象相关的功能(如用户双指长按视频对象,相关的功能可以为听歌识曲、视频分享、视频剪辑、将视频上传到云盘等等)以及根据用户操作确定要运行哪一个功能(如用户将视频对象双指拖动到听歌识曲对应的选项中,则运行听歌识曲功能)。The quick start function manager can be used to determine the functions related to the object operated by the user (for example, the user long presses the video object with two fingers, the related functions can be listening to music, video sharing, video editing, and uploading the video to the cloud disk. Etc.) and determine which function to run according to user operation (for example, the user drags the video object with two fingers to the corresponding option of listening to songs and recognizing songs, then the function of listening to songs and recognizing songs is run).
资源管理器可以用于保存视频APP中播放的视频文件,并向快速启动功能管理器提供视频文件。The resource manager can be used to save the video files played in the video APP and provide the video files to the quick start function manager.
显示驱动用于显示播放视频的用户界面和听歌识曲结果显示界面。The display driver is used to display the user interface of playing video and the display interface of the results of listening to songs.
为了便于更好地实施本申请实施例的上述方案,本申请还对应提供了一种电子设备,下面结合附图来进行详细说明:In order to facilitate better implementation of the above-mentioned solutions of the embodiments of the present application, the present application also provides an electronic device, which will be described in detail below with reference to the accompanying drawings:
如图11示出的本申请实施例提供的电子设备的结构示意图,该电子设备可以包括:第一显示单元101、第一接收单元102、第二显示单元103、第二接收单元104和执行单元105。Figure 11 shows a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device may include: a first display unit 101, a first receiving unit 102, a second display unit 103, a second receiving unit 104, and an execution unit 105.
第一显示单元101用于显示第一用户界面,第一用户界面包含第一对象,关于第一用户界面具体可参见步骤S301,此处不再赘述。The first display unit 101 is configured to display a first user interface, and the first user interface includes a first object. For details of the first user interface, please refer to step S301, which will not be repeated here.
第一接收单元102用于接收对所述第一对象的第一用户操作,关于第一用户操作具体可参见步骤S302,此处不再赘述。The first receiving unit 102 is configured to receive a first user operation on the first object. For details about the first user operation, refer to step S302, which will not be repeated here.
第二显示单元103用于响应于第一用户操作,根据第一对象显示至少一个选项,至少一个选项对应的功能与第一对象相关联,关于至少一个选项具体可参见步骤S303,此处不再赘述。The second display unit 103 is configured to display at least one option according to the first object in response to the first user operation, and the function corresponding to the at least one option is associated with the first object. For details about the at least one option, please refer to step S303, which will not be omitted here. Go into details.
第二接收单元104用于接收将第一对象移动到至少一个选项中的第一选项的第二用户操 作,关于第二用户操作具体可参见步骤S304,此处不再赘述。The second receiving unit 104 is configured to receive a second user operation of moving the first object to the first option of the at least one option. For details of the second user operation, refer to step S304, which will not be repeated here.
执行单元105用于响应于所述第二用户操作,对第一对象的内容执行与第一选项对应的第一功能,具体可参见步骤S305,此处不再赘述。The execution unit 105 is configured to execute the first function corresponding to the first option on the content of the first object in response to the second user operation. For details, please refer to step S305, which will not be repeated here.
本申请实施例还提供了一种计算机可读存储介质。上述方法实施例中的全部或者部分流程可以由计算机程序来指令相关的硬件完成,该程序可存储于上述计算机存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。该计算机可读存储介质包括:只读存储器(read-only memory,ROM)或随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可存储程序代码的介质。The embodiment of the present application also provides a computer-readable storage medium. All or part of the processes in the foregoing method embodiments may be completed by a computer program instructing relevant hardware. The program may be stored in the foregoing computer storage medium. When the program is executed, it may include the processes of the foregoing method embodiments. The computer-readable storage medium includes: read-only memory (ROM) or random access memory (RAM), magnetic disks or optical disks and other media that can store program codes.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
本申请实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。The steps in the method in the embodiment of the present application can be adjusted, merged, and deleted in order according to actual needs.
本申请实施例电子设备中的单元可以根据实际需要进行合并、划分和删减。The units in the electronic equipment in the embodiments of the present application may be combined, divided, and deleted according to actual needs.
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions recorded in the embodiments are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims (16)

  1. 一种启动功能的方法,其特征在于,包括:A method for starting a function, characterized in that it comprises:
    电子设备显示第一用户界面,所述第一用户界面包含第一对象;The electronic device displays a first user interface, and the first user interface includes a first object;
    所述电子设备接收对所述第一对象的第一用户操作;Receiving, by the electronic device, a first user operation on the first object;
    响应于所述第一用户操作,所述电子设备根据所述第一对象显示至少一个选项,所述至少一个选项对应的功能与所述第一对象相关联;In response to the first user operation, the electronic device displays at least one option according to the first object, and a function corresponding to the at least one option is associated with the first object;
    所述电子设备接收将所述第一对象移动至所述至少一个选项中的第一选项的第二用户操作;Receiving, by the electronic device, a second user operation of moving the first object to the first option of the at least one option;
    响应于所述第二用户操作,所述电子设备对所述第一对象的内容执行与所述第一选项对应的第一功能。In response to the second user operation, the electronic device performs a first function corresponding to the first option on the content of the first object.
  2. 根据权利要求1所述的方法,其特征在于,所述电子设备执行与所述第一选项对应的第一功能之后,所述方法还包括:The method according to claim 1, wherein after the electronic device executes the first function corresponding to the first option, the method further comprises:
    所述电子设备分区域显示所述第一用户界面和第二用户界面,所述第二用户界面为对所述第一对象的内容执行所述第一功能的用户界面。The electronic device displays the first user interface and the second user interface in regions, and the second user interface is a user interface that performs the first function on the content of the first object.
  3. 根据权利要求2所述的方法,其特征在于,所述电子设备分区域显示所述第一用户界面和所述第二用户界面,包括:The method according to claim 2, wherein the electronic device displaying the first user interface and the second user interface in different regions comprises:
    响应于所述电子设备由折叠态到展开态,所述电子设备分区域显示所述第一用户界面和所述第二用户界面。In response to the electronic device changing from the folded state to the unfolded state, the electronic device displays the first user interface and the second user interface in regions.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述根据所述第一对象显示至少一个选项包括:The method according to any one of claims 1-3, wherein the displaying at least one option according to the first object comprises:
    所述电子设备确定所述第一对象的类型;Determining the type of the first object by the electronic device;
    根据所述第一对象的类型确定所述至少一个选项。The at least one option is determined according to the type of the first object.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述第一对象包括:视频对象、音频对象、文本对象、网页链接对象、APP对象或图像对象。The method according to any one of claims 1 to 4, wherein the first object comprises: a video object, an audio object, a text object, a webpage link object, an APP object, or an image object.
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述第一对象的类型确定所述至少一个选项,包括:The method according to claim 5, wherein the determining the at least one option according to the type of the first object comprises:
    若所述第一对象为所述视频对象,所述至少一个选项包括以下一个或多个:分享功能的选项、下载功能的选项、上传功能的选项、听歌识曲功能的选项、插入视频功能的选项、添加附件功能的选项、视频编辑功能的选项;If the first object is the video object, the at least one option includes one or more of the following: an option of a sharing function, an option of a download function, an option of an upload function, an option of listening to a song and a function of inserting a video , The option of adding attachment function, the option of video editing function;
    若所述第一对象为所述网页链接对象,所述至少一个选项包括以下一个或多个:分享功能的选项、下载功能的选项、上传功能的选项、稍后阅读功能的选项、导出PDF文档功能的选项、添加附件功能的选项、打印功能的选项;If the first object is the webpage link object, the at least one option includes one or more of the following: an option of a sharing function, an option of a download function, an option of an upload function, an option of a later reading function, and an export PDF document Option of function, option of adding attachment function, option of printing function;
    若所述第一对象为所述APP对象,所述至少一个选项包括以下一个或多个:卸载功能的选项、设置功能的选项、使用统计功能的选项、分享功能的选项、权限管理功能的选项。If the first object is the APP object, the at least one option includes one or more of the following: options for uninstalling functions, options for setting functions, options for using statistics functions, options for sharing functions, options for rights management functions .
  7. 根据权利要求4-6任一项所述的方法,其特征在于,所述电子设备确定所述第一对象的类型包括:The method according to any one of claims 4-6, wherein the electronic device determining the type of the first object comprises:
    所述电子设备根据所述第一对象的特征值确定所述第一对象的类型,所述特征值用于标识所述第一对象的类型。The electronic device determines the type of the first object according to the characteristic value of the first object, and the characteristic value is used to identify the type of the first object.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述第一对象为第一网页链接;The method according to any one of claims 1-7, wherein the first object is a first webpage link;
    所述电子设备根据所述第一对象显示至少一个选项,包括:The electronic device displaying at least one option according to the first object includes:
    所述电子设备在所述第一用户界面中显示下载功能的选项、上传功能的选项、听歌识曲功能的选项、插入音频功能的选项、添加附件功能的选项、和/或音频编辑的选项;The electronic device displays in the first user interface options for downloading functions, options for uploading functions, options for listening to songs and recognizing music, options for inserting audio functions, options for adding attachment functions, and/or options for audio editing ;
    所述电子设备接收将所述第一对象移动至所述至少一个选项中的第一选项的第二用户操作,包括:The receiving, by the electronic device, a second user operation of moving the first object to the first option of the at least one option includes:
    显示所述稍后阅读功能的选项时,所述电子设备接收将所述第一网页链接移动至所述稍后阅读功能的选项的第二用户操作;When displaying the option of the later reading function, the electronic device receives a second user operation of moving the first webpage link to the option of the later reading function;
    响应于所述第二用户操作,所述电子设备对所述第一对象的内容执行与所述第一选项对应的第一功能,包括:In response to the second user operation, the electronic device performing the first function corresponding to the first option on the content of the first object includes:
    响应于所述第二用户操作,所述电子设备保存所述第一网页链接的内容。In response to the second user operation, the electronic device saves the content of the first webpage link.
  9. 根据权利要求1-7所述的方法,其特征在于,所述第一对象为第一应用程序的图标;7. The method according to claims 1-7, wherein the first object is an icon of a first application;
    所述电子设备根据所述第一对象显示至少一个选项,包括:The electronic device displaying at least one option according to the first object includes:
    所述电子设备在所述第一用户界面中显示卸载功能的选项、设置功能的选项、使用统计功能的选项、分享功能的选项、和/或权限管理功能的选项;The electronic device displays options for uninstalling functions, options for setting functions, options for usage statistics, options for sharing functions, and/or options for rights management functions in the first user interface;
    所述电子设备接收将所述第一对象移动至所述至少一个选项中的第一选项的第二用户操作,包括:The receiving, by the electronic device, a second user operation of moving the first object to the first option of the at least one option includes:
    显示所述使用统计功能的选项时,所述电子设备接收将所述第一应用程序的图标移动至所述使用统计功能的选项的第二用户操作;When displaying the option of the usage statistics function, the electronic device receives a second user operation of moving the icon of the first application to the option of the usage statistics function;
    响应于所述第二用户操作,所述电子设备对所述第一对象的内容执行与所述第一选项对应的第一功能,包括:In response to the second user operation, the electronic device performing the first function corresponding to the first option on the content of the first object includes:
    响应于所述第二用户操作,所述电子设备统计所述第一应用程序的使用情况。In response to the second user operation, the electronic device counts the usage of the first application program.
  10. 根据权利要求1-7所述的方法,其特征在于,所述第一对象为第一视频;8. The method of claims 1-7, wherein the first object is a first video;
    所述电子设备根据所述第一对象显示至少一个选项,包括:The electronic device displaying at least one option according to the first object includes:
    所述电子设备在所述第一用户界面中显示分享功能的选项、下载功能的选项、上传功能的选项、听歌识曲功能的选项、插入视频功能的选项、添加附件功能的选项、和/或视频编辑的选项;The electronic device displays in the first user interface options for sharing functions, options for download functions, options for uploading functions, options for listening to songs and recognizing music, options for inserting video functions, options for adding attachment functions, and/ Or video editing options;
    所述电子设备接收将所述第一对象移动至所述至少一个选项中的第一选项的第二用户操作,包括:The receiving, by the electronic device, a second user operation of moving the first object to the first option of the at least one option includes:
    在显示所述听歌识曲功能的选项时,所述电子设备接收将所述第一视频移动至所述听歌识曲功能的选项的第二用户操作;When displaying the option of the function of listening to music, the electronic device receives a second user operation of moving the first video to the option of the function of listening to music;
    响应于所述第二用户操作,所述电子设备对所述第一对象的内容执行与所述第一选项对 应的第一功能,包括:In response to the second user operation, the electronic device performing the first function corresponding to the first option on the content of the first object includes:
    响应于所述第二用户操作,所述电子设备识别所述第一视频包括的第一音频的歌曲信息,所述歌曲信息包括歌曲名称、歌曲歌词、歌曲演唱者、歌曲创作者、和/或歌曲链接。In response to the second user operation, the electronic device recognizes song information of the first audio included in the first video, and the song information includes song title, song lyrics, song artist, song creator, and/or Song link.
  11. 根据权利要求1-10任一项所述的方法,其特征在于,The method according to any one of claims 1-10, wherein:
    所述第一用户操作为双指长按所述第一对象的操作;和/或The first user operation is an operation of long pressing the first object with two fingers; and/or
    所述第二用户操作为双指拖动所述第一对象的操作。The second user operation is an operation of dragging the first object with two fingers.
  12. 根据权利要求1-11任一项所述的方法,其特征在于,在所述电子设备接收第一用户操作之后,所述电子设备接收所述第二用户操作之前,所述方法还包括:The method according to any one of claims 1-11, wherein after the electronic device receives the first user operation and before the electronic device receives the second user operation, the method further comprises:
    所述电子设备根据所述第一对象在所述第一用户界面中的显示位置确定所述至少一个选项在所述第一用户界面中的显示位置。The electronic device determines the display position of the at least one option in the first user interface according to the display position of the first object in the first user interface.
  13. 根据权利要求1-12任一项所述的方法,其特征在于,The method according to any one of claims 1-12, wherein:
    所述电子设备接收对所述第一对象的第一用户操作之后,所述方法还包括:响应于所述第一用户操作,所述电子设备显示与所述第一对象对应的第一控件;After the electronic device receives the first user operation on the first object, the method further includes: in response to the first user operation, the electronic device displays a first control corresponding to the first object;
    所述电子设备接收将所述第一对象移动至所述至少一个选项中的第一选项的第二用户操作包括:The receiving, by the electronic device, the second user operation of moving the first object to the first option of the at least one option includes:
    所述第一对象对应的第一控件移动至所述第一选项,或所述第一对象本身移动至所述第一选项。The first control corresponding to the first object moves to the first option, or the first object itself moves to the first option.
  14. 一种电子设备,其特征在于,包括:通信接口、存储器和处理器;所述通信接口、所述存储器与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器从所述存储器中读取所述计算机指令,以使得所述电子设备执行如权利要求1至13任一项所述方法。An electronic device, characterized by comprising: a communication interface, a memory, and a processor; the communication interface, the memory are coupled with the processor, and the memory is used to store computer program code, the computer program code including Computer instructions, when the processor reads the computer instructions from the memory, so that the electronic device executes the method according to any one of claims 1 to 13.
  15. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1至13任一项所述的方法。A computer-readable storage medium, characterized by comprising computer instructions, which when the computer instructions run on an electronic device, causes the electronic device to execute the method according to any one of claims 1 to 13.
  16. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1至13任一项所述的方法。A computer program product, characterized in that, when the computer program product runs on a computer, the computer is caused to execute the method according to any one of claims 1 to 13.
PCT/CN2020/117909 2019-10-31 2020-09-25 Method for activating function and electronic device WO2021082835A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911056326.5A CN111221453A (en) 2019-10-31 2019-10-31 Function starting method and electronic equipment
CN201911056326.5 2019-10-31

Publications (1)

Publication Number Publication Date
WO2021082835A1 true WO2021082835A1 (en) 2021-05-06

Family

ID=70825730

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/117909 WO2021082835A1 (en) 2019-10-31 2020-09-25 Method for activating function and electronic device

Country Status (2)

Country Link
CN (2) CN111221453A (en)
WO (1) WO2021082835A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114443202A (en) * 2022-02-08 2022-05-06 北京课游工场数字科技有限公司 Interactive answer operation and answer expression method and system
CN116700573A (en) * 2022-04-29 2023-09-05 荣耀终端有限公司 Method for replacing application card and terminal equipment

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221453A (en) * 2019-10-31 2020-06-02 华为技术有限公司 Function starting method and electronic equipment
CN116069212B (en) * 2020-07-10 2024-04-12 荣耀终端有限公司 Quick looking-up method for application card, electronic equipment and storage medium
CN113641278A (en) * 2021-08-11 2021-11-12 维沃移动通信有限公司 Control method, control device, electronic equipment and storage medium
CN113918062B (en) * 2021-10-29 2024-03-26 海信集团控股股份有限公司 Method and terminal for enabling shortcut function of application program
CN114327731B (en) * 2021-12-31 2023-11-14 北京字跳网络技术有限公司 Information display method, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102203711A (en) * 2008-11-13 2011-09-28 高通股份有限公司 Method and system for context dependent pop-up menus
CN102830906A (en) * 2012-07-04 2012-12-19 华为终端有限公司 Method and terminal equipment for carrying out file processing based on user interface
CN108008890A (en) * 2017-11-30 2018-05-08 努比亚技术有限公司 Dual-screen mobile terminal and its across application quick transmission method, readable storage medium storing program for executing
CN111221453A (en) * 2019-10-31 2020-06-02 华为技术有限公司 Function starting method and electronic equipment

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130151969A1 (en) * 2011-12-08 2013-06-13 Ihigh.Com, Inc. Content Identification and Linking
US20130332806A1 (en) * 2012-06-08 2013-12-12 Apple Inc. Collecting Web Pages/Links from Communications and Documents for Later Reading
JP2015014960A (en) * 2013-07-05 2015-01-22 ソニー株式会社 Information processor and storage medium
US9247075B2 (en) * 2013-08-27 2016-01-26 International Business Machines Corporation Data sharing with mobile devices
EP3074891A1 (en) * 2014-04-03 2016-10-05 Spotify AB A system and method of tracking music or other audio metadata from a number of sources in real-time on an electronic device
US9990105B2 (en) * 2014-07-08 2018-06-05 Verizon Patent And Licensing Inc. Accessible contextual controls within a graphical user interface
CN104133629A (en) * 2014-07-10 2014-11-05 深圳市中兴移动通信有限公司 Double-screen interaction method and mobile terminal
KR102335373B1 (en) * 2014-12-18 2021-12-06 삼성전자주식회사 Electronic device and method for controlling display of a screen
KR102308645B1 (en) * 2014-12-29 2021-10-05 삼성전자주식회사 User termincal device and methods for controlling the user termincal device thereof
CN106201204B (en) * 2016-07-08 2019-06-28 Oppo广东移动通信有限公司 Start the method and apparatus of application function
CN115454286B (en) * 2016-08-19 2024-04-02 荣耀终端有限公司 Application data processing method and device and terminal equipment
CN107239199A (en) * 2017-06-29 2017-10-10 珠海市魅族科技有限公司 It is a kind of to operate the method responded and relevant apparatus
CN108334272B (en) * 2018-01-23 2020-08-21 维沃移动通信有限公司 Control method and mobile terminal
CN109947979B (en) * 2018-08-22 2021-09-21 Oppo广东移动通信有限公司 Song identification method, device, terminal and storage medium
CN109582477A (en) * 2018-11-30 2019-04-05 北京小米移动软件有限公司 Document transmission method, terminal and storage medium
CN109656439A (en) * 2018-12-17 2019-04-19 北京小米移动软件有限公司 Display methods, device and the storage medium of prompt operation panel
CN110058754B (en) * 2019-03-29 2021-03-05 维沃移动通信有限公司 Option display method and terminal device
CN115344173A (en) * 2019-05-05 2022-11-15 华为技术有限公司 Operation method for split screen display and electronic equipment
CN115686299A (en) * 2019-06-30 2023-02-03 华为技术有限公司 Screen splitting method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102203711A (en) * 2008-11-13 2011-09-28 高通股份有限公司 Method and system for context dependent pop-up menus
CN102830906A (en) * 2012-07-04 2012-12-19 华为终端有限公司 Method and terminal equipment for carrying out file processing based on user interface
CN108008890A (en) * 2017-11-30 2018-05-08 努比亚技术有限公司 Dual-screen mobile terminal and its across application quick transmission method, readable storage medium storing program for executing
CN111221453A (en) * 2019-10-31 2020-06-02 华为技术有限公司 Function starting method and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114443202A (en) * 2022-02-08 2022-05-06 北京课游工场数字科技有限公司 Interactive answer operation and answer expression method and system
CN116700573A (en) * 2022-04-29 2023-09-05 荣耀终端有限公司 Method for replacing application card and terminal equipment

Also Published As

Publication number Publication date
CN111221453A (en) 2020-06-02
CN114461111A (en) 2022-05-10
CN114461111B (en) 2022-09-23

Similar Documents

Publication Publication Date Title
JP7142783B2 (en) Voice control method and electronic device
WO2021013158A1 (en) Display method and related apparatus
WO2021129326A1 (en) Screen display method and electronic device
WO2021103981A1 (en) Split-screen display processing method and apparatus, and electronic device
WO2021139768A1 (en) Interaction method for cross-device task processing, and electronic device and storage medium
WO2021082835A1 (en) Method for activating function and electronic device
WO2021000839A1 (en) Screen splitting method and electronic device
WO2021036571A1 (en) Desktop editing method and electronic device
WO2021000881A1 (en) Screen splitting method and electronic device
WO2021213164A1 (en) Application interface interaction method, electronic device, and computer readable storage medium
WO2021000804A1 (en) Display method and apparatus in locked state
WO2020253758A1 (en) User interface layout method and electronic device
WO2020062294A1 (en) Display control method for system navigation bar, graphical user interface, and electronic device
WO2021258814A1 (en) Video synthesis method and apparatus, electronic device, and storage medium
WO2022068819A1 (en) Interface display method and related apparatus
CN109819306B (en) Media file clipping method, electronic device and server
WO2021082815A1 (en) Display element display method and electronic device
WO2020155875A1 (en) Display method for electronic device, graphic user interface and electronic device
WO2020192761A1 (en) Method for recording user emotion, and related apparatus
WO2022012418A1 (en) Photographing method and electronic device
WO2021218429A1 (en) Method for managing application window, and terminal device and computer-readable storage medium
WO2020238759A1 (en) Interface display method and electronic device
WO2022184173A1 (en) Card widget display method, graphical user interface, and related apparatus
CN115016697A (en) Screen projection method, computer device, readable storage medium, and program product
WO2023029916A1 (en) Annotation display method and apparatus, terminal device, and readable storage medium

Legal Events

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

Ref document number: 20880923

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20880923

Country of ref document: EP

Kind code of ref document: A1