CN108984092B - Device control method, device, storage medium and electronic device - Google Patents
Device control method, device, storage medium and electronic device Download PDFInfo
- Publication number
- CN108984092B CN108984092B CN201810682445.0A CN201810682445A CN108984092B CN 108984092 B CN108984092 B CN 108984092B CN 201810682445 A CN201810682445 A CN 201810682445A CN 108984092 B CN108984092 B CN 108984092B
- Authority
- CN
- China
- Prior art keywords
- instruction group
- instruction
- preset
- target
- candidate
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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
- G06F3/04883—Interaction 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 for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/048—Indexing scheme relating to G06F3/048
- G06F2203/04803—Split screen, i.e. subdividing the display area or the window area into separate subareas
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
Description
技术领域technical field
本申请涉及计算机技术领域,尤其涉及一种设备控制方法、装置、存储介质及电子设备。The present application relates to the field of computer technologies, and in particular, to a device control method, device, storage medium, and electronic device.
背景技术Background technique
随着终端技术的发展,移动终端,特别是智能终端的功能越来越强大,其也逐渐成为人们生活中不可或缺的一部分。With the development of terminal technology, the functions of mobile terminals, especially smart terminals, are becoming more and more powerful, and they have gradually become an indispensable part of people's lives.
在智能终端的使用过程中,用户经常会用到各种功能,比如锁屏功能、分屏功能、声音调节功能、屏幕旋转功能、内存清理功能等等,通常,用户若需要执行某种功能,需要进入相关界面,通过相关界面来执行,而对于不同的功能,用户可能需要进入不同界面,操作复杂,灵活性差。During the use of smart terminals, users often use various functions, such as screen lock function, split screen function, sound adjustment function, screen rotation function, memory cleaning function, etc. Usually, if a user needs to perform a certain function, It is necessary to enter the relevant interface and execute it through the relevant interface, and for different functions, the user may need to enter different interfaces, which is complicated to operate and has poor flexibility.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种设备控制方法、装置、存储介质及电子设备,无需通过界面来执行设备的各种功能,方法简单。Embodiments of the present application provide a device control method, device, storage medium, and electronic device, which do not require an interface to perform various functions of the device, and the method is simple.
本申请实施例提供了一种设备控制方法,应用于电子设备,所述电子设备包括屏幕,所述设备控制方法包括:An embodiment of the present application provides a device control method, which is applied to an electronic device, where the electronic device includes a screen, and the device control method includes:
获取至少两个手指在所述屏幕上同向滑动的轨迹、以及所述轨迹中每个轨迹点的触摸时长;Acquiring the trajectory of at least two fingers sliding in the same direction on the screen, and the touch duration of each trajectory point in the trajectory;
根据所述起点的触摸时长和终点的触摸时长从多个候选指令组中确定目标指令组;Determine a target instruction group from a plurality of candidate instruction groups according to the touch duration of the starting point and the touch duration of the end point;
根据所述轨迹从所述目标指令组中确定目标指令;Determine a target instruction from the target instruction group according to the trajectory;
根据所述目标指令对所述电子设备进行相应控制。The electronic device is controlled accordingly according to the target instruction.
本申请实施例还提供了一种设备控制装置,应用于电子设备,所述电子设备包括屏幕,所述设备控制装置包括:An embodiment of the present application further provides a device control device, which is applied to an electronic device, where the electronic device includes a screen, and the device control device includes:
获取模块,用于获取至少两个手指在所述屏幕上同向滑动的轨迹、以及所述轨迹中每个轨迹点的触摸时长;an acquisition module, configured to acquire the trajectory of at least two fingers sliding in the same direction on the screen and the touch duration of each trajectory point in the trajectory;
第一确定模块,用于根据所述触摸时长从多个候选指令组中确定目标指令组;a first determining module, configured to determine a target instruction group from a plurality of candidate instruction groups according to the touch duration;
第二确定模块,用于根据所述轨迹从所述目标指令组中确定目标指令;a second determining module, configured to determine a target instruction from the target instruction group according to the trajectory;
控制模块,用于根据所述目标指令对所述电子设备进行相应控制。The control module is used for correspondingly controlling the electronic device according to the target instruction.
本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行上述任一项设备控制方法。Embodiments of the present application further provide a computer-readable storage medium, where a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute any one of the foregoing device control methods.
本申请实施例还提供了一种电子设备,包括处理器和存储器,所述处理器与所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于上述任一项所述的设备控制方法中的步骤。An embodiment of the present application further provides an electronic device, including a processor and a memory, the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for any of the above The steps in the described device control method.
本申请提供的设备控制方法、装置、存储介质及电子设备,应用于包括屏幕的电子设备,通过获取至少两个手指在该屏幕上同向滑动的轨迹、以及该轨迹中每个轨迹点的触摸时长,并根据该触摸时长从多个候选指令组中确定目标指令组,之后根据该轨迹从该目标指令组中确定目标指令,并根据该目标指令对该电子设备进行相应控制,从而能通过多指滑动的方式启动各种设备功能,无需进入相关操作界面,方法简单,灵活性高,用户体验感好。The device control method, device, storage medium and electronic device provided by the present application are applied to electronic devices including a screen, by acquiring the trajectory of at least two fingers sliding in the same direction on the screen and the touch of each trajectory point in the trajectory and determine the target instruction group from multiple candidate instruction groups according to the touch duration, and then determine the target instruction from the target instruction group according to the trajectory, and control the electronic device accordingly according to the target instruction, so that the electronic device can be controlled through multiple The method is simple, flexible, and user experience is good.
附图说明Description of drawings
下面结合附图,通过对本申请的具体实施方式详细描述,将使本申请的技术方案及其它有益效果显而易见。The technical solutions and other beneficial effects of the present application will be apparent through the detailed description of the specific embodiments of the present application in conjunction with the accompanying drawings.
图1为本申请实施例提供的设备控制系统的应用场景示意图。FIG. 1 is a schematic diagram of an application scenario of a device control system provided by an embodiment of the present application.
图2为本申请实施例提供的设备控制方法的流程示意图。FIG. 2 is a schematic flowchart of a device control method provided by an embodiment of the present application.
图3为本申请实施例提供的设备控制方法的另一流程示意图。FIG. 3 is another schematic flowchart of a device control method provided by an embodiment of the present application.
图4为本申请实施例提供的多种滑动方向的示意图。FIG. 4 is a schematic diagram of various sliding directions provided by an embodiment of the present application.
图5为本申请实施例提供的文件传输和窗口调整的示意图。FIG. 5 is a schematic diagram of file transmission and window adjustment provided by an embodiment of the present application.
图6为本申请实施例提供的步骤209的流程示意图。FIG. 6 is a schematic flowchart of step 209 provided in this embodiment of the present application.
图7为本申请实施例提供的步骤209的另一流程示意图。FIG. 7 is another schematic flowchart of step 209 provided in this embodiment of the present application.
图8为本申请实施例提供的步骤209的另一流程示意图。FIG. 8 is another schematic flowchart of step 209 provided in this embodiment of the present application.
图9为本申请实施例提供的步骤209的另一流程示意图。FIG. 9 is another schematic flowchart of step 209 provided by this embodiment of the present application.
图10为本申请实施例提供的设备控制装置的结构示意图。FIG. 10 is a schematic structural diagram of a device control apparatus provided by an embodiment of the present application.
图11为本申请实施例提供的设备控制装置的另一结构示意图。FIG. 11 is another schematic structural diagram of a device control apparatus provided by an embodiment of the present application.
图12为本申请实施例提供的电子设备的结构示意图。FIG. 12 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present application.
本申请实施例提供一种设备控制方法、装置、存储介质及电子设备。Embodiments of the present application provide a device control method, device, storage medium, and electronic device.
请参阅图1,图1提供了一种设备控制系统的应用场景示意图,该设备控制系统可以包括本申请实施例提供的任一种设备控制装置,该设备控制装置可以集成在电子设备中,该电子设备可以包括智能手机、平板电脑等具有触摸功能的设备。Please refer to FIG. 1. FIG. 1 provides a schematic diagram of an application scenario of a device control system. The device control system may include any device control apparatus provided in the embodiments of the present application. The device control apparatus may be integrated into an electronic device. Electronic devices may include touch-enabled devices such as smart phones, tablet computers, and the like.
其中电子设备可以获取至少两个手指在该屏幕上同向滑动的轨迹、以及该轨迹中每个轨迹点的触摸时长,该轨迹点包括起点和终点,并根据该起点的触摸时长和终点的触摸时长从多个候选指令组中确定目标指令组,之后,根据该轨迹从该目标指令组中确定目标指令,并根据该目标指令对该电子设备进行相应控制。The electronic device can obtain the trajectory of at least two fingers sliding in the same direction on the screen, and the touch duration of each trajectory point in the trajectory. The duration determines a target instruction group from a plurality of candidate instruction groups, and then determines a target instruction from the target instruction group according to the trajectory, and controls the electronic device accordingly according to the target instruction.
譬如,该候选指令组至少可以包括第一候选指令组和第二候选指令组,该第一候选指令组中可以包括用于指示对设备参数进行调整的指令,该第二候选指令组中可以包括用于指示对设备模式进行状态切换的指令。该预设时长可以人为设定,比如3秒或4秒,其略长于正常结束动作所需的时间,用于体现出一个停顿状态,通常,任一轨迹点的触摸时长小于该预设时长代表手指在该轨迹点处无停顿,大于或等于该预设时长时则代表手指在该轨迹点处有一个停顿状态。For example, the candidate instruction group may include at least a first candidate instruction group and a second candidate instruction group, the first candidate instruction group may include instructions for instructing device parameters to be adjusted, and the second candidate instruction group may include Instructions for state switching of device modes. The preset duration can be set manually, such as 3 seconds or 4 seconds, which is slightly longer than the time required to end the action normally, and is used to reflect a pause state. Usually, the touch duration of any track point is shorter than the preset duration. The finger does not pause at the track point, and when the duration is greater than or equal to the preset duration, it means that the finger has a pause state at the track point.
在图1中,当电子设备处于解锁状态时,若检测到用户的两个手指在屏幕上同向滑动,可以先根据起点和终点处的停顿情况来确定选择哪一个候选指令组,比如若只在起点处停顿则选择第一候选指令组,若只在终点处停顿,或者在终点处和起点处均不停顿则选择第二候选指令组,之后,可以进一步根据轨迹从候选指令组中确定出单个指令,比如,当该轨迹为下滑时,在第一候选指令组中选择增大音量值或亮度值的指令,在第二候选指令组中,若只在终点处滑动,则选择对清理模式进行状态切换的指令,比如将该清理模式由非清理状态切换至清理状态,若在。当该轨迹为上滑时,在第一候选指令组中选择减小音量值或亮度值的指令,在第二候选指令组中选择对通知模式进行状态切换的指令,比如将通知模式由允许通知状态切换至禁止通知状态。In Figure 1, when the electronic device is in the unlocked state, if it is detected that the user's two fingers are sliding in the same direction on the screen, it can be determined which candidate command group to select according to the pause at the starting point and the ending point. If it stops at the starting point, the first candidate instruction group is selected. If it only stops at the end point, or does not stop at the end point and the starting point, the second candidate instruction group is selected. After that, it can be further determined from the candidate instruction group according to the trajectory. A single command, for example, when the trajectory is sliding, select the command to increase the volume value or the brightness value in the first candidate command group, and in the second candidate command group, if it only slides at the end point, select the cleaning mode. An instruction to perform state switching, such as switching the cleaning mode from the non-cleaning state to the cleaning state, if so. When the track is sliding upwards, select an instruction to decrease the volume value or brightness value in the first candidate instruction group, and select an instruction to switch the notification mode in the second candidate instruction group, for example, change the notification mode to allow notification The state switches to the notification-disabled state.
如图2所示,图2是本申请实施例提供的设备控制方法的流程示意图,其应用于电子设备,该电子设备包括屏幕,具体流程可以如下:As shown in FIG. 2, FIG. 2 is a schematic flowchart of a device control method provided by an embodiment of the present application, which is applied to an electronic device, and the electronic device includes a screen, and the specific process may be as follows:
101、获取至少两个手指在该屏幕上同向滑动的轨迹、以及该轨迹中每个轨迹点的触摸时长。101. Acquire a track of at least two fingers sliding in the same direction on the screen, and a touch duration of each track point in the track.
本实施例中,当电子设备处于正常使用状态(也即处于解锁状态)时,可以实时检测手指在屏幕上的滑动信息,该滑动信息包括滑动点位置和对应触摸时刻,并根据该滑动信息生成对应滑动轨迹,该滑动轨迹一般指从起点到终点之间形成的规则或不规则线段,比如直线段、折线段、曲线段等。该同向滑动是指沿同一方向滑动,通常,多个手指同向滑动时形成的滑动轨迹为多条形状相同的线段。In this embodiment, when the electronic device is in a normal use state (that is, in an unlocked state), the sliding information of the finger on the screen can be detected in real time. The sliding information includes the position of the sliding point and the corresponding touch moment, and is generated according to the sliding information. Corresponding to the sliding track, the sliding track generally refers to a regular or irregular line segment formed between the starting point and the ending point, such as a straight line segment, a polyline segment, a curved line segment, and the like. The co-directional sliding refers to sliding in the same direction. Generally, the sliding trajectory formed when multiple fingers slide in the same direction is a plurality of line segments with the same shape.
102、根据该触摸时长从多个候选指令组中确定目标指令组。102. Determine a target instruction group from multiple candidate instruction groups according to the touch duration.
例如,该轨迹点可以包括起点和终点,该候选指令组可以包括第一候选指令组和第二候选指令组,此时,上述步骤102具体可以包括:For example, the trajectory point may include a start point and an end point, and the candidate instruction group may include a first candidate instruction group and a second candidate instruction group. In this case, the
判断该起点的触摸时长是否不小于预设时长;Determine whether the touch duration of the starting point is not less than the preset duration;
若是,则当该终点的触摸时长小于预设时长时,获取第一候选指令组作为目标指令组,该第一候选指令组中包括用于指示控制该电子设备进行参数调整的指令;If so, when the touch duration of the end point is less than the preset duration, acquire a first candidate instruction group as a target instruction group, and the first candidate instruction group includes an instruction for instructing the electronic device to perform parameter adjustment;
若否,则当该终点的触摸时长小于预设时长时,获取第二候选指令组作为目标指令组,该第二候选指令组中包括用于指示控制该电子设备进行状态切换的指令。If not, when the touch duration of the end point is less than the preset duration, a second candidate instruction group is obtained as the target instruction group, and the second candidate instruction group includes an instruction for instructing the electronic device to perform state switching.
本实施例中,该预设时长可以人为设定,比如3秒或4秒,其略长于正常结束动作所需的时间,用于体现出一个停顿状态。当某个轨迹点的触摸时长大于或等于该预设时长时,代表用户手指在此处有停顿,而不同的停顿方式可以对应启动不同类型的应用功能,在手指滑动的时候,电子设备可以实时检测每个轨迹点的停顿情况,比如用户手指在起点处就开始停顿时,可以先初步确定出一个小范围的指令组,比如确定出属于参数调整类型或者状态切换类型的一系列指令,该参数可以包括亮度或音量等。In this embodiment, the preset time period can be set manually, for example, 3 seconds or 4 seconds, which is slightly longer than the time required to end the action normally, and is used to reflect a pause state. When the touch duration of a track point is greater than or equal to the preset duration, it means that the user's finger pauses here, and different pause methods can correspond to start different types of application functions. When the finger slides, the electronic device can real-time Detect the pause situation of each track point. For example, when the user's finger starts to pause at the starting point, a small range of command groups can be initially determined, such as a series of commands belonging to the parameter adjustment type or state switching type. The parameter Can include brightness or volume, etc.
在另一实施方式中,该候选指令组还可以包括第三候选指令组,此时,在判断该起点的触摸时长是否不小于预设时长之后,该设备控制方法还可以包括:In another embodiment, the candidate instruction group may further include a third candidate instruction group. In this case, after judging whether the touch duration of the starting point is not less than a preset duration, the device control method may further include:
当该起点的触摸时长不小于预设时长时,检测前台界面中是否显示有多个应用窗口;When the touch duration of the starting point is not less than the preset duration, detect whether there are multiple application windows displayed in the foreground interface;
若是,则获取第三候选指令组作为目标指令组,该第三候选指令组中包括用于指示对相应应用窗口进行处理的指令;If so, acquire a third candidate instruction group as the target instruction group, and the third candidate instruction group includes an instruction for instructing the corresponding application window to be processed;
若否,则当该终点的触摸时长小于预设时长时,获取第一候选指令组作为目标指令组。If not, when the touch duration of the end point is less than the preset duration, the first candidate instruction group is acquired as the target instruction group.
本实施例中,该对相应应用窗口进行处理可以包括对相应应用窗口大小进行调整、以及向相应应用窗口传输文件等。当手指在起点停顿后才开始滑动时,若当前界面是分屏界面(也即同时显示了至少两个应用窗口),可以认为用户想对应用窗口进行处理,若当前界面不是分屏界面,可以认为用户想对设备参数进行调整。In this embodiment, the processing of the corresponding application window may include adjusting the size of the corresponding application window, transferring files to the corresponding application window, and the like. When the finger starts to slide after pausing at the starting point, if the current interface is a split-screen interface (that is, at least two application windows are displayed at the same time), it can be considered that the user wants to process the application windows. If the current interface is not a split-screen interface, you can It is assumed that the user wants to make adjustments to the device parameters.
103、根据该轨迹从该目标指令组中确定目标指令。103. Determine a target instruction from the target instruction group according to the trajectory.
本实施例中,可以借助触摸时长和轨迹这两个维度来确定需要启动电子设备中的何种功能,比如,轨迹点的不同停顿情况、不同滑动方向和滑动距离等都可以对应不同的指令。In this embodiment, the two dimensions of touch duration and trajectory can be used to determine which function of the electronic device needs to be activated. For example, different pause situations, sliding directions and sliding distances of trajectory points can correspond to different instructions.
(A)当该目标指令组为第一候选指令组时(A) When the target instruction group is the first candidate instruction group
在一实施方式中,上述步骤103具体可以包括:In one embodiment, the
当该轨迹指示沿第一预设方向滑动,且该滑动的距离不小于第一预设距离时,从该第一候选指令组中获取指示增大音量值和/或亮度值的指令,作为目标指令;When the track indicates sliding along the first preset direction, and the sliding distance is not less than the first preset distance, acquire an instruction to increase the volume value and/or the brightness value from the first candidate instruction group as a target instruction;
当该轨迹指示沿与该第一预设方向相反的方向滑动,且该滑动的距离不小于第一预设距离时,从该第一候选指令组中获取指示减小音量值和/或亮度值的指令,作为目标指令。When the track indicates sliding in a direction opposite to the first preset direction, and the sliding distance is not less than the first preset distance, obtain the instruction to decrease the volume value and/or the brightness value from the first candidate instruction group command as the target command.
本实施例中,该第一预设方向和第一预设距离均可以人为设定,比如该第一预设方向可以是上方或下方等,该第一预设距离可以是某个固定值,或者根据屏幕长或宽而定,比如是屏幕长或宽的三分之二。当手指停顿后沿第一预设方向滑动第一预设距离时,可以获取将音量或亮度等数值参数调大的指令,当手指停顿后沿第一预设方向的反方向滑动第一预设距离时,可以获取将音量或亮度等数值参数调小的指令。In this embodiment, both the first preset direction and the first preset distance can be set manually, for example, the first preset direction can be up or down, and the first preset distance can be a certain fixed value, Or according to the length or width of the screen, such as two-thirds of the length or width of the screen. When the finger pauses and slides the first preset distance in the first preset direction, an instruction to increase numerical parameters such as volume or brightness can be obtained, and when the finger pauses, slide the first preset distance in the opposite direction of the first preset direction When the distance is set, you can obtain the command to reduce the numerical parameters such as volume or brightness.
(B)当该目标指令组为第二候选指令组时(B) When the target instruction group is the second candidate instruction group
在一实施方式中,上述步骤103具体可以包括:In one embodiment, the
判断该轨迹是否满足第一预设条件,该第一预设条件为沿第二预设方向滑动,且该滑动的距离不小于第二预设距离;Judging whether the trajectory satisfies a first preset condition, the first preset condition is sliding along a second preset direction, and the sliding distance is not less than the second preset distance;
若是,则当该终点的触摸时长不小于预设时长时,从该第二候选指令组中获取指示对清理模式进行状态切换的指令,作为目标指令,该清理模式包括清理状态和非清理状态;或者,If so, when the touch duration of the end point is not less than the preset duration, obtain from the second candidate instruction group an instruction instructing to perform state switching on the cleaning mode, as the target command, and the cleaning mode includes a cleaning state and a non-cleaning state; or,
当该终点的触摸时长小于预设时长时,从该第二候选指令组中获取指示对锁屏模式、通知模式、声音模式和/或屏幕旋转模式进行状态切换的指令,作为目标指令,该锁屏模式包括锁定状态和解锁状态,该通知模式包括允许通知状态和禁止通知状态,该声音模式包括静音状态和响铃状态,该屏幕旋转模式包括禁止旋转状态和允许旋转状态。When the touch duration of the end point is less than the preset duration, obtain an instruction from the second candidate instruction group that instructs the state switching of the lock screen mode, notification mode, sound mode and/or screen rotation mode, as the target instruction, the lock screen mode The screen mode includes a locked state and an unlocked state, the notification mode includes a notification enabled state and a notification prohibited state, the sound mode includes a silent state and a ringing state, and the screen rotation mode includes a rotation prohibited state and a rotation enabled state.
本实施例中,该第二预设方向和第二预设距离可以人为设定。当手指沿第二预设方向滑动第二预设距离停顿时,可以对启动内存清理操作,或者停止正在执行的内存清理操作。当手指只是沿第二预设方向滑动第二预设距离时,可以对其他模式进行状态切换,比如对锁屏模式、通知模式、声音模式、屏幕旋转模式等中的一种或多种进行状态切换,且在切换过程中,需要先确定电子设备当前处于哪一种状态,将其切换成另一种状态即可。In this embodiment, the second preset direction and the second preset distance can be set manually. When the finger slides along the second preset direction for the second preset distance and pauses, the memory clearing operation can be started, or the memory clearing operation being executed can be stopped. When the finger only slides the second preset distance along the second preset direction, other modes can be switched, such as one or more of the lock screen mode, notification mode, sound mode, screen rotation mode, etc. Switching, and during the switching process, it is necessary to first determine which state the electronic device is currently in, and then switch it to another state.
在另一实施方式中,上述步骤103具体可以包括:In another embodiment, the
判断该轨迹是否指示沿曲线滑动,且前台显示界面不属于预设应用;Determine whether the track indicates sliding along the curve, and the foreground display interface does not belong to the preset application;
若是,则从该第二候选指令组中获取指示对屏幕显示模式进行状态切换的指令,作为目标指令,该屏幕显示模式包括横向显示状态和竖向显示状态。If so, obtain an instruction from the second candidate instruction group to instruct to switch the state of the screen display mode as a target instruction, and the screen display mode includes a horizontal display state and a vertical display state.
本实施例中,该预设应用可以是和图像查看有关的应用,当该轨迹包括多个滑动方向,且这些滑动方向的变化规律一定时,可以认为其是沿曲线滑动,通常,手指只有在旋转的情况下会形成曲线滑动的轨迹。具体的,在图像查看界面,用户手指旋转可以启动图像旋转功能,在非图像查看界面,用户手指旋转可以启动屏幕旋转功能。In this embodiment, the preset application may be an application related to image viewing. When the track includes multiple sliding directions, and the changing rules of these sliding directions are constant, it can be considered as sliding along a curve. In the case of rotation, a curved sliding trajectory will be formed. Specifically, in the image viewing interface, the user's finger rotation can activate the image rotation function, and in the non-image viewing interface, the user's finger rotation can activate the screen rotation function.
在另一实施方式中,当该终点的触摸时长还小于预设时长时,上述步骤103具体可以包括:In another embodiment, when the touch duration of the end point is still less than the preset duration, the
判断该轨迹是否满足第二预设条件,该第二预设条件为沿第三预设方向滑动,且该滑动的距离不小于第三预设距离;Judging whether the trajectory satisfies a second preset condition, the second preset condition is sliding along a third preset direction, and the sliding distance is not less than the third preset distance;
若是,则当前台显示界面为预设界面时,从该第二候选指令组中获取第一指令、第二指令或第三指令作为目标指令,该第一指令用于指示关闭前台显示界面,该第二指令用于指示对前台显示界面进行分屏操作,该第三指令用于指示将前台显示界面切换至通知预览界面。If so, when the foreground display interface is the default interface, the first command, the second command or the third command is obtained from the second candidate command group as the target command, and the first command is used to instruct to close the foreground display interface. The second instruction is used for instructing to perform a split screen operation on the foreground display interface, and the third instruction is used for instructing to switch the foreground display interface to the notification preview interface.
本实施例中,该第三预设方向和第三预设距离可以人为设定。该预设界面可以是不包括屏幕主界面的任意应用界面,或者是分屏应用的界面。该通知预览界面主要用于显示各种未接来电、未看消息等提醒通知。该分屏操作主要指将屏幕分成至少两个显示窗口,不同显示窗口之间彼此独立操作。In this embodiment, the third preset direction and the third preset distance can be set manually. The preset interface may be any application interface that does not include the main screen interface, or an interface of a split-screen application. The notification preview interface is mainly used to display various reminder notifications such as missed calls and unseen messages. The split screen operation mainly refers to dividing the screen into at least two display windows, and the different display windows operate independently of each other.
当手指沿第三预设方向滑动了第三预设距离时,若前台显示界面为不包括屏幕主界面的任意应用界面时,可以实现关闭前台应用(相当于切换至关闭状态)或显示通知预览界面,其中,将前台显示界面切换至通知预览界面的切换方式可以是下滑(下滑),或者左滑(右滑),若前台显示界面为支持分屏的应用界面时,可以实现分屏操作(相当于切换至分屏状态),并且在分屏过程中,用户可以自行选择需要在屏幕上同时显示的其他单个或多个应用,也可以由系统默认选择。When the finger slides the third preset distance along the third preset direction, if the foreground display interface is any application interface that does not include the main screen interface, the foreground application can be closed (equivalent to switching to the closed state) or the notification preview can be displayed interface, in which the switching method of switching the foreground display interface to the notification preview interface can be slide down (slide down) or left slide (right slide). It is equivalent to switching to the split-screen state), and during the split-screen process, the user can select other single or multiple applications that need to be displayed on the screen at the same time, or can be selected by the system by default.
在另一实施方式中,当该终点的触摸时长还小于预设时长时,上述步骤103具体可以包括:In another embodiment, when the touch duration of the end point is still less than the preset duration, the
判断该轨迹是否沿第四预设方向滑动,且前台显示界面为应用界面;Determine whether the track slides along the fourth preset direction, and the foreground display interface is an application interface;
若是,则根据触摸时长和该轨迹的总长度计算滑动速度;If so, calculate the sliding speed according to the touch duration and the total length of the track;
当该滑动速度不小于预设速度时,从该第二候选指令组中获取指示对前台应用进行切换的指令,作为目标指令。When the sliding speed is not less than the preset speed, an instruction instructing to switch the foreground application is obtained from the second candidate instruction group as a target instruction.
本实施例中,可以将每个轨迹点的触摸时长进行累计,得到总时长,然后计算轨迹总长度和总时长之间的比值,得到滑动速度。该预设速度主要指在屏幕上扫动的速度,该第四预设方向和预设速度均可以人为设,该第四预设方向可以为左方、右方,或者上方、下方。对前台应用进行切换可以包括将前台应用与后台应用进行切换,或者将前台应用与指定应用进行切换。In this embodiment, the touch duration of each track point can be accumulated to obtain the total duration, and then the ratio between the total track length and the total duration can be calculated to obtain the sliding speed. The preset speed mainly refers to the speed of sweeping on the screen, the fourth preset direction and the preset speed can be set manually, and the fourth preset direction can be left, right, or up and down. Switching the foreground application may include switching the foreground application and the background application, or switching the foreground application and a designated application.
(C)当该目标指令组为第三候选指令组时(C) When the target instruction group is the third candidate instruction group
在一实施方式中,上述步骤103具体可以包括:In one embodiment, the
当该轨迹中起点的位置与应用窗口中边界线的位置发生重叠时,从该第三候选指令组中获取指示对相应应用窗口进行大小调整的指令,作为目标指令;或者,When the position of the starting point in the track overlaps with the position of the boundary line in the application window, obtain an instruction instructing to adjust the size of the corresponding application window from the third candidate instruction group as the target instruction; or,
当该轨迹中起点的位置与应用窗口中文件的位置发生重叠,且该起点和终点位于不同窗口应用中时,从该第三候选指令组中获取指示对相应应用窗口进行文件传输的指令,作为目标指令。When the position of the starting point in the track overlaps with the position of the file in the application window, and the starting point and the ending point are located in different window applications, the instruction instructing the file transfer to the corresponding application window is obtained from the third candidate instruction group, as target instruction.
本实施例中,对于同时显示有多个应用窗口的前台界面,当手指在起点停顿后再滑动时,若停顿处为为应用窗口边界线所在的位置,可以启动窗口调整功能,若停顿处为应用窗口中某个文件所在的位置,且滑动起点和终点位于不同应用窗口中时,可以启动文件传输功能。In this embodiment, for a foreground interface that displays multiple application windows at the same time, when the finger pauses at the starting point and then slides, if the paused place is where the boundary line of the application window is located, the window adjustment function can be activated. When a file is located in the application window, and the start and end points of the swipe are in different application windows, the file transfer function can be activated.
104、根据该目标指令对该电子设备进行相应控制。104. Perform corresponding control on the electronic device according to the target instruction.
例如,当该目标指令用于指示对前台应用进行切换时,上述步骤104具体可以包括:For example, when the target instruction is used to instruct to switch the foreground application, the
确定该电子设备中运行的后台应用、以及该后台应用的启动时间;Determine the background application running in the electronic device and the start time of the background application;
根据该启动时间从该后台应用中确定目标应用;Determine the target application from the background application according to the startup time;
将前台应用切换至该目标应用。Switch the foreground application to the target application.
本实施例中,可以按启动时间对后台应用从左到右,或者从上到下进行排序,当电子设备沿某个方向(比如左方或上方)滑动时,可以将启动时间在前台应用之前的后台应用作为目标应用,沿反方向滑动时,可以将启动时间在前台应用之后的后台应用作为目标应用。In this embodiment, the background applications can be sorted from left to right or from top to bottom according to the startup time. When the electronic device slides in a certain direction (such as left or up), the startup time can be placed before the foreground application. When swiping in the opposite direction, the background application whose startup time is after the foreground application can be used as the target application.
例如,当该目标指令用于指示对相应应用窗口进行文件传输时,上述步骤104具体可以包括:For example, when the target instruction is used to instruct file transfer to the corresponding application window, the
将该起点对应的文件传输至该终点对应的应用窗口内。The file corresponding to the starting point is transferred to the application window corresponding to the ending point.
本实施例中,可以根据起点和终点对应的不同应用,实现两个应用间的数据传输。In this embodiment, data transmission between the two applications may be implemented according to different applications corresponding to the start point and the end point.
例如,当该目标指令用于指示对相应应用窗口进行大小调整时,上述步骤104具体可以包括:For example, when the target instruction is used to instruct the corresponding application window to be resized, the
将该起点对应的边界线拖动至该终点。Drag the boundary line corresponding to the start point to the end point.
本实施例中,当用户手指放置在窗口边界线上时,可以拖动边界线沿着轨迹移动,从而实现对应用窗口大小和位置的调整操作。In this embodiment, when the user's finger is placed on the boundary line of the window, the boundary line can be dragged to move along the track, so as to realize the adjustment operation on the size and position of the application window.
需要说明的是,上述第一预设方向、第二预设方向、第三预设方向和第四预设方向可以是同一方向,也可以是不同方向,该第一预设距离、第二预设距离和第三预设距离可以是同一距离,也可以是不同距离,具体可以根据用户需求而定。It should be noted that the above-mentioned first preset direction, second preset direction, third preset direction and fourth preset direction may be the same direction or different directions. The set distance and the third preset distance may be the same distance or different distances, which may be determined according to user requirements.
由上述可知,本实施例提供的设备控制方法,应用于包括屏幕的电子设备,通过获取至少两个手指在该屏幕上同向滑动的轨迹、以及该轨迹中每个轨迹点的触摸时长,并根据该触摸时长从多个候选指令组中确定目标指令组,之后根据该轨迹从该目标指令组中确定目标指令,并根据该目标指令对该电子设备进行相应控制,从而能通过多指滑动的方式启动各种设备功能,无需进入相关操作界面,方法简单,灵活性高,也无需借助实体按键,用户体验感好。It can be seen from the above that the device control method provided in this embodiment is applied to an electronic device including a screen. By acquiring the trajectory of at least two fingers sliding in the same direction on the screen and the touch duration of each trajectory point in the trajectory, and According to the touch duration, a target instruction group is determined from a plurality of candidate instruction groups, and then a target instruction is determined from the target instruction group according to the trajectory, and the electronic device is controlled accordingly according to the target instruction, so that the multi-finger sliding can be performed. The method starts various device functions without entering the relevant operation interface, the method is simple, the flexibility is high, and there is no need to use physical buttons, and the user experience is good.
在本实施例中,将从设备控制装置的角度进行描述,具体将以该设备控制装置集成在包括屏幕的电子设备中为例进行详细说明。In this embodiment, description will be made from the perspective of a device control apparatus, and will be described in detail by taking an example that the device control apparatus is integrated into an electronic device including a screen.
请参见图3,一种设备控制方法,具体流程可以如下:Please refer to Figure 3, a device control method, the specific process can be as follows:
201.电子设备获取至少两个手指在该屏幕上同向滑动的轨迹、以及该轨迹中每个轨迹点的触摸时长,该轨迹点包括起点和终点。201. The electronic device acquires a trajectory of at least two fingers sliding in the same direction on the screen, and a touch duration of each trajectory point in the trajectory, where the trajectory point includes a start point and an end point.
譬如,在电子设备的屏幕处于感应状态(也即屏幕处于解锁状态)时,若用户想启动某种功能,可以使双指或多指在屏幕上同向滑动,电子设备可以在滑动过程中获取对应的轨迹和轨迹点的触摸时长。For example, when the screen of the electronic device is in the sensing state (that is, the screen is in the unlocked state), if the user wants to activate a certain function, he can slide two or more fingers on the screen in the same direction, and the electronic device can obtain the information during the sliding process. The touch duration of the corresponding track and track point.
202.电子设备判断该起点的触摸时长是否不小于预设时长,若是,则执行下述步骤203,若否,则执行下述步骤204。202. The electronic device determines whether the touch duration of the starting point is not less than the preset duration, and if so, executes the following step 203, and if not, executes the following step 204.
譬如,该预设时长可以是人为设定的3秒或4秒等。在手指滑动过程中,可以根据滑动情况和运行应用情况确定需要选取哪种类型的指令,该滑动情况涉及起始点的触摸时间和滑动方向等,该滑动的方向大致可以包括上下滑动、左右滑动、旋转等,具体可以参见图4。For example, the preset time period may be 3 seconds or 4 seconds, etc. which are manually set. In the process of finger sliding, which type of instruction needs to be selected can be determined according to the sliding situation and the running application situation. The sliding situation involves the touch time of the starting point and the sliding direction, etc. Rotation, etc., see Figure 4 for details.
203.电子设备检测前台界面中是否显示有多个应用窗口,若是,则获取第三候选指令组作为目标指令组,该第三候选指令组中包括用于指示对相应应用窗口进行处理的指令,并执行下述步骤205-206,若否,则当该终点的触摸时长小于预设时长时,获取第一候选指令组作为目标指令组,该第一候选指令组中包括用于指示控制该电子设备进行参数调整的指令,并执行下述步骤207-208。203. The electronic device detects whether there are multiple application windows displayed in the foreground interface, and if so, obtains the third candidate instruction group as the target instruction group, and the third candidate instruction group includes an instruction for indicating that the corresponding application window is processed, And execute the following steps 205-206, if not, when the touch duration of the end point is less than the preset duration, obtain the first candidate instruction group as the target instruction group, and the first candidate instruction group includes instructions for controlling the electronic device. The device performs parameter adjustment instructions, and executes the following steps 207-208.
譬如,当手指在起点停顿后才滑动时,可以选取第一候选指令组或第三候选指令组,比如,当前台界面是应用的分屏界面时,可以选取第三候选指令组,当前台界面不是应用的分屏界面时,可以选取第一候选指令组,不同候选指令组对应不同类型的指令。For example, when the finger stops at the starting point and then slides, the first candidate command group or the third candidate command group can be selected. For example, when the current interface is a split-screen interface of an application, the third candidate command group can be selected, and the current interface interface can be selected as the third candidate command group. When it is not the split-screen interface of the application, the first candidate instruction group may be selected, and different candidate instruction groups correspond to different types of instructions.
205.当该轨迹中起点的位置与应用窗口中边界线的位置发生重叠时,电子设备从该第三候选指令组中获取指示对相应应用窗口进行大小调整的指令,作为目标指令。205. When the position of the starting point in the track overlaps with the position of the boundary line in the application window, the electronic device obtains an instruction instructing to adjust the size of the corresponding application window from the third candidate instruction group as a target instruction.
206.当该轨迹中起点的位置与应用窗口中文件的位置发生重叠,且该起点和终点位于不同窗口应用中时,电子设备从该第三候选指令组中获取指示对相应应用窗口进行文件传输的指令,作为目标指令。206. When the position of the starting point in the track overlaps with the position of the file in the application window, and the starting point and the ending point are located in different window applications, the electronic device obtains an instruction from the third candidate instruction group to transfer the file to the corresponding application window. command as the target command.
譬如,请参见图5,当前台界面分成了两个应用窗口A和B时,若在滑动初期,用户手指停在了应用窗口A的边界线上(也即图中实线所示手指),则可以拖动该边界线进行移动,以对应用窗口A的大小进行调整,若用户手指停在了应用窗口A中的某个文件上(也即图中虚线所示手指指向的PDF文件),则可以实现该文件的跨应用传输。For example, referring to Fig. 5, when the foreground interface is divided into two application windows A and B, if the user's finger stops on the boundary line of application window A at the initial stage of sliding (that is, the finger shown by the solid line in the figure), Then you can drag the boundary line to move to adjust the size of the application window A. If the user's finger stops on a file in the application window A (that is, the PDF file pointed to by the finger indicated by the dotted line in the figure), Then the cross-application transfer of the file can be realized.
207.当该轨迹指示沿第一预设方向滑动,且该滑动的距离不小于第一预设距离时,电子设备从该第一候选指令组中获取指示增大音量值和/或亮度值的指令,作为目标指令。207. When the track indicates sliding along the first preset direction, and the distance of the sliding is not less than the first preset distance, the electronic device obtains the instruction to increase the volume value and/or the brightness value from the first candidate instruction group. instruction, as the target instruction.
208.当该轨迹指示沿与该第一预设方向相反的方向滑动,且该滑动的距离不小于第一预设距离时,电子设备从该第一候选指令组中获取指示减小音量值和/或亮度值的指令,作为目标指令。208. When the trajectory instruction slides in the opposite direction to the first preset direction, and the sliding distance is not less than the first preset distance, the electronic device obtains the instruction to reduce the volume value and the / or the command of the brightness value, as the target command.
譬如,该第一预设方向可以是下滑或上滑,该第一预设距离可以根据显示屏的长度而定,比如,当用户手指停顿后下滑(或上滑)指定距离时,可以将音量或亮度调大,当用户手指停顿后上滑(或下滑)指定距离时,可以将音量或亮度调小。For example, the first preset direction may be sliding down or sliding up, and the first preset distance may be determined according to the length of the display screen. Or turn up the brightness. When the user's finger pauses and slides up (or slides down) a specified distance, the volume or brightness can be turned down.
204.当该终点的触摸时长小于预设时长时,电子设备获取第二候选指令组作为目标指令组,该第二候选指令组中包括用于指示控制该电子设备进行状态切换的指令,并执行下述步骤209。204. When the touch duration of the end point is less than the preset duration, the electronic device obtains a second candidate instruction group as a target instruction group, and the second candidate instruction group includes an instruction for instructing the electronic device to perform state switching, and executes the instruction. Step 209 is described below.
209.电子设备根据该轨迹从第二候选指令组中确定目标指令。209. The electronic device determines a target instruction from the second candidate instruction group according to the trajectory.
例如,请参见图6,上述步骤209具体可以包括:For example, referring to FIG. 6 , the foregoing step 209 may specifically include:
电子设备判断该轨迹是否满足第一预设条件,该第一预设条件为沿第二预设方向滑动,且该滑动的距离不小于第二预设距离;The electronic device determines whether the trajectory satisfies a first preset condition, where the first preset condition is sliding along a second preset direction, and the sliding distance is not less than the second preset distance;
若否,则可以返回执行上述步骤201;If not, you can return to the above step 201;
若是,则当该终点的触摸时长不小于预设时长时,从该第二候选指令组中获取指示对清理模式进行状态切换的指令,作为目标指令,该清理模式包括清理状态和非清理状态;或者,If so, when the touch duration of the end point is not less than the preset duration, obtain from the second candidate instruction group an instruction instructing to perform state switching on the cleaning mode, as the target command, and the cleaning mode includes a cleaning state and a non-cleaning state; or,
当该终点的触摸时长小于预设时长时,从该第二候选指令组中获取指示对锁屏模式、通知模式、声音模式和/或屏幕旋转模式进行状态切换的指令,作为目标指令,该锁屏模式包括锁定状态和解锁状态,该通知模式包括允许通知状态和禁止通知状态,该声音模式包括静音状态和响铃状态,该屏幕旋转模式包括禁止旋转状态和允许旋转状态。When the touch duration of the end point is less than the preset duration, obtain an instruction from the second candidate instruction group that instructs the state switching of the lock screen mode, notification mode, sound mode and/or screen rotation mode, as the target instruction, the lock screen mode The screen mode includes a locked state and an unlocked state, the notification mode includes a notification enabled state and a notification prohibited state, the sound mode includes a silent state and a ringing state, and the screen rotation mode includes a rotation prohibited state and a rotation enabled state.
譬如,该第二预设条件、第二预设距离可以和第一预设条件、第一预设距离一样,也可以不一样,比如,当用户手指下滑指定距离后停顿时,可以进行内存清理,当用户手指下滑指定距离时,可以进行锁屏,或者对通知模式中的允许通知状态和禁止通知状态(也即勿扰状态)进行切换,或者对声音模式中的静音状态和响铃状态进行切换,或者对屏幕旋转模式中的禁止旋转状态和允许旋转状态进行切换。For example, the second preset condition and the second preset distance can be the same as the first preset condition and the first preset distance, or they can be different. For example, when the user's finger slides down a specified distance and pauses, memory cleaning can be performed. , when the user's finger slides down a specified distance, the screen can be locked, or the notification mode can be switched between the notification allowed state and the notification prohibited state (that is, the do not disturb state), or the mute state and the ringing state in the sound mode can be switched. Switch, or switch between the prohibited rotation state and the permitted rotation state in the screen rotation mode.
例如,请参见图7,上述步骤209具体可以包括:For example, referring to FIG. 7 , the foregoing step 209 may specifically include:
电子设备判断该轨迹是否指示沿曲线滑动,且前台显示界面不属于预设应用;The electronic device determines whether the track indicates sliding along the curve, and the foreground display interface does not belong to the preset application;
若否,则可以返回执行上述步骤201;If not, you can return to the above step 201;
若是,则从该第二候选指令组中获取指示对屏幕显示模式进行状态切换的指令,作为目标指令,该屏幕显示模式包括横向显示状态和竖向显示状态。If so, obtain an instruction from the second candidate instruction group to instruct to switch the state of the screen display mode as a target instruction, and the screen display mode includes a horizontal display state and a vertical display state.
譬如,该预设应用可以是图像浏览应用。当用户手指旋转时,若前台显示界面为除图像查看界面的任意界面,可以将屏幕由横屏切换至竖屏,或者将竖屏切换至横屏。For example, the preset application may be an image browsing application. When the user's finger rotates, if the foreground display interface is any interface other than the image viewing interface, the screen can be switched from landscape to portrait, or from portrait to landscape.
例如,请参见图8,上述步骤209具体可以包括:For example, referring to FIG. 8 , the foregoing step 209 may specifically include:
当该终点的触摸时长小于预设时长时,电子设备判断该轨迹是否满足第二预设条件,该第二预设条件为沿第三预设方向滑动,且该滑动的距离不小于第三预设距离;When the touch duration of the end point is less than the preset duration, the electronic device determines whether the trajectory satisfies the second preset condition, and the second preset condition is to slide along the third preset direction, and the sliding distance is not less than the third preset condition. set distance;
若否,则可以返回执行上述步骤201;If not, you can return to the above step 201;
若是,则当前台显示界面为预设界面时,从该第二候选指令组中获取第一指令、第二指令或第三指令作为目标指令,该第一指令用于指示关闭前台显示界面,该第二指令用于指示对前台显示界面进行分屏操作,该第三指令用于指示将前台显示界面切换至通知预览界面。If so, when the foreground display interface is the default interface, the first command, the second command or the third command is obtained from the second candidate command group as the target command, and the first command is used to instruct to close the foreground display interface. The second instruction is used for instructing to perform a split screen operation on the foreground display interface, and the third instruction is used for instructing to switch the foreground display interface to the notification preview interface.
譬如,该第三预设条件、第三预设距离可以和第一预设条件、第一预设距离一样,也可以不一样,比如,当用户手指下滑指定距离时,若该预设界面是应用界面,可以对该应用进行关闭,或者将该应用界面切换至通知中心,若该预设界面为支持分屏的应用界面,可以对该应用进行分屏。For example, the third preset condition and the third preset distance may be the same as or different from the first preset condition and the first preset distance. For example, when the user's finger slides down a specified distance, if the preset interface is For the application interface, the application can be closed, or the application interface can be switched to the notification center. If the preset interface is an application interface that supports split-screen, the application can be split-screen.
例如,请参见图9,上述步骤209具体可以包括:For example, referring to FIG. 9 , the foregoing step 209 may specifically include:
当该终点的触摸时长小于预设时长时,判断该轨迹是否沿第四预设方向滑动,且前台显示界面为应用界面;When the touch duration of the end point is less than the preset duration, determine whether the track slides in the fourth preset direction, and the foreground display interface is the application interface;
若是,则根据触摸时长和该轨迹的总长度计算滑动速度;If so, calculate the sliding speed according to the touch duration and the total length of the track;
当该滑动速度不小于预设速度时,从该第二候选指令组中获取指示对前台应用进行切换的指令,作为目标指令。When the sliding speed is not less than the preset speed, an instruction instructing to switch the foreground application is obtained from the second candidate instruction group as a target instruction.
譬如,该第四预设方向可以是左滑或右滑,当手指以一定速度左滑或右滑时,可以将前台应用切换至其他应用。For example, the fourth preset direction may be left swipe or right swipe, and when the finger swipes left or right at a certain speed, the foreground application can be switched to another application.
210.电子设备根据该目标指令对该电子设备进行相应控制。210. The electronic device performs corresponding control on the electronic device according to the target instruction.
譬如,当需要对前台应用进行切换时,可以根据启动时间将其切换至前一启动应用,或者后一启动应用,或者指定应用。当需要对窗口文件进行传输时,可以根据起点和终点所对应的不同应用窗口,将文件在这两个应用窗口中进行传输。当需要对应用窗口进行大小调整时,可以将边界线从起点位置拖动至终点位置。For example, when the foreground application needs to be switched, it can be switched to the previous startup application, the latter startup application, or a specified application according to the startup time. When the window file needs to be transferred, the file can be transferred in the two application windows according to different application windows corresponding to the start point and the end point. When the application window needs to be resized, the boundary line can be dragged from the start point to the end point.
根据上述实施例所描述的方法,本实施例将从设备控制装置的角度进一步进行描述,该设备控制装置具体可以作为独立的实体来实现,也可以集成在电子设备,比如终端中来实现,该终端可以包括手机、平板电脑等。According to the methods described in the foregoing embodiments, this embodiment will be further described from the perspective of a device control device. The device control device may be specifically implemented as an independent entity or integrated in an electronic device, such as a terminal. The terminal may include a mobile phone, a tablet computer, and the like.
请参阅图10,图10具体描述了本申请实施例提供的设备控制装置,应用于电子设备,该设备控制装置可以包括:获取模块10、第一确定模块20、第二确定模块30和控制模块40,其中:Please refer to FIG. 10 . FIG. 10 specifically describes the device control apparatus provided by the embodiment of the present application, which is applied to electronic equipment. The device control apparatus may include: an
(1)获取模块10(1)
获取模块10,用于获取至少两个手指在该屏幕上同向滑动的轨迹、以及该轨迹中每个轨迹点的触摸时长。The acquiring
本实施例中,当电子设备处于正常使用状态(也即处于解锁状态)时,可以实时检测手指在屏幕上的滑动信息,该滑动信息包括滑动点位置和对应触摸时刻,并根据该滑动信息生成对应滑动轨迹,该滑动轨迹一般指从起点到终点之间形成的规则或不规则线段,比如直线段、折线段、曲线段等。该同向滑动是指沿同一方向滑动,通常,多个手指同向滑动时形成的滑动轨迹为多条形状相同的线段。In this embodiment, when the electronic device is in a normal use state (that is, in an unlocked state), the sliding information of the finger on the screen can be detected in real time. The sliding information includes the position of the sliding point and the corresponding touch moment, and is generated according to the sliding information. Corresponding to the sliding track, the sliding track generally refers to a regular or irregular line segment formed between the starting point and the ending point, such as a straight line segment, a polyline segment, a curved line segment, and the like. The co-directional sliding refers to sliding in the same direction. Generally, the sliding trajectory formed when multiple fingers slide in the same direction is a plurality of line segments with the same shape.
(2)第一确定模块20(2) The
第一确定模块20,用于根据该触摸时长从多个候选指令组中确定目标指令组。The
例如,该轨迹点包括起点和终点,该候选指令组可以包括第一候选指令组和第二候选指令组,请参见图11,该第一确定模块20包括:For example, the trajectory point includes a start point and an end point, and the candidate instruction group may include a first candidate instruction group and a second candidate instruction group, see FIG. 11 , the
判断子模块21,用于判断该起点的触摸时长是否不小于预设时长;Judging
第一获取子模块22,用于若是,则当该终点的触摸时长小于预设时长时,获取第一候选指令组作为目标指令组,该第一候选指令组中包括用于指示控制该电子设备进行参数调整的指令;The
第二获取子模块23,用于若否,则当该终点的触摸时长小于预设时长时,获取第二候选指令组作为目标指令组,该第二候选指令组中包括用于指示控制该电子设备进行状态切换的指令。The
本实施例中,该预设时长可以人为设定,比如3秒或4秒,其略长于正常结束动作所需的时间,用于体现出一个停顿状态。当某个轨迹点的触摸时长大于或等于该预设时长时,代表用户手指在此处有停顿,而不同的停顿方式可以对应启动不同类型的应用功能,在手指滑动的时候,电子设备可以实时检测每个轨迹点的停顿情况,比如用户手指在起点处就开始停顿时,可以先初步确定出一个小范围的指令组,比如确定出属于参数调整类型或者状态切换类型的一系列指令,该参数可以包括亮度或音量等。In this embodiment, the preset time period can be set manually, for example, 3 seconds or 4 seconds, which is slightly longer than the time required to end the action normally, and is used to reflect a pause state. When the touch duration of a track point is greater than or equal to the preset duration, it means that the user's finger pauses here, and different pause methods can correspond to start different types of application functions. When the finger slides, the electronic device can real-time Detect the pause situation of each track point. For example, when the user's finger starts to pause at the starting point, a small range of command groups can be initially determined, such as a series of commands belonging to the parameter adjustment type or state switching type. The parameter Can include brightness or volume, etc.
在另一实施方式中,该候选指令组还可以包括第三候选指令组,该第一确定模块还包括第三获取子模块24,用于:In another embodiment, the candidate instruction group may further include a third candidate instruction group, and the first determining module further includes a third obtaining sub-module 24 for:
在该判断子模块判断该起点的触摸时长是否不小于预设时长之后,当该起点的触摸时长不小于预设时长时,检测前台界面中是否显示有多个应用窗口;After the judging submodule judges whether the touch duration of the starting point is not less than the preset duration, when the touch duration of the starting point is not less than the preset duration, it is detected whether there are multiple application windows displayed in the foreground interface;
若是,则获取第三候选指令组作为目标指令组,该第三候选指令组中包括用于指示对相应应用窗口进行处理的指令;If so, acquire a third candidate instruction group as the target instruction group, and the third candidate instruction group includes an instruction for instructing the corresponding application window to be processed;
若否,则当该终点的触摸时长小于预设时长时,触发该第二获取子模块执行获取第一候选指令组作为目标指令组的操作。If not, when the touch duration of the end point is less than the preset duration, trigger the second acquisition sub-module to perform the operation of acquiring the first candidate instruction group as the target instruction group.
本实施例中,该对相应应用窗口进行处理可以包括对相应应用窗口大小进行调整、以及向相应应用窗口传输文件等。当手指在起点停顿后才开始滑动时,若当前界面是分屏界面(也即同时显示了至少两个应用窗口),可以认为用户想对应用窗口进行处理,若当前界面不是分屏界面,可以认为用户想对设备参数进行调整。In this embodiment, the processing of the corresponding application window may include adjusting the size of the corresponding application window, transferring files to the corresponding application window, and the like. When the finger starts to slide after pausing at the starting point, if the current interface is a split-screen interface (that is, at least two application windows are displayed at the same time), it can be considered that the user wants to process the application windows. If the current interface is not a split-screen interface, you can It is assumed that the user wants to make adjustments to the device parameters.
(3)第二确定模块30(3) The
第二确定模块30,用于根据该轨迹从该目标指令组中确定目标指令。The
本实施例中,第二确定模块30可以借助触摸时长和轨迹这两个维度来确定需要启动电子设备中的何种功能,比如,轨迹点的不同停顿情况、不同滑动方向和滑动距离等都可以对应不同的指令。In this embodiment, the
(A)当该目标指令组为第一候选指令组时(A) When the target instruction group is the first candidate instruction group
在一实施方式中,上述第二确定模块30具体可以用于:In one embodiment, the above-mentioned second determining
当该轨迹指示沿第一预设方向滑动,且该滑动的距离不小于第一预设距离时,从该第一候选指令组中获取指示增大音量值和/或亮度值的指令,作为目标指令;When the track indicates sliding along the first preset direction, and the sliding distance is not less than the first preset distance, acquire an instruction to increase the volume value and/or the brightness value from the first candidate instruction group as a target instruction;
当该轨迹指示沿与该第一预设方向相反的方向滑动,且该滑动的距离不小于第一预设距离时,从该第一候选指令组中获取指示减小音量值和/或亮度值的指令,作为目标指令。When the track indicates sliding in a direction opposite to the first preset direction, and the sliding distance is not less than the first preset distance, obtain the instruction to decrease the volume value and/or the brightness value from the first candidate instruction group command as the target command.
本实施例中,该第一预设方向和第一预设距离均可以人为设定,比如该第一预设方向可以是上方或下方等,该第一预设距离可以是某个固定值,或者根据屏幕长或宽而定,比如是屏幕长或宽的三分之二。当手指停顿后沿第一预设方向滑动第一预设距离时,可以获取将音量或亮度等数值参数调大的指令,当手指停顿后沿第一预设方向的反方向滑动第一预设距离时,可以获取将音量或亮度等数值参数调小的指令。In this embodiment, both the first preset direction and the first preset distance can be set manually, for example, the first preset direction can be up or down, and the first preset distance can be a certain fixed value, Or according to the length or width of the screen, such as two-thirds of the length or width of the screen. When the finger pauses and slides the first preset distance in the first preset direction, an instruction to increase numerical parameters such as volume or brightness can be obtained, and when the finger pauses, slide the first preset distance in the opposite direction of the first preset direction When the distance is set, you can obtain the command to reduce the numerical parameters such as volume or brightness.
(B)当该目标指令组为第二候选指令组时(B) When the target instruction group is the second candidate instruction group
在一实施方式中,上述第二确定模块30具体可以用于:In one embodiment, the above-mentioned second determining
判断该轨迹是否满足第一预设条件,该第一预设条件为沿第二预设方向滑动,且该滑动的距离不小于第二预设距离;Judging whether the trajectory satisfies a first preset condition, the first preset condition is sliding along a second preset direction, and the sliding distance is not less than the second preset distance;
若是,则当该终点的触摸时长不小于预设时长时,从该第二候选指令组中获取指示对清理模式进行状态切换的指令,作为目标指令,该清理模式包括清理状态和非清理状态;或者,If so, when the touch duration of the end point is not less than the preset duration, obtain from the second candidate instruction group an instruction instructing to perform state switching on the cleaning mode, as the target command, and the cleaning mode includes a cleaning state and a non-cleaning state; or,
当该终点的触摸时长小于预设时长时,从该第二候选指令组中获取指示对锁屏模式、通知模式、声音模式和/或屏幕旋转模式进行状态切换的指令,作为目标指令,该锁屏模式包括锁定状态和解锁状态,该通知模式包括允许通知状态和禁止通知状态,该声音模式包括静音状态和响铃状态,该屏幕旋转模式包括禁止旋转状态和允许旋转状态。When the touch duration of the end point is less than the preset duration, obtain an instruction from the second candidate instruction group that instructs the state switching of the lock screen mode, notification mode, sound mode and/or screen rotation mode, as the target instruction, the lock screen mode The screen mode includes a locked state and an unlocked state, the notification mode includes a notification enabled state and a notification prohibited state, the sound mode includes a silent state and a ringing state, and the screen rotation mode includes a rotation prohibited state and a rotation enabled state.
本实施例中,该第二预设方向和第二预设距离可以人为设定。当手指沿第二预设方向滑动第二预设距离停顿时,第二确定模块30可以对启动内存清理操作,或者停止正在执行的内存清理操作。当手指只是沿第二预设方向滑动第二预设距离时,第二确定模块30可以对其他模式进行状态切换,比如对锁屏模式、通知模式、声音模式、屏幕旋转模式等中的一种或多种进行状态切换,且在切换过程中,需要先确定电子设备当前处于哪一种状态,将其切换成另一种状态即可。In this embodiment, the second preset direction and the second preset distance can be set manually. When the finger slides along the second preset direction for the second preset distance and pauses, the
在另一实施方式中,上述第二确定模块30具体可以用于:In another embodiment, the above-mentioned second determining
判断该轨迹是否指示沿曲线滑动,且前台显示界面不属于预设应用;Determine whether the track indicates sliding along the curve, and the foreground display interface does not belong to the preset application;
若是,则从该第二候选指令组中获取指示对屏幕显示模式进行状态切换的指令,作为目标指令,该屏幕显示模式包括横向显示状态和竖向显示状态。If so, obtain an instruction from the second candidate instruction group to instruct to switch the state of the screen display mode as a target instruction, and the screen display mode includes a horizontal display state and a vertical display state.
本实施例中,该预设应用可以是和图像查看有关的应用,当该轨迹包括多个滑动方向,且这些滑动方向的变化规律一定时,可以认为其是沿曲线滑动,通常,手指只有在旋转的情况下会形成曲线滑动的轨迹。具体的,在图像查看界面,用户手指旋转可以启动图像旋转功能,在非图像查看界面,用户手指旋转可以启动屏幕旋转功能。In this embodiment, the preset application may be an application related to image viewing. When the track includes multiple sliding directions, and the changing rules of these sliding directions are constant, it can be considered as sliding along a curve. In the case of rotation, a curved sliding trajectory will be formed. Specifically, in the image viewing interface, the user's finger rotation can activate the image rotation function, and in the non-image viewing interface, the user's finger rotation can activate the screen rotation function.
在另一实施方式中,当该终点的触摸时长还小于预设时长时,上述第二确定模块30具体可以用于:In another embodiment, when the touch duration of the end point is still less than the preset duration, the above-mentioned
判断该轨迹是否满足第二预设条件,该第二预设条件为沿第三预设方向滑动,且该滑动的距离不小于第三预设距离;Judging whether the trajectory satisfies a second preset condition, the second preset condition is sliding along a third preset direction, and the sliding distance is not less than the third preset distance;
若是,则当前台显示界面为预设界面时,从该第二候选指令组中获取第一指令、第二指令或第三指令作为目标指令,该第一指令用于指示关闭前台显示界面,该第二指令用于指示对前台显示界面进行分屏操作,该第三指令用于指示将前台显示界面切换至通知预览界面。If so, when the foreground display interface is the default interface, the first command, the second command or the third command is obtained from the second candidate command group as the target command, and the first command is used to instruct to close the foreground display interface. The second instruction is used for instructing to perform a split screen operation on the foreground display interface, and the third instruction is used for instructing to switch the foreground display interface to the notification preview interface.
本实施例中,该第三预设方向和第三预设距离可以人为设定。该预设界面可以是不包括屏幕主界面的任意应用界面,或者是分屏应用的界面。该通知预览界面主要用于显示各种未接来电、未看消息等提醒通知。该分屏操作主要指将屏幕分成至少两个显示窗口,不同显示窗口之间彼此独立操作。In this embodiment, the third preset direction and the third preset distance can be set manually. The preset interface may be any application interface that does not include the main screen interface, or an interface of a split-screen application. The notification preview interface is mainly used to display various reminder notifications such as missed calls and unseen messages. The split screen operation mainly refers to dividing the screen into at least two display windows, and the different display windows operate independently of each other.
当手指沿第三预设方向滑动了第三预设距离时,若前台显示界面为不包括屏幕主界面的任意应用界面时,可以实现关闭前台应用(相当于切换至关闭状态)或显示通知预览界面,其中,将前台显示界面切换至通知预览界面的切换方式可以是下滑(下滑),或者左滑(右滑),若前台显示界面为支持分屏的应用界面时,可以实现分屏操作(相当于切换至分屏状态),并且在分屏过程中,用户可以自行选择需要在屏幕上同时显示的其他单个或多个应用,也可以由系统默认选择。When the finger slides the third preset distance along the third preset direction, if the foreground display interface is any application interface that does not include the main screen interface, the foreground application can be closed (equivalent to switching to the closed state) or the notification preview can be displayed interface, in which the switching method of switching the foreground display interface to the notification preview interface can be slide down (slide down) or left slide (right slide). It is equivalent to switching to the split-screen state), and during the split-screen process, the user can select other single or multiple applications that need to be displayed on the screen at the same time, or can be selected by the system by default.
在另一实施方式中,当该终点的触摸时长还小于预设时长时,上述第二确定模块30具体可以用于:In another embodiment, when the touch duration of the end point is still less than the preset duration, the above-mentioned
判断该轨迹是否沿第四预设方向滑动,且前台显示界面为应用界面;Determine whether the track slides along the fourth preset direction, and the foreground display interface is an application interface;
若是,则根据触摸时长和该轨迹的总长度计算滑动速度;If so, calculate the sliding speed according to the touch duration and the total length of the track;
当该滑动速度不小于预设速度时,从该第二候选指令组中获取指示对前台应用进行切换的指令,作为目标指令。When the sliding speed is not less than the preset speed, an instruction instructing to switch the foreground application is obtained from the second candidate instruction group as a target instruction.
本实施例中,确定模块30可以将每个轨迹点的触摸时长进行累计,得到总时长,然后计算轨迹总长度和总时长之间的比值,得到滑动速度。该预设速度主要指在屏幕上扫动的速度,该第四预设方向和预设速度均可以人为设,该第四预设方向可以为左方、右方,或者上方、下方。对前台应用进行切换可以包括将前台应用与后台应用进行切换,或者将前台应用与指定应用进行切换。In this embodiment, the
(C)当该目标指令组为第三候选指令组时(C) When the target instruction group is the third candidate instruction group
在一实施方式中,上述第二确定模块30具体可以用于:In one embodiment, the above-mentioned second determining
当该轨迹中起点的位置与应用窗口中边界线的位置发生重叠时,从该第三候选指令组中获取指示对相应应用窗口进行大小调整的指令,作为目标指令;或者,When the position of the starting point in the track overlaps with the position of the boundary line in the application window, obtain an instruction instructing to adjust the size of the corresponding application window from the third candidate instruction group as the target instruction; or,
当该轨迹中起点的位置与应用窗口中文件的位置发生重叠,且该起点和终点位于不同窗口应用中时,从该第三候选指令组中获取指示对相应应用窗口进行文件传输的指令,作为目标指令。When the position of the starting point in the track overlaps with the position of the file in the application window, and the starting point and the ending point are located in different window applications, the instruction instructing the file transfer to the corresponding application window is obtained from the third candidate instruction group, as target instruction.
本实施例中,对于同时显示有多个应用窗口的前台界面,当手指在起点停顿后再滑动时,若停顿处为为应用窗口边界线所在的位置,第二确定模块30可以启动窗口调整功能,若停顿处为应用窗口中某个文件所在的位置,且滑动起点和终点位于不同应用窗口中时,第二确定模块30可以启动文件传输功能。In this embodiment, for a foreground interface that displays multiple application windows at the same time, when the finger pauses at the starting point and then slides, if the paused place is where the boundary line of the application window is located, the second determining
(4)控制模块40(4)
控制模块40,用于根据该目标指令对该电子设备进行相应控制。The
例如,当该目标指令用于指示对前台应用进行切换时,上述控制模块40具体可以用于:For example, when the target instruction is used to instruct to switch the foreground application, the above-mentioned
确定该电子设备中运行的后台应用、以及该后台应用的启动时间;Determine the background application running in the electronic device and the start time of the background application;
根据该启动时间从该后台应用中确定目标应用;Determine the target application from the background application according to the startup time;
将前台应用切换至该目标应用。Switch the foreground application to the target application.
本实施例中,控制模块40可以按启动时间对后台应用从左到右,或者从上到下进行排序,当电子设备沿某个方向(比如左方或上方)滑动时,可以将启动时间在前台应用之前的后台应用作为目标应用,沿反方向滑动时,可以将启动时间在前台应用之后的后台应用作为目标应用。In this embodiment, the
例如,当该目标指令用于指示对相应应用窗口进行文件传输时,上述控制模块40具体可以用于:For example, when the target instruction is used to instruct file transfer to the corresponding application window, the above-mentioned
将该起点对应的文件传输至该终点对应的应用窗口内。The file corresponding to the starting point is transferred to the application window corresponding to the ending point.
本实施例中,控制模块40可以根据起点和终点对应的不同应用,实现两个应用间的数据传输。In this embodiment, the
例如,当该目标指令用于指示对相应应用窗口进行大小调整时,上述控制模块40具体可以用于:For example, when the target instruction is used to instruct to adjust the size of the corresponding application window, the above-mentioned
将该起点对应的边界线拖动至该终点。Drag the boundary line corresponding to the start point to the end point.
本实施例中,当用户手指放置在窗口边界线上时,控制模块40可以拖动边界线沿着轨迹移动,从而实现对应用窗口大小和位置的调整操作。In this embodiment, when the user's finger is placed on the boundary line of the window, the
需要说明的是,上述第一预设方向、第二预设方向、第三预设方向和第四预设方向可以是同一方向,也可以是不同方向,该第一预设距离、第二预设距离和第三预设距离可以是同一距离,也可以是不同距离,具体可以根据用户需求而定。It should be noted that the above-mentioned first preset direction, second preset direction, third preset direction and fourth preset direction may be the same direction or different directions. The set distance and the third preset distance may be the same distance or different distances, which may be determined according to user requirements.
具体实施时,以上各个单元可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单元的具体实施可参见前面的方法实施例,在此不再赘述。During specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.
由上述可知,本实施例提供的设备控制装置,应用于电子设备,通过获取模块10获取至少两个手指在该屏幕上同向滑动的轨迹、以及该轨迹中每个轨迹点的触摸时长,第一确定模块20根据该触摸时长从多个候选指令组中确定目标指令组,之后第二确定模块30根据该轨迹从该目标指令组中确定目标指令,控制模块40根据该目标指令对该电子设备进行相应控制,从而能通过多指滑动的方式启动各种设备功能,无需进入相关操作界面,方法简单,灵活性高,也无需借助实体按键,用户体验感好。It can be seen from the above that the device control device provided in this embodiment is applied to electronic devices, and the
另外,本申请实施例还提供了一种电子设备,该电子设备可以是智能手机、平板电脑等设备。如图12所示,电子设备100可以包括控制电路,该控制电路可以包括存储和处理电路110。该存储和处理电路110可以是存储器,例如硬盘驱动存储器,非易失性存储器(例如闪存或用于形成固态驱动器的其它电子可编程只读存储器等),易失性存储器(例如静态或动态随机存取存储器等)等,本申请实施例不作限制。存储和处理电路110中的处理电路可以用于控制电子设备100的运转。该处理电路可以基于一个或多个微处理器,微控制器,数字信号处理器,基带处理器,功率管理单元,音频编解码器芯片,专用集成电路,显示驱动器集成电路等来实现。In addition, an embodiment of the present application further provides an electronic device, where the electronic device may be a device such as a smart phone, a tablet computer, or the like. As shown in FIG. 12 ,
存储和处理电路110可用于运行电子设备100中的软件,例如互联网浏览应用程序,互联网协议语音(Voice over Internet Protocol,VOIP)电话呼叫应用程序,电子邮件应用程序,媒体播放应用程序,操作系统功能等。这些软件可以用于执行一些控制操作,例如,基于照相机的图像采集,基于环境光传感器的环境光测量,基于接近传感器的接近传感器测量,基于诸如发光二极管的状态指示灯等状态指示器实现的信息显示功能,基于触摸传感器的触摸事件检测,与在多个(例如分层的)显示器上显示信息相关联的功能,与执行无线通信功能相关联的操作,与收集和产生音频信号相关联的操作,与收集和处理按钮按压事件数据相关联的控制操作,以及电子设备100中的其它功能等,本申请实施例不作限制。Storage and
电子设备100还可以包括输入-输出电路120。输入-输出电路120可用于使电子设备100实现数据的输入和输出,即允许电子设备100从外部设备接收数据和也允许电子设备100将数据从电子设备100输出至外部设备。输入-输出电路120可以进一步包括传感器121。传感器121可以包括环境光传感器,基于光和电容的接近传感器,触摸传感器(例如,基于光触摸传感器和/或电容式触摸传感器,其中,触摸传感器可以是触控显示屏的一部分,也可以作为一个触摸传感器结构独立使用),加速度传感器,和其它传感器等。
输入-输出电路120还可以包括一个或多个显示器122。显示器122可以包括液晶显示器,有机发光二极管显示器,电子墨水显示器,等离子显示器,使用其它显示技术的显示器中一种或者几种的组合。显示器122可以包括触摸传感器阵列(即,显示器122可以是触控显示屏)。触摸传感器可以是由透明的触摸传感器电极(例如氧化铟锡(ITO)电极)阵列形成的电容式触摸传感器,或者可以是使用其它触摸技术形成的触摸传感器,例如音波触控,压敏触摸,电阻触摸,光学触摸等,本申请实施例不作限制。Input-
电子设备100还可以包括音频组件123。音频组件123可以用于为电子设备100提供音频输入和输出功能。电子设备100中的音频组件123可以包括扬声器,麦克风,蜂鸣器,音调发生器以及其它用于产生和检测声音的组件。The
通信电路124可以用于为电子设备100提供与外部设备通信的能力。通信电路124可以包括模拟和数字输入-输出接口电路,和基于射频信号和/或光信号的无线通信电路。通信电路124中的无线通信电路可以包括射频收发器电路、功率放大器电路、低噪声放大器、开关、滤波器和天线。举例来说,通信电路124中的无线通信电路可以包括用于通过发射和接收近场耦合电磁信号来支持近场通信(Near Field Communication,NFC)的电路。例如,通信电路124可以包括近场通信天线和近场通信收发器。通信电路124还可以包括蜂窝电话收发器和天线,无线局域网收发器电路和天线等。
电子设备100还可以进一步包括电池,电力管理电路和其它输入-输出单元125。输入-输出单元125可以包括按钮,操纵杆,点击轮,滚动轮,触摸板,小键盘,键盘,照相机,发光二极管和其它状态指示器等。The
用户可以通过输入-输出电路120输入命令来控制电子设备100的操作,并且可以使用输入-输出电路120的输出数据以实现接收来自电子设备100的状态信息和其它输出。A user may input commands through the input-
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。为此,本发明实施例提供一种存储介质,其中存储有多条指令,该指令能够被处理器进行加载,以执行本发明实施例所提供的任一种设备控制方法中的步骤。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or completed by instructions that control relevant hardware, and the instructions can be stored in a computer-readable storage medium, and loaded and executed by the processor. To this end, the embodiments of the present invention provide a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute steps in any device control method provided by the embodiments of the present invention.
其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。Wherein, the storage medium may include: a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.
由于该存储介质中所存储的指令,可以执行本发明实施例所提供的任一种设备控制方法中的步骤,因此,可以实现本发明实施例所提供的任一种设备控制方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Because the instructions stored in the storage medium can execute the steps in any device control method provided by the embodiment of the present invention, it is possible to implement any device control method provided by the embodiment of the present invention. For the beneficial effects, refer to the foregoing embodiments for details, which will not be repeated here.
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of the above operations, reference may be made to the foregoing embodiments, and details are not described herein again.
综上该,虽然本申请已以优选实施例揭露如上,但上述优选实施例并非用以限制本申请,本领域的普通技术人员,在不脱离本申请的精神和范围内,均可作各种更动与润饰,因此本申请的保护范围以权利要求界定的范围为准。To sum up, although the present application has been disclosed above with preferred embodiments, the above preferred embodiments are not intended to limit the present application. Those of ordinary skill in the art can make various Therefore, the scope of protection of the present application is subject to the scope defined by the claims.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810682445.0A CN108984092B (en) | 2018-06-27 | 2018-06-27 | Device control method, device, storage medium and electronic device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810682445.0A CN108984092B (en) | 2018-06-27 | 2018-06-27 | Device control method, device, storage medium and electronic device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108984092A CN108984092A (en) | 2018-12-11 |
| CN108984092B true CN108984092B (en) | 2020-12-22 |
Family
ID=64538704
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810682445.0A Expired - Fee Related CN108984092B (en) | 2018-06-27 | 2018-06-27 | Device control method, device, storage medium and electronic device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108984092B (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109656416B (en) * | 2018-12-28 | 2022-04-15 | 腾讯音乐娱乐科技(深圳)有限公司 | Control method and device based on multimedia data and related equipment |
| CN109635546B (en) * | 2018-12-30 | 2021-10-22 | 联想(北京)有限公司 | Processing method and device |
| CN110083266B (en) * | 2019-04-02 | 2022-05-13 | 上海墨案智能科技有限公司 | Information processing method, device and storage medium |
| CN110209330B (en) * | 2019-05-28 | 2022-03-08 | Oppo广东移动通信有限公司 | Control method of progress bar, terminal and computer storage medium |
| CN114458123B (en) * | 2022-04-12 | 2022-06-14 | 国汽智控(北京)科技有限公司 | Vehicle window control method, device and equipment |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102541390A (en) * | 2010-12-07 | 2012-07-04 | 联想(北京)有限公司 | Electronic equipment and method for movably displaying object |
| CN104714740A (en) * | 2013-12-11 | 2015-06-17 | 联想(北京)有限公司 | Preset parameter adjusting method, adjusting device and electronic equipment |
| CN105867766A (en) * | 2016-03-28 | 2016-08-17 | 乐视控股(北京)有限公司 | Sound volume adjustment method and terminal |
| CN105872211A (en) * | 2016-03-28 | 2016-08-17 | 乐视控股(北京)有限公司 | Screen brightness adjusting method and terminal |
| CN107168621A (en) * | 2017-04-28 | 2017-09-15 | 努比亚技术有限公司 | A kind of view control method by sliding and mobile terminal |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090271731A1 (en) * | 2008-04-27 | 2009-10-29 | Htc Corporation | Electronic device and user interface display method thereof |
| CN102073437A (en) * | 2009-11-23 | 2011-05-25 | 英业达股份有限公司 | Control method of touch electronic device |
| US20130307788A1 (en) * | 2012-05-16 | 2013-11-21 | Motorola Solutions, Inc. | Device and method for automated use of force sensing touch panels |
| KR20140073398A (en) * | 2012-12-06 | 2014-06-16 | 삼성전자주식회사 | Display apparatus and method for controlling thereof |
| CN104298455B (en) * | 2013-07-15 | 2018-04-27 | 联想(北京)有限公司 | A kind of shortcut command generation method and electronic equipment |
| CN104731507B (en) * | 2015-03-31 | 2016-11-23 | 努比亚技术有限公司 | The application changing method of mobile terminal and mobile terminal |
| CN105430168A (en) * | 2015-10-30 | 2016-03-23 | 努比亚技术有限公司 | Mobile terminal and file sharing method |
| CN112596664B (en) * | 2016-08-19 | 2024-10-22 | 创新先进技术有限公司 | Data communication processing method and device, electronic equipment and touch display equipment |
-
2018
- 2018-06-27 CN CN201810682445.0A patent/CN108984092B/en not_active Expired - Fee Related
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102541390A (en) * | 2010-12-07 | 2012-07-04 | 联想(北京)有限公司 | Electronic equipment and method for movably displaying object |
| CN104714740A (en) * | 2013-12-11 | 2015-06-17 | 联想(北京)有限公司 | Preset parameter adjusting method, adjusting device and electronic equipment |
| CN105867766A (en) * | 2016-03-28 | 2016-08-17 | 乐视控股(北京)有限公司 | Sound volume adjustment method and terminal |
| CN105872211A (en) * | 2016-03-28 | 2016-08-17 | 乐视控股(北京)有限公司 | Screen brightness adjusting method and terminal |
| CN107168621A (en) * | 2017-04-28 | 2017-09-15 | 努比亚技术有限公司 | A kind of view control method by sliding and mobile terminal |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108984092A (en) | 2018-12-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20240078006A1 (en) | Unlocking a device by performing gestures on an unlock image | |
| CN108984092B (en) | Device control method, device, storage medium and electronic device | |
| US11054988B2 (en) | Graphical user interface display method and electronic device | |
| CN109375890B (en) | A screen display method and multi-screen electronic device | |
| US8519963B2 (en) | Portable multifunction device, method, and graphical user interface for interpreting a finger gesture on a touch screen display | |
| CN105518605B (en) | A touch operation method and device for a terminal | |
| US9323444B2 (en) | Device, method, and storage medium storing program | |
| CN109710139B (en) | Page processing method, device, terminal and storage medium | |
| US20180150211A1 (en) | Method for adjusting photographing focal length of mobile terminal by using touchpad, and mobile terminal | |
| WO2007076211A1 (en) | Indication of progress towards satisfaction of a user input condition | |
| CN108509105B (en) | Application program management method and terminal | |
| WO2018082269A1 (en) | Menu display method and terminal | |
| CN108733298B (en) | Touch information processing method and device, storage medium and electronic equipment | |
| CN110007835B (en) | Object management method and mobile terminal | |
| CA2846482A1 (en) | Method of providing of user interface in portable terminal and apparatus thereof | |
| CN109407929B (en) | Desktop icon sorting method and terminal | |
| CN110351424A (en) | Gesture interaction method and terminal | |
| CN110531904A (en) | A kind of background task display methods and terminal | |
| CN110795189A (en) | Application starting method and electronic equipment | |
| US11681410B2 (en) | Icon management method and terminal device | |
| WO2021036603A1 (en) | Application program control method and terminal | |
| CN108170329B (en) | Display control method and terminal equipment | |
| CN108958841A (en) | A kind of setting method and mobile terminal of desktop pendant | |
| CN109040351A (en) | Camera control method, device, mobile terminal and storage medium | |
| CN108073405A (en) | A kind of application program discharging method and mobile terminal |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20201222 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |