WO2021129538A1 - Control method and electronic device - Google Patents

Control method and electronic device Download PDF

Info

Publication number
WO2021129538A1
WO2021129538A1 PCT/CN2020/137679 CN2020137679W WO2021129538A1 WO 2021129538 A1 WO2021129538 A1 WO 2021129538A1 CN 2020137679 W CN2020137679 W CN 2020137679W WO 2021129538 A1 WO2021129538 A1 WO 2021129538A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
stylus
interface
input
virtual keyboard
Prior art date
Application number
PCT/CN2020/137679
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 WO2021129538A1 publication Critical patent/WO2021129538A1/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/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
    • 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

Definitions

  • the embodiments of the present invention relate to the field of communication technologies, and in particular, to a control method and electronic equipment.
  • the user can take out the stylus pen in the electronic device and input on the electronic device.
  • the user can click the input box on the chat interface to trigger the electronic device to pop up a virtual keyboard.
  • the user can be switched to another virtual keyboard (for example, a handwriting keyboard), and then the user can input on the virtual keyboard.
  • the embodiments of the present invention provide a control method and an electronic device to solve the problem of cumbersome and time-consuming operations during the input process of the existing electronic device using a stylus pen.
  • the present invention is implemented as follows:
  • an embodiment of the present invention provides a control method, which is applied to an electronic device including a removable stylus, and the method includes: receiving a user when the electronic device displays a first interface of a first application program The first input of pulling out or inserting the stylus pen into the electronic device; in response to the first input, updating the first interface.
  • an embodiment of the present invention provides an electronic device, the electronic device includes a pluggable stylus, and the electronic device includes a receiving module and a control module.
  • the receiving module is used for receiving the first input of the user pulling out or inserting the stylus pen into the electronic device when the electronic device displays the first interface of the first application program.
  • the control module is configured to update the first interface in response to the first input received by the receiving module.
  • an embodiment of the present invention provides an electronic device.
  • the electronic device includes a processor, a memory, and a computer program stored on the memory and running on the processor.
  • the computer program is executed by the processor, the above-mentioned first The steps of the control method in one aspect.
  • an embodiment of the present invention provides a computer-readable storage medium storing a computer program on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the control method in the above-mentioned first aspect are implemented.
  • the electronic device when the electronic device displays the first interface of the first application program, the first input of the user pulling out or inserting the stylus into the electronic device may be received; and in response to the first input, update The first interface.
  • the control method provided by the embodiments of the present invention is applied to the interactive application scenario of an electronic device and a stylus pen.
  • the electronic device can respond to the user input according to the stylus pen Status changes, the current display interface is directly updated to the interface applicable to the current status of the stylus (for example, if the stylus is pulled out, the updated interface is an interface that can be input through the stylus) without the user
  • the operation triggers the update of the current display interface.
  • the embodiment of the present invention can make the electronic device more intelligently control the display interface when used in conjunction with the stylus, which facilitates the interactive operation of the stylus on the electronic device by the user, so that the stylus The use process is smoother and smarter. Therefore, the embodiments of the present invention can improve the convenience of interactive applications between the electronic device and the stylus.
  • FIG. 1 is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention
  • Figure 2 is a schematic diagram of a control method provided by an embodiment of the present invention.
  • FIG. 3 is one of the schematic diagrams of the interface of the control method application provided by the embodiment of the present invention.
  • FIG. 5 is one of the schematic structural diagrams of an electronic device provided by an embodiment of the present invention.
  • FIG. 6 is the second structural diagram of an electronic device provided by an embodiment of the present invention.
  • FIG. 7 is the third structural diagram of an electronic device provided by an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of hardware of an electronic device provided by an embodiment of the present invention.
  • first and second in the specification and claims herein are used to distinguish different objects, rather than to describe a specific order of objects.
  • first interface and the second interface are used to distinguish different interfaces, rather than to describe a specific order of the interfaces.
  • words such as “exemplary” or “for example” are used to represent examples, illustrations, or illustrations. Any embodiment or design solution described as “exemplary” or “for example” in the embodiment of the present invention should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as “exemplary” or “for example” are used to present related concepts in a specific manner.
  • multiple refers to two or more than two, for example, multiple processing units refers to two or more processing units, etc.; multiple An element refers to two or more elements, etc.
  • Embodiments of the present invention provide a control method and an electronic device, which can receive a first input of a user pulling out or inserting a stylus pen into the electronic device when the electronic device displays a first interface of a first application; and respond to This first input updates the first interface.
  • the control method provided by the embodiments of the present invention is applied to the interactive application scenario of an electronic device and a stylus pen.
  • the electronic device can respond to the user input according to the stylus pen Status changes, the current display interface is directly updated to the interface applicable to the current status of the stylus (for example, if the stylus is pulled out, the updated interface is an interface that can be input through the stylus) without the user
  • the operation triggers the update of the current display interface. Therefore, the embodiment of the present invention can make the electronic device more intelligently control the display interface when used in conjunction with the stylus, which facilitates the interactive operation of the stylus on the electronic device by the user, so that the stylus The use process is smoother and smarter. Therefore, the embodiments of the present invention can improve the convenience of interactive applications between the electronic device and the stylus.
  • the electronic device in the embodiment of the present invention may be an electronic device with an operating system.
  • the operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present invention.
  • the following takes the Android operating system as an example to introduce the software environment to which the control method provided by the embodiment of the present invention is applied.
  • FIG. 1 it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention.
  • the architecture of the Android operating system includes 4 layers, which are: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
  • the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
  • the application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
  • the system runtime layer includes a library (also called a system library) and an Android operating system runtime environment.
  • the library mainly provides various resources needed by the Android operating system.
  • the Android operating system operating environment is used to provide a software environment for the Android operating system.
  • the kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software level.
  • the kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
  • developers can develop a software program that implements the control method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG. 1, so that the control method It can be run based on the Android operating system as shown in Figure 1. That is, the processor or the electronic device can implement the control method provided by the embodiment of the present invention by running the software program in the Android operating system.
  • the electronic device in the embodiment of the present invention may be a mobile terminal or a non-mobile terminal.
  • the mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant
  • the non-mobile terminal may be a personal computer (PC), a television (television, TV), a teller machine, or a self-service machine, etc., which are not specifically limited in the embodiment of the present invention.
  • the execution subject of the control method provided by the embodiment of the present invention may be the above-mentioned electronic device, or may be a functional module and/or functional entity in the electronic device that can implement the control method.
  • the specifics can be determined according to actual usage requirements.
  • the embodiment is not limited.
  • an electronic device is taken as an example to illustrate the control method provided in the embodiment of the present invention.
  • an embodiment of the present invention provides a control method, which is applied to an electronic device including a removable stylus.
  • the control method may include the following steps 201 and 202.
  • Step 201 When the electronic device displays the first interface, the electronic device receives the first input of the user pulling out or inserting the stylus pen into the electronic device.
  • the stylus refers to a device that can replace fingers for input on the touch screen.
  • the above-mentioned first interface may be an interface that needs to call up a virtual keyboard, such as a conversation interface or a chat interface, or may be any other interface that can be used for input with a stylus. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
  • the above-mentioned first interface may be an interface of the first application program (for example, a main interface or a functional interface), or may be a desktop interface, or may be any other interface that meets actual usage requirements. It can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
  • the above-mentioned first application may be a communication application, a social application, an album application, a shopping application, or any other application.
  • the possible application programs can be specifically determined according to actual use requirements, and the embodiment of the present invention does not limit it.
  • the first interface may be a short message editing interface.
  • the first interface may be a conversation interface.
  • the first interface may be an album interface displaying multiple pictures.
  • Step 202 The electronic device updates the first interface in response to the first input.
  • the above-mentioned updating the first interface may be any of the following: displaying a virtual keyboard on the first interface, canceling the display of the virtual keyboard on the first interface, and changing the virtual keyboard displayed on the first interface The keyboard switches to another virtual keyboard.
  • the aforementioned virtual keyboard may also be referred to as an input method keyboard, or a virtual keyboard interface, or an input method input interface.
  • the electronic device displays the first interface
  • the user can pull out the stylus pen from the electronic device (that is, the first input) at this time.
  • the operation of the electronic device to update the first interface may be: display a virtual keyboard on the first interface, or switch the virtual keyboard displayed on the first interface to another virtual keyboard, or update the first interface to (jump to )
  • the second interface, the first interface and the second interface may be different interfaces of the first application.
  • the conversational interface in which the first interface is a communication application program
  • the user can use the stylus from the electronic Unplug the device (that is, the first input); accordingly, the electronic device can display a virtual keyboard on the conversation interface in response to the first input, and then the user can input corresponding content in the conversation interface by operating on the virtual keyboard.
  • the electronic device can respond to the first input, display an information search box and a virtual keyboard on the desktop interface, and then the user can input content in the information search box by operating on the virtual keyboard to search for information.
  • the first interface as the album browsing interface
  • the user can use the stylus at this time Unplug from the electronic device (ie the first input); accordingly, the electronic device can respond to the first input and update the album browsing interface to (jump to) the album editing interface, and then the user can edit in the album through the stylus Operate on the interface.
  • the electronic device displays the first interface
  • the user can insert the stylus into the electronic device (that is, the first input) at this time.
  • Trigger the electronic device to update the first interface For example, the operation of the electronic device to update the first interface may be: switching the virtual keyboard displayed on the first interface to another virtual keyboard, or canceling the display of the virtual keyboard on the first interface, or updating the first interface to (jump Go to) the second interface.
  • the first interface and the second interface may be different interfaces of the first application.
  • the conversational interface in which the first interface is a communication application program
  • the user can use the stylus from the electronic Unplug the device (that is, the first input).
  • the electronic device can display a virtual keyboard on the conversation interface in response to the first input, and then the user can input corresponding content in the conversation interface by operating on the virtual keyboard.
  • the aforementioned first input is that the user pulls the stylus out of the electronic device.
  • the aforementioned step 202 can be specifically implemented by the following step 202A.
  • Step 202A The electronic device responds to the first input. If the first interface does not include the first virtual keyboard, the electronic device displays the first virtual keyboard on the first interface.
  • the electronic device displays a conversation interface 31 (that is, the aforementioned first interface), and the conversation interface 31 does not include a virtual keyboard . If the user needs to use a stylus pen to input information on the conversation interface 31, the user can pull the stylus pen out of the electronic device.
  • the electronic device when the user pulls out the stylus 32 from the electronic device, the electronic device can display the virtual keyboard 33 on the conversation interface 31.
  • the electronic device can directly pop up a virtual keyboard on the current display interface for the user to input on the first interface without the user needing to operate on the current display interface
  • the embodiment of the present invention makes the using process of the stylus more fluent and smarter, and can improve the convenience of using the stylus to input by the electronic device.
  • the above-mentioned first input is that the user inserts the stylus pen into the electronic device.
  • the aforementioned step 202 can be specifically implemented by the following step 202B.
  • Step 202B In response to the first input, the electronic device hides the first virtual keyboard if the first interface includes the first virtual keyboard.
  • the electronic device displays a conversation interface 31 (that is, the aforementioned first interface), and the conversation interface 31 includes a virtual keyboard 33 (for example, the Pinyin virtual keyboard). If the user does not need to use a stylus pen to input information on the conversation interface 31, the user can insert the stylus pen 32 into an electronic device.
  • a conversation interface 31 that is, the aforementioned first interface
  • the conversation interface 31 includes a virtual keyboard 33 (for example, the Pinyin virtual keyboard). If the user does not need to use a stylus pen to input information on the conversation interface 31, the user can insert the stylus pen 32 into an electronic device.
  • the electronic device when the user inserts the stylus pen into the electronic device, the electronic device can cancel the display of the virtual keyboard on the conversation interface 31, that is, hide the virtual keyboard.
  • the electronic device can directly hide the virtual keyboard in the current display interface without the user having to operate on the current display interface to hide the virtual keyboard, so the embodiment of the invention can Improve the convenience of using electronic equipment and stylus together.
  • the aforementioned step 202 can be specifically implemented by the following step 202C.
  • Step 202C If the second virtual keyboard is included in the first interface, update the second virtual keyboard to the third virtual keyboard.
  • the second virtual keyboard and the first virtual keyboard may be the same or different.
  • the second virtual keyboard may be a non-handwritten virtual keyboard (for example, a pinyin type virtual keyboard, referred to as a pinyin virtual keyboard), and the third virtual keyboard may be a handwritten type virtual keyboard (abbreviated as a handwritten virtual keyboard).
  • a handwritten virtual keyboard for ease of description, the second virtual keyboard is a Pinyin keyboard and the third virtual keyboard is a handwritten virtual keyboard as an example in the following for exemplary description.
  • the electronic device displays a conversation interface 31 (that is, the aforementioned first interface), and the conversation interface 31 includes a Pinyin virtual keyboard 33 (ie the second virtual keyboard mentioned above). If the user needs to use a stylus to input information through a handwritten virtual keyboard (ie, the third virtual keyboard), the user can pull the stylus out of the electronic device.
  • a conversation interface 31 that is, the aforementioned first interface
  • the conversation interface 31 includes a Pinyin virtual keyboard 33 (ie the second virtual keyboard mentioned above). If the user needs to use a stylus to input information through a handwritten virtual keyboard (ie, the third virtual keyboard), the user can pull the stylus out of the electronic device.
  • the electronic device when the user pulls out the stylus 32 from the electronic device, the electronic device can update the Pinyin virtual keyboard 33 displayed on the conversation interface 31 to the handwritten virtual keyboard 34.
  • the electronic device after the user pulls out the stylus from the electronic device, the electronic device can update the virtual keyboard displayed on the current display interface to another virtual keyboard without the user having to operate on the current display interface to switch the virtual keyboard Therefore, the embodiment of the present invention can improve the convenience of using the stylus pen to input the electronic device.
  • the aforementioned step 202 can be specifically implemented by the following step 202D.
  • Step 202D If the third virtual keyboard is included in the first interface, update the third virtual keyboard to the second virtual keyboard.
  • the electronic device displays the conversation interface 31 (that is, the aforementioned first interface), and the conversation interface 31 contains a handwritten virtual
  • the keyboard 34 that is, the third virtual keyboard described above. If the user needs to input information through the original Pinyin virtual keyboard 33 (for example, the aforementioned second virtual keyboard) and no longer needs to use a stylus, the user can insert the stylus into the electronic device.
  • the electronic device when the user inserts the stylus 32 into the electronic device, the electronic device can restore the handwritten virtual keyboard 34 displayed on the conversation interface 31 to the Pinyin virtual keyboard 33.
  • the electronic device can restore the virtual keyboard displayed on the current display interface to the original virtual keyboard without the user having to operate on the current display interface to switch the virtual keyboard, thereby
  • the embodiments of the present invention can improve the convenience of using a stylus pen for input in an electronic device.
  • the specific implementation of how to update the first interface based on the first input can be customized in advance by the user, or the electronic device can be set according to the user's touch control.
  • the behavior history data of the pen is determined, which can be specifically determined according to actual usage requirements, which is not limited in the embodiment of the present invention.
  • the electronic device can memorize the type of virtual keyboard that the user is accustomed to selecting when the user uses the stylus pen to operate the input method.
  • the electronic device can display the virtual pinyin keyboard when the user uses the finger to input; when the user pulls out the stylus
  • the virtual keyboard is automatically switched to the handwritten virtual keyboard that the user is accustomed to using; when the user inserts the stylus into the electronic device, the virtual keyboard is automatically switched to the Pinyin keyboard.
  • the difference between the user's finger input and the stylus input can be memorized, and the user can switch to the type of virtual keyboard commonly used by the user when the user uses the stylus, so that the use process of the stylus is smoother and smarter. Improve the convenience of electronic equipment and stylus when used together.
  • the above-mentioned first interface update operation can also be specifically implemented in the following way 1 or way 2.
  • the electronic device controls the jump from the first interface to the second interface, and the second interface is an editing interface that can be input by using the stylus pen.
  • the first interface may be a picture browsing interface
  • the second interface may be a picture editing interface.
  • the electronic device can automatically switch the currently displayed picture browsing interface to a picture editing interface, which is convenient for the user to edit pictures.
  • the electronic device controls the jump from the first interface to the second interface, and the first interface is an editing interface that can be input by the stylus pen.
  • the first interface may be a picture editing interface
  • the second interface may be a picture browsing interface
  • the currently displayed interface of the electronic device can be updated according to the state of the stylus, so as to reduce unnecessary operations by the user, improve the interactive intelligence of the electronic device and the stylus, and at the same time improve the user experience.
  • the electronic device can combine artificial intelligence to learn the user's habit of using the stylus in different application scenarios, and make some intelligent responses.
  • the electronic device After the user triggers the electronic device to run the drawing application, the electronic device automatically pops up the stylus to facilitate the user to use the stylus for drawing.
  • the electronic device when the electronic device displays a conversational interface or other interfaces that require input, when the user pulls the stylus out of the electronic device, the electronic device can automatically pop up a virtual keyboard on the current display interface, or the current The display interface is switched to another operation interface. Therefore, the embodiment of the present invention can make the electronic device more intelligently control the display interface when used in conjunction with the stylus, which facilitates the interactive operation of the user on the electronic device using the stylus.
  • the control method provided by the embodiment of the present invention can receive the first input of the user pulling out or inserting the stylus pen into the electronic device when the electronic device displays the first interface of the first application program; and respond to the first input , Update the first interface.
  • the control method provided by the embodiments of the present invention is applied to the interactive application scenario of an electronic device and a stylus pen.
  • the electronic device can respond to the user input according to the stylus pen Status changes, the current display interface is directly updated to the interface applicable to the current status of the stylus (for example, if the stylus is pulled out, the updated interface is an interface that can be input through the stylus) without the user
  • the operation triggers the update of the current display interface.
  • the embodiment of the present invention can make the electronic device more intelligently control the display interface when used in conjunction with the stylus, which facilitates the interactive operation of the stylus on the electronic device by the user, so that the stylus The use process is smoother and smarter. Therefore, the embodiments of the present invention can improve the convenience of interactive applications between the electronic device and the stylus.
  • the stylus when the stylus is in the inserted state, the stylus is inserted into the stylus storage device of the electronic device, and the stylus detection device is provided in the stylus storage device.
  • the electronic device After the electronic device receives the first input of the user pulling out or inserting the stylus pen into the electronic device (step 201 in FIG. 2), the electronic device updates the first interface in response to the first input (step 202 in FIG. 2) Previously, the control method provided by the embodiment of the present invention further includes the following step 203 or step 204.
  • Step 203 If the stylus detection device detects that the stylus touches the stylus detection device, the electronic device determines that the first input is that the user inserts the stylus pen into the electronic device.
  • the stylus detection device when the stylus detection device detects that the stylus touches the stylus detection device, the stylus detection device may send the stylus status change information to the electronic device, and the electronic device receives After the stylus state change information, according to the stylus state change information, it is determined that the first input is that the user inserts the stylus pen into the electronic device.
  • Step 204 If the stylus detection device detects that the stylus is separated from the stylus detection device, the electronic device determines that the first input is that the user pulls the stylus out of the electronic device.
  • the stylus detection device when the stylus detection device detects that the stylus is separated from the stylus detection device, the stylus detection device can send the stylus status change information to the electronic device, and the electronic device can receive the stylus After the state change information, according to the state change information of the stylus pen, it is determined that the first input is that the user pulls the stylus pen out of the electronic device.
  • the stylus detection device is a physical button set in the stylus storage device
  • the button state is 1, and the user takes out the touch After the pen, the button state is 0,
  • the operating system of the electronic device can determine that the stylus is separated from the stylus detection device after detecting that the button state signal changes from 1 to 0, and then determine that the user pulls out the stylus
  • the electronic device can automatically pop up the input method interface, and the user can directly perform input operations without first clicking the input box to call up the input method. Therefore, the embodiments of the present invention can improve the convenience of interactive applications between the electronic device and the stylus.
  • the operating system of the electronic device detects that the button state signal changes from 0 to 1, and can determine that the stylus touches the stylus detection device, and then determines The user inserts the stylus pen into the electronic device and can infer that: the user puts the stylus away and is ready to no longer use the stylus.
  • the electronic device can automatically hide (ie put away) the input method interface. Therefore, the embodiments of the present invention can improve the convenience of interactive applications between the electronic device and the stylus.
  • the stylus and the electronic device may communicate through near field communication (NFC).
  • NFC near field communication
  • the control method provided in the embodiment of the present invention further includes the following step 205 or step 206.
  • Step 205 If the strength of the NFC signal between the stylus pen and the electronic device is greater than or equal to the preset threshold, the electronic device determines that the first input is that the user inserts the stylus pen into the electronic device.
  • Step 206 If the strength of the NFC signal between the stylus pen and the electronic device is less than the preset threshold, the electronic device determines that the first input is that the user pulls the stylus pen out of the electronic device.
  • an NFC tag can be configured in the stylus, and an NFC receiving device can be configured in the terminal device.
  • the stylus and the electronic device can communicate through NFC.
  • the foregoing preset threshold for judging the strength of the NFC signal may be determined according to actual use requirements, which is not limited in the embodiment of the present invention.
  • the NFC tag in the stylus pen and the NFC receiving device in the electronic device are within the communication distance range.
  • the electronic device can detect the NFC tag of the stylus pen.
  • the user inserts the stylus pen into the electronic device, and can infer that: the user puts the stylus pen away and prepares to no longer use the stylus pen, at this time the electronic device can automatically hide (ie put away) the input method interface. Therefore, the embodiments of the present invention can improve the convenience of interactive applications between the electronic device and the stylus.
  • the NFC tag in the stylus and the NFC receiving device in the electronic device are out of the communication distance range.
  • the device cannot detect the NFC tag of the stylus, and it can be determined
  • the electronic device can automatically pop up the input method interface, and the user can directly perform input operations without first clicking the input box to call up the input method. Therefore, the embodiments of the present invention can improve the convenience of interactive applications between the electronic device and the stylus.
  • an embodiment of the present invention provides an electronic device 700, which includes a removable stylus.
  • the electronic device 700 includes a receiving module 701 and a control module 702;
  • the receiving module 701 is configured to receive the first input of the user pulling out or inserting the stylus pen into the electronic device when the electronic device displays the first interface of the first application program;
  • the control module 702 updates the first interface in response to the first input received by the receiving module 701.
  • the above-mentioned first input may be that the user pulls the stylus out of the electronic device.
  • the control module 702 is specifically configured to display the first virtual keyboard on the first interface if the first interface does not include the first virtual keyboard.
  • the above-mentioned first input may be that the user inserts a stylus pen into the electronic device.
  • the control module 702 is specifically configured to hide the first virtual keyboard if the first interface includes the first virtual keyboard.
  • control module 702 is specifically configured to, if the first input is the user pulling the stylus out of the electronic device, if the first interface includes a second virtual keyboard, Then update the second virtual keyboard to the third virtual keyboard;
  • control module 702 is specifically configured to: when the first input is the user inserting the stylus into the electronic device, if the first interface includes a third virtual keyboard, The third virtual keyboard is updated to the above-mentioned second virtual keyboard;
  • the second virtual keyboard is a non-handwritten virtual keyboard
  • the third virtual keyboard is a handwritten virtual keyboard
  • control module 702 is specifically configured to execute a jump from the first interface to the second interface of the first application when the first input is that the user pulls the stylus out of the electronic device.
  • the first interface is a picture browsing interface
  • the second interface is a picture editing interface.
  • the stylus when the above-mentioned stylus is in the inserted state, the stylus is inserted into the stylus storage device of the electronic device, and the stylus detection device is provided in the stylus storage device.
  • the electronic device provided by the embodiment of the present invention further includes a first determining module 703;
  • the first determining module 703 is configured to, after the receiving module 701 receives the first input of the user pulling out or inserting the stylus pen into the electronic device, if the stylus pen detection device detects that the stylus pen is in contact with the stylus pen detection device, then Determining that the first input is the user inserting the stylus into the electronic device;
  • the first determining module 703 is further configured to, after the receiving module 701 receives the first input of the user pulling out or inserting the stylus pen into the electronic device, if the stylus pen detection device detects that the stylus pen is separated from the stylus pen detection device, It is determined that the first input is that the user pulls the stylus out of the electronic device.
  • the above-mentioned stylus and the electronic device communicate through NFC.
  • the electronic device provided by the embodiment of the present invention further includes a second determining module 704;
  • the second determining module 704 is configured to, after the receiving module 701 receives the first input of the user pulling out or inserting the stylus pen into the electronic device, if the strength of the NFC signal between the stylus pen and the electronic device is greater than or equal to the preset threshold, then Determining that the first input is the user inserting the stylus into the electronic device;
  • the second determining module 704 is further configured to determine if the NFC signal strength between the stylus pen and the electronic device is less than the preset threshold after the receiving module 701 receives the first input of the user pulling out or inserting the stylus pen into the electronic device The first input is that the user pulls the stylus out of the electronic device.
  • first determination module and second determination module may be the same module, or may be two independent modules.
  • the electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the foregoing method embodiment. To avoid repetition, details are not described herein again.
  • the electronic device provided by the embodiment of the present invention can receive the first input of the user pulling out or inserting the stylus pen into the electronic device when the electronic device displays the first interface of the first application program; and respond to the first input , Update the first interface.
  • the control method provided by the embodiments of the present invention is applied to the interactive application scenario of an electronic device and a stylus pen.
  • the electronic device can respond to the user input according to the stylus pen Status changes, the current display interface is directly updated to the interface applicable to the current status of the stylus (for example, if the stylus is pulled out, the updated interface is an interface that can be input through the stylus) without the user
  • the operation triggers the update of the current display interface.
  • the embodiment of the present invention can make the electronic device more intelligently control the display interface when used in conjunction with the stylus, which facilitates the interactive operation of the stylus on the electronic device by the user, so that the stylus The use process is smoother and smarter. Therefore, the embodiments of the present invention can improve the convenience of interactive applications between the electronic device and the stylus.
  • FIG. 8 is a schematic diagram of the hardware structure of an electronic device that implements various embodiments of the present invention.
  • the electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, and a memory 809 , Processor 810, and power supply 811.
  • a radio frequency unit 801 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, and a memory 809 , Processor 810, and power supply 811.
  • the electronic device may include more or less components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable
  • the user input unit 807 is configured to receive the first input of the user pulling out or inserting the stylus pen into the electronic device when the electronic device displays the first interface of the first application program; the processor 810 is configured to respond to The first input received by the user input unit 807 updates the first interface.
  • the embodiment of the present invention provides an electronic device, which is applied in a scenario of interactive application with a stylus pen.
  • the electronic device can respond to the user input according to the touch
  • the state of the stylus changes, and the current display interface is directly updated to an interface suitable for the current state of the stylus (for example, if the stylus is pulled out, the updated interface is an interface that can be input through the stylus), and
  • the embodiment of the present invention can make the electronic device more intelligently control the display interface when used in conjunction with the stylus, and facilitate the interactive operation of the user on the electronic device with the stylus, so that The use process of the stylus is smoother and smarter. Therefore, the embodiments of the present invention can improve the convenience of interactive applications between the electronic device and the stylus.
  • the radio frequency unit 801 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 810; in addition, Uplink data is sent to the base station.
  • the radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 801 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device 800 provides users with wireless broadband Internet access through the network module 802, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 803 can convert the audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into audio signals and output them as sounds. Moreover, the audio output unit 803 may also provide audio output related to a specific function performed by the electronic device 800 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 804 is used to receive audio or video signals.
  • the input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042.
  • the graphics processor 8041 is used for the image of a still picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame may be displayed on the display unit 806.
  • the image frame processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or sent via the radio frequency unit 801 or the network module 802.
  • the microphone 8042 can receive sound and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to the mobile communication base station via the radio frequency unit 801 for output in the case of a telephone call mode.
  • the electronic device 800 further includes at least one sensor 805, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 8061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 8061 and the display panel 8061 when the electronic device 800 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; sensor 805 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 806 is used to display information input by the user or information provided to the user.
  • the display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 807 can be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 807 includes a touch panel 8071 and other input devices 8072.
  • the touch panel 8071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 8071 or near the touch panel 8071. operating).
  • the touch panel 8071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 810, the command sent by the processor 810 is received and executed.
  • the touch panel 8071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 807 may also include other input devices 8072.
  • other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 8071 can be overlaid on the display panel 8061.
  • the touch panel 8071 detects a touch operation on or near it, it transmits it to the processor 810 to determine the type of the touch event, and then the processor 810 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 8061.
  • the touch panel 8071 and the display panel 8061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 8071 and the display panel 8061 can be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 808 is an interface for connecting an external device and the electronic device 800.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 808 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 800 or can be used to connect the electronic device 800 to an external device. Transfer data between devices.
  • the memory 809 can be used to store software programs and various data.
  • the memory 809 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 809 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, or other volatile solid-state storage devices.
  • the processor 810 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes the software programs and/or modules stored in the memory 809, and calls the data stored in the memory 809. , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 810 may include one or more processing units; optionally, the processor 810 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc.
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 810.
  • the electronic device 800 may also include a power source 811 (such as a battery) for supplying power to various components.
  • a power source 811 such as a battery
  • the power source 811 may be logically connected to the processor 810 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • the electronic device 800 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present invention further provides an electronic device, including a processor 810 as shown in FIG. 8, a memory 809, a computer program stored in the memory 809 and running on the processor 810, the computer program being When the processor 810 executes, each process of the foregoing control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, details are not described herein again.
  • the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, each process of the above-mentioned control method embodiment is realized, and the same technical effect can be achieved. To avoid repetition, I won’t repeat it here.
  • the computer-readable storage medium may include read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.
  • the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. ⁇
  • the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make an electronic device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods disclosed in the various embodiments of the present application.

Landscapes

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

Abstract

Provided are a control method and an electronic device, relating to the technical field of communications. The method is applied to an electronic device comprising a removable stylus, said method comprising: when the electronic device displays a first interface, the electronic device receiving a first input of a user removing or inserting a stylus into the electronic device (201); in response to the first input, the electronic device updating the first interface (202).

Description

一种控制方法及电子设备Control method and electronic equipment
相关申请的交叉引用Cross references to related applications
本申请主张在2019年12月24日在中国提交的中国专利申请号201911348142.6的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 201911348142.6 filed in China on December 24, 2019, the entire content of which is incorporated herein by reference.
技术领域Technical field
本发明实施例涉及通信技术领域,尤其涉及一种控制方法及电子设备。The embodiments of the present invention relate to the field of communication technologies, and in particular, to a control method and electronic equipment.
背景技术Background technique
目前,许多智能电子设备设置有触控笔,可提供比手指输入更便捷和高效的输入方式,触控笔的功能也越来越丰富。而触控笔作为电子设备的重要外设,在设计上也越来越复杂,整合功能越来越多。At present, many smart electronic devices are equipped with a stylus, which can provide a more convenient and efficient input method than finger input, and the functions of the stylus are becoming more and more abundant. As an important peripheral of electronic devices, the stylus is becoming more and more complex in design and more and more integrated functions.
当用户有通过触控笔进行输入的需求时,用户可以拿出电子设备中的触控笔,在电子设备上进行输入。例如,在电子设备显示聊天界面的情况下,用户拿出电子设备中的触控笔之后,可以通过点击聊天界面上的输入框,触发电子设备弹出虚拟键盘,在电子设备显示虚拟键盘之后,用户可以将当前显示的虚拟键盘(例如拼音键盘)切换为另一虚拟键盘(例如手写键盘),进而用户可以在该虚拟键盘上进行输入。When the user needs to input through the stylus pen, the user can take out the stylus pen in the electronic device and input on the electronic device. For example, when an electronic device displays a chat interface, after the user takes out the stylus in the electronic device, he can click the input box on the chat interface to trigger the electronic device to pop up a virtual keyboard. After the electronic device displays the virtual keyboard, the user The currently displayed virtual keyboard (for example, a Pinyin keyboard) can be switched to another virtual keyboard (for example, a handwriting keyboard), and then the user can input on the virtual keyboard.
然而,在上述使用触控笔进行输入的过程中,用户需要完成多步操作才能输入,操作繁琐且耗时长。However, in the above-mentioned input process using the stylus pen, the user needs to complete multiple operations to input, which is cumbersome and time-consuming.
发明内容Summary of the invention
本发明实施例提供一种控制方法及电子设备,以解决现有电子设备使用触控笔进行输入的过程中,操作繁琐且耗时长的问题。The embodiments of the present invention provide a control method and an electronic device to solve the problem of cumbersome and time-consuming operations during the input process of the existing electronic device using a stylus pen.
为了解决上述技术问题,本发明是这样实现的:In order to solve the above technical problems, the present invention is implemented as follows:
第一方面,本发明实施例提供了一种控制方法,应用于包括可拔插触控笔的电子设备,该方法包括:在电子设备显示第一应用程序的第一界面的情况下,接收用户将 触控笔拔出或插入电子设备的第一输入;响应于该第一输入,更新第一界面。In the first aspect, an embodiment of the present invention provides a control method, which is applied to an electronic device including a removable stylus, and the method includes: receiving a user when the electronic device displays a first interface of a first application program The first input of pulling out or inserting the stylus pen into the electronic device; in response to the first input, updating the first interface.
第二方面,本发明实施例提供了一种电子设备,该电子设备包括可拔插触控笔,该电子设备包括接收模块和控制模块。接收模块用于在电子设备显示第一应用程序的第一界面的情况下,接收用户将触控笔拔出或插入电子设备的第一输入。控制模块用于响应于接收模块接收的该第一输入,更新第一界面。In a second aspect, an embodiment of the present invention provides an electronic device, the electronic device includes a pluggable stylus, and the electronic device includes a receiving module and a control module. The receiving module is used for receiving the first input of the user pulling out or inserting the stylus pen into the electronic device when the electronic device displays the first interface of the first application program. The control module is configured to update the first interface in response to the first input received by the receiving module.
第三方面,本发明实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在存储器上并可在处理器上运行的计算机程序,该计算机程序被处理器执行时实现上述第一方面中的控制方法的步骤。In a third aspect, an embodiment of the present invention provides an electronic device. The electronic device includes a processor, a memory, and a computer program stored on the memory and running on the processor. When the computer program is executed by the processor, the above-mentioned first The steps of the control method in one aspect.
第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现上述第一方面中的控制方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing a computer program on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the control method in the above-mentioned first aspect are implemented.
在本发明实施例中,可以在电子设备显示第一应用程序的第一界面的情况下,接收用户将触控笔拔出或插入电子设备的第一输入;并响应于该第一输入,更新第一界面。本发明实施例提供的控制方法应用于电子设备和触控笔交互应用的场景下,当用户将触控笔拔出或插入电子设备时,电子设备可以响应于该用户输入,根据触控笔的状态变化,将当前显示界面直接更新为与触控笔当前状态适用的界面(例如若触控笔被拔出,则更新后的界面为可通过触控笔进行输入的界面),而无需用户进行操作触发当前显示界面进行更新,因此本发明实施例可以使得电子设备在与触控笔配合使用时更加智能地控制显示界面,便于用户使用触控笔在电子设备上的交互操作,使得触控笔的使用过程更流畅更智能。从而,本发明实施例可以提升电子设备与触控笔交互应用的便捷性。In the embodiment of the present invention, when the electronic device displays the first interface of the first application program, the first input of the user pulling out or inserting the stylus into the electronic device may be received; and in response to the first input, update The first interface. The control method provided by the embodiments of the present invention is applied to the interactive application scenario of an electronic device and a stylus pen. When the user pulls out or inserts the stylus pen into the electronic device, the electronic device can respond to the user input according to the stylus pen Status changes, the current display interface is directly updated to the interface applicable to the current status of the stylus (for example, if the stylus is pulled out, the updated interface is an interface that can be input through the stylus) without the user The operation triggers the update of the current display interface. Therefore, the embodiment of the present invention can make the electronic device more intelligently control the display interface when used in conjunction with the stylus, which facilitates the interactive operation of the stylus on the electronic device by the user, so that the stylus The use process is smoother and smarter. Therefore, the embodiments of the present invention can improve the convenience of interactive applications between the electronic device and the stylus.
附图说明Description of the drawings
图1为本发明实施例提供的一种可能的安卓操作系统的架构示意图;FIG. 1 is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention;
图2为本发明实施例提供的控制方法的示意图;Figure 2 is a schematic diagram of a control method provided by an embodiment of the present invention;
图3为本发明实施例提供的控制方法应用的界面示意图之一;FIG. 3 is one of the schematic diagrams of the interface of the control method application provided by the embodiment of the present invention;
图4为本发明实施例提供的控制方法应用的界面示意图之二;4 is the second schematic diagram of the interface of the control method application provided by the embodiment of the present invention;
图5为本发明实施例提供的电子设备的结构示意图之一;FIG. 5 is one of the schematic structural diagrams of an electronic device provided by an embodiment of the present invention;
图6为本发明实施例提供的电子设备的结构示意图之二;FIG. 6 is the second structural diagram of an electronic device provided by an embodiment of the present invention;
图7为本发明实施例提供的电子设备的结构示意图之三;FIG. 7 is the third structural diagram of an electronic device provided by an embodiment of the present invention;
图8为本发明实施例提供的电子设备的硬件示意图。FIG. 8 is a schematic diagram of hardware of an electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本文中符号“/”表示关联对象是或者的关系,例如A/B表示A或者B。The term "and/or" in this article refers to an association relationship that describes associated objects, which means that there can be three types of relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone These three situations. The symbol "/" in this document represents the relationship that the associated object is or, for example, A/B represents A or B.
本文中的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一界面和第二界面等是用于区别不同的界面,而不是用于描述界面的特定顺序。The terms "first" and "second" in the specification and claims herein are used to distinguish different objects, rather than to describe a specific order of objects. For example, the first interface and the second interface are used to distinguish different interfaces, rather than to describe a specific order of the interfaces.
在本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present invention, words such as "exemplary" or "for example" are used to represent examples, illustrations, or illustrations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiment of the present invention should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as "exemplary" or "for example" are used to present related concepts in a specific manner.
在本发明实施例的描述中,除非另有说明,“多个”的含义是指两个或者两个以上,例如,多个处理单元是指两个或者两个以上的处理单元等;多个元件是指两个或者两个以上的元件等。In the description of the embodiments of the present invention, unless otherwise specified, the meaning of "multiple" refers to two or more than two, for example, multiple processing units refers to two or more processing units, etc.; multiple An element refers to two or more elements, etc.
本发明实施例提供一种控制方法及电子设备,可以在电子设备显示第一应用程序的第一界面的情况下,接收用户将触控笔拔出或插入电子设备的第一输入;并响应于该第一输入,更新第一界面。本发明实施例提供的控制方法应用于电子设备和触控笔交互应用的场景下,当用户将触控笔拔出或插入电子设备时,电子设备可以响应于该用户输入,根据触控笔的状态变化,将当前显示界面直接更新为与触控笔当前状态适用的界面(例如若触控笔被拔出,则更新后的界面为可通过触控笔进行输入的界面),而无需用户进行操作触发当前显示界面进行更新,因此本发明实施例可以使得电子设备在与触控笔配合使用时更加 智能地控制显示界面,便于用户使用触控笔在电子设备上的交互操作,使得触控笔的使用过程更流畅更智能。从而,本发明实施例可以提升电子设备与触控笔交互应用的便捷性。Embodiments of the present invention provide a control method and an electronic device, which can receive a first input of a user pulling out or inserting a stylus pen into the electronic device when the electronic device displays a first interface of a first application; and respond to This first input updates the first interface. The control method provided by the embodiments of the present invention is applied to the interactive application scenario of an electronic device and a stylus pen. When the user pulls out or inserts the stylus pen into the electronic device, the electronic device can respond to the user input according to the stylus pen Status changes, the current display interface is directly updated to the interface applicable to the current status of the stylus (for example, if the stylus is pulled out, the updated interface is an interface that can be input through the stylus) without the user The operation triggers the update of the current display interface. Therefore, the embodiment of the present invention can make the electronic device more intelligently control the display interface when used in conjunction with the stylus, which facilitates the interactive operation of the stylus on the electronic device by the user, so that the stylus The use process is smoother and smarter. Therefore, the embodiments of the present invention can improve the convenience of interactive applications between the electronic device and the stylus.
本发明实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。The electronic device in the embodiment of the present invention may be an electronic device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present invention.
下面以安卓操作系统为例,介绍一下本发明实施例提供的控制方法所应用的软件环境。The following takes the Android operating system as an example to introduce the software environment to which the control method provided by the embodiment of the present invention is applied.
如图1所示,为本发明实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。As shown in FIG. 1, it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention. In Figure 1, the architecture of the Android operating system includes 4 layers, which are: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。Among them, the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。The application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。The system runtime layer includes a library (also called a system library) and an Android operating system runtime environment. The library mainly provides various resources needed by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.
内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software level. The kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
以安卓操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本发明实施例提供的控制方法的软件程序,从而使得该控制方法可以基于如图1所示的安卓操作系统运行。即处理器或者电子设备可以通过在安卓操作系统中运行该软件程序实现本发明实施例提供的控制方法。Taking the Android operating system as an example, in the embodiment of the present invention, developers can develop a software program that implements the control method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG. 1, so that the control method It can be run based on the Android operating system as shown in Figure 1. That is, the processor or the electronic device can implement the control method provided by the embodiment of the present invention by running the software program in the Android operating system.
本发明实施例中的电子设备可以为移动终端,也可以为非移动终端。示例性的,移动终端可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动终端可以为个人计算机(personal  computer,PC)、电视机(television,TV)、柜员机或者自助机等,本发明实施例不作具体限定。The electronic device in the embodiment of the present invention may be a mobile terminal or a non-mobile terminal. Exemplarily, the mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant, The non-mobile terminal may be a personal computer (PC), a television (television, TV), a teller machine, or a self-service machine, etc., which are not specifically limited in the embodiment of the present invention.
本发明实施例提供的控制方法的执行主体可以为上述的电子设备,也可以为该电子设备中能够实现该控制方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本发明实施例不作限定。下面以电子设备为例,对本发明实施例提供的控制方法进行示例性的说明。The execution subject of the control method provided by the embodiment of the present invention may be the above-mentioned electronic device, or may be a functional module and/or functional entity in the electronic device that can implement the control method. The specifics can be determined according to actual usage requirements. The embodiment is not limited. In the following, an electronic device is taken as an example to illustrate the control method provided in the embodiment of the present invention.
下面结合各个附图对本发明实施例提供的控制方法进行示例性的说明。The control method provided by the embodiment of the present invention will be exemplarily described below with reference to the various drawings.
如图2所示,本发明实施例提供一种控制方法,应用于包括可拔插触控笔的电子设备,该控制方法可以包括下述的步骤201和步骤202。As shown in FIG. 2, an embodiment of the present invention provides a control method, which is applied to an electronic device including a removable stylus. The control method may include the following steps 201 and 202.
步骤201、在电子设备显示第一界面的情况下,电子设备接收用户将触控笔拔出或插入电子设备的第一输入。Step 201: When the electronic device displays the first interface, the electronic device receives the first input of the user pulling out or inserting the stylus pen into the electronic device.
其中,触控笔是指可以代替手指在触摸屏上进行输入的装置。Among them, the stylus refers to a device that can replace fingers for input on the touch screen.
本发明实施例中,上述第一界面可以为会话界面或聊天界面等需要调出虚拟键盘的界面,或者可以为其它任意可采用触控笔输入的界面。具体可以根据实际使用需求确定,本发明实施例不作限定。In the embodiment of the present invention, the above-mentioned first interface may be an interface that needs to call up a virtual keyboard, such as a conversation interface or a chat interface, or may be any other interface that can be used for input with a stylus. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
可选地,本发明实施例中,上述第一界面可以为第一应用程序的界面(例如主界面或功能界面),或者可以为桌面界面,或者可以为其它任意满足实际使用需求的界面,具体可以根据实际使用需求确定,本发明实施例不作限定。Optionally, in the embodiment of the present invention, the above-mentioned first interface may be an interface of the first application program (for example, a main interface or a functional interface), or may be a desktop interface, or may be any other interface that meets actual usage requirements. It can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
可选地,本发明实施例中,上述第一应用程序可以为通讯类应用程序,也可以为社交类应用程序,还可以为相册类应用程序,或者为购物类应用程序,或者可以为其它任意可能的应用程序,具体可以根据实际使用需求确定,本发明实施例不作限定。Optionally, in the embodiment of the present invention, the above-mentioned first application may be a communication application, a social application, an album application, a shopping application, or any other application. The possible application programs can be specifically determined according to actual use requirements, and the embodiment of the present invention does not limit it.
示例性的,假设第一应用程序为通讯类应用程序,那么第一界面可以为短信息编辑界面。或者,假设第一应用程序为社交类应用程序,那么第一界面可以为会话界面。或者,假设第一应用程序为相册类应用程序,那么第一界面可以为显示有多个图片的相册界面。Exemplarily, assuming that the first application is a communication application, the first interface may be a short message editing interface. Or, assuming that the first application is a social application, the first interface may be a conversation interface. Or, assuming that the first application is an album application, the first interface may be an album interface displaying multiple pictures.
步骤202、电子设备响应于第一输入,更新第一界面。Step 202: The electronic device updates the first interface in response to the first input.
可选地,本发明实施例中,上述更新第一界面可以为以下任一项:在第一界面上显示虚拟键盘,取消虚拟键盘在第一界面上的显示,将第一界面上显示的虚拟键盘切 换为另一虚拟键盘。Optionally, in the embodiment of the present invention, the above-mentioned updating the first interface may be any of the following: displaying a virtual keyboard on the first interface, canceling the display of the virtual keyboard on the first interface, and changing the virtual keyboard displayed on the first interface The keyboard switches to another virtual keyboard.
需要说明的是,上述虚拟键盘还可以被称为输入法键盘,或者虚拟键盘界面,或者输入法输入界面。It should be noted that the aforementioned virtual keyboard may also be referred to as an input method keyboard, or a virtual keyboard interface, or an input method input interface.
一方面,在电子设备显示第一界面的情况下,如果用户需要通过触控笔在电子设备上输入,那么此时用户可以将触控笔从电子设备中拔出(即第一输入),以触发电子设备更新第一界面。例如,电子设备更新第一界面的操作可以为:在第一界面上显示虚拟键盘,或者将第一界面上显示的虚拟键盘切换为另一虚拟键盘,或者将第一界面更新为(跳转至)第二界面,该第一界面和第二界面可以为第一应用程序的不同界面。On the one hand, when the electronic device displays the first interface, if the user needs to input on the electronic device through the stylus pen, then the user can pull out the stylus pen from the electronic device (that is, the first input) at this time. Trigger the electronic device to update the first interface. For example, the operation of the electronic device to update the first interface may be: display a virtual keyboard on the first interface, or switch the virtual keyboard displayed on the first interface to another virtual keyboard, or update the first interface to (jump to ) The second interface, the first interface and the second interface may be different interfaces of the first application.
示例性的,以第一界面为通讯类应用程序的会话界面为例,如果用户需要通过触控笔在会话界面上输入文字、语音或图像等内容,那么此时用户可以将触控笔从电子设备中拔出(即第一输入);相应地,电子设备可以响应于第一输入,在会话界面上显示虚拟键盘,进而用户可以通过在该虚拟键盘上操作,在会话界面中输入对应内容。Exemplarily, taking the conversational interface in which the first interface is a communication application program as an example, if the user needs to input text, voice or image content on the conversational interface with a stylus, then the user can use the stylus from the electronic Unplug the device (that is, the first input); accordingly, the electronic device can display a virtual keyboard on the conversation interface in response to the first input, and then the user can input corresponding content in the conversation interface by operating on the virtual keyboard.
又示例性的,以第一界面为电子设备的桌面界面为例,如果用户需要在桌面界面上进行信息搜索,那么此时用户可以将触控笔从电子设备中拔出(即第一输入);相应地,电子设备可以响应于第一输入,在桌面界面上显示信息搜索框和虚拟键盘,进而用户可以通过在该虚拟键盘上操作,在该信息搜索框中输入内容,进行信息搜索。As another example, taking the first interface as the desktop interface of the electronic device as an example, if the user needs to search for information on the desktop interface, then the user can pull out the stylus from the electronic device at this time (that is, the first input) Correspondingly, the electronic device can respond to the first input, display an information search box and a virtual keyboard on the desktop interface, and then the user can input content in the information search box by operating on the virtual keyboard to search for information.
再示例性的,以第一界面为相册浏览界面为例,如果用户需要对相册浏览界面中的图片进行批量处理(例如批量选中并转发、或者批量编辑),那么此时用户可以将触控笔从电子设备中拔出(即第一输入);相应地,电子设备可以响应于第一输入,将相册浏览界面更新为(跳转至)相册编辑界面,进而用户可以通过触控笔在相册编辑界面上进行操作。As another example, taking the first interface as the album browsing interface as an example, if the user needs to batch process the pictures in the album browsing interface (for example, batch selection and forwarding, or batch editing), then the user can use the stylus at this time Unplug from the electronic device (ie the first input); accordingly, the electronic device can respond to the first input and update the album browsing interface to (jump to) the album editing interface, and then the user can edit in the album through the stylus Operate on the interface.
另一方面,在电子设备显示第一界面的情况下,如果用户不需要通过触控笔在电子设备上输入,那么此时用户可以将触控笔插入电子设备中(即第一输入),以触发电子设备更新第一界面。例如,电子设备更新第一界面的操作可以为:将第一界面上显示的虚拟键盘切换为另一虚拟键盘,或者取消虚拟键盘在第一界面上的显示,或者将第一界面更新为(跳转至)第二界面,该第一界面和第二界面可以为第一应用程序的不同界面。On the other hand, when the electronic device displays the first interface, if the user does not need to use the stylus to input on the electronic device, then the user can insert the stylus into the electronic device (that is, the first input) at this time. Trigger the electronic device to update the first interface. For example, the operation of the electronic device to update the first interface may be: switching the virtual keyboard displayed on the first interface to another virtual keyboard, or canceling the display of the virtual keyboard on the first interface, or updating the first interface to (jump Go to) the second interface. The first interface and the second interface may be different interfaces of the first application.
示例性的,以第一界面为通讯类应用程序的会话界面为例,如果用户需要通过触控笔在会话界面上输入文字、语音或图像等内容,那么此时用户可以将触控笔从电子设备中拔 出(即第一输入),相应地,电子设备可以响应于第一输入,在会话界面上显示虚拟键盘,进而用户可以通过在该虚拟键盘上操作,在会话界面中输入对应内容。Exemplarily, taking the conversational interface in which the first interface is a communication application program as an example, if the user needs to input text, voice or image content on the conversational interface with a stylus, then the user can use the stylus from the electronic Unplug the device (that is, the first input). Accordingly, the electronic device can display a virtual keyboard on the conversation interface in response to the first input, and then the user can input corresponding content in the conversation interface by operating on the virtual keyboard.
下面通过下述的第一实现方式、第二实现方式、第三实现方式和第四实现方式,示例性的描述本发明实施例提供的控制方法的具体实现过程。The following exemplarily describes the specific implementation process of the control method provided by the embodiment of the present invention through the following first implementation manner, second implementation manner, third implementation manner, and fourth implementation manner.
第一实现方式The first way to achieve
在第一实现方式中,上述第一输入为用户将触控笔拔出电子设备。在此情况下,上述的步骤202具体可以通过下述的步骤202A实现。In the first implementation manner, the aforementioned first input is that the user pulls the stylus out of the electronic device. In this case, the aforementioned step 202 can be specifically implemented by the following step 202A.
步骤202A、电子设备响应于第一输入,若第一界面中不包含第一虚拟键盘,则电子设备在第一界面上,显示第一虚拟键盘。Step 202A: The electronic device responds to the first input. If the first interface does not include the first virtual keyboard, the electronic device displays the first virtual keyboard on the first interface.
如图3中的(a)所示,在触控笔未被拔出电子设备的情况下,电子设备显示会话界面31(即上述的第一界面),且该会话界面31中不包含虚拟键盘。若用户需要采用触控笔在会话界面31上输入信息,则用户可以将触控笔拔出电子设备。As shown in Figure 3(a), when the stylus is not pulled out of the electronic device, the electronic device displays a conversation interface 31 (that is, the aforementioned first interface), and the conversation interface 31 does not include a virtual keyboard . If the user needs to use a stylus pen to input information on the conversation interface 31, the user can pull the stylus pen out of the electronic device.
相应地,如图3中的(b)所示,在用户将触控笔32拔出电子设备的情况下,电子设备可以在会话界面31上显示虚拟键盘33。Correspondingly, as shown in (b) of FIG. 3, when the user pulls out the stylus 32 from the electronic device, the electronic device can display the virtual keyboard 33 on the conversation interface 31.
本发明实施例中,在用户将触控笔拔出电子设备后,电子设备可以直接在当前显示界面上弹出虚拟键盘,供用户在第一界面上进行输入,而无需用户在当前显示界面进行操作以调出虚拟键盘,从而本发明实施例使得触控笔的使用过程更流畅更智能,可以提升电子设备使用触控笔进行输入的便捷性。In the embodiment of the present invention, after the user pulls out the stylus from the electronic device, the electronic device can directly pop up a virtual keyboard on the current display interface for the user to input on the first interface without the user needing to operate on the current display interface In order to call up the virtual keyboard, the embodiment of the present invention makes the using process of the stylus more fluent and smarter, and can improve the convenience of using the stylus to input by the electronic device.
第二实现方式The second way to achieve
在第二实现方式中,上述第一输入为用户将触控笔插入电子设备。在此情况下,上述的步骤202具体可以通过下述的步骤202B实现。In the second implementation manner, the above-mentioned first input is that the user inserts the stylus pen into the electronic device. In this case, the aforementioned step 202 can be specifically implemented by the following step 202B.
步骤202B、电子设备响应于第一输入,若第一界面中包含第一虚拟键盘,则电子设备隐藏第一虚拟键盘。Step 202B: In response to the first input, the electronic device hides the first virtual keyboard if the first interface includes the first virtual keyboard.
再次参考图3中的(b),在触控笔已被拔出电子设备的情况下,电子设备显示会话界面31(即上述的第一界面),且该会话界面31中包含虚拟键盘33(例如拼音虚拟键盘)。若用户不需要采用触控笔在会话界面31上输入信息,则用户可以将触控笔32插入电子设备。Referring again to Figure 3(b), when the stylus has been pulled out of the electronic device, the electronic device displays a conversation interface 31 (that is, the aforementioned first interface), and the conversation interface 31 includes a virtual keyboard 33 ( For example, the Pinyin virtual keyboard). If the user does not need to use a stylus pen to input information on the conversation interface 31, the user can insert the stylus pen 32 into an electronic device.
相应地,再次参考图3中的(a),在用户将触控笔插入电子设备的情况下,电子设备可以取消虚拟键盘在会话界面31上的显示,即隐藏该虚拟键盘。Correspondingly, referring again to (a) in FIG. 3, when the user inserts the stylus pen into the electronic device, the electronic device can cancel the display of the virtual keyboard on the conversation interface 31, that is, hide the virtual keyboard.
本发明实施例中,在用户将触控笔插入电子设备后,电子设备可以直接隐藏当前显示界面中的虚拟键盘,而无需用户在当前显示界面进行操作以隐藏虚拟键盘,从而本发明实施例可以提升电子设备和触控笔配合使用的便捷性。In the embodiment of the present invention, after the user inserts the stylus pen into the electronic device, the electronic device can directly hide the virtual keyboard in the current display interface without the user having to operate on the current display interface to hide the virtual keyboard, so the embodiment of the invention can Improve the convenience of using electronic equipment and stylus together.
第三实现方式The third way to achieve
在第三实现方式中,假设上述第一输入为用户将触控笔拔出电子设备,那么上述的步骤202具体可以通过下述的步骤202C实现。In the third implementation manner, assuming that the aforementioned first input is that the user pulls the stylus out of the electronic device, the aforementioned step 202 can be specifically implemented by the following step 202C.
步骤202C、若第一界面中包含第二虚拟键盘,则将第二虚拟键盘更新为第三虚拟键盘。Step 202C: If the second virtual keyboard is included in the first interface, update the second virtual keyboard to the third virtual keyboard.
需要说明的是,上述第二虚拟键盘和上述第一虚拟键盘可以相同,也可以不同。It should be noted that the second virtual keyboard and the first virtual keyboard may be the same or different.
其中,上述第二虚拟键盘可以为非手写虚拟键盘(例如拼音类型的虚拟键盘,简称拼音虚拟键盘),上述第三虚拟键盘可以为手写类型的虚拟键盘(简称为手写虚拟键盘)。为了便于说明,下面以第二虚拟键盘为拼音键盘,第三虚拟键盘为手写虚拟键盘为例,进行示例性的说明。The second virtual keyboard may be a non-handwritten virtual keyboard (for example, a pinyin type virtual keyboard, referred to as a pinyin virtual keyboard), and the third virtual keyboard may be a handwritten type virtual keyboard (abbreviated as a handwritten virtual keyboard). For ease of description, the second virtual keyboard is a Pinyin keyboard and the third virtual keyboard is a handwritten virtual keyboard as an example in the following for exemplary description.
如图4中的(a)所示,在触控笔未被拔出电子设备的情况下,电子设备显示会话界面31(即上述的第一界面),且该会话界面31中包含拼音虚拟键盘33(即上述第二虚拟键盘)。若用户需要采用触控笔,通过手写虚拟键盘(即上述第三虚拟键盘)输入信息,则用户可以将触控笔拔出电子设备。As shown in (a) in Figure 4, when the stylus is not pulled out of the electronic device, the electronic device displays a conversation interface 31 (that is, the aforementioned first interface), and the conversation interface 31 includes a Pinyin virtual keyboard 33 (ie the second virtual keyboard mentioned above). If the user needs to use a stylus to input information through a handwritten virtual keyboard (ie, the third virtual keyboard), the user can pull the stylus out of the electronic device.
相应地,如图4中的(b)所示,在用户将触控笔32拔出电子设备的情况下,电子设备可以将会话界面31上显示的拼音虚拟键盘33更新为手写虚拟键盘34。Correspondingly, as shown in (b) of FIG. 4, when the user pulls out the stylus 32 from the electronic device, the electronic device can update the Pinyin virtual keyboard 33 displayed on the conversation interface 31 to the handwritten virtual keyboard 34.
本发明实施例中,在用户将触控笔拔出电子设备后,电子设备可以将当前显示界面上显示的虚拟键盘更新为另一虚拟键盘,而无需用户在当前显示界面进行操作以切换虚拟键盘,从而本发明实施例可以提升电子设备使用触控笔进行输入的便捷性。In the embodiment of the present invention, after the user pulls out the stylus from the electronic device, the electronic device can update the virtual keyboard displayed on the current display interface to another virtual keyboard without the user having to operate on the current display interface to switch the virtual keyboard Therefore, the embodiment of the present invention can improve the convenience of using the stylus pen to input the electronic device.
第四实现方式Fourth realization
在第四实现方式中,假设上述第一输入为用户将触控笔插入电子设备,那么上述的步骤202具体可以通过下述的步骤202D实现。In the fourth implementation manner, assuming that the aforementioned first input is that the user inserts a stylus pen into the electronic device, the aforementioned step 202 can be specifically implemented by the following step 202D.
步骤202D、若第一界面中包含第三虚拟键盘,将第三虚拟键盘更新为第二虚拟键盘。Step 202D: If the third virtual keyboard is included in the first interface, update the third virtual keyboard to the second virtual keyboard.
再次参考图4中的(b)所示,在触控笔已被拔出电子设备的情况下,电子设备显示会话界面31(即上述的第一界面),且该会话界面31中包含手写虚拟键盘34(即上述第三虚拟键盘)。若用户需要通过原拼音虚拟键盘33(例如即上述第二虚拟键盘)输入信息且不再需要采用触控笔,则用户可以将触控笔插入电子设备。Referring again to Figure 4(b), when the stylus has been pulled out of the electronic device, the electronic device displays the conversation interface 31 (that is, the aforementioned first interface), and the conversation interface 31 contains a handwritten virtual The keyboard 34 (that is, the third virtual keyboard described above). If the user needs to input information through the original Pinyin virtual keyboard 33 (for example, the aforementioned second virtual keyboard) and no longer needs to use a stylus, the user can insert the stylus into the electronic device.
相应地,再次参考图4中的(a),在用户将触控笔32插入电子设备的情况下,电子设备可以将会话界面31上显示的手写虚拟键盘34恢复为拼音虚拟键盘33。Correspondingly, referring again to (a) in FIG. 4, when the user inserts the stylus 32 into the electronic device, the electronic device can restore the handwritten virtual keyboard 34 displayed on the conversation interface 31 to the Pinyin virtual keyboard 33.
本发明实施例中,在用户将触控笔插入电子设备后,电子设备可以将当前显示界面上显示的虚拟键盘恢复为原虚拟键盘,而无需用户在当前显示界面进行操作以切换虚拟键盘,从而本发明实施例可以提升电子设备使用触控笔进行输入的便捷性。In the embodiment of the present invention, after the user inserts the stylus pen into the electronic device, the electronic device can restore the virtual keyboard displayed on the current display interface to the original virtual keyboard without the user having to operate on the current display interface to switch the virtual keyboard, thereby The embodiments of the present invention can improve the convenience of using a stylus pen for input in an electronic device.
可选地,在上述第一实现方式至第四实现方式中,上述根据第一输入,如何更新第一界面的具体实现方式可以由用户预先自定义设置,也可以由电子设备根据用户使用触控笔的行为历史数据来确定,具体可以根据实际使用需求确定,本发明实施例不作限定。Optionally, in the first to fourth implementations described above, the specific implementation of how to update the first interface based on the first input can be customized in advance by the user, or the electronic device can be set according to the user's touch control. The behavior history data of the pen is determined, which can be specifically determined according to actual usage requirements, which is not limited in the embodiment of the present invention.
示例性的,以电子设备根据用户使用触控笔的行为历史数据来确定如何更新第一界面为例,电子设备可以记忆用户使用触控笔操作输入法时习惯选择的虚拟键盘类型。例如,假设用户使用触控笔时习惯使用手写虚拟键盘,而使用手指输入时习惯使用拼音虚拟键盘,那么在用户使用手指输入时,电子设备可以显示虚拟拼音键盘;在用户将触控笔拔出电子设备的情况下,虚拟键盘自动切换为用户习惯使用的手写虚拟键盘;在用户将触控笔插入电子设备的情况下,虚拟键盘自动切换成拼音键盘。Exemplarily, taking the electronic device determining how to update the first interface according to the user's behavior history data using the stylus pen as an example, the electronic device can memorize the type of virtual keyboard that the user is accustomed to selecting when the user uses the stylus pen to operate the input method. For example, suppose the user is accustomed to using a handwritten virtual keyboard when using a stylus, and is accustomed to using a pinyin virtual keyboard when using finger input, then the electronic device can display the virtual pinyin keyboard when the user uses the finger to input; when the user pulls out the stylus In the case of an electronic device, the virtual keyboard is automatically switched to the handwritten virtual keyboard that the user is accustomed to using; when the user inserts the stylus into the electronic device, the virtual keyboard is automatically switched to the Pinyin keyboard.
本发明实施例中,可以记忆用户使用手指输入与触控笔输入时的差异,在用户使用触控笔时切换到用户常用的虚拟键盘类型,使得触控笔的使用过程更流畅更智能,可以提升电子设备和触控笔配合使用时的便捷性。In the embodiment of the present invention, the difference between the user's finger input and the stylus input can be memorized, and the user can switch to the type of virtual keyboard commonly used by the user when the user uses the stylus, so that the use process of the stylus is smoother and smarter. Improve the convenience of electronic equipment and stylus when used together.
可选地,本发明实施例中,针对上述更新第一界面操作,具体还可以通过下述的方式一或者方式二实现。Optionally, in this embodiment of the present invention, the above-mentioned first interface update operation can also be specifically implemented in the following way 1 or way 2.
方式一method one
在上述第一输入为用户将触控笔拔出电子设备的情况下,电子设备控制从第一界面跳转至第二界面,该第二界面为可采用触控笔输入的编辑界面。In the case where the above-mentioned first input is that the user pulls the stylus pen out of the electronic device, the electronic device controls the jump from the first interface to the second interface, and the second interface is an editing interface that can be input by using the stylus pen.
例如,第一界面可以为图片浏览界面,第二界面可以为图片编辑界面。具体的,在用户通过电子设备浏览图片的场景下,若用户将触控笔拔出电子设备,则电子设备可以将当前显示的图片浏览界面自动切换为图片编辑界面,方便用户对图片进行编辑。For example, the first interface may be a picture browsing interface, and the second interface may be a picture editing interface. Specifically, in a scenario where a user browses pictures through an electronic device, if the user pulls out the stylus from the electronic device, the electronic device can automatically switch the currently displayed picture browsing interface to a picture editing interface, which is convenient for the user to edit pictures.
方式二Way two
在上述第一输入为用户将触控笔插入电子设备的情况下,电子设备控制从第一界面跳转至第二界面,该第一界面为可采用触控笔输入的编辑界面。In the case where the above-mentioned first input is that the user inserts the stylus pen into the electronic device, the electronic device controls the jump from the first interface to the second interface, and the first interface is an editing interface that can be input by the stylus pen.
例如,第一界面可以为图片编辑界面,第二界面可以为图片浏览界面。For example, the first interface may be a picture editing interface, and the second interface may be a picture browsing interface.
如此,可以根据触控笔的状态,更新电子设备当前显示的界面,以减少用户多余的操作,提升电子设备与触控笔的交互智能性,同时提升用户体验。In this way, the currently displayed interface of the electronic device can be updated according to the state of the stylus, so as to reduce unnecessary operations by the user, improve the interactive intelligence of the electronic device and the stylus, and at the same time improve the user experience.
可选地,本发明实施例中,电子设备可以结合人工智能,学习用户在不同应用场景下使用触控笔的习惯,做出一些智能的响应。Optionally, in the embodiment of the present invention, the electronic device can combine artificial intelligence to learn the user's habit of using the stylus in different application scenarios, and make some intelligent responses.
例如,假设用户在相册缩略图浏览界面时习惯使用触控笔进行多选图片操作,那么在用户浏览相册缩略图的场景下,当用户将触控笔拔出电子设备时,电子设备自动切换到多选图片界面。For example, suppose the user is accustomed to using a stylus to perform multi-selection operations on the photo album thumbnail browsing interface. In the scenario where the user browses the album thumbnails, when the user pulls the stylus out of the electronic device, the electronic device will automatically switch to Multi-select picture interface.
再例如,假设用户在画图应用中习惯使用触控笔进行作图,那么在用户触发电子设备运行画图应用之后,电子设备自动弹出触控笔,方便用户使用触控笔作图。For another example, suppose that the user is used to drawing with a stylus in a drawing application. After the user triggers the electronic device to run the drawing application, the electronic device automatically pops up the stylus to facilitate the user to use the stylus for drawing.
本发明实施例中,在电子设备显示会话界面或其他需要输入的界面的情况下,当用户将触控笔拔出电子设备时,电子设备可以在当前显示界面自动弹出虚拟键盘,或者可以将当前显示界面切换为其他操作界面,因此本发明实施例可以使得电子设备在与触控笔配合使用时更加智能地控制显示界面,便于用户使用触控笔在电子设备上的交互操作。In the embodiment of the present invention, when the electronic device displays a conversational interface or other interfaces that require input, when the user pulls the stylus out of the electronic device, the electronic device can automatically pop up a virtual keyboard on the current display interface, or the current The display interface is switched to another operation interface. Therefore, the embodiment of the present invention can make the electronic device more intelligently control the display interface when used in conjunction with the stylus, which facilitates the interactive operation of the user on the electronic device using the stylus.
本发明实施例提供的控制方法,可以在电子设备显示第一应用程序的第一界面的情况下,接收用户将触控笔拔出或插入电子设备的第一输入;并响应于该第一输入,更新第一界面。本发明实施例提供的控制方法应用于电子设备和触控笔交互应用的场景下,当用户将触控笔拔出或插入电子设备时,电子设备可以响应于该用户输入,根 据触控笔的状态变化,将当前显示界面直接更新为与触控笔当前状态适用的界面(例如若触控笔被拔出,则更新后的界面为可通过触控笔进行输入的界面),而无需用户进行操作触发当前显示界面进行更新,因此本发明实施例可以使得电子设备在与触控笔配合使用时更加智能地控制显示界面,便于用户使用触控笔在电子设备上的交互操作,使得触控笔的使用过程更流畅更智能。从而,本发明实施例可以提升电子设备与触控笔交互应用的便捷性。The control method provided by the embodiment of the present invention can receive the first input of the user pulling out or inserting the stylus pen into the electronic device when the electronic device displays the first interface of the first application program; and respond to the first input , Update the first interface. The control method provided by the embodiments of the present invention is applied to the interactive application scenario of an electronic device and a stylus pen. When the user pulls out or inserts the stylus pen into the electronic device, the electronic device can respond to the user input according to the stylus pen Status changes, the current display interface is directly updated to the interface applicable to the current status of the stylus (for example, if the stylus is pulled out, the updated interface is an interface that can be input through the stylus) without the user The operation triggers the update of the current display interface. Therefore, the embodiment of the present invention can make the electronic device more intelligently control the display interface when used in conjunction with the stylus, which facilitates the interactive operation of the stylus on the electronic device by the user, so that the stylus The use process is smoother and smarter. Therefore, the embodiments of the present invention can improve the convenience of interactive applications between the electronic device and the stylus.
下面通过下述的实现方式一和实现方式二,示例性地说明电子设备和触控笔之间如何交互的过程和原理。The following will exemplify the process and principle of how the electronic device and the stylus interact with each other through the following implementation manner 1 and implementation manner 2.
实现方式一Realization method one
可选地,本发明实施例中,当触控笔处于插入状态时,触控笔插入电子设备的触控笔收纳装置中,该触控笔收纳装置中设置有触控笔检测装置。Optionally, in the embodiment of the present invention, when the stylus is in the inserted state, the stylus is inserted into the stylus storage device of the electronic device, and the stylus detection device is provided in the stylus storage device.
在电子设备接收用户将触控笔拔出或插入电子设备的第一输入(图2中的步骤201)之后,在电子设备响应于第一输入,更新第一界面(图2中的步骤202)之前,本发明实施例提供的控制方法还包括下述的步骤203或步骤204。After the electronic device receives the first input of the user pulling out or inserting the stylus pen into the electronic device (step 201 in FIG. 2), the electronic device updates the first interface in response to the first input (step 202 in FIG. 2) Previously, the control method provided by the embodiment of the present invention further includes the following step 203 or step 204.
步骤203、若触控笔检测装置检测到触控笔接触该触控笔检测装置,则电子设备确定第一输入为用户将触控笔插入电子设备。Step 203: If the stylus detection device detects that the stylus touches the stylus detection device, the electronic device determines that the first input is that the user inserts the stylus pen into the electronic device.
本发明实施例中,在触控笔检测装置检测到触控笔接触该触控笔检测装置的情况下,触控笔检测装置可以向电子设备发送触控笔状态变更信息,电子设备在接收到该触控笔状态变更信息之后,根据该触控笔状态变更信息,确定第一输入为用户将触控笔插入电子设备。In the embodiment of the present invention, when the stylus detection device detects that the stylus touches the stylus detection device, the stylus detection device may send the stylus status change information to the electronic device, and the electronic device receives After the stylus state change information, according to the stylus state change information, it is determined that the first input is that the user inserts the stylus pen into the electronic device.
步骤204、若触控笔检测装置检测到触控笔脱离该触控笔检测装置,则电子设备确定第一输入为用户将触控笔拔出电子设备。Step 204: If the stylus detection device detects that the stylus is separated from the stylus detection device, the electronic device determines that the first input is that the user pulls the stylus out of the electronic device.
同样,在触控笔检测装置检测到触控笔脱离该触控笔检测装置的情况下,触控笔检测装置可以向电子设备发送触控笔状态变更信息,电子设备在接收到该触控笔状态变更信息之后,根据该触控笔状态变更信息,确定第一输入为用户将触控笔拔出电子设备。Similarly, when the stylus detection device detects that the stylus is separated from the stylus detection device, the stylus detection device can send the stylus status change information to the electronic device, and the electronic device can receive the stylus After the state change information, according to the state change information of the stylus pen, it is determined that the first input is that the user pulls the stylus pen out of the electronic device.
示例性的,假设触控笔检测装置为设置于触控笔收纳装置中的物理按键,并假设 当触控笔收纳在触控笔收纳装置中时,按键状态为1,在用户拿出触控笔后,按键状态为0,那么电子设备的操作系统在检测到该按键状态信号由1改变为0后,可以确定触控笔脱离该触控笔检测装置,进而确定用户将触控笔拔出电子设备,可以推断出:用户拿出触控笔,准备使用触控笔在电子设备上进行输入。此时电子设备可以自动弹出输入法界面,用户可以直接进行输入操作,无需先点击输入框,唤出输入法。从而,本发明实施例可以提升电子设备与触控笔交互应用的便捷性。For example, suppose that the stylus detection device is a physical button set in the stylus storage device, and suppose that when the stylus is stored in the stylus storage device, the button state is 1, and the user takes out the touch After the pen, the button state is 0, then the operating system of the electronic device can determine that the stylus is separated from the stylus detection device after detecting that the button state signal changes from 1 to 0, and then determine that the user pulls out the stylus For electronic devices, it can be inferred that the user takes out the stylus and is ready to use the stylus to input on the electronic device. At this time, the electronic device can automatically pop up the input method interface, and the user can directly perform input operations without first clicking the input box to call up the input method. Therefore, the embodiments of the present invention can improve the convenience of interactive applications between the electronic device and the stylus.
进一步的,在用户输入完毕,将触控笔插入电子设备后,电子设备的操作系统在检测到按键状态信号由0改变为1后,可以确定触控笔接触该触控笔检测装置,进而确定用户将触控笔插入电子设备,可以推断出:用户收起触控笔,准备不再使用触控笔。此时电子设备可以自动隐藏(即收起)输入法界面。从而,本发明实施例可以提升电子设备与触控笔交互应用的便捷性。Further, after the user input is completed and the stylus is inserted into the electronic device, the operating system of the electronic device detects that the button state signal changes from 0 to 1, and can determine that the stylus touches the stylus detection device, and then determines The user inserts the stylus pen into the electronic device and can infer that: the user puts the stylus away and is ready to no longer use the stylus. At this time, the electronic device can automatically hide (ie put away) the input method interface. Therefore, the embodiments of the present invention can improve the convenience of interactive applications between the electronic device and the stylus.
实现方式二Realization method two
可选地,本发明实施例中,触控笔和电子设备间可以通过近场通信(near field communication,NFC)通信。在此情况下,在电子设备接收用户将触控笔拔出或插入电子设备的第一输入之后,本发明实施例提供的控制方法还包括下述的步骤205或步骤206。Optionally, in the embodiment of the present invention, the stylus and the electronic device may communicate through near field communication (NFC). In this case, after the electronic device receives the first input of the user pulling out or inserting the stylus pen into the electronic device, the control method provided in the embodiment of the present invention further includes the following step 205 or step 206.
步骤205、若触控笔和电子设备间的NFC信号强度大于或等于预设阈值,则电子设备确定第一输入为用户将触控笔插入电子设备。Step 205: If the strength of the NFC signal between the stylus pen and the electronic device is greater than or equal to the preset threshold, the electronic device determines that the first input is that the user inserts the stylus pen into the electronic device.
步骤206、若触控笔和电子设备间的NFC信号强度小于预设阈值,则电子设备确定第一输入为用户将触控笔拔出电子设备。Step 206: If the strength of the NFC signal between the stylus pen and the electronic device is less than the preset threshold, the electronic device determines that the first input is that the user pulls the stylus pen out of the electronic device.
本发明实施例中,触控笔中可以配置NFC标签,并且终端设备中可以配置NFC接收装置。触控笔和电子设备间可以通过NFC进行通信。其中,上述用于判断NFC信号强度的预设阈值可以根据实际使用需求确定,本发明实施例不作限定。In the embodiment of the present invention, an NFC tag can be configured in the stylus, and an NFC receiving device can be configured in the terminal device. The stylus and the electronic device can communicate through NFC. Wherein, the foregoing preset threshold for judging the strength of the NFC signal may be determined according to actual use requirements, which is not limited in the embodiment of the present invention.
具体的,当用户将触控笔插入电子设备时,触控笔中NFC标签与电子设备中NFC接收装置在通信距离范围内,此时电子设备能够检测到触控笔的NFC标签,即可确定用户将触控笔插入电子设备,可以推断出:用户收起触控笔,准备不再使用触控笔,此时电子设备可以自动隐藏(即收起)输入法界面。从而,本发明实施例可以提升电 子设备与触控笔交互应用的便捷性。Specifically, when the user inserts the stylus pen into the electronic device, the NFC tag in the stylus pen and the NFC receiving device in the electronic device are within the communication distance range. At this time, the electronic device can detect the NFC tag of the stylus pen. The user inserts the stylus pen into the electronic device, and can infer that: the user puts the stylus pen away and prepares to no longer use the stylus pen, at this time the electronic device can automatically hide (ie put away) the input method interface. Therefore, the embodiments of the present invention can improve the convenience of interactive applications between the electronic device and the stylus.
同理,当用户将触控笔拔出电子设备时,触控笔中NFC标签与电子设备中NFC接收装置在通信距离范围外,此时设备无法检测到触控笔的NFC标签,即可确定用户将触控笔拔出电子设备,可以推断出:用户拿出触控笔,准备使用触控笔在电子设备上进行输入。此时电子设备可以自动弹出输入法界面,用户可以直接进行输入操作,无需先点击输入框,唤出输入法。从而,本发明实施例可以提升电子设备与触控笔交互应用的便捷性。In the same way, when the user pulls the stylus out of the electronic device, the NFC tag in the stylus and the NFC receiving device in the electronic device are out of the communication distance range. At this time, the device cannot detect the NFC tag of the stylus, and it can be determined When the user pulls the stylus out of the electronic device, it can be inferred that the user takes out the stylus and is ready to use the stylus to input on the electronic device. At this time, the electronic device can automatically pop up the input method interface, and the user can directly perform input operations without first clicking the input box to call up the input method. Therefore, the embodiments of the present invention can improve the convenience of interactive applications between the electronic device and the stylus.
如图5所示,本发明实施例提供一种电子设备700,该电子设备包括可拔插触控笔。该电子设备700包括接收模块701和控制模块702;As shown in FIG. 5, an embodiment of the present invention provides an electronic device 700, which includes a removable stylus. The electronic device 700 includes a receiving module 701 and a control module 702;
接收模块701,用于在电子设备显示第一应用程序的第一界面的情况下,接收用户将触控笔拔出或插入电子设备的第一输入;The receiving module 701 is configured to receive the first input of the user pulling out or inserting the stylus pen into the electronic device when the electronic device displays the first interface of the first application program;
控制模块702,响应于接收模块701接收的第一输入,更新第一界面。The control module 702 updates the first interface in response to the first input received by the receiving module 701.
可选地,本发明实施例中,上述第一输入可以为用户将触控笔拔出电子设备。在此情况下,控制模块702具体用于若上述第一界面中不包含第一虚拟键盘,则在该第一界面上,显示第一虚拟键盘。Optionally, in the embodiment of the present invention, the above-mentioned first input may be that the user pulls the stylus out of the electronic device. In this case, the control module 702 is specifically configured to display the first virtual keyboard on the first interface if the first interface does not include the first virtual keyboard.
可选地,本发明实施例中,上述第一输入可以为用户将触控笔插入电子设备。在此情况下,控制模块702具体用于若上述第一界面中包含第一虚拟键盘,则隐藏第一虚拟键盘。Optionally, in the embodiment of the present invention, the above-mentioned first input may be that the user inserts a stylus pen into the electronic device. In this case, the control module 702 is specifically configured to hide the first virtual keyboard if the first interface includes the first virtual keyboard.
可选地,在一种可能的实现方式中,控制模块702具体用于在上述第一输入为用户将触控笔拔出电子设备的情况下,若上述第一界面中包含第二虚拟键盘,则将该第二虚拟键盘更新为第三虚拟键盘;Optionally, in a possible implementation manner, the control module 702 is specifically configured to, if the first input is the user pulling the stylus out of the electronic device, if the first interface includes a second virtual keyboard, Then update the second virtual keyboard to the third virtual keyboard;
或者,在另一种可能的实现方式中,控制模块702具体用于在上述第一输入为用户将触控笔插入电子设备的情况下,若上述第一界面中包含第三虚拟键盘,将该第三虚拟键盘更新为上述第二虚拟键盘;Or, in another possible implementation manner, the control module 702 is specifically configured to: when the first input is the user inserting the stylus into the electronic device, if the first interface includes a third virtual keyboard, The third virtual keyboard is updated to the above-mentioned second virtual keyboard;
其中,上述第二虚拟键盘为非手写虚拟键盘,上述第三虚拟键盘为手写虚拟键盘。Wherein, the second virtual keyboard is a non-handwritten virtual keyboard, and the third virtual keyboard is a handwritten virtual keyboard.
可选地,本发明实施例中,控制模块702具体用于在第一输入为用户将触控笔拔出电子设备的情况下,执行从第一界面跳转至第一应用程序的第二界面,该第一界面 为图片浏览界面,该第二界面为图片编辑界面。Optionally, in this embodiment of the present invention, the control module 702 is specifically configured to execute a jump from the first interface to the second interface of the first application when the first input is that the user pulls the stylus out of the electronic device. , The first interface is a picture browsing interface, and the second interface is a picture editing interface.
可选地,本发明实施例中,当上述触控笔处于插入状态时,触控笔插入电子设备的触控笔收纳装置中,该触控笔收纳装置中设置有触控笔检测装置。结合图5,如图6所示,本发明实施例提供的电子设备还包括第一确定模块703;Optionally, in the embodiment of the present invention, when the above-mentioned stylus is in the inserted state, the stylus is inserted into the stylus storage device of the electronic device, and the stylus detection device is provided in the stylus storage device. With reference to FIG. 5, as shown in FIG. 6, the electronic device provided by the embodiment of the present invention further includes a first determining module 703;
第一确定模块703,用于在接收模块701接收用户将触控笔拔出或插入电子设备的第一输入之后,若触控笔检测装置检测到触控笔接触该触控笔检测装置,则确定该第一输入为用户将触控笔插入电子设备;The first determining module 703 is configured to, after the receiving module 701 receives the first input of the user pulling out or inserting the stylus pen into the electronic device, if the stylus pen detection device detects that the stylus pen is in contact with the stylus pen detection device, then Determining that the first input is the user inserting the stylus into the electronic device;
第一确定模块703,还用于在接收模块701接收用户将触控笔拔出或插入电子设备的第一输入之后,若触控笔检测装置检测到触控笔脱离该触控笔检测装置,则确定该第一输入为用户将触控笔拔出电子设备。The first determining module 703 is further configured to, after the receiving module 701 receives the first input of the user pulling out or inserting the stylus pen into the electronic device, if the stylus pen detection device detects that the stylus pen is separated from the stylus pen detection device, It is determined that the first input is that the user pulls the stylus out of the electronic device.
可选地,本发明实施例中,上述触控笔和电子设备间通过NFC通信。结合图5,如图7所示,本发明实施例提供的电子设备还包括第二确定模块704;Optionally, in the embodiment of the present invention, the above-mentioned stylus and the electronic device communicate through NFC. With reference to FIG. 5, as shown in FIG. 7, the electronic device provided by the embodiment of the present invention further includes a second determining module 704;
第二确定模块704,用于在接收模块701接收用户将触控笔拔出或插入电子设备的第一输入之后,若触控笔和电子设备间的NFC信号强度大于或等于预设阈值,则确定该第一输入为用户将触控笔插入电子设备;The second determining module 704 is configured to, after the receiving module 701 receives the first input of the user pulling out or inserting the stylus pen into the electronic device, if the strength of the NFC signal between the stylus pen and the electronic device is greater than or equal to the preset threshold, then Determining that the first input is the user inserting the stylus into the electronic device;
第二确定模块704,还用于在接收模块701接收用户将触控笔拔出或插入电子设备的第一输入之后,若触控笔和电子设备间的NFC信号强度小于预设阈值,则确定该第一输入为用户将触控笔拔出电子设备。The second determining module 704 is further configured to determine if the NFC signal strength between the stylus pen and the electronic device is less than the preset threshold after the receiving module 701 receives the first input of the user pulling out or inserting the stylus pen into the electronic device The first input is that the user pulls the stylus out of the electronic device.
需要说明的是,上述第一确定模块和第二确定模块可以为同一模块,也可以为独立的两个模块。It should be noted that the above-mentioned first determination module and second determination module may be the same module, or may be two independent modules.
本发明实施例提供的电子设备能够实现上述方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the foregoing method embodiment. To avoid repetition, details are not described herein again.
本发明实施例提供的电子设备,可以在电子设备显示第一应用程序的第一界面的情况下,接收用户将触控笔拔出或插入电子设备的第一输入;并响应于该第一输入,更新第一界面。本发明实施例提供的控制方法应用于电子设备和触控笔交互应用的场景下,当用户将触控笔拔出或插入电子设备时,电子设备可以响应于该用户输入,根据触控笔的状态变化,将当前显示界面直接更新为与触控笔当前状态适用的界面(例如若触控笔被拔出,则 更新后的界面为可通过触控笔进行输入的界面),而无需用户进行操作触发当前显示界面进行更新,因此本发明实施例可以使得电子设备在与触控笔配合使用时更加智能地控制显示界面,便于用户使用触控笔在电子设备上的交互操作,使得触控笔的使用过程更流畅更智能。从而,本发明实施例可以提升电子设备与触控笔交互应用的便捷性。The electronic device provided by the embodiment of the present invention can receive the first input of the user pulling out or inserting the stylus pen into the electronic device when the electronic device displays the first interface of the first application program; and respond to the first input , Update the first interface. The control method provided by the embodiments of the present invention is applied to the interactive application scenario of an electronic device and a stylus pen. When the user pulls out or inserts the stylus pen into the electronic device, the electronic device can respond to the user input according to the stylus pen Status changes, the current display interface is directly updated to the interface applicable to the current status of the stylus (for example, if the stylus is pulled out, the updated interface is an interface that can be input through the stylus) without the user The operation triggers the update of the current display interface. Therefore, the embodiment of the present invention can make the electronic device more intelligently control the display interface when used in conjunction with the stylus, which facilitates the interactive operation of the stylus on the electronic device by the user, so that the stylus The use process is smoother and smarter. Therefore, the embodiments of the present invention can improve the convenience of interactive applications between the electronic device and the stylus.
图8为实现本发明各个实施例的一种电子设备的硬件结构示意图。如图8所示,该电子设备800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、处理器810、以及电源811等部件。本领域技术人员可以理解,图8中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。FIG. 8 is a schematic diagram of the hardware structure of an electronic device that implements various embodiments of the present invention. As shown in FIG. 8, the electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, and a memory 809 , Processor 810, and power supply 811. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 8 does not constitute a limitation on the electronic device. The electronic device may include more or less components than those shown in the figure, or a combination of certain components, or different components. Layout. In the embodiment of the present invention, electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
其中,用户输入单元807,用于在电子设备显示第一应用程序的第一界面的情况下,接收用户将触控笔拔出或插入电子设备的第一输入;处理器810,用于响应于用户输入单元807接收的第一输入,更新第一界面。The user input unit 807 is configured to receive the first input of the user pulling out or inserting the stylus pen into the electronic device when the electronic device displays the first interface of the first application program; the processor 810 is configured to respond to The first input received by the user input unit 807 updates the first interface.
本发明实施例提供一种电子设备,该电子设备应用于与触控笔交互应用的场景下,当用户将触控笔拔出或插入电子设备时,电子设备可以响应于该用户输入,根据触控笔的状态变化,将当前显示界面直接更新为与触控笔当前状态适用的界面(例如若触控笔被拔出,则更新后的界面为可通过触控笔进行输入的界面),而无需用户进行操作触发当前显示界面进行更新,因此本发明实施例可以使得电子设备在与触控笔配合使用时更加智能地控制显示界面,便于用户使用触控笔在电子设备上的交互操作,使得触控笔的使用过程更流畅更智能。从而,本发明实施例可以提升电子设备与触控笔交互应用的便捷性。The embodiment of the present invention provides an electronic device, which is applied in a scenario of interactive application with a stylus pen. When a user pulls out or inserts the stylus pen into the electronic device, the electronic device can respond to the user input according to the touch The state of the stylus changes, and the current display interface is directly updated to an interface suitable for the current state of the stylus (for example, if the stylus is pulled out, the updated interface is an interface that can be input through the stylus), and There is no need for the user to perform an operation to trigger the current display interface to update, so the embodiment of the present invention can make the electronic device more intelligently control the display interface when used in conjunction with the stylus, and facilitate the interactive operation of the user on the electronic device with the stylus, so that The use process of the stylus is smoother and smarter. Therefore, the embodiments of the present invention can improve the convenience of interactive applications between the electronic device and the stylus.
应理解的是,本发明实施例中,射频单元801可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器810处理;另外,将上行的数据发送给基站。通常,射频单元801包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元801还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 810; in addition, Uplink data is sent to the base station. Generally, the radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 801 can also communicate with the network and other devices through a wireless communication system.
电子设备800通过网络模块802为用户提供了无线的宽带互联网访问,如帮助用户收 发电子邮件、浏览网页和访问流式媒体等。The electronic device 800 provides users with wireless broadband Internet access through the network module 802, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元803可以将射频单元801或网络模块802接收的或者在存储器809中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元803还可以提供与电子设备800执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元803包括扬声器、蜂鸣器以及受话器等。The audio output unit 803 can convert the audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into audio signals and output them as sounds. Moreover, the audio output unit 803 may also provide audio output related to a specific function performed by the electronic device 800 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
输入单元804用于接收音频或视频信号。输入单元804可以包括图形处理器(graphics processing unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元806上。经图形处理器8041处理后的图像帧可以存储在存储器809(或其它存储介质)中或者经由射频单元801或网络模块802进行发送。麦克风8042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元801发送到移动通信基站的格式输出。The input unit 804 is used to receive audio or video signals. The input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042. The graphics processor 8041 is used for the image of a still picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed. The processed image frame may be displayed on the display unit 806. The image frame processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or sent via the radio frequency unit 801 or the network module 802. The microphone 8042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to the mobile communication base station via the radio frequency unit 801 for output in the case of a telephone call mode.
电子设备800还包括至少一种传感器805,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板8061的亮度,接近传感器可在电子设备800移动到耳边时,关闭显示面板8061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器805还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 800 further includes at least one sensor 805, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 8061 according to the brightness of the ambient light. The proximity sensor can close the display panel 8061 and the display panel 8061 when the electronic device 800 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; sensor 805 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元806用于显示由用户输入的信息或提供给用户的信息。显示单元806可包括显示面板8061,可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置显示面板8061。The display unit 806 is used to display information input by the user or information provided to the user. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
用户输入单元807可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元807包括触控面板8071以及其他输入设备8072。触控面板8071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板8071上或在触控面板 8071附近的操作)。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器810,接收处理器810发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板8071。除了触控面板8071,用户输入单元807还可以包括其他输入设备8072。具体地,其他输入设备8072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 807 can be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071, also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 8071 or near the touch panel 8071. operating). The touch panel 8071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 810, the command sent by the processor 810 is received and executed. In addition, the touch panel 8071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 8071, the user input unit 807 may also include other input devices 8072. Specifically, other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板8071可覆盖在显示面板8061上,当触控面板8071检测到在其上或附近的触摸操作后,传送给处理器810以确定触摸事件的类型,随后处理器810根据触摸事件的类型在显示面板8061上提供相应的视觉输出。虽然在图8中,触控面板8071与显示面板8061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板8071与显示面板8061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 8071 can be overlaid on the display panel 8061. When the touch panel 8071 detects a touch operation on or near it, it transmits it to the processor 810 to determine the type of the touch event, and then the processor 810 determines the type of the touch event according to the touch. The type of event provides corresponding visual output on the display panel 8061. Although in FIG. 8, the touch panel 8071 and the display panel 8061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 8071 and the display panel 8061 can be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.
接口单元808为外部装置与电子设备800连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元808可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备800内的一个或多个元件或者可以用于在电子设备800和外部装置之间传输数据。The interface unit 808 is an interface for connecting an external device and the electronic device 800. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 808 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 800 or can be used to connect the electronic device 800 to an external device. Transfer data between devices.
存储器809可用于存储软件程序以及各种数据。存储器809可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器809可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 809 can be used to store software programs and various data. The memory 809 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc. In addition, the memory 809 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, or other volatile solid-state storage devices.
处理器810是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器809内的软件程序和/或模块,以及调用存储在存储器809内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处 理器810可包括一个或多个处理单元;可选地,处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。The processor 810 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes the software programs and/or modules stored in the memory 809, and calls the data stored in the memory 809. , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole. The processor 810 may include one or more processing units; optionally, the processor 810 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc. The adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 810.
电子设备800还可以包括给各个部件供电的电源811(比如电池),可选地,电源811可以通过电源管理系统与处理器810逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 800 may also include a power source 811 (such as a battery) for supplying power to various components. Optionally, the power source 811 may be logically connected to the processor 810 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
另外,电子设备800包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 800 includes some functional modules not shown, which will not be repeated here.
可选地,本发明实施例还提供一种电子设备,包括如图8所示的处理器810,存储器809,存储在存储器809上并可在处理器810上运行的计算机程序,该计算机程序被处理器810执行时实现上述控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present invention further provides an electronic device, including a processor 810 as shown in FIG. 8, a memory 809, a computer program stored in the memory 809 and running on the processor 810, the computer program being When the processor 810 executes, each process of the foregoing control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, details are not described herein again.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,该计算机可读存储介质可以包括只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned control method embodiment is realized, and the same technical effect can be achieved. To avoid repetition, I won’t repeat it here. Wherein, the computer-readable storage medium may include read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements that are not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例公开的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make an electronic device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods disclosed in the various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the application are described above with reference to the accompanying drawings, but the application is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of this application, many forms can be made without departing from the purpose of this application and the scope of protection of the claims, all of which fall within the protection of this application.

