[go: up one dir, main page]

CN117056990A - Interface display method and device and electronic equipment - Google Patents

Interface display method and device and electronic equipment Download PDF

Info

Publication number
CN117056990A
CN117056990A CN202311061824.5A CN202311061824A CN117056990A CN 117056990 A CN117056990 A CN 117056990A CN 202311061824 A CN202311061824 A CN 202311061824A CN 117056990 A CN117056990 A CN 117056990A
Authority
CN
China
Prior art keywords
interface
electronic device
angle value
application
setting
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.)
Pending
Application number
CN202311061824.5A
Other languages
Chinese (zh)
Inventor
王盛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202311061824.5A priority Critical patent/CN117056990A/en
Publication of CN117056990A publication Critical patent/CN117056990A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/84Protecting input, output or interconnection devices output devices, e.g. displays or monitors
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses an interface display method and device and electronic equipment, and belongs to the technical field of terminal display. The method comprises the following steps: detecting a first angle value of the electronic device under the condition that the first interface is displayed, wherein the first angle value is an angle value between a screen of the electronic device and a first direction, and the first direction comprises at least one of the following steps: a horizontal direction and a vertical direction; and updating the first interface into a second interface which is associated with the angle range in which the first angle value is located and does not comprise user privacy information under the condition that the first angle value is outside the first angle range.

Description

界面显示方法、装置及电子设备Interface display method, device and electronic equipment

技术领域Technical field

本申请属于终端显示技术领域,具体涉及一种界面显示方法、装置及电子设备。The present application belongs to the field of terminal display technology, and specifically relates to an interface display method, device and electronic equipment.

背景技术Background technique

随着电子技术的发展,电子设备的功能也越来越多,为用户的工作和生活带来了便利。但是,不可避免地会带来隐私上的问题,例如用户在使用某个应用时,该应用中的一些信息会被身边的人看到,尤其是一些个人较为私密的信息会被泄露。With the development of electronic technology, electronic devices have more and more functions, bringing convenience to users' work and life. However, privacy issues will inevitably arise. For example, when a user uses an application, some information in the application will be seen by people around him, especially some personal and private information will be leaked.

相关技术中,可以通过对电子设备或电子设备中的应用上锁,来保护电子设备中的应用中的隐私信息,例如设置锁屏数字密码或图案密码、指纹密码等,从而使得用户在使用电子设备的应用时,需要先解锁才能查看应用中的信息。In related technologies, the private information in the applications in the electronic device can be protected by locking the electronic device or the application in the electronic device, such as setting a lock screen digital password or pattern password, fingerprint password, etc., so that the user can use the electronic device When using an app on your device, you need to unlock it before you can view the information in the app.

然而,当用户在使用电子设备时,即解锁电子设备或电子设备中的应用之后,用户在使用时,界面所显示的信息仍然会被身边的人看到,如此造成界面中的隐私信息的泄露,从而导致电子设备存在安全问题。However, when a user is using an electronic device, that is, after unlocking the electronic device or an application on the electronic device, the information displayed on the interface will still be seen by people around him while the user is using it, thus causing the privacy information in the interface to be leaked. , resulting in safety issues in electronic equipment.

发明内容Contents of the invention

本申请实施例的目的是提供一种界面显示方法、装置及电子设备,能够解决由于界面中的隐私信息的泄露,导致的电子设备的安全问题。The purpose of the embodiments of this application is to provide an interface display method, device and electronic equipment, which can solve the security problem of electronic equipment caused by the leakage of private information in the interface.

第一方面,本申请实施例提供了一种界面显示方法,该方法包括:在显示第一界面的情况下,检测电子设备的第一角度值,该第一角度值为电子设备的屏幕与第一方向的角度值,该第一方向包括以下至少一项:水平方向和竖直方向;在第一角度值处于第一角度范围外的情况下,将第一界面更新为第二界面,该第二界面为与第一角度值所处的角度范围关联的、且不包括用户隐私信息的界面。In a first aspect, embodiments of the present application provide an interface display method. The method includes: when displaying the first interface, detecting a first angle value of the electronic device. The first angle value is the distance between the screen of the electronic device and the first angle value. Angle value in one direction, the first direction includes at least one of the following: horizontal direction and vertical direction; when the first angle value is outside the first angle range, the first interface is updated to a second interface, and the first interface is updated to a second interface. The second interface is an interface associated with the angle range in which the first angle value is located and does not include user privacy information.

第二方面,本申请实施例提供了一种界面显示装置,该界面显示装置包括:检测模块和更新模块。检测模块,用于在显示第一界面的情况下,检测电子设备的第一角度值,该第一角度值为电子设备的屏幕与第一方向的角度值,该第一方向包括以下至少一项:水平方向和竖直方向。更新模块,用于在检测模块检测的第一角度值处于第一角度范围外的情况下,将第一界面更新为第二界面,该第二界面为与第一角度值所处的角度范围关联的、且不包括用户隐私信息的界面。In the second aspect, embodiments of the present application provide an interface display device. The interface display device includes: a detection module and an update module. A detection module, configured to detect the first angle value of the electronic device when the first interface is displayed. The first angle value is the angle value between the screen of the electronic device and the first direction. The first direction includes at least one of the following: : Horizontal and vertical directions. An update module, configured to update the first interface to a second interface when the first angle value detected by the detection module is outside the first angle range. The second interface is associated with the angle range in which the first angle value is located. interface that does not include user private information.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device. The electronic device includes a processor and a memory. The memory stores programs or instructions that can be run on the processor. The programs or instructions are processed by the processor. When the processor is executed, the steps of the method described in the first aspect are implemented.

第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, embodiments of the present application provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the programs or instructions are executed by a processor, the steps of the method described in the first aspect are implemented. .

第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, embodiments of the present application provide a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the first aspect. the method described.

第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。In a sixth aspect, embodiments of the present application provide a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method as described in the first aspect.

在本申请实施例中,在电子设备的屏幕与水平方向和/或竖直方向的第一角度值,处于第一角度范围外的情况下,电子设备认为电子设备的屏幕显示的界面中的信息会被其他用户看到,因此电子设备从第一界面更新为第二界面,第二界面为与所述第一角度值所处的角度范围关联的、且不包括用户隐私信息的界面,从而使得电子设备的屏幕显示的界面中的信息不包含用户隐私信息,避免了界面中的隐私信息被其他用户看到,如此避免了界面中的隐私信息的泄露,从而提升了电子设备的安全性。In the embodiment of the present application, when the first angle value between the screen of the electronic device and the horizontal direction and/or the vertical direction is outside the first angle range, the electronic device considers that the information in the interface displayed on the screen of the electronic device will be seen by other users, so the electronic device updates from the first interface to the second interface. The second interface is an interface associated with the angle range where the first angle value is located and does not include user privacy information, so that The information in the interface displayed on the screen of the electronic device does not contain the user's private information, which prevents the private information in the interface from being seen by other users. This avoids the leakage of the private information in the interface, thereby improving the security of the electronic device.

附图说明Description of the drawings

图1是本申请实施例提供的界面显示方法的流程图之一;Figure 1 is one of the flow charts of the interface display method provided by the embodiment of the present application;

图2是本申请实施例提供的界面显示方法的流程图之二;Figure 2 is the second flow chart of the interface display method provided by the embodiment of the present application;

图3是本申请实施例提供的指南针方向和手机角度值的示意图;Figure 3 is a schematic diagram of the compass direction and the angle value of the mobile phone provided by the embodiment of the present application;

图4是本申请实施例提供的手机处于倾斜状态时的投影方向的示意图;Figure 4 is a schematic diagram of the projection direction when the mobile phone is in a tilted state according to an embodiment of the present application;

图5是本申请实施例提供的切换应用显示功能界面的示例图之一;Figure 5 is one of the example diagrams of the switching application display function interface provided by the embodiment of the present application;

图6是本申请实施例提供的界面显示方法的流程图之三;Figure 6 is the third flow chart of the interface display method provided by the embodiment of the present application;

图7是本申请实施例提供的切换应用显示功能界面的示例图之二;Figure 7 is the second example diagram of the switching application display function interface provided by the embodiment of the present application;

图8是本申请实施例提供的手机的屏幕和水平面的夹角的示意图;Figure 8 is a schematic diagram of the angle between the screen of the mobile phone and the horizontal plane provided by the embodiment of the present application;

图9是本申请实施例提供的界面显示方法的流程图之四;Figure 9 is the fourth flow chart of the interface display method provided by the embodiment of the present application;

图10是本申请实施例提供的界面显示方法的流程图之五;Figure 10 is the fifth flow chart of the interface display method provided by the embodiment of the present application;

图11是本申请实施例提供的应用添加界面的示例图;Figure 11 is an example diagram of the application adding interface provided by the embodiment of the present application;

图12是本申请实施例提供的界面显示装置的结构示意图;Figure 12 is a schematic structural diagram of an interface display device provided by an embodiment of the present application;

图13是本申请实施例提供的电子设备的结构示意图;Figure 13 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

图14是本申请实施例提供的电子设备的硬件结构示意图。Figure 14 is a schematic diagram of the hardware structure 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 described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the scope of protection of this application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the figures so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in orders other than those illustrated or described herein, and that "first," "second," etc. are distinguished Objects are usually of one type, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the related objects are in an "or" relationship.

本申请的说明书和权利要求书中的术语“至少一个(项)”、“至少之一”等指其包含对象中的任意一个、任意两个或两个以上的组合。例如,a、b、c中的至少一个(项),可以表示:“a”、“b”、“c”、“a和b”、“a和c”、“b和c”以及“a、b和c”,其中a,b,c可以是单个,也可以是多个。同理,“至少两个(项)”是指两个或两个以上,其表达的含义与“至少一个(项)”类似。The terms "at least one (item)", "at least one", etc. in the description and claims of this application refer to any one, any two or a combination of more than two of the included objects. For example, at least one (item) of a, b, c can represent: "a", "b", "c", "a and b", "a and c", "b and c" and "a , b and c", where a, b, c can be single or multiple. Similarly, "at least two (items)" refers to two or more than two, and its meaning is similar to "at least one (item)".

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的界面显示方法进行详细地说明。The interface display method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios.

本申请实施例可以应用于对界面的信息进行保护的场景,电子设备可以通过界面切换的方式实现界面的信息的隐私保护,例如,可以应用于对桌面、应用界面的信息的保护场景。Embodiments of the present application can be applied to scenarios of protecting interface information. Electronic devices can realize privacy protection of interface information by switching interfaces. For example, they can be applied to scenarios of protecting information on desktops and application interfaces.

本申请实施例中,一种情况,电子设备可以将显示的界面切换至该界面所属应用的另一个界面,该另一个界面为不包含用户的隐私信息的界面。具体的,在显示一个应用的一个应用界面的情况下,电子设备可以检测电子设备的屏幕与水平方向和/或竖直方向的角度值,并判断该角度值是否处于第一角度范围(即预设的界面信息的安全显示角度范围)内,并在该角度值处于安全显示角度范围外的情况下,执行界面切换,以切换至该应用中与该角度值所处的角度范围关联的、且不包括用户隐私信息的应用界面。In the embodiment of the present application, in one case, the electronic device can switch the displayed interface to another interface of the application to which the interface belongs. The other interface is an interface that does not contain the user's private information. Specifically, when displaying an application interface of an application, the electronic device can detect the angle value between the screen of the electronic device and the horizontal direction and/or the vertical direction, and determine whether the angle value is within the first angle range (i.e., the predetermined angle value). within the safe display angle range of the set interface information), and when the angle value is outside the safe display angle range, perform an interface switch to switch to the angle range in the application that is associated with the angle value and Application interface that does not include user private information.

示例性地,假设电子设备当前显示的界面为应用A的应用界面a,电子设备可以检测电子设备的屏幕与水平方向和/或竖直方向的角度值A,并在判断该角度值A处于预设的应用界面信息的安全显示角度范围外的情况下,执行界面切换,以切换至该应用A中与该角度值A所处的角度范围关联的、且不包括用户隐私信息的应用界面b。For example, assuming that the interface currently displayed by the electronic device is the application interface a of application A, the electronic device can detect the angle value A between the screen of the electronic device and the horizontal direction and/or the vertical direction, and determine that the angle value A is at a predetermined value. When the application interface information is outside the safe display angle range, perform an interface switch to switch to the application interface b in application A that is associated with the angle range where the angle value A is located and does not include user privacy information.

本申请实施例中,另一种情况,电子设备可以从一个操作系统切换至另一个操作系统,即将一个操作系统下显示的界面切换至另一个操作系统中的界面,该另一个操作系统中的界面为不包含用户的隐私信息的界面。具体的,在显示一个操作系统中的一个应用界面的情况下,电子设备可以检测电子设备的屏幕与水平方向和/或竖直方向的角度值,并判断该角度值是否处于第一角度范围(即预设的界面信息的安全显示角度范围)内,并在该角度值处于安全显示角度范围外的情况下,执行操作系统的界面切换,以切换至另一个操作系统中与该角度值所处的角度范围关联的、且不包括用户隐私信息的应用界面。In the embodiment of the present application, in another case, the electronic device can switch from one operating system to another operating system, that is, the interface displayed under one operating system is switched to an interface in another operating system, and the interface displayed in the other operating system is The interface is an interface that does not contain the user's private information. Specifically, when displaying an application interface in an operating system, the electronic device can detect the angle value between the screen of the electronic device and the horizontal direction and/or the vertical direction, and determine whether the angle value is within the first angle range ( That is, within the preset safe display angle range of interface information), and when the angle value is outside the safe display angle range, perform an interface switch of the operating system to switch to another operating system that is in the same position as the angle value. The application interface is associated with the angle range and does not include user private information.

示例性地,假设电子设备当前显示的界面为操作系统1中的应用界面c,电子设备可以检测电子设备的屏幕与水平方向和/或竖直方向的角度值B,并在判断该角度值B处于预设的应用界面信息的安全显示角度范围外的情况下,执行界面切换,以切换至操作系统2中与该角度值B所处的角度范围关联的、且不包括用户隐私信息的应用界面d。For example, assuming that the interface currently displayed by the electronic device is the application interface c in the operating system 1, the electronic device can detect the angle value B between the screen of the electronic device and the horizontal direction and/or the vertical direction, and determine the angle value B When it is outside the safe display angle range of the preset application interface information, perform an interface switch to switch to an application interface in the operating system 2 that is associated with the angle range where the angle value B is located and does not include the user's private information. d.

如此,通过上述方案,在电子设备的屏幕与水平方向和/或竖直方向的角度值,处于第一角度范围外的情况下,电子设备认为电子设备的屏幕显示的界面中的信息会被其他用户看到,因此电子设备从第一界面更新为第二界面,第二界面为与所述第一角度值所处的角度范围关联的、且不包括用户隐私信息的界面,从而使得电子设备的屏幕显示的界面中的信息不包含用户隐私信息,避免了界面中的隐私信息被其他用户看到,如此避免了界面中的隐私信息的泄露,从而提升了电子设备的安全性。In this way, through the above solution, when the angle value between the screen of the electronic device and the horizontal direction and/or the vertical direction is outside the first angle range, the electronic device believes that the information in the interface displayed on the screen of the electronic device will be used by other The user sees that the electronic device is updated from the first interface to the second interface. The second interface is an interface associated with the angle range of the first angle value and does not include the user's private information, so that the electronic device The information in the interface displayed on the screen does not contain user private information, which prevents the private information in the interface from being seen by other users. This avoids the leakage of private information in the interface, thereby improving the security of the electronic device.

本申请实施例提供的界面显示方法的执行主体可以为电子设备,或者电子设备中的功能模块或实体,或者界面显示装置。以下以电子设备为例,对本申请实施例提供的技术方案进行说明。The execution subject of the interface display method provided by the embodiment of the present application may be an electronic device, or a functional module or entity in the electronic device, or an interface display device. The following uses electronic equipment as an example to describe the technical solutions provided by the embodiments of the present application.

本申请实施例提供一种界面显示方法,图1示出了本申请实施例提供的一种界面显示方法的流程图。如图1所示,本申请实施例提供的界面显示方法可以包括下述的步骤201和步骤202。An embodiment of the present application provides an interface display method. Figure 1 shows a flow chart of an interface display method provided by an embodiment of the present application. As shown in Figure 1, the interface display method provided by the embodiment of the present application may include the following steps 201 and 202.

步骤201、在显示第一界面的情况下,电子设备检测电子设备的第一角度值。Step 201: When the first interface is displayed, the electronic device detects the first angle value of the electronic device.

本申请实施例中,上述第一角度值为电子设备的屏幕与第一方向的角度值。上述第一方向包括以下至少一项:水平方向和竖直方向。In the embodiment of the present application, the first angle value is the angle value between the screen of the electronic device and the first direction. The above-mentioned first direction includes at least one of the following: horizontal direction and vertical direction.

可选地,本申请实施例中,上述第一界面可以为桌面或电子设备中的任一应用中的一个界面,例如该应用可以为聊天类应用、支付类应用、相册应用或浏览器应用等,具体的可以根据使用需求确定,本申请实施例在此不作限制。Optionally, in this embodiment of the present application, the above-mentioned first interface may be an interface of any application on the desktop or electronic device. For example, the application may be a chat application, a payment application, a photo album application or a browser application, etc. , which can be specifically determined according to usage requirements, and is not limited in the embodiments of this application.

需要说明的是,上述水平方向可以理解为水平面或地平面的方向,上述竖直方向为与水平面或地平面垂直的方向。It should be noted that the above-mentioned horizontal direction can be understood as the direction of the horizontal plane or the ground plane, and the above-mentioned vertical direction is the direction perpendicular to the horizontal plane or the ground plane.

可选地,本申请实施例中,电子设备可以通过电子设备中的指南针检测电子设备的第一角度值,例如水平方向上的角度值。或者,电子设备可以通过电设备中的陀螺仪检测电子设备的第一角度值,例如水平方向和竖直方向上的角度值。Optionally, in this embodiment of the present application, the electronic device may detect the first angle value of the electronic device through a compass in the electronic device, for example, the angle value in the horizontal direction. Alternatively, the electronic device may detect the first angle value of the electronic device through a gyroscope in the electronic device, such as the angle values in the horizontal direction and the vertical direction.

可选地,本申请实施例的一种方式中,上述第一方向包括水平方向。示例性地,结合图1,如图2所示,上述步骤201具体可以通过下述的步骤201a实现。Optionally, in one embodiment of the present application, the first direction includes a horizontal direction. For example, with reference to Figure 1, as shown in Figure 2, the above step 201 can be implemented through the following step 201a.

步骤201a、在显示第一界面的情况下,电子设备检测电子设备中的指南针的偏转角度值,得到第一角度值。Step 201a: When the first interface is displayed, the electronic device detects the deflection angle value of the compass in the electronic device to obtain the first angle value.

本申请实施例中,上述指南针的参考方向为第二方向,该第二方向为电子设备的屏幕长边所在方向,或者电子设备的屏幕长边在水平方向上的投影方向。In the embodiment of the present application, the reference direction of the compass is the second direction, which is the direction of the long side of the screen of the electronic device, or the projection direction of the long side of the screen of the electronic device in the horizontal direction.

可以理解,上述电子设备中的指南针的偏转角度值是由电子设备的长边方向决定的,即判断的是电子设备长边的方向。若电子设备未处于倾斜状态,则为电子设备的屏幕长边所在方向,若电子设备处于倾斜状态,则为电子设备的屏幕长边在水平方向上的投影方向。It can be understood that the deflection angle value of the compass in the above-mentioned electronic device is determined by the long side direction of the electronic device, that is, the direction of the long side of the electronic device is determined. If the electronic device is not in a tilted state, it is the direction of the long side of the screen of the electronic device. If the electronic device is in a tilted state, it is the projection direction of the long side of the screen of the electronic device in the horizontal direction.

需要说明的是,上述指南针的参考方向可以理解为定义的指南针磁场方向,即指南针的正北方向和正南方向。It should be noted that the reference direction of the compass mentioned above can be understood as the defined magnetic field direction of the compass, that is, the true north direction and the true south direction of the compass.

示例性地,以电子设备为手机为例进行示意。如图3中的(A)所示,定义了指南针的正北方向和正南方向,指南针的正北方向为0°,指南针的正南方向为180°。如图3中的(B)所示,手机中包括指南针,若手机顶部在正北方向,手机底部在正南,即手机的屏幕长边所在方向为正南北方向,则此时指南针的偏转角度值为0°,即手机的角度值为0°。As an example, the electronic device is a mobile phone. As shown in (A) in Figure 3, the north direction and south direction of the compass are defined. The north direction of the compass is 0°, and the south direction of the compass is 180°. As shown in (B) in Figure 3, the mobile phone includes a compass. If the top of the mobile phone is in the north direction and the bottom of the phone is in the south direction, that is, the long side of the screen of the mobile phone is in the north-south direction, then the deflection angle of the compass at this time The value is 0°, that is, the angle value of the mobile phone is 0°.

可选地,本申请实施例中,针对电子设备处于倾斜状态的情况,电子设备可以以在水平面上的长边投影,即电子设备的屏幕长边在水平方向上的投影方向,作为指南针的参考方向,来检测指南针的偏转角度值。Optionally, in the embodiment of the present application, for the situation where the electronic device is in a tilted state, the electronic device can use the long side projection on the horizontal plane, that is, the projection direction of the long side of the screen of the electronic device in the horizontal direction, as a reference for the compass. direction to detect the deflection angle value of the compass.

可选地,本申请实施例中,电子设备可以通过电子设备中的方位传感器检测电子设备是否处于倾斜状态,即通过方位传感器确定电子设备的方位方向,以这样的方式检测地球磁场以测量方位角,从而确定电子设备是否处于倾斜状态。Optionally, in the embodiment of the present application, the electronic device can detect whether the electronic device is in a tilted state through the azimuth sensor in the electronic device, that is, determine the azimuth direction of the electronic device through the azimuth sensor, and detect the earth's magnetic field in this way to measure the azimuth angle. , thereby determining whether the electronic device is in a tilted state.

示例性地,如图4所示,当手机处于倾斜状态时,手机的屏幕长边在水平面上的投影方向是,以手机正上方中心点在水平面上的投影点,与手机正下方中心点在水平面上的投影点的连线方向。For example, as shown in Figure 4, when the mobile phone is in a tilted state, the projection direction of the long side of the mobile phone screen on the horizontal plane is that the projection point of the center point directly above the mobile phone on the horizontal plane is the same as the projection point of the center point directly below the mobile phone. The direction of the line connecting the projected points on the horizontal plane.

可选地,本申请实施例中,用户可以预先在切换应用显示功能界面中,选择是否开启切换应用显示功能,在用户开启切换应用显示功能的情况下,电子设备可以通过指南针,检测电子设备的角度值。并且,该应用显示功能界面中包括水平触发角度范围的选项,用户可以设置水平触发的安全显示角度范围。Optionally, in the embodiment of the present application, the user can choose whether to turn on the switching application display function in advance in the switching application display function interface. When the user turns on the switching application display function, the electronic device can detect the electronic device through the compass. angle value. Moreover, the application display function interface includes the option of horizontal trigger angle range, and users can set the safe display angle range of horizontal trigger.

示例性地,如图5所示,手机显示切换应用显示功能界面10,该切换应用显示功能界面10中包括开关11、水平触发角度范围的选项12和指南针13,用户可以对开关11进行点击输入,以触发手机开启或关闭切换应用显示功能,在用户开启切换应用显示功能的情况下,手机可以通过指南针13,检测手机的角度值。并且,用户还可以对水平触发角度范围的选项进行输入,以设置水平触发的安全显示角度范围,例如90°至270°。For example, as shown in Figure 5, the mobile phone displays a switching application display function interface 10. The switching application display function interface 10 includes a switch 11, a horizontal trigger angle range option 12 and a compass 13. The user can click and input the switch 11. , to trigger the mobile phone to turn on or off the switching application display function. When the user turns on the switching application display function, the mobile phone can detect the angle value of the mobile phone through the compass 13. In addition, the user can also enter the option of the horizontal trigger angle range to set the safe display angle range of the horizontal trigger, such as 90° to 270°.

可选地,本申请实施例中,在电子设备的屏幕朝上,即电子设备的屏幕背向地平面的情况下,电子设备可以通过指南针,检测电子设备在水平方向上的第一角度值。Optionally, in this embodiment of the present application, when the screen of the electronic device faces upward, that is, when the screen of the electronic device faces away from the ground plane, the electronic device can detect the first angle value of the electronic device in the horizontal direction through a compass.

本申请实施例中,电子设备可以通过指南针,精确地获得电子设备的屏幕与水平方向的角度值,以判断电子设备的屏幕在水平方向上的角度值是否处于安全显示角度范围内,从而判断是否将电子设备当前显示的界面更新为不包括用户隐私信息的界面,避免隐私信息的泄露,从而提升电子设备的安全性。In the embodiment of the present application, the electronic device can accurately obtain the angle value between the screen of the electronic device and the horizontal direction through a compass, so as to determine whether the angle value of the screen of the electronic device in the horizontal direction is within the safe display angle range, thereby determining whether Update the currently displayed interface of the electronic device to an interface that does not include the user's private information to avoid leakage of private information, thereby improving the security of the electronic device.

可选地,本申请实施例的另一种方式中,上述第一方向包括水平方向和竖直方向。示例性地,结合图1,如图6所示,上述步骤201具体可以通过下述的步骤201b至步骤201d实现。Optionally, in another manner of the embodiment of the present application, the above-mentioned first direction includes a horizontal direction and a vertical direction. Illustratively, with reference to Figure 1, as shown in Figure 6, the above step 201 can be specifically implemented through the following steps 201b to 201d.

步骤201b、在显示第一界面的情况下,电子设备获取电子设备中的第一陀螺仪和第二陀螺仪在第一坐标系的坐标信息。Step 201b: When the first interface is displayed, the electronic device obtains the coordinate information of the first gyroscope and the second gyroscope in the electronic device in the first coordinate system.

本申请实施例中,电子设备中内置有至少两个陀螺仪,该至少两个陀螺仪设置在电子设备中的不同位置,例如电子设备的屏下不同位置。电子设备可以通过该至少两个陀螺仪中的任意两个陀螺仪的坐标信息,检测电子设备在第一方向上的第一角度值。In the embodiment of the present application, at least two gyroscopes are built into the electronic device, and the at least two gyroscopes are arranged at different positions in the electronic device, such as different positions under the screen of the electronic device. The electronic device can detect the first angle value of the electronic device in the first direction through the coordinate information of any two gyroscopes among the at least two gyroscopes.

可选地,本申请实施例中,在电子设备的屏幕朝下,即电子设备的屏幕朝向地平面的情况下,电子设备可以通过指南针检测的角度值的方向会翻转180°,因此电子设备可以通过电子设备中的陀螺仪,检测电子设备在第一方向上的第一角度值。Optionally, in the embodiment of the present application, when the screen of the electronic device faces downward, that is, when the screen of the electronic device faces the ground plane, the direction of the angle value that the electronic device can detect through the compass will flip 180°, so the electronic device can The first angle value of the electronic device in the first direction is detected through the gyroscope in the electronic device.

可选地,本申请实施例中,上述第一坐标系可以为空间坐标系,电子设备以电子设备的一个屏幕长边和一个屏幕短边的交点为原点,以电子设备的一个屏幕长边为一个方向轴(例如X轴),并以电子设备的一个屏幕短边为另一个方向轴(例如Y轴),以及以垂直于这两个方向轴的直线为又一个方向轴(例如Z轴),建立空间坐标系。当然,电子设备还可以采用其他方式建立第一坐标系,电子设备建立坐标系的方法可以参见相关技术,本申请实施例在此不作限制。Optionally, in the embodiment of the present application, the above-mentioned first coordinate system may be a spatial coordinate system. The electronic device takes the intersection of a long side of the screen and a short side of the screen as the origin, and takes the long side of the screen of the electronic device as One direction axis (such as the X axis), and one short side of the screen of the electronic device is the other direction axis (such as the Y axis), and a straight line perpendicular to the two direction axes is another direction axis (such as the Z axis) , establish a spatial coordinate system. Of course, the electronic device can also use other methods to establish the first coordinate system. For methods of establishing the coordinate system for the electronic device, please refer to related technologies. The embodiments of the present application are not limited here.

示例性地,上述第一陀螺仪在第一坐标系的坐标信息可以表示为(x1,y1,z1),上述第二陀螺仪在第一坐标系的坐标信息可以表示为(x2,y2,z2)。For example, the coordinate information of the first gyroscope in the first coordinate system can be expressed as (x1, y1, z1), and the coordinate information of the second gyroscope in the first coordinate system can be expressed as (x2, y2, z2 ).

步骤201c、电子设备计算第一陀螺仪的坐标信息与第二陀螺仪的坐标信息的差值,得到目标坐标信息。Step 201c: The electronic device calculates the difference between the coordinate information of the first gyroscope and the coordinate information of the second gyroscope to obtain the target coordinate information.

示例性地,上述第一陀螺仪在第一坐标系的坐标信息(x1,y1,z1),与上述第二陀螺仪在第一坐标系的坐标信息可(x2,y2,z2)的差值,包括x1与x2的差值x3,y1与y2的差值y3,z1与z2的差值z3,得到的目标坐标信息可以表示为(x3,y3,z3)。For example, the difference between the coordinate information (x1, y1, z1) of the above-mentioned first gyroscope in the first coordinate system and the coordinate information of the above-mentioned second gyroscope in the first coordinate system can be (x2, y2, z2) , including the difference x3 between x1 and x2, the difference y3 between y1 and y2, and the difference z3 between z1 and z2. The obtained target coordinate information can be expressed as (x3, y3, z3).

步骤201d、电子设备基于目标坐标信息与第一坐标系的原点,确定第一直线,并计算第一直线与第一方向的夹角值,得到第一角度值。Step 201d: The electronic device determines the first straight line based on the target coordinate information and the origin of the first coordinate system, and calculates the angle value between the first straight line and the first direction to obtain the first angle value.

示例性地,电子设备可以将第一坐标系中的坐标点(x3,y3,z3)与原点(0,0,0)的连线作为第一直线,并计算第一直线与水平方向的夹角值,以及第一直线与竖直方向的夹角值,得到电子设备在水平方向的角度值和竖直方向的角度值。For example, the electronic device can use the line connecting the coordinate point (x3, y3, z3) in the first coordinate system and the origin (0,0,0) as the first straight line, and calculate the relationship between the first straight line and the horizontal direction and the angle value between the first straight line and the vertical direction, to obtain the angle value of the electronic device in the horizontal direction and the angle value in the vertical direction.

可选地,本申请实施例中,用户可以预先在切换应用显示功能界面中,选择是否开启切换应用显示功能,在用户开启切换应用显示功能的情况下,电子设备可以通过陀螺仪,检测电子设备的角度值。并且,该应用显示功能界面中包括垂直触发角度范围的选项,用户可以设置垂直触发的安全显示角度范围。Optionally, in the embodiment of the present application, the user can choose whether to turn on the switching application display function in advance in the switching application display function interface. When the user turns on the switching application display function, the electronic device can detect the electronic device through the gyroscope. angle value. Moreover, the application display function interface includes the option of vertical trigger angle range, and users can set the safe display angle range of vertical trigger.

可选地,本申请实施例中,用户可以设置是否添加设置垂直角度的限制,当不打开垂直角度开关时,电子设备可以仅由水平角度来控制应用显示不同页面,即电子设备仅检测电子设备在水平方向的第一角度值,当用户勾选打开垂直角度开关时,电子设备可以由水平角度和竖直角度来控制应用显示不同页面,即电子设备检测电子设备在水平方向的角度值和竖直方向的角度值。Optionally, in the embodiment of this application, the user can set whether to add a limit for setting the vertical angle. When the vertical angle switch is not turned on, the electronic device can control the application to display different pages only by the horizontal angle, that is, the electronic device only detects the electronic device. The first angle value in the horizontal direction. When the user checks to turn on the vertical angle switch, the electronic device can control the application to display different pages by the horizontal angle and the vertical angle. That is, the electronic device detects the angle value of the electronic device in the horizontal direction and the vertical angle value. Angle value in straight direction.

示例性地,结合图5,如图7所示,手机显示切换应用显示功能界面10,该切换应用显示功能界面10中还包括设置垂直角度的选项14,用户在对设置垂直角度的选项14的开关进行开启的情况下,手机可以检测手机在水平方向的角度值和竖直方向的角度值。并且,用户还可以对设置垂直角度的选项14进行输入,以设置竖直触发的安全显示角度范围,例如-20°至200°。需要说明的是,这里的-20°的负号是指方向,具体的方向定义参见下述实施例的描述,此处不予赘述。Exemplarily, in conjunction with Figure 5, as shown in Figure 7, the mobile phone displays a switching application display function interface 10. The switching application display function interface 10 also includes an option 14 for setting the vertical angle. The user selects the option 14 for setting the vertical angle. When the switch is turned on, the mobile phone can detect the angle value of the mobile phone in the horizontal direction and the angle value in the vertical direction. In addition, the user can also input option 14 for setting the vertical angle to set a safe display angle range for vertical triggering, such as -20° to 200°. It should be noted that the negative sign of -20° here refers to the direction. For the specific definition of the direction, please refer to the description of the following embodiments, which will not be described again here.

本申请实施例中,电子设备可以通过两个陀螺仪,精确地获得电子设备的屏幕与水平方向和竖直方向的角度值,以判断电子设备的屏幕在水平方向和竖直方向上的角度值是否处于安全显示角度范围内,从而判断是否将电子设备当前显示的应用界面更新为不包括用户隐私信息的应用界面,避免应用中的隐私信息的泄露,从而提升电子设备的应用中信息的安全性。In the embodiment of the present application, the electronic device can accurately obtain the angle value of the screen of the electronic device in the horizontal direction and the vertical direction through two gyroscopes, so as to determine the angle value of the screen of the electronic device in the horizontal direction and the vertical direction. Whether it is within the safe display angle range, so as to determine whether to update the application interface currently displayed on the electronic device to an application interface that does not include the user's private information, to avoid the leakage of private information in the application, thereby improving the security of information in the application of the electronic device .

步骤202、在第一角度值处于第一角度范围外的情况下,电子设备将第一界面更新为第二界面。Step 202: When the first angle value is outside the first angle range, the electronic device updates the first interface to the second interface.

本申请实施例中,上述第二界面为与第一角度值所处的角度范围关联的、且不包括用户隐私信息的界面。In the embodiment of the present application, the above-mentioned second interface is an interface associated with the angle range in which the first angle value is located and does not include user privacy information.

需要说明的是,上述第一角度范围可以理解为界面信息的安全显示角度范围,即在这个角度范围内,电子设备的屏幕当前显示的界面中的信息不容易被其他用户看到。若用户在第一角度范围内浏览隐私信息,则电子设备的屏幕当前显示的界面中的信息不容易被其他用户看到。It should be noted that the above first angle range can be understood as a safe display angle range for interface information, that is, within this angle range, the information in the interface currently displayed on the screen of the electronic device is not easily visible to other users. If the user browses private information within the first angle range, the information in the interface currently displayed on the screen of the electronic device will not be easily seen by other users.

可以理解,不同的角度范围关联了不包括用户隐私信息的不同界面。电子设备可以通过判断第一角度值所处的角度范围,来确定不包括用户隐私信息的界面。It can be understood that different angle ranges are associated with different interfaces that do not include user private information. The electronic device can determine the interface that does not include the user's private information by determining the angle range in which the first angle value is located.

可选地,本申请实施例中,上述用户隐私信息可以包括以下至少一项:用户身份信息、用户身体部位图像、用户账号密码信息、用户聊天信息、用户位置信息等,具体的可以根据实际使用需求确定,本申请实施例不作限制。Optionally, in the embodiment of this application, the above-mentioned user privacy information may include at least one of the following: user identity information, user body part images, user account password information, user chat information, user location information, etc. The specific information may be based on actual use. The requirements are determined and are not limited by the embodiments of this application.

可选地,本申请实施例中,上述第一界面和第二界面为相同应用中的不同界面。Optionally, in this embodiment of the present application, the first interface and the second interface are different interfaces in the same application.

可以理解,上述第一界面和第二界面所属的应用为同一个应用,第二界面为该应用中不包括用户隐私信息的应用界面。电子设备通过将应用界面切换为同一应用的不同界面,来达到保护应用中的用户隐私信息的目的。It can be understood that the above-mentioned first interface and the second interface belong to the same application, and the second interface is an application interface that does not include user privacy information. The electronic device achieves the purpose of protecting user privacy information in the application by switching the application interface to a different interface of the same application.

可选地,本申请实施例中,上述第一界面和第二界面为不同操作系统中的界面。Optionally, in this embodiment of the present application, the first interface and the second interface are interfaces in different operating systems.

可选地,本申请实施例中,上述第一界面和第二界面可以为不同操作系统中的相同应用的不同应用界面,或者也可以为不同操作系统中的不同应用的不同应用界面,或者也可以为不同操作系统中的不同桌面,或者也可以为不同操作系统中的桌面和应用界面。Optionally, in this embodiment of the present application, the above-mentioned first interface and the second interface may be different application interfaces of the same application in different operating systems, or may also be different application interfaces of different applications in different operating systems, or may also be It can be different desktops in different operating systems, or it can be desktop and application interfaces in different operating systems.

可选地,本申请实施例中,在默认状态(即安全显示角度范围内)下,电子设备可以显示账户一的操作系统,所有应用界面的数据保存在此账户模式下。当用户转动电子设备,使得电子设备的角度值超出设定的安全显示角度范围时,电子设备可以从账户一的操作系统切换到账户二的操作系统,账户二的应用界面的数据与账户一的应用界面的数据存储在不同数据库中。Optionally, in the embodiment of this application, in the default state (ie, within the safe display angle range), the electronic device can display the operating system of account one, and the data of all application interfaces are saved in this account mode. When the user rotates the electronic device so that the angle value of the electronic device exceeds the set safe display angle range, the electronic device can switch from the operating system of account one to the operating system of account two. The data of the application interface of account two is the same as that of account one. Data for the application interface is stored in different databases.

可选地,本申请实施例中,电子设备可以保留账户一和账户二当前使用的状态,在旋转电子设备,切换到另外一个账户时,电子设备可以显示另外一个账户之前所在的界面。Optionally, in the embodiment of this application, the electronic device can retain the current status of account one and account two. When rotating the electronic device and switching to another account, the electronic device can display the interface where the other account was previously located.

本申请实施例中,电子设备通过将应用界面切换为不同操作系统的不同界面,来达到保护应用中的用户隐私信息的目的。In the embodiment of this application, the electronic device achieves the purpose of protecting user privacy information in the application by switching the application interface to different interfaces of different operating systems.

可选地,本申请实施例中,上述安全显示角度范围可以包括水平方向的安全显示角度范围和竖直方向的安全显示角度范围。其中,水平方向的安全显示角度范围和竖直方向的安全显示角度范围可以相同,也可以不同。Optionally, in this embodiment of the present application, the above-mentioned safe display angle range may include a safe display angle range in the horizontal direction and a safe display angle range in the vertical direction. The safe display angle range in the horizontal direction and the safe display angle range in the vertical direction may be the same or different.

可选地,本申请实施例中,上述水平方向的安全显示角度范围和竖直方向的安全显示角度范围,可以由电子设备根据多个用户的使用习惯计算的系统默认安全显示角度范围,或者也可以由用户自定的适用自己使用习惯的安全显示角度范围。Optionally, in the embodiment of the present application, the safe display angle range in the horizontal direction and the safe display angle range in the vertical direction may be the system default safe display angle range calculated by the electronic device based on the usage habits of multiple users, or may be Users can customize the safe display angle range that suits their own usage habits.

示例性地,上述水平方向的安全显示角度范围可以为90°至270°;上述竖直方向的安全显示角度范围可以为-20°到200°。For example, the safe display angle range in the horizontal direction may be 90° to 270°; the safe display angle range in the vertical direction may be -20° to 200°.

需要说明的是,这里的负号“-”表示的是方向,电子设备的屏幕与地平面平行,且电子设备的屏幕朝上(电子设备的屏幕背向地平面)时,电子设备在竖直方向上的角度值是0°,这里的20°是给用户20°的缓冲角度,即如图8所示,手机的屏幕朝上时,沿着顺时针转动20°,手机的屏幕和水平面的夹角为20°,可以表示为-20°。It should be noted that the negative sign "-" here represents the direction. When the screen of the electronic device is parallel to the ground plane, and the screen of the electronic device faces upward (the screen of the electronic device faces away from the ground plane), the electronic device is in a vertical position. The angle value in the direction is 0°. The 20° here is a buffer angle of 20° for the user. That is, as shown in Figure 8, when the screen of the mobile phone is facing upward, rotate it 20° clockwise. The screen of the mobile phone is in line with the horizontal plane. The included angle is 20°, which can be expressed as -20°.

并且,当用户站立使用电子设备时,电子设备竖着(即电子设备的屏幕与站立的用户面部是平行的)的情况下,电子设备的角度值为90°。当用户躺下使用电子设备,电子设备的屏幕朝下(电子设备的屏幕朝向地平面),且平行于地平面时,电子设备的角度值为180°,设置200°是给用户20°的缓冲角度,即电子设备的屏幕朝下时,沿着顺时针转动20°。Moreover, when the user is standing and using the electronic device, and the electronic device is vertical (that is, the screen of the electronic device is parallel to the face of the standing user), the angle value of the electronic device is 90°. When a user lies down and uses an electronic device, with the screen of the electronic device facing down (the screen of the electronic device facing the ground plane) and parallel to the ground plane, the angle value of the electronic device is 180°. Setting 200° gives the user a 20° buffer. Angle, that is, when the screen of the electronic device is facing down, rotate it 20° clockwise.

示例性地,上述第一方向为水平方向。在电子设备检测到电子设备的第一角度值处于90°至270°的范围外的情况下,电子设备可以切换显示为另一个界面,例如上述的第二界面。Illustratively, the above-mentioned first direction is a horizontal direction. When the electronic device detects that the first angle value of the electronic device is outside the range of 90° to 270°, the electronic device may switch to display another interface, such as the above-mentioned second interface.

又示例性地,上述第一方向包括水平方向和竖直方向。在电子设备检测到电子设备在水平方向的角度值处于90°至270°的范围外、和/或电子设备在竖直方向的角度值处于-20°到200°的范围外的情况下,电子设备可以切换显示为另一个界面,例如上述的第二界面。As another example, the above-mentioned first direction includes a horizontal direction and a vertical direction. When the electronic device detects that the angle value of the electronic device in the horizontal direction is outside the range of 90° to 270°, and/or the angle value of the electronic device in the vertical direction is outside the range of -20° to 200°, the electronic device The device can switch to display another interface, such as the above-mentioned second interface.

可选地,本申请实施例中,结合图1,如图9所示,在上述步骤201之后,本申请实施例提供的界面显示方法还可以包括下述的步骤203。Optionally, in this embodiment of the present application, as shown in FIG. 9 in conjunction with FIG. 1, after the above step 201, the interface display method provided by the embodiment of the present application may further include the following step 203.

步骤203、在第一角度值处于第一角度范围内的情况下,电子设备保持显示第一界面。Step 203: When the first angle value is within the first angle range, the electronic device keeps displaying the first interface.

可以理解,本申请实施例中,在显示第一界面的情况下,电子设备可以判断第一角度值是否在第一角度范围内,从而确定是执行界面切换还是继续保持当前显示的界面。It can be understood that in the embodiment of the present application, when the first interface is displayed, the electronic device can determine whether the first angle value is within the first angle range, thereby determining whether to perform interface switching or to continue to maintain the currently displayed interface.

示例性地,上述第一方向为水平方向。在电子设备检测到电子设备的第一角度值处于90°至270°的范围内的情况下,电子设备可以显示默认状态,即保持显示当前的应用界面。Illustratively, the above-mentioned first direction is a horizontal direction. When the electronic device detects that the first angle value of the electronic device is in the range of 90° to 270°, the electronic device may display a default state, that is, keep displaying the current application interface.

又示例性地,上述第一方向包括水平方向和竖直方向。在电子设备检测到电子设备在水平方向的角度值处于90°至270°的范围内、且电子设备在竖直方向的角度值处于-20°到200°的范围内的情况下,电子设备可以显示默认状态,即保持显示当前的应用界面。As another example, the above-mentioned first direction includes a horizontal direction and a vertical direction. When the electronic device detects that the angle value of the electronic device in the horizontal direction is in the range of 90° to 270°, and the angle value of the electronic device in the vertical direction is in the range of -20° to 200°, the electronic device may Display the default state, that is, keep displaying the current application interface.

需要说明的是,上述步骤202和步骤203的执行关系为“或”的关系,即在执行上述步骤202的情况下,不执行上述步骤203,或者在执行上述步骤203的情况下,不执行上述步骤202。It should be noted that the execution relationship between the above-mentioned step 202 and step 203 is an "OR" relationship, that is, when the above-mentioned step 202 is executed, the above-mentioned step 203 is not executed, or when the above-mentioned step 203 is executed, the above-mentioned step is not executed. Step 202.

本申请实施例中,在电子设备的屏幕与水平方向和/或竖直方向的角度值,处于第一角度范围(预设的界面信息的安全显示角度范围)内的情况下,电子设备认为电子设备的屏幕当前显示的界面中的信息不会被其他用户看到,因此可以保持当前显示的界面,在保护界面中的隐私信息的同时,也提升了电子设备对界面切换的灵活性。In the embodiment of the present application, when the angle value between the screen of the electronic device and the horizontal direction and/or the vertical direction is within the first angle range (the preset safe display angle range of interface information), the electronic device considers that the electronic device The information in the interface currently displayed on the screen of the device will not be seen by other users, so the currently displayed interface can be maintained, which not only protects the private information in the interface, but also improves the flexibility of the electronic device in switching interfaces.

本申请实施例提供的界面显示方法,在电子设备的屏幕与水平方向和/或竖直方向的第一角度值,处于第一角度范围外的情况下,电子设备认为电子设备的屏幕显示的界面中的信息会被其他用户看到,因此电子设备从第一界面更新为第二界面,第二界面为与所述第一角度值所处的角度范围关联的、且不包括用户隐私信息的界面,从而使得电子设备的屏幕显示的界面中的信息不包含用户隐私信息,避免了界面中的隐私信息被其他用户看到,如此避免了界面中的隐私信息的泄露,从而提升了电子设备的安全性。In the interface display method provided by the embodiment of the present application, when the first angle value between the screen of the electronic device and the horizontal direction and/or the vertical direction is outside the first angle range, the electronic device considers the interface displayed on the screen of the electronic device to be The information in will be seen by other users, so the electronic device is updated from the first interface to the second interface. The second interface is an interface associated with the angle range of the first angle value and does not include user privacy information. , so that the information in the interface displayed on the screen of the electronic device does not contain the user's private information, preventing the private information in the interface from being seen by other users, thus avoiding the leakage of private information in the interface, thereby improving the security of the electronic device sex.

可选地,本申请实施例中,结合图1,如图10所示,在上述步骤201之前,本申请实施例提供的界面显示方法还可以包括下述的步骤301至步骤303,并且上述步骤201a具体可以通过下述的步骤201e实现。Optionally, in this embodiment of the present application, as shown in Figure 10 in conjunction with Figure 1, before the above step 201, the interface display method provided by the embodiment of the present application may also include the following steps 301 to 303, and the above steps 201a can be specifically implemented through the following step 201e.

步骤301、电子设备显示应用设置界面。Step 301: The electronic device displays the application setting interface.

本申请实施例中,上述应用设置界面中包括至少一个第一设置选项,每个第一设置选项用于设置一个应用的界面的隐私保护功能。In this embodiment of the present application, the above-mentioned application setting interface includes at least one first setting option, and each first setting option is used to set the privacy protection function of an application interface.

可选地,本申请实施例中,上述隐私保护功能为:允许应用进行界面的隐私保护,或者禁止应用进行界面的隐私保护。Optionally, in this embodiment of the present application, the above-mentioned privacy protection function is: allowing the application to perform privacy protection on the interface, or prohibiting the application from performing privacy protection on the interface.

需要说明的是,上述允许应用进行界面的隐私保护可以理解为:在电子设备显示某个应用的应用界面时,电子设备会检测电子设备的角度值,并根据角度值确定是否更新当前显示的应用界面,即确定是否进行应用界面的隐私保护。It should be noted that the above privacy protection that allows applications to perform interfaces can be understood as: when the electronic device displays the application interface of an application, the electronic device will detect the angle value of the electronic device and determine whether to update the currently displayed application based on the angle value. Interface, that is, determine whether to protect the privacy of the application interface.

上述禁止应用进行界面的隐私保护可以理解为:在电子设备显示某个应用的应用界面时,电子设备不检测电子设备的角度值,也不会根据角度值确定是否更新当前显示的应用界面,即不进行应用界面的隐私保护。The privacy protection of the above-mentioned prohibited application interface can be understood as: when the electronic device displays the application interface of an application, the electronic device does not detect the angle value of the electronic device, nor does it determine whether to update the currently displayed application interface based on the angle value, that is, No privacy protection is provided for the application interface.

可选地,本申请实施例中,电子设备可以根据电子设备中应用的类型和应用中的信息,识别出哪些应用支持多界面显示功能,并在应用设置界面中显示支持多页面显示的应用列表,该应用列表包括支持多页面显示的应用的标识,每个应用的标识对应的选项为一个第一设置选项,从而用户可以通过应用设置界面中的至少一个第一设置选项,设置这些应用的界面的隐私保护功能。Optionally, in this embodiment of the present application, the electronic device can identify which applications support the multi-interface display function based on the type of application in the electronic device and the information in the application, and display a list of applications that support multi-page display in the application setting interface. , the application list includes identification of applications that support multi-page display, and the option corresponding to the identification of each application is a first setting option, so that the user can set the interface of these applications through at least one first setting option in the application setting interface. privacy protection function.

可以理解,用户可以针对每个应用对应的第一设置选项进行选择输入,对于被勾选的应用对应的第一设置选项,才会触发界面的隐私保护功能,即跟随电子设备的角度值而显示对应的界面,对于未被勾选的应用对应的第一设置选项,不会跟随电子设备的角度值而变化界面。It can be understood that the user can select and input the first setting option corresponding to each application. Only the first setting option corresponding to the selected application will trigger the privacy protection function of the interface, that is, it will be displayed following the angle value of the electronic device. The corresponding interface, for the first setting option corresponding to the unchecked application, will not change the interface following the angle value of the electronic device.

示例性地,在用户对图5或图7中的“应用添加”选项进行输入后,如图11所示,手机显示应用添加界面,该应用添加界面中包括支持多页面显示的应用列表,该应用列表包括支持多页面显示的应用的标识,例如应用A至应用E,每个应用的标识对应的选项为一个第一设置选项,从而用户可以通过应用设置界面中的一些第一设置选项,设置这些第一设置选项对应的应用的界面的隐私保护功能,例如设置应用A、应用B和应用E的界面的隐私保护功能。For example, after the user inputs the "Application Add" option in Figure 5 or Figure 7, as shown in Figure 11, the mobile phone displays an application adding interface. The application adding interface includes an application list that supports multi-page display. The application list includes identification of applications that support multi-page display, such as application A to application E. The option corresponding to the identification of each application is a first setting option, so that the user can set the settings through some first setting options in the application setting interface. These first setting options correspond to the privacy protection functions of the application interfaces, for example, setting the privacy protection functions of the interfaces of application A, application B, and application E.

步骤302、电子设备接收用户对至少一个第一设置选项中的N个第一设置选项的第一输入。Step 302: The electronic device receives the user's first input for N first setting options in at least one first setting option.

其中,N为正整数。Among them, N is a positive integer.

本申请实施例中,上述第一输入用于用户选择需求设置界面的隐私保护功能的应用,以使得电子设备允许这些应用进行界面的隐私保护。In this embodiment of the present application, the above-mentioned first input is used for the user to select applications that require setting the privacy protection function of the interface, so that the electronic device allows these applications to perform privacy protection on the interface.

可选地,本申请实施例中,上述第一输入可以为用户对N个第一设置选项的点击输入、特定手势输入、语音输入或其他可行性输入等,具体的可以根据实际使用需求确定,本申请实施例不作限制。Optionally, in this embodiment of the present application, the above-mentioned first input may be the user's click input on the N first setting options, specific gesture input, voice input or other feasible input, etc. The specific information may be determined according to actual usage requirements. The embodiments of this application are not limiting.

可选地,本申请实施例中,上述特定手势可以为单击手势、滑动手势、拖动手势、压力识别手势、长按手势、面积变化手势、双按手势、双击手势中的任意一种。Optionally, in the embodiment of the present application, the above-mentioned specific gesture may be any one of a click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, and a double click gesture.

可选地,本申请实施例中,上述点击输入可以为单击输入、双击输入或任意次数的点击输入等,还可以为长按输入或短按输入。Optionally, in the embodiment of the present application, the above-mentioned click input can be a single-click input, a double-click input, or any number of click inputs, etc., or it can also be a long-press input or a short-press input.

步骤303、电子设备响应于第一输入,开启N个第一设置选项对应的N个应用的隐私保护功能。Step 303: In response to the first input, the electronic device turns on the privacy protection functions of the N applications corresponding to the N first setting options.

本申请实施例中,上述开启N个应用的隐私保护功能可以理解为:设置N个应用的界面的隐私切换权限为:允许N个应用进行界面的隐私保护。In the embodiment of this application, the above-mentioned enabling the privacy protection function of N applications can be understood as: setting the privacy switching permissions of the interfaces of N applications as: allowing N applications to perform privacy protection on the interfaces.

可以理解,在电子设备设置界面的隐私切换权限为:允许N个应用进行界面的隐私保护之后,在电子设备显示该N个应用中的任意应用的界面时,电子设备会检测电子设备在第一方向的角度值,以根据该角度值确定是否执行界面切换,即切换至与该角度值所在角度范围关联的、且不包括用户隐私信息的界面。It can be understood that the privacy switching permission on the electronic device setting interface is: after allowing N applications to perform privacy protection on the interface, when the electronic device displays the interface of any of the N applications, the electronic device will detect that the electronic device is in the first The angle value of the direction is used to determine whether to perform an interface switch based on the angle value, that is, to switch to an interface that is associated with the angle range of the angle value and does not include user privacy information.

步骤201e、在显示第一界面、且第一界面对应的应用的隐私保护功能处于开启状态的情况下,电子设备检测电子设备的第一角度值。Step 201e: When the first interface is displayed and the privacy protection function of the application corresponding to the first interface is turned on, the electronic device detects the first angle value of the electronic device.

可选地,本申请实施例中,上述N个应用可以包括上述第一界面对应或所属的应用。上述N个应用可以包括以下至少一项:聊天类应用、支付类应用、相册应用或浏览器应用等,具体的可以根据使用需求确定,本申请实施例在此不作限制。Optionally, in this embodiment of the present application, the N applications may include applications corresponding to or belonging to the first interface. The above-mentioned N applications may include at least one of the following: chat applications, payment applications, photo album applications, or browser applications, etc. The details may be determined according to usage requirements, and are not limited in the embodiments of this application.

示例性地,假设上述N个应用包括浏览器应用。用户在通过手机的屏幕查看浏览器应用的界面A时,若用户将手机侧过来给别人看的时候,手机判断手机横向旋转的角度值是否在水平方向的安全角度范围(例如90°至270°)内,若手机横向旋转的角度值达到30°,即在水平方向的安全角度范围外,那么手机会将界面A更新为界面B,该界面B为浏览器应用中不包括用户隐私信息的应用界面,且该界面B为手机从与各个角度范围关联的界面中,查找的与该角度值30°所在角度范围关联的界面。For example, assume that the above N applications include browser applications. When the user views the interface A of the browser application through the screen of the mobile phone, if the user turns the mobile phone sideways to show it to others, the mobile phone determines whether the angle value of the horizontal rotation of the mobile phone is within the safe angle range in the horizontal direction (for example, 90° to 270° ), if the horizontal rotation angle of the phone reaches 30°, that is, outside the safe angle range in the horizontal direction, the phone will update interface A to interface B. This interface B is a browser application that does not include user private information. interface, and this interface B is the interface associated with the angle range where the angle value 30° is found by the mobile phone from the interfaces associated with each angle range.

本申请实施例中,用户可以通过在应用设置界面中进行第一输入,以使得电子设备设置N个应用的界面的隐私保护功能,从而使得在显示这些应用的界面时,电子设备能够为用户需求隐私保护的这些应用进行界面的隐私保护,避免这些应用中的隐私信息的泄露,提升这些应用中信息的安全性,也满足了用户对应用的隐私信息的保护需求。In the embodiment of the present application, the user can make the first input in the application setting interface, so that the electronic device can set the privacy protection function of the interfaces of N applications, so that when displaying the interfaces of these applications, the electronic device can provide user needs These privacy protection applications protect the privacy of the interface, avoid the leakage of private information in these applications, improve the security of information in these applications, and also meet users' needs for the protection of private information in applications.

可选地,本申请实施例中,上述应用设置界面中还包括第二设置选项,该第二设置选项用于设置隐私保护功能的角度范围和界面。示例性地,在上述步骤303之后,本申请实施例提供的界面显示方法还可以包括下述的步骤304和步骤305。Optionally, in this embodiment of the present application, the above-mentioned application setting interface also includes a second setting option, which is used to set the angle range and interface of the privacy protection function. For example, after the above-mentioned step 303, the interface display method provided by the embodiment of the present application may further include the following steps 304 and 305.

步骤304、电子设备接收用户对第二设置选项的第二输入。Step 304: The electronic device receives the user's second input for the second setting option.

本申请实施例中,上述第二输入用于设置隐私保护功能的角度范围和应用界面。In this embodiment of the present application, the above-mentioned second input is used to set the angle range and application interface of the privacy protection function.

可选地,本申请实施例中,上述第二输入可以为用户对第二设置选项的点击输入、特定手势输入、语音输入或其他可行性输入等,具体的可以根据实际使用需求确定,本申请实施例不作限制。Optionally, in the embodiment of this application, the above-mentioned second input may be the user's click input for the second setting option, specific gesture input, voice input or other feasible input, etc. The specific information may be determined according to actual usage requirements. This application The examples are not limiting.

可选地,本申请实施例中,上述特定手势可以为单击手势、滑动手势、拖动手势、压力识别手势、长按手势、面积变化手势、双按手势、双击手势中的任意一种。Optionally, in the embodiment of the present application, the above-mentioned specific gesture may be any one of a click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, and a double click gesture.

可选地,本申请实施例中,上述点击输入可以为单击输入、双击输入或任意次数的点击输入等,还可以为长按输入或短按输入。Optionally, in the embodiment of the present application, the above-mentioned click input can be a single-click input, a double-click input, or any number of click inputs, etc., or it can also be a long-press input or a short-press input.

步骤305、电子设备响应于第二输入,为N个应用中的每个应用设置至少一个角度范围,并为每个角度范围分别关联一个第三界面。Step 305: In response to the second input, the electronic device sets at least one angle range for each of the N applications, and associates a third interface with each angle range.

本申请实施例中,上述至少一个角度范围为每个应用的隐私保护对应的角度范围。上述第三界面为应用中不包括用户隐私信息的界面。In this embodiment of the present application, the above-mentioned at least one angle range is an angle range corresponding to the privacy protection of each application. The above-mentioned third interface is an interface in the application that does not include user privacy information.

可选地,本申请实施例中,电子设备可以设置多个角度范围,即多个角度档位,可以对360度的角度范围进行拆分,例如可以设置成4档:0°-90°、91°-230°、231°-330°、331°-359°,应用在4个不同档位下,对应4个数据库,4个数据库对应4个不同界面。电子设备可以从这些角度范围中选择一些角度范围作为应用的隐私保护功能的至少一个角度范围,每个角度范围分别关联了一个隐私界面,即不包括用户隐私信息的界面。Optionally, in the embodiment of the present application, the electronic device can be set with multiple angle ranges, that is, multiple angle gears, and the 360-degree angle range can be split, for example, it can be set into 4 gears: 0°-90°, 91°-230°, 231°-330°, 331°-359°, applied in 4 different gears, corresponding to 4 databases, and 4 databases corresponding to 4 different interfaces. The electronic device can select some angle ranges from these angle ranges as at least one angle range of the privacy protection function of the application, and each angle range is associated with a privacy interface, that is, an interface that does not include user privacy information.

示例性地,假设N个应用包括应用A。电子设备可以为应用A设置隐私保护功能的角度范围为0°-89°和331°-359°,且为角度范围0°-89°关联一个不包括用户隐私信息的界面a,为角度范围331°-359°关联一个不包括用户隐私信息的界面b。从而,在电子设备的第一角度值处于0°-89°的范围内的情况下,将电子设备当前显示的界面更新为界面a,在电子设备的第一角度值处于331°-359°的范围内的情况下,将电子设备当前显示的界面更新为界面b。For example, assume that N applications include application A. The electronic device can set the privacy protection function for application A in the angle ranges of 0°-89° and 331°-359°, and the angle range of 0°-89° is associated with an interface a that does not include user privacy information, and the angle range is 331 °-359° associates an interface b that does not include user private information. Therefore, when the first angle value of the electronic device is in the range of 0°-89°, the interface currently displayed by the electronic device is updated to interface a, and when the first angle value of the electronic device is in the range of 331°-359° If it is within the range, the interface currently displayed by the electronic device is updated to interface b.

需要说明的是,此处仅以一个应用为例进行示意,针对N个应用中的每个应用设置允许隐私保护的角度范围和第三界面,均可以按照上述示例中应用A的设置方式进行设置,此处不再一一列举。It should be noted that only one application is used as an example here. For each of the N applications, the angle range and third interface that allow privacy protection can be set according to the setting method of application A in the above example. , will not be listed one by one here.

上述N个应用中所有应用设置的允许隐私保护的角度范围和第三界面可以均相同,或者上述N个应用中部分应用设置的允许隐私保护的角度范围和第三界面相同,或者上述N个应用中所有应用设置的允许隐私保护的角度范围和第三界面均不同。具体的可以根据实际使用需求设定,本申请实施例不作限制。The angle range that allows privacy protection set by all the above N applications and the third interface can be the same, or the angle range that allows privacy protection set by some of the above N applications can be the same as the third interface, or the above N applications can set the same angle range that allows privacy protection and the third interface. The angle range and third interface set to allow privacy protection are different for all applications in . The specific setting can be based on actual usage requirements, and is not limited by the embodiments of this application.

本申请实施例中,用户可以通过第二输入,为N个应用中设置允许隐私保护的角度范围和关联的第三界面,以使得电子设备在显示这些应用的界面时,电子设备能够根据用户设置的隐私保护的角度范围,判断电子设备的角度值是否达到应用对应的隐私保护的角度范围,从而准确地判断是否进行界面的隐私保护,并且在进行界面的隐私保护时,是根据用户设置的关联的第三界面进行界面切换的,满足了用户对应用的隐私信息的保护需求和界面显示需求。In the embodiment of the present application, the user can set the angle range and associated third interface that allow privacy protection for N applications through the second input, so that when the electronic device displays the interfaces of these applications, the electronic device can set according to the user's settings The angle range of privacy protection is used to determine whether the angle value of the electronic device reaches the angle range of the corresponding privacy protection of the application, thereby accurately determining whether to perform privacy protection on the interface, and when performing privacy protection on the interface, it is based on the association set by the user. The third interface is used for interface switching, which meets the user's protection needs for the application's private information and interface display needs.

上述各个方法实施例,或者各个方法实施例中的各种可能的实现方式均可以单独执行,也可以任意两个或两个以上相互结合执行,具体可以根据实际使用需求确定,本申请实施例对此不做限制。Each of the above method embodiments, or various possible implementations in each method embodiment, can be executed individually, or any two or more of them can be executed in combination with each other. The details can be determined according to actual usage requirements. The embodiments of this application are suitable for There is no restriction on this.

需要说明的是,本申请实施例提供的界面显示方法,执行主体可以为电子设备或者界面显示装置。本申请实施例中以界面显示装置执行界面显示方法为例,说明本申请实施例提供的界面显示装置。It should be noted that, for the interface display method provided by the embodiments of the present application, the execution subject may be an electronic device or an interface display device. In the embodiment of the present application, the interface display device performing the interface display method is taken as an example to illustrate the interface display device provided by the embodiment of the present application.

图12示出了本申请实施例中涉及的界面显示装置的一种可能的结构示意图。如图12所示,该界面显示装置70可以包括:检测模块71和更新模块72。Figure 12 shows a possible structural schematic diagram of the interface display device involved in the embodiment of the present application. As shown in FIG. 12 , the interface display device 70 may include: a detection module 71 and an update module 72 .

其中,检测模块71,用于在显示第一界面的情况下,检测电子设备的第一角度值,该第一角度值为电子设备的屏幕与第一方向的角度值,该第一方向包括以下至少一项:水平方向和竖直方向。更新模块72,用于在检测模块71检测的第一角度值处于第一角度范围外的情况下,将第一界面更新为第二界面,该第二界面为与第一角度值所处的角度范围关联的、且不包括用户隐私信息的界面。The detection module 71 is used to detect the first angle value of the electronic device when the first interface is displayed. The first angle value is the angle value between the screen of the electronic device and the first direction. The first direction includes the following: At least one: horizontal and vertical. The update module 72 is configured to update the first interface to a second interface when the first angle value detected by the detection module 71 is outside the first angle range. The second interface is an angle with the first angle value. Scope-related interfaces that do not include user private information.

本申请实施例提供一种界面显示装置,在界面显示装置的屏幕与水平方向和/或竖直方向的第一角度值,处于第一角度范围外的情况下,界面显示装置认为屏幕显示的界面中的信息会被其他用户看到,因此界面显示装置从第一界面更新为第二界面,第二界面为与所述第一角度值所处的角度范围关联的、且不包括用户隐私信息的界面,从而使得界面显示装置的屏幕显示的界面中的信息不包含用户隐私信息,避免了界面中的隐私信息被其他用户看到,如此避免了界面中的隐私信息的泄露,从而提升了界面显示装置的安全性。Embodiments of the present application provide an interface display device. When the first angle value between the screen of the interface display device and the horizontal direction and/or the vertical direction is outside the first angle range, the interface display device considers the interface displayed on the screen to be The information in will be seen by other users, so the interface display device is updated from the first interface to the second interface. The second interface is associated with the angle range of the first angle value and does not include user privacy information. interface, so that the information in the interface displayed on the screen of the interface display device does not contain user private information, preventing the private information in the interface from being seen by other users, thus avoiding the leakage of private information in the interface, thereby improving the interface display Device security.

一种实现方式中,本申请实施例提供的界面显示装置70还包括:显示模块。其中,显示模块,用于在检测模块71检测电子设备的第一角度值之后,在第一角度值处于第一角度范围内的情况下,保持显示第一界面。In one implementation, the interface display device 70 provided by the embodiment of the present application further includes: a display module. The display module is configured to keep displaying the first interface when the first angle value is within the first angle range after the detection module 71 detects the first angle value of the electronic device.

一种实现方式中,上述第一界面和第二界面为相同应用中的不同界面;或者,上述第一界面和第二界面为不同操作系统中的界面。In an implementation manner, the first interface and the second interface are different interfaces in the same application; or the first interface and the second interface are interfaces in different operating systems.

一种实现方式中,本申请实施例提供的界面显示装置70还包括:显示模块、接收模块和设置模块。其中,显示模块,用于在检测模块71在显示第一界面的情况下,检测电子设备的第一角度值之前,显示应用设置界面,该应用设置界面中包括至少一个第一设置选项,每个第一设置选项用于设置一个应用的界面的隐私保护功能。接收模块,用于接收用户对至少一个第一设置选项中的N个第一设置选项的第一输入,N为正整数。设置模块,用于响应于接收模块接收的第一输入,开启该N个第一设置选项对应的N个应用的隐私保护功能。检测模块71,具体用于在显示第一界面、且第一界面对应的应用的隐私保护功能处于开启状态的情况下,检测电子设备的第一角度值。In one implementation, the interface display device 70 provided by the embodiment of the present application further includes: a display module, a receiving module and a setting module. Wherein, the display module is used to display an application setting interface before the detection module 71 detects the first angle value of the electronic device when displaying the first interface. The application setting interface includes at least one first setting option, each of which The first setting option is used to set the privacy protection function of an application interface. A receiving module, configured to receive the user's first input for N first setting options in at least one first setting option, where N is a positive integer. The setting module is configured to enable the privacy protection functions of the N applications corresponding to the N first setting options in response to the first input received by the receiving module. The detection module 71 is specifically configured to detect the first angle value of the electronic device when the first interface is displayed and the privacy protection function of the application corresponding to the first interface is turned on.

一种实现方式中,上述应用设置界面中还包括第二设置选项,该第二设置选项用于设置隐私保护功能的角度范围和界面。上述接收模块,还用于在设置模块开启N个第一设置选项对应的N个应用的隐私保护功能之后,接收用户对第二设置选项的第二输入。上述设置模块,还用于响应于接收模块接收的第二输入,为N个应用中的每个应用设置至少一个角度范围,并为每个角度范围分别关联一个第三界面,该至少一个角度范围为每个应用的隐私保护对应的角度范围,该第三界面为应用中不包括用户隐私信息的界面。In an implementation manner, the above-mentioned application setting interface also includes a second setting option, the second setting option is used to set the angle range and interface of the privacy protection function. The above-mentioned receiving module is also used to receive the second input of the second setting option from the user after the setting module turns on the privacy protection function of the N applications corresponding to the N first setting options. The above setting module is also configured to set at least one angle range for each of the N applications in response to the second input received by the receiving module, and associate a third interface with each angle range, the at least one angle range For the angle range corresponding to the privacy protection of each application, the third interface is an interface in the application that does not include user privacy information.

一种实现方式中,上述第一方向包括水平方向。上述检测模块71,具体用于检测电子设备中的指南针的偏转角度值,得到第一角度值。其中,指南针的参考方向为第二方向,该第二方向为电子设备的屏幕长边所在方向,或者电子设备的屏幕长边在水平方向上的投影方向。In one implementation, the first direction includes a horizontal direction. The above-mentioned detection module 71 is specifically used to detect the deflection angle value of the compass in the electronic device to obtain the first angle value. Wherein, the reference direction of the compass is the second direction, and the second direction is the direction of the long side of the screen of the electronic device, or the projection direction of the long side of the screen of the electronic device in the horizontal direction.

一种实现方式中,上述第一方向包括水平方向和竖直方向。上述检测模块71,具体用于:获取电子设备中的第一陀螺仪和第二陀螺仪在第一坐标系的坐标信息;计算第一陀螺仪的坐标信息与第二陀螺仪的坐标信息的差值,得到目标坐标信息;基于目标坐标信息与第一坐标系的原点,确定第一直线,并计算第一直线与第一方向的夹角值,得到第一角度值。In one implementation, the first direction includes a horizontal direction and a vertical direction. The above-mentioned detection module 71 is specifically used to: obtain the coordinate information of the first gyroscope and the second gyroscope in the electronic device in the first coordinate system; calculate the difference between the coordinate information of the first gyroscope and the coordinate information of the second gyroscope. value to obtain the target coordinate information; based on the target coordinate information and the origin of the first coordinate system, determine the first straight line, and calculate the angle value between the first straight line and the first direction to obtain the first angle value.

