技术领域technical field
本公开涉及终端技术领域,尤其涉及一种终端的操作方法、装置及计算机可读存储介质。The present disclosure relates to the technical field of terminals, and in particular, to a terminal operating method, device, and computer-readable storage medium.
背景技术Background technique
随着终端技术的快速发展,诸如手机、平板电脑之类的终端的功能日益强大,已成为人们生活和娱乐中不可或缺的部分。例如,人们不仅可以使用终端上网、通信等,还可以使用终端播放视频、玩游戏。在实际应用场景中,当人们使用终端播放视频或玩游戏时,一般习惯将屏幕切换至横屏显示的模式,或者由终端自动切换至横屏显示的模式。With the rapid development of terminal technology, terminals such as mobile phones and tablet computers have increasingly powerful functions and have become an indispensable part of people's life and entertainment. For example, people can not only use terminals to surf the Internet and communicate, but also use terminals to play videos and games. In practical application scenarios, when people use a terminal to play videos or games, they are generally accustomed to switching the screen to a landscape display mode, or the terminal automatically switches to a landscape display mode.
发明内容Contents of the invention
为克服相关技术中存在的问题,本公开提供一种终端的操作方法、装置及计算机可读存储介质。In order to overcome the problems existing in related technologies, the present disclosure provides a terminal operation method, device and computer-readable storage medium.
第一方面,提供一种终端的操作方法,所述方法包括:In a first aspect, a method for operating a terminal is provided, and the method includes:
在处于横屏显示的模式下,判断是否检测到退出按键的触发操作,所述退出按键用于退出当前的显示内容;In the mode of horizontal screen display, it is judged whether the trigger operation of the exit button is detected, and the exit button is used to exit the current display content;
当检测到所述退出按键的触发操作时,将所述退出按键对应的操作置为无效。When the trigger operation of the exit key is detected, the operation corresponding to the exit key is invalidated.
可选地,所述将所述退出按键对应的操作置为无效之前,还包括:Optionally, before disabling the operation corresponding to the exit button, further includes:
判断退出按键屏蔽模式当前是否已开启,所述退出按键屏蔽模式是指对所述退出按键对应的操作进行屏蔽的模式;Judging whether the exit button shielding mode is currently enabled, the exit button shielding mode refers to a mode for shielding the operation corresponding to the exit button;
当所述退出按键屏蔽模式当前已开启时,执行将所述退出按键对应的操作置为无效的操作。When the exit button shielding mode is currently enabled, perform an operation of invalidating the operation corresponding to the exit button.
可选地,所述判断退出按键屏蔽模式当前是否已开启之前,还包括:Optionally, before the judging whether the exit button shielding mode is currently enabled, it also includes:
当通过配置的陀螺仪或前置摄像头检测到处于横屏显示的模式时,开启所述退出按键屏蔽模式。When the configured gyroscope or front-facing camera detects that the mode is in a landscape display mode, the exit button shielding mode is enabled.
可选地,所述开启所述退出按键屏蔽模式之后,还包括:Optionally, after enabling the exit button shielding mode, it also includes:
当基于指定按键检测到指定操作时,关闭所述退出按键屏蔽模式,所述指定按键包括指定虚拟按键和指定物理按键;或者When a specified operation is detected based on a specified key, the exit key shielding mode is turned off, and the specified key includes a specified virtual key and a specified physical key; or
当基于配置的至少两个温度传感器检测到温度触发信号时,关闭所述退出按键屏蔽模式;或者When at least two temperature sensors based on the configuration detect a temperature trigger signal, closing the exit button shielding mode; or
当基于配置的至少两个光电传感器检测到光电触发信号时,关闭所述退出按键屏蔽模式。When the photoelectric trigger signal is detected by at least two photosensors based on the configuration, the exit button shielding mode is turned off.
第二方面,提供一种终端的操作装置,所述装置包括:In a second aspect, an operating device for a terminal is provided, and the device includes:
第一判断模块,用于在处于横屏显示的模式下,判断是否检测到退出按键的触发操作,所述退出按键用于退出当前的显示内容;The first judging module is used to judge whether the trigger operation of the exit button is detected in the horizontal screen display mode, and the exit button is used to exit the current display content;
设置模块,用于当所述第一判断模块检测到所述退出按键的触发操作时,将所述退出按键对应的操作置为无效。A setting module, configured to invalidate the operation corresponding to the exit button when the first judging module detects the trigger operation of the exit button.
可选地,所述装置还包括:Optionally, the device also includes:
第二判断模块,用于判断退出按键屏蔽模式当前是否已开启,所述退出按键屏蔽模式是指对所述退出按键对应的操作进行屏蔽的模式;The second judging module is used to judge whether the exit button shielding mode is currently turned on, and the exit button shielding mode refers to a mode for shielding the operation corresponding to the exit button;
执行模块,用于当所述退出按键屏蔽模式当前已开启时,执行将所述退出按键对应的操作置为无效的操作。An executing module, configured to execute an operation of invalidating the operation corresponding to the exit button when the exit button shielding mode is currently enabled.
可选地,所述装置还包括:Optionally, the device also includes:
开启模块,用于当通过配置的陀螺仪或前置摄像头检测到处于横屏显示的模式时,开启所述退出按键屏蔽模式。The opening module is used to open the exit button shielding mode when the configured gyroscope or the front camera detects that the mode is in the horizontal screen display mode.
可选地,所述装置还包括关闭模块,所述关闭模块用于:Optionally, the device also includes a closing module, the closing module is used for:
当基于指定按键检测到指定操作时,关闭所述退出按键屏蔽模式,所述指定按键包括指定虚拟按键和指定物理按键;或者When a specified operation is detected based on a specified key, the exit key shielding mode is turned off, and the specified key includes a specified virtual key and a specified physical key; or
当基于配置的至少两个温度传感器检测到温度触发信号时,关闭所述退出按键屏蔽模式;或者When at least two temperature sensors based on the configuration detect a temperature trigger signal, closing the exit button shielding mode; or
当基于配置的至少两个光电传感器检测到光电触发信号时,关闭所述退出按键屏蔽模式。When the photoelectric trigger signal is detected by at least two photosensors based on the configuration, the exit button shielding mode is turned off.
第三方面,提供一种终端的操作装置,所述装置包括:In a third aspect, an operating device for a terminal is provided, and the device includes:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:Wherein, the processor is configured as:
在处于横屏显示的模式下,判断是否检测到退出按键的触发操作,所述退出按键用于退出当前的显示内容;In the mode of horizontal screen display, it is judged whether the trigger operation of the exit button is detected, and the exit button is used to exit the current display content;
当检测到所述退出按键的触发操作时,将所述退出按键对应的操作置为无效。When the trigger operation of the exit key is detected, the operation corresponding to the exit key is invalidated.
第四方面,提供一种计算机可读存储介质,所述计算机可读存储介质上存储有指令,所述指令被处理器执行时实现以下步骤:In a fourth aspect, a computer-readable storage medium is provided, where instructions are stored on the computer-readable storage medium, and when the instructions are executed by a processor, the following steps are implemented:
在处于横屏显示的模式下,判断是否检测到退出按键的触发操作,所述退出按键用于退出当前的显示内容;In the mode of horizontal screen display, it is judged whether the trigger operation of the exit button is detected, and the exit button is used to exit the current display content;
当检测到所述退出按键的触发操作时,将所述退出按键对应的操作置为无效。When the trigger operation of the exit key is detected, the operation corresponding to the exit key is invalidated.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
在处于横屏显示的模式下,判断是否检测到用于退出当前的显示内容的退出按键的触发操作。当检测到该退出按键的触发操作时,为了避免中断当前的显示内容的显示,将该退出按键对应的操作置为无效。如此,即使在横屏显示的模式下意外触发到了退出按键,也不会影响当前的显示内容,提高了终端的操作效率。In the mode of horizontal screen display, it is judged whether a trigger operation of the exit button for exiting the current display content is detected. When the trigger operation of the exit button is detected, in order to avoid interrupting the display of the current display content, the operation corresponding to the exit button is invalidated. In this way, even if the exit button is accidentally triggered in the horizontal screen display mode, the current display content will not be affected, which improves the operating efficiency of the terminal.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是根据一示例性实施例示出的一种终端的操作方法的流程图。Fig. 1 is a flow chart showing a method for operating a terminal according to an exemplary embodiment.
图2是根据另一示例性实施例示出的一种终端的操作方法的流程图。Fig. 2 is a flow chart showing a method for operating a terminal according to another exemplary embodiment.
图3A是根据一示例性实施例示出的一种终端的操作装置的框图。Fig. 3A is a block diagram showing a device for operating a terminal according to an exemplary embodiment.
图3B是根据一示例性实施例示出的另一种终端的操作装置的框图。Fig. 3B is a block diagram showing another device for operating a terminal according to an exemplary embodiment.
图3C是根据一示例性实施例示出的另一种终端的操作装置的框图。Fig. 3C is a block diagram showing another device for operating a terminal according to an exemplary embodiment.
图3D是根据一示例性实施例示出的另一种终端的操作装置的框图。Fig. 3D is a block diagram showing another device for operating a terminal according to an exemplary embodiment.
图4是根据一示例性实施例示出的一种终端的操作装置400的框图。Fig. 4 is a block diagram showing an operating device 400 for a terminal according to an exemplary embodiment.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
在对本公开实施例进行详细介绍之前,先对本公开实施例涉及的应用场景进行简单介绍:Before introducing the embodiments of the present disclosure in detail, first briefly introduce the application scenarios involved in the embodiments of the present disclosure:
当用户使用终端观看视频或者玩游戏时,一般都偏向于将终端切换至横屏显示的模式,或者,一些终端当检测到播放视频或游戏的操作时也会自动切换至横屏显示的模式,以便于用户观看或操作。在终端切换至横屏显示的模式后,可能由于误操作导致用户触发了退出按键,例如,该退出按键可以为终端配置的物理HOME按键或虚拟HOME按键(即主菜单按键),或者,该退出按键也可以为返回按键等。此时,容易中断终端当前的显示内容,降低了终端的操作效率,并影响了用户体验效果。为此,本公开实施例提供了一种终端的操作方法,该方法可以由终端执行,其具体实现过程请参见如下图1或图2所示实施例。在具体实现中,该终端的边框侧可以配置有温度传感器和/或光电传感器,终端通过该温度传感器和/或光电传感器可以检测到用户的滑动等操作。其中,该终端可以为诸如手机、平板电脑之类的设备,本公开实施例对此不做限定。When users use the terminal to watch videos or play games, they generally prefer to switch the terminal to the horizontal screen display mode, or some terminals will automatically switch to the horizontal screen display mode when detecting the operation of playing video or games. For the convenience of users to view or operate. After the terminal switches to the horizontal screen display mode, the user may trigger the exit button due to misoperation. For example, the exit button can be a physical HOME button or a virtual HOME button (i.e. the main menu button) The key may also be a return key or the like. At this time, it is easy to interrupt the current display content of the terminal, which reduces the operation efficiency of the terminal and affects the user experience effect. To this end, an embodiment of the present disclosure provides a method for operating a terminal, which can be executed by the terminal. For the specific implementation process, please refer to the embodiment shown in FIG. 1 or FIG. 2 below. In a specific implementation, a temperature sensor and/or a photoelectric sensor may be configured on the frame side of the terminal, and the terminal may detect operations such as a user's sliding through the temperature sensor and/or photoelectric sensor. Wherein, the terminal may be a device such as a mobile phone or a tablet computer, which is not limited in this embodiment of the present disclosure.
接下来,将分别通过如下图1和图2实施例对该终端的操作方法进行详细介绍。Next, the operation method of the terminal will be introduced in detail through the embodiments shown in FIG. 1 and FIG. 2 respectively.
图1是根据一示例性实施例示出的一种终端的操作方法的流程图,如图1所示,该终端的操作方法用于终端中,包括以下步骤。Fig. 1 is a flowchart showing a method for operating a terminal according to an exemplary embodiment. As shown in Fig. 1 , the method for operating a terminal is used in a terminal and includes the following steps.
在步骤101中,在处于横屏显示的模式下,判断是否检测到退出按键的触发操作,该退出按键用于退出当前的显示内容。In step 101, in the horizontal screen display mode, it is judged whether a trigger operation of an exit key is detected, and the exit key is used to exit the current display content.
在步骤102中,当检测到该退出按键的触发操作时,将该退出按键对应的操作置为无效。In step 102, when the trigger operation of the exit key is detected, the operation corresponding to the exit key is invalidated.
在处于横屏显示的模式下,判断是否检测到用于退出当前的显示内容的退出按键的触发操作。当检测到该退出按键的触发操作时,为了避免中断当前的显示内容的显示,将该退出按键对应的操作置为无效。如此,即使在横屏显示的模式下意外触发到了退出按键,也不会影响当前的显示内容,提高了终端的操作效率。In the mode of horizontal screen display, it is judged whether a trigger operation of the exit button for exiting the current display content is detected. When the trigger operation of the exit button is detected, in order to avoid interrupting the display of the current display content, the operation corresponding to the exit button is invalidated. In this way, even if the exit button is accidentally triggered in the horizontal screen display mode, the current display content will not be affected, which improves the operating efficiency of the terminal.
可选地,将该退出按键对应的操作置为无效之前,还包括:Optionally, before disabling the operation corresponding to the exit button, further includes:
判断退出按键屏蔽模式当前是否已开启,该退出按键屏蔽模式是指对该退出按键对应的操作进行屏蔽的模式;Judging whether the exit button shielding mode is currently enabled, the exit button shielding mode refers to the mode of shielding the operation corresponding to the exit button;
当该退出按键屏蔽模式当前已开启时,执行将该退出按键对应的操作置为无效的操作。When the exit button masking mode is currently enabled, perform an operation to invalidate the operation corresponding to the exit button.
可选地,判断退出按键屏蔽模式当前是否已开启之前,还包括:Optionally, before judging whether the exit button masking mode is currently enabled, it may also include:
当通过配置的陀螺仪或前置摄像头检测到处于横屏显示的模式时,开启该退出按键屏蔽模式。When the configured gyroscope or front-facing camera detects that the display is in landscape mode, enable this button to exit the button shielding mode.
可选地,开启该退出按键屏蔽模式之后,还包括:Optionally, after enabling the exit button shielding mode, it also includes:
当基于指定按键检测到指定操作时,关闭该退出按键屏蔽模式,该指定按键包括指定虚拟按键和指定物理按键;或者When a specified operation is detected based on a specified key, the specified key includes a specified virtual key and a specified physical key, and the exit key shielding mode is turned off; or
当基于配置的至少两个温度传感器检测到温度触发信号时,关闭该退出按键屏蔽模式;或者When at least two temperature sensors based on the configuration detect a temperature trigger signal, turn off the exit button shielding mode; or
当基于配置的至少两个光电传感器检测到光电触发信号时,关闭该退出按键屏蔽模式。When the photoelectric trigger signal is detected by at least two photoelectric sensors based on the configuration, the button is turned off to exit the button shielding mode.
上述所有可选技术方案,均可按照任意结合形成本公开的可选实施例,本公开实施例对此不再一一赘述。All the above optional technical solutions may be combined in any way to form optional embodiments of the present disclosure, which will not be described in detail in the embodiments of the present disclosure.
图2是根据另一示例性实施例示出的一种终端的操作方法的流程图,如图2所示,该终端的操作方法用于终端中,包括以下步骤。Fig. 2 is a flow chart showing a method for operating a terminal according to another exemplary embodiment. As shown in Fig. 2 , the method for operating a terminal is used in a terminal and includes the following steps.
在步骤201中,在处于横屏显示的模式下,判断是否检测到退出按键的触发操作,该退出按键用于退出当前的显示内容。In step 201, in the horizontal screen display mode, it is judged whether a trigger operation of an exit key is detected, and the exit key is used to exit the current display content.
通常情况下,当检测到退出按键的触发操作时,终端会终止当前的显示内容,例如,假设该退出按键为HOME按键,则当检测到该HOME按键的触发操作时,终端会返回主界面,并中断了当前的显示内容。在本公开实施例中,在处于横屏显示的模式下,说明用户可能正使用终端观看视频或玩游戏,终端判断是否检测到退出按键的触发操作,以根据实际需求对终端进行操作,以避免影响用户体验。Normally, when the trigger operation of the exit button is detected, the terminal will terminate the current display content. For example, if the exit button is the HOME button, when the trigger operation of the HOME button is detected, the terminal will return to the main interface. And interrupt the current display content. In the embodiment of the present disclosure, in the horizontal screen display mode, it means that the user may be using the terminal to watch videos or play games. affect user experience.
需要说明的是,在实际实现中,终端可以通过如下几种实现方式来判断终端是否处于横屏显示的模式:It should be noted that in actual implementation, the terminal can determine whether the terminal is in the horizontal screen display mode through the following implementation methods:
第一种方式:通过终端中配置的陀螺仪判断是否处于横屏显示的模式。The first method: use the gyroscope configured in the terminal to judge whether it is in the horizontal screen display mode.
在具体实现中,当终端从竖屏显示的模式转为横屏显示的模式时,可以通过陀螺仪检测终端旋转的方向和旋转的角度,之后,终端根据旋转的方向和旋转的角度,确定是否处于横屏显示的模式。例如,当检测到终端沿着逆时针方向旋转90度时,可以确定终端处于横屏显示的模式。In a specific implementation, when the terminal changes from the vertical screen display mode to the horizontal screen display mode, the gyroscope can detect the direction and angle of rotation of the terminal, and then, according to the direction of rotation and the angle of rotation, the terminal determines whether to In landscape mode. For example, when it is detected that the terminal is rotated counterclockwise by 90 degrees, it may be determined that the terminal is in a landscape display mode.
第二种方式:通过前置摄像头,采用人脸识别技术判断是否处于横屏显示的模式。The second method: through the front camera, use face recognition technology to judge whether it is in the horizontal screen display mode.
在具体实现中,终端可以通过前置摄像头对用户的人脸进行拍摄,得到人脸图像,之后,通过人脸识别技术识别人脸图像中双眼的位置,根据该双眼的位置计算双眼在终端的屏幕中的坐标值。In a specific implementation, the terminal can take a picture of the user's face through the front camera to obtain a face image, and then use face recognition technology to identify the positions of the eyes in the face image, and calculate the position of the eyes in the terminal based on the positions of the eyes. The coordinate value in the screen.
当该双眼之间的连线与屏幕的Y轴垂直时,说明该双眼在该屏幕上呈竖直方向,因此可以确定当前处于竖屏显示的模式,当该双眼之间的连线与屏幕的X轴垂直时,说明该双眼在该屏幕上呈水平方向,因此可以确定当前处于横屏显示的模式。其中,X轴为终端的宽度方向,Y轴为终端的长度方向。When the line between the two eyes is perpendicular to the Y-axis of the screen, it means that the eyes are in a vertical direction on the screen, so it can be determined that the current display mode is vertical. When the line between the eyes and the screen When the X-axis is vertical, it means that the eyes are in the horizontal direction on the screen, so it can be determined that the current display mode is in landscape orientation. Wherein, the X axis is the width direction of the terminal, and the Y axis is the length direction of the terminal.
需要说明的是,上述通过人脸识别技术识别人脸图像中双眼的位置可以参见相关技术,例如,可以采用几何特征的人脸识别技术识别人脸图像中双眼的位置等,本公开实施例对此不作限定。It should be noted that the above recognition of the positions of the eyes in the face image through the face recognition technology can refer to related technologies. For example, the face recognition technology of geometric features can be used to identify the positions of the eyes in the face image. This is not limited.
需要说明的是,上述提供的几种判断终端是否处于横屏显示的模式的方式仅是示例性的,在另一实施例中,终端还可以采用其它方式来判断是否处于横屏显示的模式,例如,还可以通过重力传感器等判断是否处于横屏显示的模式,本公开实施例对此不做限定。It should be noted that the methods provided above for judging whether the terminal is in the landscape display mode are only exemplary. In another embodiment, the terminal may also use other methods to judge whether it is in the landscape display mode. For example, it may also be determined by a gravity sensor or the like whether it is in a landscape display mode, which is not limited in this embodiment of the present disclosure.
在步骤202中,当检测到该退出按键的触发操作时,判断退出按键屏蔽模式当前是否已开启。In step 202, when the trigger operation of the exit key is detected, it is determined whether the exit key shielding mode is currently enabled.
其中,该退出按键屏蔽模式是指对该退出按键对应的操作进行屏蔽的模式。即在具体实现中,对该退出按键对应的操作进行屏蔽的具体实现可以包括不响应基于该退出按键检测到的触发操作等,本公开实施例对此不做限定。Wherein, the exit key shielding mode refers to a mode for shielding the operation corresponding to the exit key. That is, in a specific implementation, the specific implementation of shielding the operation corresponding to the exit key may include not responding to a trigger operation detected based on the exit key, which is not limited in this embodiment of the present disclosure.
在具体实现中,为了提供终端的操作的准确性,可以预先设置退出按键屏蔽模式的开启和关闭。当该退出按键屏蔽模式开启时,说明在一定的条件下需要对该退出按键对应的操作进行屏蔽,当该退出按键屏蔽模式关闭时,说明在上述条件下不需要对该退出按键对应的操作进行屏蔽,具体请参见如下步骤203所述。In a specific implementation, in order to improve the accuracy of the operation of the terminal, enabling and disabling of the exit button shielding mode may be preset. When the exit button shielding mode is enabled, it means that the operation corresponding to the exit button needs to be shielded under certain conditions; when the exit button shielding mode is turned off, it means that the operation corresponding to the exit button does not need to be performed under the above conditions Shielding, please refer to the description in step 203 below for details.
进一步地,判断退出按键屏蔽模式当前是否已开启之前,当通过配置的陀螺仪或前置摄像头检测到处于横屏显示的模式时,开启该退出按键屏蔽模式。Further, before judging whether the exit button shielding mode is currently enabled, when the configured gyroscope or the front camera detects that it is in a landscape display mode, the exit button shielding mode is turned on.
如前文所述,终端可以预先设置退出按键屏蔽模式的开启。其中,终端可以在通过配置的陀螺仪或前置摄像头检测到处于横屏显示的模式时,自动开启该退出按键屏蔽模式。As mentioned above, the terminal can be preset to enable the exit button shielding mode. Wherein, when the terminal detects that it is in the horizontal screen display mode through the configured gyroscope or the front camera, it can automatically enable the exit button shielding mode.
其中,通过配置的陀螺仪或前置摄像头检测到处于横屏显示的模式的具体实现可以参见上文,这里不再重复赘述。Wherein, the specific implementation of detecting that the mode is in the horizontal screen display through the configured gyroscope or the front camera can be referred to above, and will not be repeated here.
进一步地,为了便于用户恢复使用退出按键,在开启退出按键屏蔽模式后,还可以关闭该退出按键屏蔽模式。其中,关闭退出按键屏蔽模式具体可以包括如下几种可能的实现方式:Further, in order to facilitate the user to resume using the exit button, after the exit button shielding mode is turned on, the exit button shielding mode can also be turned off. Among them, closing the exit button shielding mode may specifically include the following possible implementation methods:
第一种方式:当基于指定按键检测到指定操作时,关闭该退出按键屏蔽模式,该指定按键包括指定虚拟按键和指定物理按键。The first way: when a designated operation is detected based on the designated key, the exit key shielding mode is turned off, and the designated key includes a designated virtual key and a designated physical key.
其中,该指定操作可以包括点击操作、滑动操作等,且该指定操作可以由用户执行,本公开实施例对此不做限定。Wherein, the specified operation may include a click operation, a slide operation, etc., and the specified operation may be performed by a user, which is not limited in this embodiment of the present disclosure.
以该指定按键包括指定虚拟按键为例,若用户希望恢复退出按键的使用,则该用户对该指定虚拟按键执行指定操作。当该终端基于该指定虚拟按键检测到指定操作时,确定检测到关闭屏蔽模式指令,在该种情况下,终端关闭该退出按键屏蔽模式,即恢复退出按键的使用。Taking the designated key including the designated virtual key as an example, if the user wishes to restore the use of the exit key, the user performs a designated operation on the designated virtual key. When the terminal detects a specified operation based on the specified virtual key, it determines that an instruction to close the shielding mode is detected. In this case, the terminal closes the exit key shielding mode, that is, resumes the use of the exit key.
例如,该指定虚拟按键可以为当前页面上的一个操作图标,用户可以点击该操作图标以触发关闭屏蔽模式指令,在该种情况下,终端关闭该退出按键屏蔽模式,即恢复退出按键的使用。For example, the specified virtual key can be an operation icon on the current page, and the user can click on the operation icon to trigger an instruction to close the shielding mode. In this case, the terminal closes the exit key shielding mode, that is, resumes the use of the exit key.
或者,以该指定按键包括指定物理按键为例,在该终端的指定位置可以配置有指定物理按键,该指定物理按键用于关闭上述退出按键屏蔽模式。当终端基于该指定物理按键检测到指定操作时,确定检测到关闭屏蔽模式指令,在该种情况下,终端关闭该退出按键屏蔽模式,即恢复退出按键的使用。Or, taking the specified key as an example including a specified physical key, a specified physical key may be configured at a specified position of the terminal, and the specified physical key is used to close the above-mentioned exit key shielding mode. When the terminal detects a specified operation based on the specified physical key, it determines that an instruction to close the shielding mode is detected. In this case, the terminal closes the exit key shielding mode, that is, resumes the use of the exit key.
在具体实现中,该指定物理按键还可以为当前终端上已有的一个物理按键,在该种情况下,当终端检测到对该指定物理按键执行指定操作的时长达到第一预设时长时,则确定检测到关闭屏蔽模式指令,此时,终端关闭该退出按键屏蔽模式,即恢复退出按键的使用。In a specific implementation, the designated physical key may also be an existing physical key on the current terminal. In this case, when the terminal detects that the time for performing a designated operation on the designated physical key reaches the first preset time length, Then it is determined that the command to close the shielding mode is detected, and at this time, the terminal closes the shielding mode of the exit key, that is, resumes the use of the exit key.
其中,该第一预设时长可以由用户根据实际需求自定义设置,也可以由终端默认设置,本公开实施例对此不做限定。Wherein, the first preset duration can be customized by the user according to actual needs, or can be set by default by the terminal, which is not limited in this embodiment of the present disclosure.
例如,该指定物理按键可以为终端的声音调节键,也即是,当检测到对声音调节键的指定操作达到第一预设时长时,终端关闭该退出按键屏蔽模式。For example, the designated physical key may be a sound adjustment key of the terminal, that is, when it is detected that the designated operation on the sound adjustment key reaches a first preset duration, the terminal closes the exit key shielding mode.
第二种方式:当基于配置的至少两个温度传感器检测到温度触发信号时,关闭该退出按键屏蔽模式。The second way: when at least two temperature sensors based on the configuration detect the temperature trigger signal, turn off the button and exit the button shielding mode.
在实际实现中,终端的单侧边框或者两侧边框上可能配置有至少两个温度传感器,当用户需要关闭退出按键屏蔽模式时,可以在终端配置有温度传感器的边框上进行滑动操作以触发温度触发信号。相应地,终端可以通过温度传感器检测温度触发信号,并根据该温度触发信号,关闭该退出按键屏蔽模式。In actual implementation, at least two temperature sensors may be configured on one side frame or both sides of the terminal. When the user needs to close and exit the button shielding mode, the user can slide on the frame equipped with the temperature sensor to trigger the temperature sensor. trigger signal. Correspondingly, the terminal can detect the temperature trigger signal through the temperature sensor, and according to the temperature trigger signal, close the exit button shielding mode.
例如,若该终端的单侧边框配置有至少两个温度传感器,当用户在配置有该至少两个温度触感器的边框滑动时,终端可以通过该至少两个温度传感器检测到连续的温度触发信号,在该种情况下,确定用户执行了滑动操作,从而确定需要关闭该退出按键屏蔽模式。For example, if the single-side frame of the terminal is equipped with at least two temperature sensors, when the user slides on the frame equipped with the at least two temperature sensors, the terminal can detect continuous temperature trigger signals through the at least two temperature sensors , in this case, it is determined that the user has performed a sliding operation, so that it is determined that the exit button shielding mode needs to be turned off.
再如,若该终端的两侧边框上均配置有至少两个温度传感器,则在一种可能的实现方式中,当终端基于任一单侧边框上配置的至少两个温度传感器检测到连续的温度触发信号时,确定用户执行了滑动操作,从而确定需要关闭该退出按键屏蔽模式。For another example, if at least two temperature sensors are configured on both side frames of the terminal, in a possible implementation, when the terminal detects continuous When the temperature triggers the signal, it is determined that the user has performed a sliding operation, so that it is determined that the exit button shielding mode needs to be turned off.
需要说明的是,当该两侧均设置有至少两个温度传感器时,可以设置开关选项,用户可以根据自身的使用习惯,通过该开关选项来开启任一单侧边框上配置的温度传感器执行检测功能。It should be noted that when there are at least two temperature sensors on both sides, a switch option can be set, and the user can use this switch option to turn on the temperature sensor configured on any single side frame to perform detection according to his own usage habits. Function.
在另一种可能的实现方式中,当终端同时基于两侧配置的至少两个温度传感器检测到连续的温度触发信号时,确定用户执行了滑动操作,从而确定需要关闭该退出按键屏蔽模式。In another possible implementation, when the terminal simultaneously detects continuous temperature trigger signals based on at least two temperature sensors configured on both sides, it is determined that the user has performed a sliding operation, thereby determining that the exit button shielding mode needs to be turned off.
还需要说明的是,这里仅是以终端基于配置的至少两个温度传感器检测温度触发信号,以关闭该退出按键屏蔽模式为例进行说明,在另一实施例中,该终端还可以基于配置的一个温度传感器检测温度触发信号,以关闭该退出按键屏蔽模式。例如,当终端配置有一个温度传感器时,如果终端基于该一个温度传感器检测到温度触发信号的持续时长达到第二预设时长时,则关闭该退出按键屏蔽模式。It should also be noted that here only the terminal detects the temperature trigger signal based on at least two configured temperature sensors, and takes closing the exit button shielding mode as an example for illustration. In another embodiment, the terminal can also be based on the configured A temperature sensor detects the temperature trigger signal to close the exit button shielding mode. For example, when the terminal is equipped with a temperature sensor, if the terminal detects that the duration of the temperature trigger signal based on the temperature sensor reaches the second preset duration, the exit button shielding mode is turned off.
其中,该第二预设时长可以由用户根据实际需求自定义设置,也可以由该终端默认设置,本公开实施例对此不做限定。Wherein, the second preset duration can be customized and set by the user according to actual needs, or can be set by default by the terminal, which is not limited in this embodiment of the present disclosure.
第三种方式:当基于配置的至少两个光电传感器检测到光电触发信号时,关闭该退出按键屏蔽模式。The third way: when at least two photoelectric sensors based on the configuration detect the photoelectric trigger signal, close the button and exit the button shielding mode.
在实际实现中,终端的单侧边框或者两侧边框上可能配置有至少两个光电传感器,当用户需要关闭退出按键屏蔽模式时,可以在终端配置有光电传感器的边框上进行滑动操作以触发光电触发信号。相应地,终端可以通过光电传感器检测光电触发信号,并根据该光电触发信号,关闭该退出按键屏蔽模式。In actual implementation, at least two photoelectric sensors may be configured on one or both side frames of the terminal. When the user needs to close and exit the button shielding mode, the user can perform a sliding operation on the frame of the terminal equipped with a photoelectric sensor to trigger the photoelectric sensor. trigger signal. Correspondingly, the terminal can detect the photoelectric trigger signal through the photoelectric sensor, and according to the photoelectric trigger signal, close the exit button shielding mode.
其中,光电传感器一般包括一个光元件和传感器,其工作原理为当光元件发出的光被反射回来时,如用户触摸时,光就会被反射回来,该传感器接收该光信号,把该光信号转变成电信号,并把该电信号(即光电触发信号)传递给终端的处理器。因此,终端可以根据光电触发信号确定用户执行了滑动操作,从而关闭该退出按键屏蔽模式。Among them, a photoelectric sensor generally includes a light element and a sensor. Its working principle is that when the light emitted by the light element is reflected back, such as when the user touches it, the light will be reflected back. The sensor receives the light signal and converts the light signal It is converted into an electrical signal, and the electrical signal (that is, the photoelectric trigger signal) is transmitted to the terminal processor. Therefore, the terminal can determine according to the photoelectric trigger signal that the user has performed a sliding operation, so as to close the exit button shielding mode.
例如,若该终端的单侧边框上配置有至少两个光电传感器,当用户在配置有该至少两个光电触感器的边框滑动时,终端可以通过该至少两个光电传感器检测到连续的光电触发信号,在该种情况下,确定用户执行了滑动操作,从而确定需要关闭该退出按键屏蔽模式。For example, if at least two photosensors are configured on one side frame of the terminal, when the user slides on the frame equipped with the at least two photosensors, the terminal can detect continuous photoelectric triggers through the at least two photosensors. signal, in this case, it is determined that the user has performed a sliding operation, thereby determining that the exit button masking mode needs to be turned off.
再如,若该终端的两侧边框上均配置有至少两个光电传感器,则在一种可能的实现方式中,当终端基于任一单侧边框上配置的至少两个光电传感器检测到连续的光电触发信号时,确定用户执行了滑动操作,从而确定需要关闭该退出按键屏蔽模式。For another example, if at least two photosensors are configured on both side frames of the terminal, in a possible implementation, when the terminal detects continuous When the photoelectric trigger signal is detected, it is determined that the user has performed a sliding operation, so that it is determined that the exit button shielding mode needs to be turned off.
需要说明的是,当该两侧均设置有至少两个光电传感器时,可以设置开关选项,用户可以根据自身的使用习惯,通过该开关选项来开启任一单侧边框上配置的光电传感器执行检测功能。It should be noted that when at least two photoelectric sensors are provided on both sides, a switch option can be set, and the user can use this switch option to turn on the photoelectric sensor configured on any single side frame to perform detection according to his own usage habits. Function.
在另一种可能的实现方式中,当终端同时基于两侧配置的至少两个光电传感器检测到连续的光电触发信号时,确定用户执行了滑动操作,从而确定需要关闭该退出按键屏蔽模式。In another possible implementation manner, when the terminal simultaneously detects continuous photoelectric trigger signals based on at least two photosensors configured on both sides, it is determined that the user has performed a sliding operation, thereby determining that the exit button shielding mode needs to be turned off.
还需要说明的是,这里仅是以终端基于配置的至少两个光电传感器检测光电触发信号,以关闭该退出按键屏蔽模式为例进行说明,在另一实施例中,该终端还可以基于配置的一个光电传感器检测光电触发信号,以关闭该退出按键屏蔽模式。例如,当终端配置有一个光电传感器时,如果终端基于该一个光电传感器检测到光电触发信号的持续时长达到第三预设时长时,则关闭该退出按键屏蔽模式。It should also be noted that here only the terminal detects the photoelectric trigger signal based on the configuration of at least two photoelectric sensors, and the exit button shielding mode is turned off as an example for illustration. In another embodiment, the terminal can also be based on the configuration. A photoelectric sensor detects the photoelectric trigger signal to close the exit button shielding mode. For example, when the terminal is equipped with a photoelectric sensor, if the duration of the photoelectric trigger signal detected by the photoelectric sensor reaches the third preset duration, the exit button shielding mode is turned off.
其中,该第三预设时长可以由用户根据实际需求自定义设置,也可以由该终端默认设置,本公开实施例对此不做限定。Wherein, the third preset duration may be customized by the user according to actual needs, or may be set by default by the terminal, which is not limited in this embodiment of the present disclosure.
需要说明的是,终端中配置的光电传感器可以呈块状,也可以呈条状,且该至少两个光电传感器中每相邻两个光电传感器之间可以间隔一定的距离,或者,该至少两个光电传感器可以组成光电传感器矩阵,本公开实施例对光电传感器的部署位置和部署形状不做具体限定。It should be noted that the photoelectric sensors configured in the terminal may be in the form of blocks or strips, and there may be a certain distance between every two adjacent photoelectric sensors among the at least two photoelectric sensors, or the at least two photoelectric sensors may be separated by a certain distance. A photoelectric sensor may form a photoelectric sensor matrix, and the embodiment of the present disclosure does not specifically limit the deployment position and deployment shape of the photoelectric sensor.
需要说明的是,上述提供的关闭退出按键屏蔽模式的检测条件仅是示例性的,在另一实施例中,终端还可以根据其他判断条件确定是否关闭该退出按键屏蔽模式,本公开实施例对此不做限定。It should be noted that the detection conditions for disabling the exit button shielding mode provided above are only exemplary. In another embodiment, the terminal may also determine whether to disable the exit button shielding mode according to other judgment conditions. This is not limited.
在步骤203中,当该退出按键屏蔽模式当前已开启时,将该退出按键对应的操作置为无效。In step 203, when the exit button masking mode is currently enabled, the operation corresponding to the exit button is invalidated.
如果该按键屏蔽模式已开启,则终端不响应对该退出按键的触发操作,即将该退出按键对应的操作置为无效。也就是说,如果该按键屏蔽模式已开启,则说明检测到的对退出按键的触发操作可能是用户的误操作,此时,不需要执行与该退出按键对应的操作,因此,为了避免中断当前的显示内容,将该退出按键对应的操作置为无效。If the button shielding mode is turned on, the terminal does not respond to the trigger operation of the exit button, that is, the operation corresponding to the exit button is invalidated. That is to say, if the button shielding mode has been turned on, it means that the detected trigger operation on the exit button may be a misoperation by the user. At this time, there is no need to perform the operation corresponding to the exit button. The displayed content of the exit button will be invalid.
如此,在处于横屏显示的模式下,判断是否检测到用于退出当前的显示内容的退出按键的触发操作,当检测到该退出按键的触发操作时,为了避免中断当前的显示内容的显示,将该退出按键对应的操作置为无效,保证了用户观看视频或体验游戏的连贯性。In this way, in the horizontal screen display mode, it is judged whether the trigger operation of the exit button used to exit the current display content is detected. When the trigger operation of the exit button is detected, in order to avoid interrupting the display of the current display content, The operation corresponding to the exit button is invalidated to ensure the continuity of the user watching the video or experiencing the game.
当然,如果该退出按键屏蔽模式当前未开启,则终端执行与该退出按键对应的操作。也就是说,如果该退出按键屏蔽模式当前未开启,则说明对该退出按键的操作可能不是用户的误操,而是用户希望快速退出当前的显示界面,因此,终端执行与该退出按键对应的操作,例如,当该退出按键为HOME按键时,终端返回主界面。Of course, if the exit button masking mode is not currently enabled, the terminal performs an operation corresponding to the exit button. That is to say, if the exit button shielding mode is not currently enabled, it means that the operation of the exit button may not be a user's misoperation, but the user wants to quickly exit the current display interface. Therefore, the terminal executes the corresponding exit button Operation, for example, when the exit button is the HOME button, the terminal returns to the main interface.
需要说明的是,上述在处于横屏显示的模式下,当检测到该退出按键的触发操作时,判断退出按键屏蔽模式当前是否已开启,并当该退出按键屏蔽模式当前已开启时将该退出按键对应的操作置为无效仅是可选地、示例性的实施方式。在实际实现中,在处于横屏显示的模式下,当检测到该退出按键的触发操作时,终端还可以不判断退出按键屏蔽模式当前是否已开启,而是直接将该退出按键对应的操作置为无效,如此,提高了响应速度。It should be noted that, in the above-mentioned mode of horizontal screen display, when the trigger operation of the exit button is detected, it is judged whether the exit button shielding mode is currently enabled, and when the exit button shielding mode is currently enabled, the exit Disabling the operation corresponding to the key is only an optional and exemplary implementation. In actual implementation, in the horizontal screen display mode, when the trigger operation of the exit button is detected, the terminal may not judge whether the exit button shielding mode is currently enabled, but directly set the operation corresponding to the exit button to For invalidation, this improves responsiveness.
在本公开实施例中,在处于横屏显示的模式下,判断是否检测到用于退出当前的显示内容的退出按键的触发操作。当检测到该退出按键的触发操作时,为了避免中断当前的显示内容的显示,将该退出按键对应的操作置为无效。如此,即使在横屏显示的模式下意外触发到了退出按键,也不会影响当前的显示内容,提高了终端的操作效率。In the embodiment of the present disclosure, in the horizontal screen display mode, it is judged whether a trigger operation of the exit button for exiting the current display content is detected. When the trigger operation of the exit button is detected, in order to avoid interrupting the display of the current display content, the operation corresponding to the exit button is invalidated. In this way, even if the exit button is accidentally triggered in the horizontal screen display mode, the current display content will not be affected, which improves the operating efficiency of the terminal.
图3A是根据一示例性实施例示出的一种终端的操作装置的框图。参照图3A,该装置包括第一判断模块310和设置模块312。Fig. 3A is a block diagram showing a device for operating a terminal according to an exemplary embodiment. Referring to FIG. 3A , the device includes a first judging module 310 and a setting module 312 .
第一判断模块310,用于在处于横屏显示的模式下,判断是否检测到退出按键的触发操作,所述退出按键用于退出当前的显示内容;The first judging module 310 is used to judge whether the trigger operation of the exit button is detected in the horizontal screen display mode, and the exit button is used to exit the current display content;
设置模块312,用于当所述第一判断模块310检测到所述退出按键的触发操作时,将所述退出按键对应的操作置为无效。The setting module 312 is configured to invalidate the operation corresponding to the exit button when the first judging module 310 detects the trigger operation of the exit button.
可选地,请参考图3B,所述装置还包括:Optionally, referring to FIG. 3B, the device further includes:
第二判断模块314,用于判断退出按键屏蔽模式当前是否已开启,所述退出按键屏蔽模式是指对所述退出按键对应的操作进行屏蔽的模式;The second judging module 314 is used to judge whether the exit button shielding mode is currently enabled, and the exit button shielding mode refers to a mode for shielding the operation corresponding to the exit button;
触发模块316,用于当所述退出按键屏蔽模式当前已开启时,触发所述设置模块执行将所述退出按键对应的操作置为无效的操作。The triggering module 316 is configured to trigger the setting module to perform an operation of invalidating the operation corresponding to the exit button when the exit button masking mode is currently enabled.
可选地,请参考图3C,所述装置还包括:Optionally, referring to FIG. 3C, the device further includes:
开启模块318,用于当通过配置的陀螺仪或前置摄像头检测到处于横屏显示的模式时,开启所述退出按键屏蔽模式。The enabling module 318 is configured to activate the exit button shielding mode when the configured gyroscope or the front camera detects that the mode is in a landscape display mode.
可选地,请参考图3D,所述装置还包括关闭模块320,该关闭模块320用于:Optionally, referring to FIG. 3D, the device further includes a closing module 320, which is used for:
当基于指定按键检测到指定操作时,关闭所述退出按键屏蔽模式,所述指定按键包括指定虚拟按键和指定物理按键;或者When a specified operation is detected based on a specified key, the exit key shielding mode is turned off, and the specified key includes a specified virtual key and a specified physical key; or
当基于配置的至少两个温度传感器检测到温度触发信号时,关闭所述退出按键屏蔽模式;或者When at least two temperature sensors based on the configuration detect a temperature trigger signal, closing the exit button shielding mode; or
当基于配置的至少两个光电传感器检测到光电触发信号时,关闭所述退出按键屏蔽模式。When the photoelectric trigger signal is detected by at least two photosensors based on the configuration, the exit button shielding mode is turned off.
在本公开实施例中,在处于横屏显示的模式下,判断是否检测到用于退出当前的显示内容的退出按键的触发操作。当检测到该退出按键的触发操作时,为了避免中断当前的显示内容的显示,将该退出按键对应的操作置为无效。如此,即使在横屏显示的模式下意外触发到了退出按键,也不会影响当前的显示内容,提高了终端的操作效率。In the embodiment of the present disclosure, in the horizontal screen display mode, it is judged whether a trigger operation of the exit button for exiting the current display content is detected. When the trigger operation of the exit button is detected, in order to avoid interrupting the display of the current display content, the operation corresponding to the exit button is invalidated. In this way, even if the exit button is accidentally triggered in the horizontal screen display mode, the current display content will not be affected, which improves the operating efficiency of the terminal.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
图4是根据一示例性实施例示出的一种终端的操作装置400的框图。例如,装置400可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 4 is a block diagram showing an operating device 400 for a terminal according to an exemplary embodiment. For example, the apparatus 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
参照图4,装置400可以包括以下一个或多个组件:处理组件402,存储器404,电源组件406,多媒体组件408,音频组件410,输入/输出(I/O)的接口412,传感器组件414,以及通信组件416。4, device 400 may include one or more of the following components: processing component 402, memory 404, power supply component 406, multimedia component 408, audio component 410, input/output (I/O) interface 412, sensor component 414, and communication component 416 .
处理组件402通常控制装置400的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件402可以包括一个或多个处理器420来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件402可以包括一个或多个模块,便于处理组件402和其他组件之间的交互。例如,处理组件402可以包括多媒体模块,以方便多媒体组件408和处理组件402之间的交互。The processing component 402 generally controls the overall operations of the device 400, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 402 may include one or more modules that facilitate interaction between processing component 402 and other components. For example, processing component 402 may include a multimedia module to facilitate interaction between multimedia component 408 and processing component 402 .
存储器404被配置为存储各种类型的数据以支持在装置400的操作。这些数据的示例包括用于在装置400上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器404可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 404 is configured to store various types of data to support operations at the device 400 . Examples of such data include instructions for any application or method operating on device 400, contact data, phonebook data, messages, pictures, videos, and the like. The memory 404 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电源组件406为装置400的各种组件提供电源。电源组件406可以包括电源管理系统,一个或多个电源,及其他与为装置400生成、管理和分配电源相关联的组件。The power supply component 406 provides power to various components of the device 400 . Power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 400 .
多媒体组件408包括在所述装置400和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件408包括一个前置摄像头和/或后置摄像头。当装置400处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 408 includes a front camera and/or a rear camera. When the device 400 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件410被配置为输出和/或输入音频信号。例如,音频组件410包括一个麦克风(MIC),当装置400处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器404或经由通信组件416发送。在一些实施例中,音频组件410还包括一个扬声器,用于输出音频信号。The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a microphone (MIC), which is configured to receive external audio signals when the device 400 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 404 or sent via communication component 416 . In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.
I/O接口412为处理组件402和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 412 provides an interface between the processing component 402 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件414包括一个或多个传感器,用于为装置400提供各个方面的状态评估。例如,传感器组件414可以检测到装置400的打开/关闭状态,组件的相对定位,例如所述组件为装置400的显示器和小键盘,传感器组件414还可以检测装置400或装置400一个组件的位置改变,用户与装置400接触的存在或不存在,装置400方位或加速/减速和装置400的温度变化。传感器组件414可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件414还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件414还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for device 400 . For example, the sensor component 414 can detect the open/closed state of the device 400, the relative positioning of components, such as the display and keypad of the device 400, and the sensor component 414 can also detect a change in the position of the device 400 or a component of the device 400 , the presence or absence of user contact with the device 400 , the device 400 orientation or acceleration/deceleration and the temperature change of the device 400 . Sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件416被配置为便于装置400和其他设备之间有线或无线方式的通信。装置400可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件416经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件416还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 416 is configured to facilitate wired or wireless communication between the apparatus 400 and other devices. The device 400 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置400可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述图1或图2所示实施例提供的终端的操作方法。In an exemplary embodiment, apparatus 400 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Implemented by a gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components, and is used to execute the operation method of the terminal provided in the embodiment shown in FIG. 1 or FIG. 2 above.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器404,上述指令可由装置400的处理器420执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 404 including instructions, which can be executed by the processor 420 of the device 400 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种终端的操作方法,所述方法包括:A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the mobile terminal, the mobile terminal can execute a method for operating the terminal, the method comprising:
在处于横屏显示的模式下,判断是否检测到退出按键的触发操作,所述退出按键用于退出当前的显示内容;In the mode of horizontal screen display, it is judged whether the trigger operation of the exit button is detected, and the exit button is used to exit the current display content;
当检测到所述退出按键的触发操作时,将所述退出按键对应的操作置为无效。When the trigger operation of the exit key is detected, the operation corresponding to the exit key is invalidated.
可选地,将所述退出按键对应的操作置为无效之前,还包括:Optionally, before disabling the operation corresponding to the exit button, further includes:
判断退出按键屏蔽模式当前是否已开启,所述退出按键屏蔽模式是指对所述退出按键对应的操作进行屏蔽的模式;Judging whether the exit button shielding mode is currently enabled, the exit button shielding mode refers to a mode for shielding the operation corresponding to the exit button;
当所述退出按键屏蔽模式当前已开启时,执行将所述退出按键对应的操作置为无效的操作。When the exit button shielding mode is currently enabled, perform an operation of invalidating the operation corresponding to the exit button.
可选地,判断退出按键屏蔽模式当前是否已开启之前,还包括:Optionally, before judging whether the exit button masking mode is currently enabled, it may also include:
当通过配置的陀螺仪或前置摄像头检测到处于横屏显示的模式时,开启所述退出按键屏蔽模式。When the configured gyroscope or front-facing camera detects that the mode is in a landscape display mode, the exit button shielding mode is enabled.
可选地,开启所述退出按键屏蔽模式之后,还包括:Optionally, after enabling the exit button shielding mode, it also includes:
当基于指定按键检测到指定操作时,关闭所述退出按键屏蔽模式,所述指定按键包括指定虚拟按键和指定物理按键;或者When a specified operation is detected based on a specified key, the exit key shielding mode is turned off, and the specified key includes a specified virtual key and a specified physical key; or
当基于配置的至少两个温度传感器检测到温度触发信号时,关闭所述退出按键屏蔽模式;或者When at least two temperature sensors based on the configuration detect a temperature trigger signal, closing the exit button shielding mode; or
当基于配置的至少两个光电传感器检测到光电触发信号时,关闭所述退出按键屏蔽模式。When the photoelectric trigger signal is detected by at least two photosensors based on the configuration, the exit button shielding mode is turned off.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710443628.2ACN107256088A (en) | 2017-06-13 | 2017-06-13 | Operating method, device and the computer-readable recording medium of terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710443628.2ACN107256088A (en) | 2017-06-13 | 2017-06-13 | Operating method, device and the computer-readable recording medium of terminal |
| Publication Number | Publication Date |
|---|---|
| CN107256088Atrue CN107256088A (en) | 2017-10-17 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710443628.2APendingCN107256088A (en) | 2017-06-13 | 2017-06-13 | Operating method, device and the computer-readable recording medium of terminal |
| Country | Link |
|---|---|
| CN (1) | CN107256088A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108762639A (en)* | 2018-05-28 | 2018-11-06 | 努比亚技术有限公司 | A kind of control method of physical button, mobile terminal and storage medium |
| CN112034902A (en)* | 2019-06-03 | 2020-12-04 | 阿里巴巴集团控股有限公司 | Method and device for adjusting chip performance |
| CN112087651A (en)* | 2020-09-18 | 2020-12-15 | 聚好看科技股份有限公司 | Method for displaying inquiry information and smart TV |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2013141521A1 (en)* | 2012-03-21 | 2013-09-26 | (주)한국원자력 엔지니어링 | Camera shooting method |
| CN103376893A (en)* | 2012-04-25 | 2013-10-30 | 华为终端有限公司 | Display picture presenting method and terminal |
| CN103605429A (en)* | 2013-11-30 | 2014-02-26 | 深圳市金立通信设备有限公司 | Processing method for response key operation and mobile terminal |
| CN103853309A (en)* | 2012-12-06 | 2014-06-11 | 联想(北京)有限公司 | Method for controlling electronic equipment and electronic equipment |
| CN104125327A (en)* | 2013-04-29 | 2014-10-29 | 深圳富泰宏精密工业有限公司 | Screen rotation control method and system |
| CN104991752A (en)* | 2015-07-17 | 2015-10-21 | 小米科技有限责任公司 | Method and device for controlling screen to rotate |
| CN106095297A (en)* | 2016-06-16 | 2016-11-09 | 深圳市金立通信设备有限公司 | A kind of page display control method and terminal |
| CN106406732A (en)* | 2016-09-05 | 2017-02-15 | 努比亚技术有限公司 | Virtual key processing device and method for terminal equipment |
| CN106648056A (en)* | 2016-09-30 | 2017-05-10 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for switching between landscape display and portrait display of mobile terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2013141521A1 (en)* | 2012-03-21 | 2013-09-26 | (주)한국원자력 엔지니어링 | Camera shooting method |
| CN103376893A (en)* | 2012-04-25 | 2013-10-30 | 华为终端有限公司 | Display picture presenting method and terminal |
| CN103853309A (en)* | 2012-12-06 | 2014-06-11 | 联想(北京)有限公司 | Method for controlling electronic equipment and electronic equipment |
| CN104125327A (en)* | 2013-04-29 | 2014-10-29 | 深圳富泰宏精密工业有限公司 | Screen rotation control method and system |
| CN103605429A (en)* | 2013-11-30 | 2014-02-26 | 深圳市金立通信设备有限公司 | Processing method for response key operation and mobile terminal |
| CN104991752A (en)* | 2015-07-17 | 2015-10-21 | 小米科技有限责任公司 | Method and device for controlling screen to rotate |
| CN106095297A (en)* | 2016-06-16 | 2016-11-09 | 深圳市金立通信设备有限公司 | A kind of page display control method and terminal |
| CN106406732A (en)* | 2016-09-05 | 2017-02-15 | 努比亚技术有限公司 | Virtual key processing device and method for terminal equipment |
| CN106648056A (en)* | 2016-09-30 | 2017-05-10 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for switching between landscape display and portrait display of mobile terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108762639A (en)* | 2018-05-28 | 2018-11-06 | 努比亚技术有限公司 | A kind of control method of physical button, mobile terminal and storage medium |
| CN112034902A (en)* | 2019-06-03 | 2020-12-04 | 阿里巴巴集团控股有限公司 | Method and device for adjusting chip performance |
| CN112034902B (en)* | 2019-06-03 | 2024-03-19 | 阿里巴巴集团控股有限公司 | Method and device for adjusting chip performance |
| CN112087651A (en)* | 2020-09-18 | 2020-12-15 | 聚好看科技股份有限公司 | Method for displaying inquiry information and smart TV |
| CN112087651B (en)* | 2020-09-18 | 2022-02-01 | 聚好看科技股份有限公司 | Method for displaying inquiry information and smart television |
| Publication | Publication Date | Title |
|---|---|---|
| JP6199510B2 (en) | Method and apparatus for switching display modes | |
| CN108962191A (en) | Screen intensity regulates and controls method, apparatus, electronic equipment and storage medium | |
| CN106339168B (en) | Screen control method and device | |
| CN107426428A (en) | Electronic equipment and display lightness regulating method | |
| CN108509232A (en) | Screen recording method, device and computer readable storage medium | |
| US20170060320A1 (en) | Method for controlling a mobile terminal using a side touch panel | |
| CN107786743A (en) | Prevent the method and device of terminal false touch | |
| WO2016192324A1 (en) | Key operation processing method and apparatus under single hand mode and electronic device | |
| CN107357505A (en) | The method, apparatus and computer-readable recording medium of screenshot capture | |
| CN107580129A (en) | Terminal state control method and device | |
| CN106547663A (en) | Button management method and device | |
| CN106484282B (en) | Equipment control method and device | |
| CN107390977A (en) | Button operation method, device and storage medium | |
| CN106547466A (en) | Display control method and device | |
| CN105979066A (en) | Screen lighting-up method and screen lighting-up device | |
| CN106603835A (en) | Method and device for adjusting position of target object | |
| CN107295190A (en) | Working mode switching method, device and protective case | |
| CN107256088A (en) | Operating method, device and the computer-readable recording medium of terminal | |
| CN106406661A (en) | Displaying method and device for photographing interface, and terminal device | |
| CN107566626A (en) | Terminal state control method and device | |
| CN114721578A (en) | Input control display method and device, electronic equipment and storage medium | |
| CN108874450A (en) | Wake up the method and device of voice assistant | |
| CN115129203A (en) | Interface display method and device of application program | |
| CN107656616A (en) | Input interface displaying method, device, electronic equipment | |
| CN106775352A (en) | The moving method of suspension key, device and equipment |
| 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 | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20171017 | |
| RJ01 | Rejection of invention patent application after publication |