Claims (18)

  1. 一种控制方法,应用于电子设备,所述方法包括:A control method applied to an electronic device, the method including:
    在所述电子设备显示第一界面的情况下,接收用户将触控笔拔出或插入所述电子设备的第一输入;In the case that the electronic device displays the first interface, receiving the first input of the user pulling out or inserting the stylus pen into the electronic device;
    响应于所述第一输入,更新所述第一界面。In response to the first input, the first interface is updated.
  2. 根据权利要求1所述的方法,其中,所述第一输入为用户将所述触控笔拔出所述电子设备;The method according to claim 1, wherein the first input is that the user pulls the stylus out of the electronic device;
    所述更新所述第一界面,包括:The updating the first interface includes:
    若所述第一界面中不包含第一虚拟键盘,则在所述第一界面上,显示所述第一虚拟键盘。If the first interface does not include the first virtual keyboard, the first virtual keyboard is displayed on the first interface.
  3. 根据权利要求1所述的方法,其中,所述第一输入为用户将所述触控笔插入所述电子设备;The method according to claim 1, wherein the first input is a user inserting the stylus pen into the electronic device;
    所述更新所述第一界面,包括:The updating the first interface includes:
    若所述第一界面中包含第一虚拟键盘,则隐藏所述第一虚拟键盘。If the first interface includes a first virtual keyboard, hide the first virtual keyboard.
  4. 根据权利要求1所述的方法,其中,所述更新所述第一界面,包括:The method according to claim 1, wherein said updating said first interface comprises:
    在所述第一输入为用户将所述触控笔拔出所述电子设备的情况下,若所述第一界面中包含第二虚拟键盘,则将所述第二虚拟键盘更新为第三虚拟键盘;In the case where the first input is that the user pulls the stylus out of the electronic device, if the first interface includes a second virtual keyboard, the second virtual keyboard is updated to a third virtual keyboard. keyboard;
    或者,or,
    在所述第一输入为用户将所述触控笔插入所述电子设备的情况下,若所述第一界面中包含所述第三虚拟键盘,将所述第三虚拟键盘更新为所述第二虚拟键盘;In the case where the first input is the user inserting the stylus pen into the electronic device, if the third virtual keyboard is included in the first interface, the third virtual keyboard is updated to the second Two virtual keyboards;
    其中,所述第二虚拟键盘为非手写虚拟键盘,所述第三虚拟键盘为手写虚拟键盘。Wherein, the second virtual keyboard is a non-handwritten virtual keyboard, and the third virtual keyboard is a handwritten virtual keyboard.
  5. 根据权利要求1所述的方法,其中,所述更新所述第一界面,包括:The method according to claim 1, wherein said updating said first interface comprises:
    在所述第一输入为用户将所述触控笔拔出所述电子设备的情况下,从所述第一界面跳转至第二界面,所述第一界面和所述第二界面为第一应用程序的不同界面,所述第一界面为图片浏览界面,所述第二界面为图片编辑界面。In the case where the first input is that the user pulls the stylus out of the electronic device, jumping from the first interface to the second interface, the first interface and the second interface are the first Different interfaces of an application, the first interface is a picture browsing interface, and the second interface is a picture editing interface.
  6. 根据权利要求1至5中任一项所述的方法,其中,当所述触控笔处于插入状态时,所述触控笔插入所述电子设备的触控笔收纳装置中,所述触控笔收纳装置中设置 有触控笔检测装置;The method according to any one of claims 1 to 5, wherein, when the stylus is in the inserted state, the stylus is inserted into the stylus storage device of the electronic device, and the touch A stylus detection device is provided in the pen storage device;
    所述接收用户将所述触控笔拔出或插入所述电子设备的第一输入之后,所述方法还包括:After receiving the first input of the user pulling out or inserting the stylus pen into the electronic device, the method further includes:
    若所述触控笔检测装置检测到所述触控笔接触所述触控笔检测装置,则确定所述第一输入为用户将所述触控笔插入所述电子设备;If the stylus detection device detects that the stylus touches the stylus detection device, determining that the first input is the user inserting the stylus pen into the electronic device;
    或者,or,
    若所述触控笔检测装置检测到所述触控笔脱离所述触控笔检测装置,则确定所述第一输入为用户将所述触控笔拔出所述电子设备。If the stylus detection device detects that the stylus is separated from the stylus detection device, it is determined that the first input is that the user pulls the stylus out of the electronic device.
  7. 根据权利要求1至5中任一项所述的方法,其中,所述触控笔和所述电子设备间通过近场通信NFC通信;The method according to any one of claims 1 to 5, wherein the communication between the stylus and the electronic device is through near field communication (NFC);
    所述接收用户将所述触控笔拔出或插入所述电子设备的第一输入之后,所述方法还包括:After receiving the first input of the user pulling out or inserting the stylus pen into the electronic device, the method further includes:
    若所述触控笔和所述电子设备间的NFC信号强度大于或等于预设阈值,则确定所述第一输入为用户将所述触控笔插入所述电子设备;If the strength of the NFC signal between the stylus pen and the electronic device is greater than or equal to a preset threshold, determining that the first input is the user inserting the stylus pen into the electronic device;
    若所述触控笔和所述电子设备间的NFC信号强度小于所述预设阈值,则确定所述第一输入为用户将所述触控笔拔出所述电子设备。If the strength of the NFC signal between the stylus pen and the electronic device is less than the preset threshold, it is determined that the first input is that the user pulls the stylus pen out of the electronic device.
  8. 一种电子设备,所述电子设备包括可拔插触控笔,所述电子设备包括接收模块和控制模块;An electronic device, the electronic device includes a pluggable stylus, the electronic device includes a receiving module and a control module;
    所述接收模块,用于在所述电子设备显示第一应用程序的第一界面的情况下,接收用户将所述触控笔拔出或插入所述电子设备的第一输入;The receiving module is configured to receive the first input of the user pulling out or inserting the stylus pen into the electronic device when the electronic device displays the first interface of the first application program;
    所述控制模块,响应于所述接收模块接收的所述第一输入,更新所述第一界面。The control module updates the first interface in response to the first input received by the receiving module.
  9. 根据权利要求8所述的电子设备,其中,所述第一输入为用户将所述触控笔拔出所述电子设备;The electronic device according to claim 8, wherein the first input is that the user pulls the stylus pen out of the electronic device;
    所述控制模块,具体用于若所述第一界面中不包含第一虚拟键盘,则在所述第一界面上,显示所述第一虚拟键盘。The control module is specifically configured to display the first virtual keyboard on the first interface if the first interface does not include the first virtual keyboard.
  10. 根据权利要求8所述的电子设备,其中,所述第一输入为用户将所述触控笔插入所述电子设备;8. The electronic device according to claim 8, wherein the first input is a user inserting the stylus pen into the electronic device;
    所述控制模块,具体用于若所述第一界面中包含第一虚拟键盘,则隐藏所述第一虚拟键盘。The control module is specifically configured to hide the first virtual keyboard if the first interface includes a first virtual keyboard.
  11. 根据权利要求8所述的电子设备,其中,所述控制模块,具体用于在所述第一输入为用户将所述触控笔拔出所述电子设备的情况下,若所述第一界面中包含第二虚拟键盘,则将所述第二虚拟键盘更新为第三虚拟键盘;The electronic device according to claim 8, wherein the control module is specifically configured to, when the first input is that the user pulls the stylus out of the electronic device, if the first interface Contains a second virtual keyboard, then the second virtual keyboard is updated to a third virtual keyboard;
    或者,or,
    所述控制模块,具体用于在所述第一输入为用户将所述触控笔插入所述电子设备的情况下,若所述第一界面中包含所述第三虚拟键盘,将所述第三虚拟键盘更新为所述第二虚拟键盘;The control module is specifically configured to: when the first input is the user inserting the stylus pen into the electronic device, if the third virtual keyboard is included in the first interface, the second The third virtual keyboard is updated to the second virtual keyboard;
    其中,所述第二虚拟键盘为非手写虚拟键盘,所述第三虚拟键盘为手写虚拟键盘。Wherein, the second virtual keyboard is a non-handwritten virtual keyboard, and the third virtual keyboard is a handwritten virtual keyboard.
  12. 根据权利要求8所述的电子设备,其中,所述控制模块,具体用于在所述第一输入为用户将所述触控笔拔出所述电子设备的情况下,执行从所述第一界面跳转至第二界面,所述第一界面和所述第二界面为第一应用程序的不同界面,所述第一界面为图片浏览界面,所述第二界面为图片编辑界面。8. The electronic device according to claim 8, wherein the control module is specifically configured to perform the slave operation when the first input is that the user pulls the stylus out of the electronic device. The interface jumps to a second interface, the first interface and the second interface are different interfaces of the first application, the first interface is a picture browsing interface, and the second interface is a picture editing interface.
  13. 根据权利要求8至12中任一项所述的电子设备,其中,当所述触控笔处于插入状态时,所述触控笔插入所述电子设备的触控笔收纳装置中,所述触控笔收纳装置中设置有触控笔检测装置;所述电子设备还包括第一确定模块;The electronic device according to any one of claims 8 to 12, wherein, when the stylus pen is in the inserted state, the stylus pen is inserted into the stylus storage device of the electronic device, and the touch pen is inserted into the stylus storage device of the electronic device. A stylus detection device is provided in the pen storage device; the electronic equipment further includes a first determining module;
    所述第一确定模块,用于在所述接收模块接收用户将所述触控笔拔出或插入所述电子设备的第一输入之后,若所述触控笔检测装置检测到所述触控笔接触所述触控笔检测装置,则确定所述第一输入为用户将所述触控笔插入所述电子设备;或者,The first determining module is configured to, after the receiving module receives the first input of the user pulling out or inserting the stylus pen into the electronic device, if the stylus pen detection device detects the touch If the pen touches the stylus pen detection device, it is determined that the first input is the user inserting the stylus pen into the electronic device; or,
    所述第一确定模块,用于在所述接收模块接收用户将所述触控笔拔出或插入所述电子设备的第一输入之后,若所述触控笔检测装置检测到所述触控笔脱离所述触控笔检测装置,则确定所述第一输入为用户将所述触控笔拔出所述电子设备。The first determining module is configured to, after the receiving module receives the first input of the user pulling out or inserting the stylus pen into the electronic device, if the stylus pen detection device detects the touch If the pen is separated from the stylus pen detection device, it is determined that the first input is the user pulling the stylus pen out of the electronic device.
  14. 根据权利要求8至12中任一项所述的电子设备,其中,所述触控笔和所述电子设备间通过近场通信NFC通信;所述电子设备还包括第二确定模块;The electronic device according to any one of claims 8 to 12, wherein the stylus and the electronic device communicate through near field communication (NFC); the electronic device further comprises a second determining module;
    所述第二确定模块,用于在所述接收模块接收用户将所述触控笔拔出或插入所述电子设备的第一输入之后,若所述触控笔和所述电子设备间的NFC信号强度大于或等 于预设阈值,则确定所述第一输入为用户将所述触控笔插入所述电子设备;或者,The second determining module is configured to, after the receiving module receives the first input of the user pulling out or inserting the stylus pen into the electronic device, if the NFC between the stylus pen and the electronic device If the signal strength is greater than or equal to the preset threshold, it is determined that the first input is the user inserting the stylus pen into the electronic device; or,
    所述第二确定模块,用于在所述接收模块接收用户将所述触控笔拔出或插入所述电子设备的第一输入之后,若所述触控笔和所述电子设备间的NFC信号强度小于所述预设阈值,则确定所述第一输入为用户将所述触控笔拔出所述电子设备。The second determining module is configured to, after the receiving module receives the first input of the user pulling out or inserting the stylus pen into the electronic device, if the NFC between the stylus pen and the electronic device If the signal strength is less than the preset threshold, it is determined that the first input is the user pulling the stylus out of the electronic device.
  15. 一种电子设备,所述电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至7中任一项所述的控制方法的步骤。An electronic device comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, and the computer program is executed by the processor to achieve as claimed in claim 1. To the steps of the control method described in any one of 7.
  16. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7中任一项所述的控制方法的步骤。A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the control method according to any one of claims 1 to 7 are realized.
  17. 一种计算机程序产品,其特征在于,所述程序产品被存储在非易失的存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1-7中任一项所述的控制方法。A computer program product, characterized in that the program product is stored in a non-volatile storage medium, and the program product is executed by at least one processor to implement the method according to any one of claims 1-7 Control Method.
  18. 一种电子设备,其特征在于,包括所述电子设备被配置成用于执行如权利要求1-7任一项所述的控制方法。An electronic device, comprising the electronic device configured to execute the control method according to any one of claims 1-7.