本申请实施例中的界面显示装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(Augmented Reality,AR)/虚拟现实(VirtualReality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(Ultra-Mobile PersonalComputer,UMPC)、上网本或者个人数字助理(Personal Digital Assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(PersonalComputer,PC)、电视机(Television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The interface display device in the embodiment of the present application may be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than the terminal. For example, the electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a mobile Internet device (MID), or augmented reality (Augmented Reality, AR)/virtual reality (Virtual Reality, VR). Equipment, robots, wearable devices, ultra-mobile personal computers (UMPC), netbooks or personal digital assistants (Personal Digital Assistant, PDA), etc., can also be servers, network attached storage (Network Attached Storage, NAS) , personal computer (Personal Computer, PC), television (Television, TV), teller machine or self-service machine, etc., the embodiments of this application are not specifically limited.

本申请实施例中的界面显示装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定The interface display device in the embodiment of the present application may be a device with an operating system. The operating system can be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of this application.

本申请实施例提供的界面显示装置能够实现上述方法实施例实现的各个过程,为避免重复,这里不再赘述。The interface display device provided by the embodiments of the present application can implement various processes implemented by the above method embodiments. To avoid duplication, they will not be described again here.

如图13所示,本申请实施例还提供一种电子设备90,包括处理器91和存储器92,存储器92上存储有可在所述处理器91上运行的程序或指令,该程序或指令被处理器91执行时实现上述界面显示方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。As shown in Figure 13, the embodiment of the present application also provides an electronic device 90, including a processor 91 and a memory 92. The memory 92 stores programs or instructions that can be run on the processor 91. The program or instructions are When executed, the processor 91 implements each step of the above-mentioned interface display method embodiment and can achieve the same technical effect. To avoid duplication, the details are not repeated here.

需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

图14为实现本申请实施例的一种电子设备的硬件结构示意图。Figure 14 is a schematic diagram of the hardware structure of an electronic device that implements an embodiment of the present application.

该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。The electronic device 100 includes but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, etc. part.

本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图14中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 100 may also include a power supply (such as a battery) that supplies power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby managing charging, discharging, and function through the power management system. Consumption management and other functions. The structure of the electronic device shown in Figure 14 does not constitute a limitation of the electronic device. The electronic device may include more or less components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here. .

其中,上述传感器105,用于在显示第一界面的情况下,检测电子设备的第一角度值,该第一角度值为电子设备的屏幕与第一方向的角度值,该第一方向包括以下至少一项:水平方向和竖直方向。Wherein, the above-mentioned sensor 105 is used to detect the first angle value of the electronic device when the first interface is displayed. The first angle value is the angle value between the screen of the electronic device and the first direction. The first direction includes the following: At least one: horizontal and vertical.

上述显示单元106,用于在第一角度值处于第一角度范围外的情况下,将第一界面更新为第二界面,该第二界面为与第一角度值所处的角度范围关联的、且不包括用户隐私信息的界面。The above-mentioned display unit 106 is used to update the first interface to a second interface when the first angle value is outside the first angle range. The second interface is associated with the angle range in which the first angle value is located. And does not include the interface of user private information.

本申请实施例提供一种电子设备,在电子设备的屏幕与水平方向和/或竖直方向的第一角度值,处于第一角度范围外的情况下,电子设备认为电子设备的屏幕显示的界面中的信息会被其他用户看到,因此电子设备从第一界面更新为第二界面,第二界面为与所述第一角度值所处的角度范围关联的、且不包括用户隐私信息的界面,从而使得电子设备的屏幕显示的界面中的信息不包含用户隐私信息,避免了界面中的隐私信息被其他用户看到,如此避免了界面中的隐私信息的泄露,从而提升了电子设备的安全性。Embodiments of the present application provide an electronic device. When the first angle value between the screen of the electronic device and the horizontal direction and/or the vertical direction is outside the first angle range, the electronic device considers the interface displayed on the screen of the electronic device to be The information in will be seen by other users, so the electronic device is updated from the first interface to the second interface. The second interface is an interface associated with the angle range of the first angle value and does not include user privacy information. , so that the information in the interface displayed on the screen of the electronic device does not contain the user's private information, preventing the private information in the interface from being seen by other users, thus avoiding the leakage of private information in the interface, thereby improving the security of the electronic device sex.

可选地,本申请实施例中,上述显示单元106,还用于在传感器105检测电子设备的第一角度值之后,在第一角度值处于第一角度范围内的情况下,保持显示第一界面。Optionally, in this embodiment of the present application, the above-mentioned display unit 106 is also configured to keep displaying the first angle value when the first angle value is within the first angle range after the sensor 105 detects the first angle value of the electronic device. interface.

可选地,本申请实施例中,上述第一界面和第二界面为相同应用中的不同界面;或者,上述第一界面和第二界面为不同操作系统中的界面。Optionally, in this embodiment of the present application, the first interface and the second interface are different interfaces in the same application; or, the first interface and the second interface are interfaces in different operating systems.

可选地,本申请实施例中,上述第一界面为应用界面。上述显示单元106,还用于在传感器105在显示第一界面的情况下,检测电子设备的第一角度值之前,显示应用设置界面,该应用设置界面中包括至少一个第一设置选项,每个第一设置选项用于设置一个应用的界面的隐私保护功能。上述用户输入单元107,用于接收用户对至少一个第一设置选项中的N个第一设置选项的第一输入,N为正整数。上述处理器110,用于响应于第一输入,开启N个第一设置选项对应的N个应用的隐私保护功能。上述传感器105,具体用于在显示第一界面、且第一界面对应的应用的隐私保护功能处于开启状态的情况下,检测电子设备的第一角度值。Optionally, in this embodiment of the present application, the above-mentioned first interface is an application interface. The above-mentioned display unit 106 is also used to display an application setting interface before the sensor 105 detects the first angle value of the electronic device when displaying the first interface. The application setting interface includes at least one first setting option, each of which The first setting option is used to set the privacy protection function of an application interface. The above-mentioned user input unit 107 is used to receive the user's first input for N first setting options in at least one first setting option, where N is a positive integer. The above-mentioned processor 110 is configured to, in response to the first input, enable the privacy protection functions of the N applications corresponding to the N first setting options. The above-mentioned sensor 105 is specifically used to detect the first angle value of the electronic device when the first interface is displayed and the privacy protection function of the application corresponding to the first interface is turned on.

可选地,本申请实施例中,上述应用设置界面中还包括第二设置选项,该第二设置选项用于设置隐私保护功能的角度范围和界面。上述用户输入单元107,还用于在处理器110开启N个第一设置选项对应的N个应用的隐私保护功能之后,接收用户对第二设置选项的第二输入。上述处理器110,还用于响应于第二输入,为N个应用中的每个应用设置至少一个角度范围,并为每个角度范围分别关联一个第三界面,该至少一个角度范围为每个应用的隐私保护对应的角度范围,该第三界面为应用中不包括用户隐私信息的界面。Optionally, in this embodiment of the present application, the above-mentioned application setting interface also includes a second setting option, which is used to set the angle range and interface of the privacy protection function. The above-mentioned user input unit 107 is also used to receive the second input of the second setting option from the user after the processor 110 turns on the privacy protection function of the N applications corresponding to the N first setting options. The above-mentioned processor 110 is also configured to, in response to the second input, set at least one angle range for each of the N applications, and associate a third interface with each angle range, and the at least one angle range is for each The angle range corresponding to the privacy protection of the application, the third interface is an interface in the application that does not include user privacy information.

可选地,本申请实施例中,上述第一方向包括水平方向。上述传感器105,具体用于检测电子设备中的指南针的偏转角度值,得到第一角度值。其中,指南针的参考方向为第二方向,该第二方向为电子设备的屏幕长边所在方向,或者电子设备的屏幕长边在水平方向上的投影方向。Optionally, in this embodiment of the present application, the first direction includes a horizontal direction. The above-mentioned sensor 105 is specifically used to detect the deflection angle value of the compass in the electronic device to obtain the first angle value. Wherein, the reference direction of the compass is the second direction, and the second direction is the direction of the long side of the screen of the electronic device, or the projection direction of the long side of the screen of the electronic device in the horizontal direction.

可选地,本申请实施例中,上述第一方向包括水平方向和竖直方向。上述传感器105,具体用于:获取电子设备中的第一陀螺仪和第二陀螺仪在第一坐标系的坐标信息;计算第一陀螺仪的坐标信息与第二陀螺仪的坐标信息的差值,得到目标坐标信息;基于目标坐标信息与第一坐标系的原点,确定第一直线,并计算第一直线与第一方向的夹角值,得到第一角度值。Optionally, in this embodiment of the present application, the above-mentioned first direction includes a horizontal direction and a vertical direction. The above-mentioned sensor 105 is specifically used to: obtain the coordinate information of the first gyroscope and the second gyroscope in the electronic device in the first coordinate system; calculate the difference between the coordinate information of the first gyroscope and the coordinate information of the second gyroscope. , obtain the target coordinate information; determine the first straight line based on the target coordinate information and the origin of the first coordinate system, and calculate the angle value between the first straight line and the first direction to obtain the first angle value.

本申请实施例提供的电子设备能够实现上述方法实施例实现的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The electronic device provided by the embodiments of the present application can implement each process implemented by the above method embodiments, and can achieve the same technical effect. To avoid duplication, the details will not be described here.

本实施例中各种实现方式具有的有益效果具体可以参见上述方法实施例中相应实现方式所具有的有益效果,为避免重复,此处不再赘述。For specific beneficial effects of various implementation methods in this embodiment, please refer to the beneficial effects of corresponding implementation methods in the above method embodiments. To avoid duplication, they will not be described again here.

应理解的是,本申请实施例中,输入单元104可以包括图形处理器(GraphicsProcessing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072中的至少一种。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. The graphics processor 1041 is responsible for the image capture device (such as Process the image data of still pictures or videos obtained by the camera). The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072 . Touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described again here.

存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器109可以包括易失性存储器或非易失性存储器,或者,存储器109可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器109包括但不限于这些和任意其它适合类型的存储器。Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, Image playback function, etc.) etc. Additionally, memory 109 may include volatile memory or nonvolatile memory, or memory 109 may include both volatile and nonvolatile memory. Among them, the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically removable memory. Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM). Memory 109 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.

处理器110可包括一个或多个处理单元;在本申请实施例中,处理器110集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 may include one or more processing units; in this embodiment of the present application, the processor 110 integrates an application processor and a modem processor, where the application processor mainly processes operating systems, user interfaces, application programs, etc. In operation, the modem processor mainly processes wireless communication signals, such as the baseband processor. It can be understood that the above modem processor may not be integrated into the processor 110 .

本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述界面显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application also provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the program or instructions are executed by a processor, each process of the above interface display method embodiment is implemented, and the same can be achieved. The technical effects will not be repeated here to avoid repetition.

其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disk or optical disk, etc.

本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述界面显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the above interface display method embodiment. Each process can achieve the same technical effect. To avoid duplication, it will not be described again here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-a-chip or system-on-chip, etc.

本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述界面显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application provide a computer program product. The program product is stored in a storage medium. The program product is executed by at least one processor to implement each process of the above interface display method embodiment, and can achieve the same technical effect. , to avoid repetition, will not be repeated here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions may be performed, for example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk , optical disk), including several instructions to cause a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of this application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Inspired by this application, many forms can be made without departing from the purpose of this application and the scope protected by the claims, all of which fall within the protection of this application.

Claims (11)

1. An interface display method, comprising:
under the condition that a first interface is displayed, detecting a first angle value of the electronic equipment, wherein the first angle value is an angle value between a screen of the electronic equipment and a first direction, and the first direction comprises at least one of the following steps: a horizontal direction and a vertical direction;
and updating the first interface into a second interface when the first angle value is out of the first angle range, wherein the second interface is an interface which is associated with the angle range where the first angle value is located and does not comprise user privacy information.
2. The method of claim 1, wherein the first interface and the second interface are different interfaces in the same application;
or,
the first interface and the second interface are interfaces in different operating systems.
3. The method of claim 1 or 2, wherein the first interface is an application interface;
before detecting the first angle value of the electronic device in the case of displaying the first interface, the method further includes:
displaying an application setting interface, wherein the application setting interface comprises at least one first setting option, and each first setting option is used for setting the privacy protection function of the interface of one application;
Receiving first input of a user to N first setting options in the at least one first setting option, wherein N is a positive integer;
responding to the first input, and starting privacy protection functions of N applications corresponding to the N first setting options;
the detecting, in a case where the first interface is displayed, a first angle value of the electronic device includes:
and detecting a first angle value of the electronic equipment under the condition that the first interface is displayed and the privacy protection function of the application corresponding to the first interface is in an on state.
4. A method according to claim 3, wherein the application setting interface further comprises a second setting option for setting an angle range and interface of the privacy preserving function;
after the privacy protection functions of the N applications corresponding to the N first setting options are started, the method further includes:
receiving a second input of a user to the second setting option;
and responding to the second input, setting at least one angle range for each application in the N applications, and respectively associating a third interface for each angle range, wherein the at least one angle range is the angle range corresponding to privacy protection of each application, and the third interface is an interface which does not comprise user privacy information in the application.
5. The method of claim 1, wherein the first direction comprises a horizontal direction;
the detecting a first angle value of the electronic device includes:
detecting a deflection angle value of a compass in the electronic equipment to obtain the first angle value;
the reference direction of the compass is a second direction, and the second direction is a direction in which a long side of a screen of the electronic device is located, or a projection direction of the long side of the screen of the electronic device in a horizontal direction.
6. The method of claim 1, wherein the first direction comprises a horizontal direction and a vertical direction;
the detecting a first angle value of the electronic device includes:
coordinate information of a first gyroscope and a second gyroscope in the electronic equipment in a first coordinate system is obtained;
calculating the difference value between the coordinate information of the first gyroscope and the coordinate information of the second gyroscope to obtain target coordinate information;
and determining a first straight line based on the target coordinate information and the origin of the first coordinate system, and calculating an included angle value between the first straight line and the first direction to obtain the first angle value.
7. An interface display device, comprising: a detection module and an update module;
The detection module is configured to detect, when a first interface is displayed, a first angle value of an electronic device, where the first angle value is an angle value between a screen of the electronic device and a first direction, and the first direction includes at least one of: a horizontal direction and a vertical direction;
the updating module is configured to update the first interface to a second interface when the first angle value detected by the detecting module is outside a first angle range, where the second interface is an interface that is associated with the angle range where the first angle value is located and does not include user privacy information.
8. The apparatus of claim 7, wherein the first interface is an application interface; the apparatus further comprises: the device comprises a display module, a receiving module and a setting module;
the display module is used for displaying an application setting interface before the detection module detects a first angle value of the electronic equipment under the condition that the detection module displays the first interface, the application setting interface comprises at least one first setting option, and each first setting option is used for setting a privacy protection function of an interface of an application;
the receiving module is used for receiving first input of a user to N first setting options in the at least one first setting option, wherein N is a positive integer;
The setting module is used for responding to the first input received by the receiving module and starting privacy protection functions of N applications corresponding to the N first setting options;
the detection module is specifically configured to detect a first angle value of the electronic device when the first interface is displayed and a privacy protection function of an application corresponding to the first interface is in an on state.
9. The apparatus of claim 7, wherein the first direction comprises a horizontal direction;
the detection module is specifically configured to detect a deflection angle value of a compass in the electronic device, so as to obtain the first angle value;
the reference direction of the compass is a second direction, and the second direction is a direction in which a long side of a screen of the electronic device is located, or a projection direction of the long side of the screen of the electronic device in a horizontal direction.
10. The apparatus of claim 7, wherein the first direction comprises a horizontal direction and a vertical direction;
the detection module is specifically configured to: coordinate information of a first gyroscope and a second gyroscope in the electronic equipment in a first coordinate system is obtained; calculating the difference value between the coordinate information of the first gyroscope and the coordinate information of the second gyroscope to obtain target coordinate information; and determining a first straight line based on the target coordinate information and the origin of the first coordinate system, and calculating an included angle value between the first straight line and the first direction to obtain the first angle value.
11. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the interface display method of any one of claims 1 to 6.
CN202311061824.5A 2023-08-22 2023-08-22 Interface display method and device and electronic equipment Pending CN117056990A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311061824.5A CN117056990A (en) 2023-08-22 2023-08-22 Interface display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311061824.5A CN117056990A (en) 2023-08-22 2023-08-22 Interface display method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN117056990A true CN117056990A (en) 2023-11-14

Family

ID=88664151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311061824.5A Pending CN117056990A (en) 2023-08-22 2023-08-22 Interface display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN117056990A (en)

Similar Documents

Publication Publication Date Title
US11586293B2 (en) Display control method and apparatus
US8732624B2 (en) Protection for unintentional inputs
US9959040B1 (en) Input assistance for computing devices
US20100037306A1 (en) Electronic device and access control method thereof
US20140078091A1 (en) Terminal Device and Method for Quickly Starting Program
US9633412B2 (en) Method of adjusting screen magnification of electronic device, machine-readable storage medium, and electronic device
US20180121067A1 (en) Electronic device having hole area and method of controlling hole area thereof
US9494973B2 (en) Display system with image sensor based display orientation
US11095331B2 (en) Electronic device, protective case for electronic device, and displaying method thereof
EP3039556B1 (en) Method, apparatus, and recording medium for interworking with external terminal
US10346599B2 (en) Multi-function button for computing devices
CN109901976B (en) Application program management method and terminal equipment
CN110209369A (en) A kind of interface display method and terminal device
CN105718778A (en) Terminal interface control method and terminal
WO2024037415A1 (en) Screen mirroring content display method and apparatus, device and storage medium
CN106971123B (en) A kind of terminal interface display methods and mobile terminal
TWI514243B (en) System and method for controlling virtual keyboards
CN114416269A (en) Interface display method and display device
CN117056990A (en) Interface display method and device and electronic equipment
US10902101B2 (en) Techniques for displaying secure content for an application through user interface context file switching
CN116893770A (en) Screenshot method, device, electronic device and readable storage medium
WO2023093661A1 (en) Interface control method and apparatus, and electronic device and storage medium
CN116132568A (en) Operation execution method and device
CN115576514A (en) Content display method and device, electronic equipment and readable storage medium
CN115390778A (en) Interface display method and device

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