PCT/CN2020/137679 2019-12-24 2020-12-18 Control method and electronic device WO2021129538A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911348142.6A CN111124245B (en) 2019-12-24 2019-12-24 Control method and electronic equipment
CN201911348142.6 2019-12-24

Publications (1)

Publication Number Publication Date
WO2021129538A1 true WO2021129538A1 (en) 2021-07-01

Family

ID=70501946

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/137679 WO2021129538A1 (en) 2019-12-24 2020-12-18 Control method and electronic device

Country Status (2)

Country Link
CN (1) CN111124245B (en)
WO (1) WO2021129538A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124245B (en) * 2019-12-24 2022-06-10 维沃移动通信有限公司 Control method and electronic equipment
CN111665984A (en) * 2020-05-29 2020-09-15 维沃移动通信有限公司 Information processing method and device, electronic equipment and readable storage medium
CN112286378A (en) * 2020-10-28 2021-01-29 维沃移动通信有限公司 Electronic equipment control method and electronic equipment
CN112269523B (en) * 2020-10-28 2023-05-26 维沃移动通信有限公司 Object editing processing method and device and electronic equipment
CN113485580B (en) * 2021-06-30 2024-04-02 青岛海信商用显示股份有限公司 Display device, touch pen detection method, system, device and storage medium
JP2023162919A (en) * 2022-04-27 2023-11-09 レノボ・シンガポール・プライベート・リミテッド Information processing device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101943939A (en) * 2009-07-09 2011-01-12 上海易狄欧电子科技有限公司 Terminal and method for controlling stylus pen of terminal
US20120192078A1 (en) * 2011-01-26 2012-07-26 International Business Machines Method and system of mobile virtual desktop and virtual trackball therefor
CN103139388A (en) * 2008-05-05 2013-06-05 宏达国际电子股份有限公司 Handheld electronic device and method for starting application program
CN104348978A (en) * 2014-11-12 2015-02-11 天津三星通信技术研究有限公司 Call processing method and device for mobile terminal
CN108228276A (en) * 2017-12-22 2018-06-29 北京壹人壹本信息科技有限公司 A kind of fast hand write record method, mobile terminal and device
CN111124245A (en) * 2019-12-24 2020-05-08 维沃移动通信有限公司 Control method and electronic equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201000588Y (en) * 2007-01-04 2008-01-02 宇龙计算机通信科技(深圳)有限公司 Status switch triggering system for handhold terminal
CN101577752B (en) * 2008-05-05 2013-03-27 宏达国际电子股份有限公司 Hand-held electronic device and method for opening application program
KR20140030372A (en) * 2012-08-27 2014-03-12 삼성전자주식회사 Method for processing customized page and mobile device
CN106843916A (en) * 2015-12-04 2017-06-13 北京奇虎科技有限公司 Information recording method and device
CN106326402A (en) * 2016-08-22 2017-01-11 国网山东省电力公司青岛供电公司 Power transmission line information inquiry method and device and mobile terminal
CN106529276B (en) * 2016-10-31 2020-06-12 广州视源电子科技股份有限公司 Password security input method for display device, and device and system thereof
CN107247521A (en) * 2017-06-06 2017-10-13 深圳市泰衡诺科技有限公司 Mobile terminal stylus condition checkout gear, detection method and stylus
CN107168559A (en) * 2017-06-06 2017-09-15 深圳市泰衡诺科技有限公司 Mobile terminal stylus condition checkout gear and stylus
CN108536593A (en) * 2018-04-02 2018-09-14 泰华智慧产业集团股份有限公司 CS Framework Softwares automated testing method based on UI and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139388A (en) * 2008-05-05 2013-06-05 宏达国际电子股份有限公司 Handheld electronic device and method for starting application program
CN101943939A (en) * 2009-07-09 2011-01-12 上海易狄欧电子科技有限公司 Terminal and method for controlling stylus pen of terminal
US20120192078A1 (en) * 2011-01-26 2012-07-26 International Business Machines Method and system of mobile virtual desktop and virtual trackball therefor
CN104348978A (en) * 2014-11-12 2015-02-11 天津三星通信技术研究有限公司 Call processing method and device for mobile terminal
CN108228276A (en) * 2017-12-22 2018-06-29 北京壹人壹本信息科技有限公司 A kind of fast hand write record method, mobile terminal and device
CN111124245A (en) * 2019-12-24 2020-05-08 维沃移动通信有限公司 Control method and electronic equipment

Also Published As

Publication number Publication date
CN111124245A (en) 2020-05-08
CN111124245B (en) 2022-06-10

Similar Documents

Publication Publication Date Title
WO2021083052A1 (en) Object sharing method and electronic device
WO2021104365A1 (en) Object sharing method and electronic device
WO2021129538A1 (en) Control method and electronic device
WO2020258929A1 (en) Folder interface switching method and terminal device
WO2021083087A1 (en) Screen capturing method and terminal device
WO2020181955A1 (en) Interface control method and terminal device
CN109614061B (en) Display method and terminal
US11658932B2 (en) Message sending method and terminal device
WO2019196864A1 (en) Control method for virtual button and mobile terminal
WO2021129536A1 (en) Icon moving method and electronic device
WO2020057258A1 (en) Information processing method and terminal
WO2020215932A1 (en) Method for displaying unread message and terminal device
WO2019196691A1 (en) Keyboard interface display method and mobile terminal
WO2020192299A1 (en) Information display method and terminal device
WO2021004426A1 (en) Content selection method, and terminal
WO2020057257A1 (en) Application interface switching method and mobile terminal
WO2021057290A1 (en) Information control method and electronic device
WO2020199783A1 (en) Interface display method and terminal device
WO2020181945A1 (en) Identifier displaying method and terminal device
WO2021057301A1 (en) File control method and electronic device
WO2021083088A1 (en) Message display method and terminal device
WO2020215982A1 (en) Desktop icon management method and terminal device
WO2020155980A1 (en) Control method and terminal device
WO2021017738A1 (en) Interface display method and electronic device
WO2020192324A1 (en) Interface displaying method and terminal device

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

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

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20906659

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 04.01.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20906659

Country of ref document: EP

Kind code of ref document: A1