[go: up one dir, main page]

CN114979321A - Display method, device, terminal and storage medium for notification information - Google Patents

Display method, device, terminal and storage medium for notification information Download PDF

Info

Publication number
CN114979321A
CN114979321A CN202110218650.3A CN202110218650A CN114979321A CN 114979321 A CN114979321 A CN 114979321A CN 202110218650 A CN202110218650 A CN 202110218650A CN 114979321 A CN114979321 A CN 114979321A
Authority
CN
China
Prior art keywords
display screen
screen
working state
target display
detection result
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
CN202110218650.3A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110218650.3A priority Critical patent/CN114979321A/en
Publication of CN114979321A publication Critical patent/CN114979321A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/0206Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings
    • H04M1/0208Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings characterized by the relative motions of the body parts
    • H04M1/0214Foldable telephones, i.e. with body parts pivoting to an open position around an axis parallel to the plane they define in closed position
    • H04M1/0216Foldable in one direction, i.e. using a one degree of freedom hinge
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to a display method, a display device, a terminal and a storage medium of notification information. The terminal comprises a folding screen, and the method comprises the following steps: acquiring the working state of the folding screen and the detection result of a detection device of the terminal; determining a target display screen according to the working state and the detection result of the folding screen, wherein the target display screen is a display screen of the terminal facing a user; and displaying the notification information on the target display screen. According to the method, the target display screen for displaying the notification information is determined according to the working state of the folding screen and the detection result of the detection device of the terminal, the target display screen for displaying the notification information can be determined according to the actual using state of the terminal, the notification information can be better guaranteed to be seen by a user in time, the user is prevented from missing important notification information, and the using experience is improved.

Description

通知信息的显示方法、装置、终端及存储介质Display method, device, terminal and storage medium for notification information

技术领域technical field

本公开涉及终端技术领域,尤其涉及一种通知信息的显示方法、装置、终端及存储介质。The present disclosure relates to the technical field of terminals, and in particular, to a method, device, terminal and storage medium for displaying notification information.

背景技术Background technique

有些包括折叠式屏幕手机中,一般包括主显示屏和副显示屏,当收到通知信息时,会根据折叠式屏幕是折叠状态还是展开状态,来决定在哪个显示屏显示通知信息。Some mobile phones with foldable screens generally include a main display and a secondary display. When receiving notification information, it will decide which display to display the notification information on according to whether the folding screen is folded or unfolded.

比如,某款手机包括折叠式屏幕和普通屏幕,分别设置在手机的相背的两侧。当折叠式屏幕处于展开状态时,通知信息显示在主显示屏上(展开状态的折叠式屏幕是主显示屏);当折叠式屏幕处于折叠状态时,通知信息则显示在副显示屏(普通屏幕是副显示屏)上。For example, a certain mobile phone includes a foldable screen and a normal screen, which are respectively arranged on opposite sides of the mobile phone. When the folding screen is in the unfolded state, the notification information is displayed on the main display (the unfolded folding screen is the main display); when the folding screen is in the folded state, the notification information is displayed on the secondary display (the normal screen). is on the secondary display).

但是上述通知信息的显示方法存在一定的缺陷。比如折叠式屏幕处于展开状态时,手机扣在桌面上,此时其实是副显示屏(普通屏幕)朝向用户,如果通信信息仍然显示于主显示屏,用户则无法及时看到通知信息,体验较差。However, the above method for displaying notification information has certain defects. For example, when the foldable screen is in the unfolded state, the mobile phone is buckled on the desktop. At this time, the secondary display screen (ordinary screen) is actually facing the user. If the communication information is still displayed on the main display screen, the user cannot see the notification information in time, and the experience is better. Difference.

发明内容SUMMARY OF THE INVENTION

为克服相关技术中存在的问题,本公开提供一种通知信息的显示方法、装置、终端及存储介质。In order to overcome the problems existing in the related art, the present disclosure provides a method, device, terminal and storage medium for displaying notification information.

根据本公开实施例的第一方面,提供一种通知信息的显示方法,应用于终端,所述终端包括折叠式屏幕,所述方法包括:According to a first aspect of the embodiments of the present disclosure, a method for displaying notification information is provided, which is applied to a terminal, where the terminal includes a foldable screen, and the method includes:

获取所述折叠式屏幕的工作状态,以及终端的检测装置的检测结果;Obtain the working state of the folding screen and the detection result of the detection device of the terminal;

根据所述折叠式屏幕的工作状态和所述检测结果,确定目标显示屏,其中,所述目标显示屏为所述终端的朝向用户的显示屏;determining a target display screen according to the working state of the foldable screen and the detection result, wherein the target display screen is a display screen of the terminal facing the user;

显示通知信息于所述目标显示屏。Display notification information on the target display screen.

可选地,所述根据所述折叠式屏幕的工作状态和所述检测结果,确定目标显示屏,包括:Optionally, determining the target display screen according to the working state of the foldable screen and the detection result includes:

根据所述折叠式屏幕的工作状态,以及加速度传感器的检测结果,确定所述目标显示屏;和/或,Determine the target display screen according to the working state of the folding screen and the detection result of the acceleration sensor; and/or,

根据所述折折叠式屏幕的工作状态,以及光线传感器的检测结果,确定所述目标显示屏;和/或,According to the working state of the folding screen and the detection result of the light sensor, determine the target display screen; and/or,

根据所述折折叠式屏幕的工作状态,以及距离传感器的检测结果,确定所述目标显示屏;和/或,Determine the target display screen according to the working state of the folding screen and the detection result of the distance sensor; and/or,

根据所述折折叠式屏幕的工作状态,以及摄像装置的检测结果,确定所述目标显示屏。The target display screen is determined according to the working state of the foldable screen and the detection result of the camera device.

可选地,所述根据所述折叠式屏幕的工作状态,以及加速度传感器的检测结果,确定所述目标显示屏,包括:Optionally, determining the target display screen according to the working state of the foldable screen and the detection result of the acceleration sensor includes:

根据所述折叠式屏幕的工作状态,以及所述加速度传感器检测的竖向坐标值的正负,确定所述目标显示屏;Determine the target display screen according to the working state of the folding screen and the positive or negative of the vertical coordinate value detected by the acceleration sensor;

所述根据所述折叠式屏幕的工作状态,以及光线传感器的检测结果,确定所述目标显示屏,包括:The determining of the target display screen according to the working state of the folding screen and the detection result of the light sensor includes:

根据所述折叠式屏幕的工作状态,以及所述光线传感器检测的光线强度值与预设强度值的大小,确定所述目标显示屏;Determine the target display screen according to the working state of the folding screen and the light intensity value detected by the light sensor and the preset intensity value;

所述根据所述折叠式屏幕的工作状态,以及距离传感器的检测结果,确定所述目标显示屏,包括:The determining of the target display screen according to the working state of the folding screen and the detection result of the distance sensor includes:

根据所述折叠式屏幕的工作状态,以及所述距离传感器检测的当前距离值与预设距离值的大小,确定所述目标显示屏;Determine the target display screen according to the working state of the folding screen and the current distance value detected by the distance sensor and the preset distance value;

所述根据所述折叠式屏幕的工作状态,以及摄像装置的检测结果,确定所述目标显示屏,包括Determining the target display screen according to the working state of the folding screen and the detection result of the camera device, including

根据所述折叠式屏幕的工作状态,以及所述摄像装置检测的图像,确定所述目标显示屏。The target display screen is determined according to the working state of the folding screen and the image detected by the camera device.

可选地,当所述工作状态为展开状态时,所述折叠式屏幕形成所述终端的主显示屏,且所述终端还包括与所述主显示屏相背设置的副显示屏;Optionally, when the working state is an unfolded state, the foldable screen forms a main display screen of the terminal, and the terminal further includes a secondary display screen arranged opposite to the main display screen;

所述根据所述折叠式屏幕的工作状态和所述检测结果,确定目标显示屏,包括:The determining of the target display screen according to the working state of the folding screen and the detection result includes:

当所述工作状态为展开状态时,根据所述检测结果确定所述主显示屏或所述副显示屏为所述目标显示屏。When the working state is the unfolded state, the main display screen or the secondary display screen is determined to be the target display screen according to the detection result.

可选地,当所述工作状态为折叠状态时,所述折叠式屏幕的第一显示区域和第二显示区域形成两个相背设置的显示屏;Optionally, when the working state is the folded state, the first display area and the second display area of the foldable screen form two display screens arranged opposite to each other;

所述根据所述折叠式屏幕的工作状态和所述检测结果,确定目标显示屏,包括:The determining of the target display screen according to the working state of the folding screen and the detection result includes:

当所述工作状态为折叠状态时,根据所述检测结果确定所述两个相背设置的显示屏之一为所述目标显示屏。When the working state is the folded state, it is determined according to the detection result that one of the two display screens arranged opposite to each other is the target display screen.

可选地,所述方法还包括:Optionally, the method further includes:

确定出所述目标显示屏的预设时长后,显示通知信息于所述目标显示屏。After the preset duration of the target display screen is determined, notification information is displayed on the target display screen.

根据本公开实施例的第二方面,提供一种通知信息的显示装置,应用于终端,所述终端包括折叠式屏幕,所述装置包括:According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for displaying notification information, which is applied to a terminal, where the terminal includes a foldable screen, and the apparatus includes:

获取模块,用于获取所述折叠式屏幕的工作状态,以及终端的检测装置的检测结果;an acquisition module, configured to acquire the working state of the folding screen and the detection result of the detection device of the terminal;

确定模块,用于根据所述折叠式屏幕的工作状态和所述检测结果,确定目标显示屏,其中,所述目标显示屏为所述终端的朝向用户的显示屏;a determination module, configured to determine a target display screen according to the working state of the folding screen and the detection result, wherein the target display screen is the display screen of the terminal facing the user;

显示模块,用于显示通知信息于所述目标显示屏。The display module is used for displaying notification information on the target display screen.

可选地,所述确定模块,还用于:Optionally, the determining module is also used for:

根据所述折叠式屏幕的工作状态,以及加速度传感器的检测结果,确定所述目标显示屏;和/或,Determine the target display screen according to the working state of the folding screen and the detection result of the acceleration sensor; and/or,

根据所述折折叠式屏幕的工作状态,以及光线传感器的检测结果,确定所述目标显示屏;和/或,According to the working state of the folding screen and the detection result of the light sensor, determine the target display screen; and/or,

根据所述折折叠式屏幕的工作状态,以及距离传感器的检测结果,确定所述目标显示屏;和/或,Determine the target display screen according to the working state of the folding screen and the detection result of the distance sensor; and/or,

根据所述折折叠式屏幕的工作状态,以及摄像装置的检测结果,确定所述目标显示屏。The target display screen is determined according to the working state of the foldable screen and the detection result of the camera device.

可选地,所述确定模块,还用于所述根据所述折叠式屏幕的工作状态,以及加速度传感器的检测结果,确定所述目标显示屏时,具体用于:Optionally, the determining module is further configured to determine the target display screen according to the working state of the folding screen and the detection result of the acceleration sensor, specifically:

根据所述折叠式屏幕的工作状态,以及所述加速度传感器检测的竖向坐标值的正负,确定所述目标显示屏;Determine the target display screen according to the working state of the folding screen and the positive or negative of the vertical coordinate value detected by the acceleration sensor;

所述确定模块,还用于所述根据所述折叠式屏幕的工作状态,以及光线传感器的检测结果,确定所述目标显示屏时,具体用于:The determining module is also used for determining the target display screen according to the working state of the folding screen and the detection result of the light sensor, specifically for:

根据所述折叠式屏幕的工作状态,以及所述光线传感器检测的光线强度值与预设强度值的大小,确定所述目标显示屏;Determine the target display screen according to the working state of the folding screen and the light intensity value detected by the light sensor and the preset intensity value;

所述确定模块,还用于所述根据所述折叠式屏幕的工作状态,以及距离传感器的检测结果,确定所述目标显示屏时,具体用于:The determining module is also used for determining the target display screen according to the working state of the folding screen and the detection result of the distance sensor, specifically for:

根据所述折叠式屏幕的工作状态,以及所述距离传感器检测的当前距离值与预设距离值的大小,确定所述目标显示屏;Determine the target display screen according to the working state of the folding screen and the current distance value detected by the distance sensor and the preset distance value;

所述确定模块,还用于所述根据所述折叠式屏幕的工作状态,以及摄像装置的检测结果,确定所述目标显示屏时,具体用于:The determining module is also used for determining the target display screen according to the working state of the folding screen and the detection result of the camera, specifically for:

根据所述折叠式屏幕的工作状态,以及所述摄像装置检测的图像,确定所述目标显示屏。The target display screen is determined according to the working state of the folding screen and the image detected by the camera device.

可选地,当所述工作状态为展开状态时,所述折叠式屏幕形成所述终端的主显示屏,且所述终端还包括与所述主显示屏相背设置的副显示屏,所述确定模块,还用于:Optionally, when the working state is the unfolded state, the foldable screen forms the main display screen of the terminal, and the terminal further includes a sub-display screen arranged opposite to the main display screen, the Identify modules, also used to:

当所述工作状态为展开状态时,根据所述检测结果确定所述主显示屏或所述副显示屏为所述目标显示屏。When the working state is the unfolded state, the main display screen or the secondary display screen is determined to be the target display screen according to the detection result.

可选地,当所述工作状态为折叠状态时,所述折叠式屏幕的第一显示区域和第二显示区域形成两个相背设置的显示屏,所述确定模块,还用于:Optionally, when the working state is the folded state, the first display area and the second display area of the foldable screen form two display screens arranged opposite to each other, and the determining module is further configured to:

当所述工作状态为折叠状态时,根据所述检测结果确定所述两个相背设置的显示屏之一为所述目标显示屏。When the working state is the folded state, it is determined according to the detection result that one of the two display screens arranged opposite to each other is the target display screen.

可选地,所述显示模块,还用于:Optionally, the display module is also used for:

确定出所述目标显示屏的预设时长后,显示通知信息于所述目标显示屏。After the preset duration of the target display screen is determined, notification information is displayed on the target display screen.

根据本公开实施例的第三方面,提供一种终端,其特征在于,所述终端包括折叠式屏幕,所述终端还包括:According to a third aspect of the embodiments of the present disclosure, a terminal is provided, wherein the terminal includes a foldable screen, and the terminal further includes:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为执行如第一方面所述的显示方法。Wherein, the processor is configured to execute the display method according to the first aspect.

根据本公开实施例的第四方面,提供一种非临时性计算机可读存储介质,当所述存储介质中的指令由终端的处理器执行时,使得终端能够执行如第一方面所述的方法。According to a fourth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, when instructions in the storage medium are executed by a processor of a terminal, the terminal can execute the method according to the first aspect .

本公开的实施例提供的技术方案可以包括以下有益效果:该方法中,根据折叠式屏幕的工作状态以及终端的检测装置的检测结果,确定用于显示通知信息的目标显示屏,可以根据终端的实际使用状态确定用于显示通知信息的目标显示屏,更好地保证用户及时看到通知信息,避免用户错过重要的通知信息,提升了使用体验。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: in the method, the target display screen for displaying notification information is determined according to the working state of the folding screen and the detection result of the detection device of the terminal, The actual use state determines the target display screen used to display the notification information, which better ensures that the user can see the notification information in time, prevents the user from missing important notification information, and improves the use experience.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.

图1是根据一示例性实施例示出的显示方法的流程图。FIG. 1 is a flowchart of a display method according to an exemplary embodiment.

图2是根据一示例性实施例示出的终端的结构示意图(折叠式屏幕为内折形式)。FIG. 2 is a schematic structural diagram of a terminal according to an exemplary embodiment (the foldable screen is in an inwardly folded form).

图3是根据一示例性实施例示出的终端的结构示意图(折叠式屏幕为外折形式)。FIG. 3 is a schematic structural diagram of a terminal according to an exemplary embodiment (the foldable screen is in an outwardly folded form).

图4是根据一示例性实施例示出的显示状态显示装置的框图。FIG. 4 is a block diagram of a display state display device according to an exemplary embodiment.

图5是根据一示例性实施例示出的终端的框图。FIG. 5 is a block diagram of a terminal according to an exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with some aspects of the invention as recited in the appended claims.

相关技术中,仅仅根据折叠式屏幕的工作状态(包括折叠状态和展开状态)来确定显示通知信息的显示屏,在某些场景下,用户并不能及时看到通知信息,容易导致用户错过重要通知信息,体验较差。In the related art, the display screen for displaying notification information is only determined according to the working state (including the folded state and the unfolded state) of the folding screen. In some scenarios, the user cannot see the notification information in time, which may easily cause the user to miss important notifications information, poor experience.

本公开提供了一种通知信息的显示方法,应用于包括折叠式屏幕的终端。该方法中,根据折叠式屏幕的工作状态以及终端的检测装置的检测结果,确定用于显示通知信息的目标显示屏,可以根据终端的实际使用状态确定用于显示通知信息的目标显示屏,更好地保证用户及时看到通知信息,避免用户错过重要的通知信息,提升了使用体验。The present disclosure provides a method for displaying notification information, which is applied to a terminal including a foldable screen. In the method, the target display screen for displaying notification information is determined according to the working state of the folding screen and the detection result of the detection device of the terminal, and the target display screen for displaying notification information can be determined according to the actual use state of the terminal, and more It ensures that users can see the notification information in time, avoids users missing important notification information, and improves the user experience.

在一个示例性实施例中,提供了一种通知信息的显示方法,应用于终端,终端包括折叠式屏幕,参考图1所示,该方法包括:In an exemplary embodiment, a method for displaying notification information is provided, which is applied to a terminal. The terminal includes a foldable screen. Referring to FIG. 1 , the method includes:

S110、获取折叠式屏幕的工作状态,以及终端的检测装置的检测结果;S110. Acquire the working state of the folding screen and the detection result of the detection device of the terminal;

S120、根据折叠式屏幕的工作状态和检测结果,确定目标显示屏,其中,目标显示屏为终端的朝向用户的显示屏;S120. Determine a target display screen according to the working state and detection result of the foldable screen, where the target display screen is a display screen of the terminal facing the user;

S130、显示通知信息于目标显示屏。S130, displaying notification information on the target display screen.

在步骤S110中,折叠式屏幕的工作状态可通过铰链传感器和/或角度传感器来确定,在此不做赘述。In step S110, the working state of the foldable screen may be determined by the hinge sensor and/or the angle sensor, which will not be repeated here.

检测装置可以包括以下中的至少一种:加速度传感器、光线传感器、距离传感器、摄像装置。The detection device may include at least one of the following: an acceleration sensor, a light sensor, a distance sensor, and a camera.

在步骤S120中,折叠式屏幕包括两种形式:内折和外折。一般情况下,折叠式屏幕包括第一显示区域和第二显示区域。参考图2所示,内折形式指,第一显示区域11a和第二显示区域12a可由平铺状态,朝向使得第一显示区域11a和第二显示区域12a的夹角减小的方向折叠。参考图3所示,外折形式指,第一显示区域11b和第二显示区域12b可由平铺状态,朝向使得第一显示区域11b和第二显示区域12b的夹角增大的方向折叠。In step S120, the foldable screen includes two forms: inner folding and outer folding. Generally, the folding screen includes a first display area and a second display area. Referring to FIG. 2 , the inward folded form means that the first display area 11a and the second display area 12a can be folded in a tiled state in a direction that reduces the angle between the first display area 11a and the second display area 12a. Referring to FIG. 3 , the outwardly folded form means that the first display area 11b and the second display area 12b can be folded in the direction of increasing the angle between the first display area 11b and the second display area 12b from a tiled state.

示例1Example 1

参考图2所示,折叠式屏幕1a属于内折形式,终端中还设置一块普通的平板式屏幕2a,该平板式屏幕2a设置在第一显示区域11a或第二显示区域12a的相背侧,用于形成终端的副显示屏。Referring to FIG. 2 , the foldable screen 1a is in an inwardly folded form, and a common flat screen 2a is also provided in the terminal, and the flat screen 2a is arranged on the opposite side of the first display area 11a or the second display area 12a, Used to form the secondary display of the terminal.

在折叠式屏幕1a处于展开状态下,第一显示区域11a和第二显示区域12a平铺形成终端的主显示屏,此时,终端中的副显示屏和主显示屏分别位于相背的两侧,主显示屏和副显示屏均处于可被用户观看的状态,因此,需要进一步根据检测装置的检测结果,确定朝向用户的显示屏,然后将其作为目标显示屏,用于显示通知信息。When the folding screen 1a is in the unfolded state, the first display area 11a and the second display area 12a are tiled to form the main display screen of the terminal. At this time, the secondary display screen and the main display screen in the terminal are located on opposite sides respectively. , the main display screen and the secondary display screen are both in a state that can be viewed by the user. Therefore, it is necessary to further determine the display screen facing the user according to the detection result of the detection device, and then use it as the target display screen for displaying notification information.

在折叠式屏幕1处于折叠状态下,第一显示区域11a和第二显示区域12a扣合在一起,此时,终端中只有副显示屏处于可被用户观看的状态,因此,将副显示屏确定为目标显示屏,用于显示通知信息。When the foldable screen 1 is in the folded state, the first display area 11a and the second display area 12a are fastened together. At this time, only the secondary display screen in the terminal is in a state that can be viewed by the user. Therefore, the secondary display screen is determined as is the target display for displaying notification information.

示例2Example 2

参考图3所示,折叠式屏幕1b属于外折形式,终端中往往只设置一块折叠式屏幕。Referring to FIG. 3 , the foldable screen 1b is in an outwardly folded form, and usually only one foldable screen is provided in the terminal.

在折叠式屏幕1b处于折叠状态(本申请中,折叠状态指折叠式屏幕处于完全折叠的扣合状态)下,第一显示区域11b和第二显示区域12b分别位于相背的两侧,形成两个可以被用户观看的显示屏,因此,需要进一步根据检测装置的检测结果,确定朝向用户的显示屏,然后将其确定为目标显示屏,用于显示通知信息。When the foldable screen 1b is in the folded state (in this application, the folded state refers to the fully folded and buckled state of the foldable screen), the first display area 11b and the second display area 12b are respectively located on opposite sides, forming two There is a display screen that can be viewed by the user. Therefore, it is necessary to further determine the display screen facing the user according to the detection result of the detection device, and then determine it as the target display screen for displaying notification information.

在折叠式屏幕1b处于展开状态下,第一显示区域11b和第二显示区域12b平铺形成终端的主显示屏,此时,终端中只有该主显示屏一个显示屏,因此,将主显示屏确定为目标显示屏,用于显示通知信息。When the foldable screen 1b is in the unfolded state, the first display area 11b and the second display area 12b are tiled to form the main display screen of the terminal. At this time, there is only one display screen of the main display screen in the terminal. Therefore, the main display screen Determined as the target display for displaying notification information.

由上述可知,在步骤S120中,当终端中包括两个可以被用户观看的显示屏时,便需要进一步根据检测结果确定朝向用户的显示屏。As can be seen from the above, in step S120, when the terminal includes two display screens that can be viewed by the user, it is necessary to further determine the display screen facing the user according to the detection result.

其中,加速度传感器可以检测终端上下左右的倾角变化,也可检测终端旋转动作及方向,因此,可以通过加速度传感器的检测结果确定终端的使用状态,进而确定终端朝向用户的显示屏。Among them, the acceleration sensor can detect the inclination of the terminal up, down, left, and right, and can also detect the rotation action and direction of the terminal. Therefore, the use state of the terminal can be determined through the detection result of the acceleration sensor, and then the display screen of the terminal facing the user can be determined.

光线传感器可以检测其所在侧的光线强度,如果光线传感器所在侧扣在桌面上,则其检测到的光线亮度较小,几乎为零;如果光线传感器所在侧朝向用户,则其检测到的光线亮度较大。因此,可以通过光线传感器的检测结果确定朝向用户的显示屏。The light sensor can detect the light intensity on the side where it is located. If the side where the light sensor is located is buckled on the desktop, the detected light brightness is small, almost zero; if the light sensor is located on the side facing the user, the detected light brightness larger. Therefore, the display screen facing the user can be determined by the detection result of the light sensor.

距离传感器可以检测与障碍物的距离,与光线传感器类似,如果距离传感器所在侧扣在桌面上,则其检测到的距离值较小,几乎为零;如果距离传感器所在侧朝向用户,则其检测到的距离值较大。因此,可以通过距离传感器的检测结果确定朝向用户的显示屏。The distance sensor can detect the distance to the obstacle, similar to the light sensor, if the side where the distance sensor is located is buckled on the desktop, the detected distance value is small, almost zero; if the side where the distance sensor is located is facing the user, it detects The distance to is larger. Therefore, the display screen facing the user can be determined by the detection result of the distance sensor.

摄像装置可以是摄像头,用于采集其所在侧的图像。如果摄像装置所在侧扣在桌面上,则其检测到的图像中不存在人像,几乎为一片漆黑;如果摄像装置所在侧朝向用户,则其检测到的图像将会存在一些具体事物的图像,当用户在观看终端时,一般会检测到用户的人像。因此,可以通过摄像装置的检测结果确定朝向用户的显示屏。The camera device may be a camera for capturing images of the side where it is located. If the side where the camera is located is buckled on the desktop, there will be no portraits in the detected image, and it is almost pitch black; if the side where the camera is located is facing the user, there will be images of some specific things in the detected images. When a user watches a terminal, a portrait of the user is generally detected. Therefore, the display screen facing the user can be determined by the detection result of the camera device.

需要注意的是,上述各检测装置可以只设置一种,例如只设置加速度传感器,此时只需要处理加速度传感器的检测结果,减少了数据处理量。当然,也可同时设置多种,例如同时设置加速度传感器和光线传感器等,此时便可根据多种检测结果确定朝向用户的显示屏,可以提高准确性。It should be noted that, only one of the above detection devices may be provided, for example, only an acceleration sensor is provided. In this case, only the detection result of the acceleration sensor needs to be processed, which reduces the amount of data processing. Of course, multiple types can also be set at the same time, for example, an acceleration sensor and a light sensor, etc., can be set at the same time. At this time, the display screen facing the user can be determined according to the multiple detection results, which can improve the accuracy.

综上所述,该方法中,根据折叠式屏幕的工作状态和检测结果,确定目标显示屏,包括:To sum up, in this method, the target display screen is determined according to the working state and detection result of the folding screen, including:

根据折叠式屏幕的工作状态,以及加速度传感器的检测结果,确定目标显示屏;和/或,Determine the target display screen according to the working state of the folding screen and the detection result of the acceleration sensor; and/or,

根据折折叠式屏幕的工作状态,以及光线传感器的检测结果,确定目标显示屏;和/或,Determine the target display screen according to the working state of the folding screen and the detection result of the light sensor; and/or,

根据折折叠式屏幕的工作状态,以及距离传感器的检测结果,确定目标显示屏;和/或,Determine the target display screen according to the working state of the folding screen and the detection result of the distance sensor; and/or,

根据折折叠式屏幕的工作状态,以及摄像装置的检测结果,确定目标显示屏。According to the working state of the folding screen and the detection result of the camera device, the target display screen is determined.

另外,除了上述介绍的传感器和摄像装置,检测装置还可以包括其他结构,只要能够确定朝向用户的显示屏即可,在此不一一列举。In addition, in addition to the above-mentioned sensor and camera device, the detection device may also include other structures, as long as the display screen facing the user can be determined, which will not be listed here.

在步骤S130中,为了避免通知信息频繁在不同的显示屏切换,可以设置预设时长。即,确定出目标显示屏的预设时长后,显示通知信息于目标显示屏。其中,预设时长可以在终端出厂时已经设置完成,也可由用户自行设置或修改。In step S130, in order to avoid frequent switching of notification information on different display screens, a preset duration may be set. That is, after the preset duration of the target display screen is determined, the notification information is displayed on the target display screen. The preset duration can be set when the terminal leaves the factory, or can be set or modified by the user.

需要说明的是,上述通知信息可以包括确定出目标显示屏的预设时长之后新接收到的通知信息,即,新接收到的通知信息直接在目标显示屏显示,以避免用户错过新的通知信息。It should be noted that the above notification information may include newly received notification information after the preset duration of the target display screen is determined, that is, the newly received notification information is directly displayed on the target display screen to avoid users missing new notification information. .

当然,上述通知信息还可以包括上述时刻(确定出目标显示屏的预设时长的时刻)以及上述时刻之前已经接收到的通知信息。即,已经接收到的通知信息则由上一次确定的目标显示屏切换到当前的目标显示屏进行显示,以更好地方便用户查看已经接收到的通知信息,更好地避免用户错过通知信息。Of course, the above notification information may also include the above time (the time when the preset duration of the target display screen is determined) and the notification information that has been received before the above time. That is, the received notification information is switched from the last determined target display screen to the current target display screen for display, so as to better facilitate the user to view the received notification information and better avoid the user missing the notification information.

示例:Example:

预设时长为1分钟,上一次确定的目标显示屏为主显示屏,该次新确定的目标显示屏为副显示屏,确定该次的目标显示屏的时刻为10:00,。The preset duration is 1 minute. The target display screen determined last time is the main display screen, the newly determined target display screen is the secondary display screen, and the time when the target display screen is determined this time is 10:00.

10:01接收到的通知信息,以及10:01之前接收到的通知信息,在10:01之前,均不会在副显示屏显示,其可以在继续在主显示屏显示;10:01之后,上述通知信息(即10:01这一时刻接收到的通知信息,以及10:01之前接收到的通知信息)中未处理的通知信息才会显示于副显示屏。The notification information received at 10:01, and the notification information received before 10:01, will not be displayed on the secondary display before 10:01, and can continue to be displayed on the main display; after 10:01, Only the unprocessed notification information in the above notification information (that is, the notification information received at 10:01 and the notification information received before 10:01) will be displayed on the secondary display screen.

10:01之后接收到的通知信息,直接在副显示屏显示。The notification information received after 10:01 is directly displayed on the secondary display.

需要注意的是,该方法中,如果进一步根据检测装置的检测结果,仍然未能确定朝向用户的显示屏,则不切换用于显示通知信息的显示屏,即,仍然以当前用于显示通知信息的显示屏显示通知信息。It should be noted that, in this method, if the display screen facing the user is still not determined according to the detection result of the detection device, the display screen for displaying notification information is not switched, that is, the display screen currently used for displaying notification information is still used. The display shows notification information.

该方法中,可以根据终端的实际使用状态确定用于显示通知信息的目标显示屏,更好地保证用户及时看到通知信息,避免用户错过重要的通知信息,提升了使用体验。In this method, a target display screen for displaying notification information can be determined according to the actual use state of the terminal, so as to better ensure that the user can see the notification information in time, avoid the user from missing important notification information, and improve the use experience.

在一个示例性实施例中,提供了一种通知信息的显示方法。该方法中,根据折叠式屏幕的工作状态,以及加速度传感器的检测结果,确定目标显示屏,包括:In an exemplary embodiment, a method for displaying notification information is provided. In the method, the target display screen is determined according to the working state of the folding screen and the detection result of the acceleration sensor, including:

根据折叠式屏幕的工作状态,以及加速度传感器检测的竖向坐标值的正负,确定目标显示屏。The target display screen is determined according to the working state of the folding screen and the positive and negative values of the vertical coordinate values detected by the acceleration sensor.

下面根据不同折叠形式的折叠式屏幕举例说明。The following is an example of folding screens in different folding forms.

示例1Example 1

参考图2所示,终端为手机,其包括内折形式的折叠式屏幕1a以及平板式屏幕2a,其中,折叠式屏幕1a用于形成主显示屏,平板式屏幕2a用于形成副显示屏。检测装置3a为加速度传感器,其可设置在副显示屏(平板式屏幕)所在位置。Referring to FIG. 2 , the terminal is a mobile phone, which includes an inwardly folded foldable screen 1a and a flat screen 2a, wherein the foldable screen 1a is used to form a main display screen, and the flat screen 2a is used to form a secondary display screen. The detection device 3a is an acceleration sensor, which can be arranged at the position of the secondary display screen (flat screen).

在手机放置在桌面上场景下,当折叠式屏幕1a处于展开状态时,如果加速度传感器的检测结果中,竖向坐标值为正值,则确定副显示屏朝向用户;如果加速度传感器的检测结果中,竖向坐标值为负值,则确定主显示屏朝向用户。In the scenario where the mobile phone is placed on the desktop, when the folding screen 1a is in the unfolded state, if the vertical coordinate value in the detection result of the acceleration sensor is positive, it is determined that the secondary display screen is facing the user; if the detection result of the acceleration sensor is in the , and the vertical coordinate value is negative, it is determined that the main display screen is facing the user.

以此,在折叠式屏幕1a处于展开状态时,便可进一步根据加速度传感器检测的竖向坐标值的正负,来确定目标显示屏。In this way, when the foldable screen 1a is in the unfolded state, the target display screen can be further determined according to the positive and negative of the vertical coordinate value detected by the acceleration sensor.

另外,如果加速度传感器检测的竖向坐标值为零,则不确定新的目标显示屏,即,仍然以当前用于显示通知信息的显示屏显示通知信息。In addition, if the vertical coordinate value detected by the acceleration sensor is zero, the new target display screen is not determined, that is, the notification information is still displayed on the display screen currently used for displaying the notification information.

需要说明的是,在折叠式屏幕1a处于折叠状态下,可直接根据折叠式屏幕1a的工作状态,将副显示屏作为目标显示屏。也可仍然同时获取折叠式屏幕1a的工作状态以及加速度传感器检测的竖向坐标值,只是,当确定了折叠式屏幕1a处于折叠状态时,竖向坐标值的正负对目标显示屏的确定不产生影响。It should be noted that, when the foldable screen 1a is in the folded state, the secondary display screen can be used as the target display screen directly according to the working state of the foldable screen 1a. It is also possible to obtain the working state of the folding screen 1a and the vertical coordinate value detected by the acceleration sensor at the same time, but when it is determined that the folding screen 1a is in the folded state, the positive or negative of the vertical coordinate value does not affect the determination of the target display screen. make an impact.

另外,加速度传感器也可设置在主显示屏所在位置,具体的确定目标显示屏的方法与上述方法类似,在此不做赘述。In addition, the acceleration sensor may also be set at the position of the main display screen, and the specific method for determining the target display screen is similar to the above method, which will not be repeated here.

示例2Example 2

参考图3所示,终端为手机,其包括外折形式的折叠式屏幕1b,其中,折叠式屏幕1b处于展开状态时,折叠式屏幕1b的第一显示区域11b和第二显示区域12b平铺形成主显示屏,折叠式屏幕1b处于折叠状态时,相背设置的第一显示区域11b和第二显示区域12b形成两个显示屏,一般可以预设其中一个显示屏作为副显示屏。检测装置3为加速度传感器,其可设置在第一显示区域11b所在位置。Referring to FIG. 3 , the terminal is a mobile phone, which includes a foldable screen 1b in an outwardly folded form, wherein, when the foldable screen 1b is in an unfolded state, the first display area 11b and the second display area 12b of the foldable screen 1b are tiled The main display screen is formed. When the foldable screen 1b is in the folded state, the first display area 11b and the second display area 12b arranged opposite to each other form two display screens. Generally, one of the display screens can be preset as the secondary display screen. The detection device 3 is an acceleration sensor, which can be arranged at the position where the first display area 11b is located.

在手机放置在桌面上场景下,当折叠式屏幕1b处于折叠状态时,如果加速度传感器的检测结果中,竖向坐标值为正值,则确定第一显示区域11b朝向用户;如果加速度传感器的检测结果中,竖向坐标值为负值,则确定第二显示区域12b朝向用户。In the scenario where the mobile phone is placed on the desktop, when the foldable screen 1b is in the folded state, if the vertical coordinate value in the detection result of the acceleration sensor is a positive value, it is determined that the first display area 11b faces the user; if the detection result of the acceleration sensor In the result, if the vertical coordinate value is a negative value, it is determined that the second display area 12b faces the user.

以此,在折叠式屏幕1b处于折叠状态时,便可进一步根据加速度传感器检测的竖向坐标值的正负,来确定目标显示屏。In this way, when the foldable screen 1b is in the folded state, the target display screen can be further determined according to the positive and negative of the vertical coordinate value detected by the acceleration sensor.

另外,如果加速度传感器检测的竖向坐标值为零,则不确定新的目标显示屏,即,仍然以当前用于显示通知信息的显示屏显示通知信息。In addition, if the vertical coordinate value detected by the acceleration sensor is zero, the new target display screen is not determined, that is, the notification information is still displayed on the display screen currently used for displaying the notification information.

需要说明的是,在折叠式屏幕1b处于展开状态下,可直接根据折叠式屏幕1b的工作状态,将主显示屏作为目标显示屏。也可仍然同时获取折叠式屏幕1b的工作状态以及加速度传感器检测的竖向坐标值,只是,当确定了折叠式屏幕1b处于展开状态时,竖向坐标值的正负对目标显示屏的确定不产生影响。It should be noted that, when the folding screen 1b is in the unfolded state, the main display screen can be used as the target display screen directly according to the working state of the folding screen 1b. It is also possible to obtain the working state of the folding screen 1b and the vertical coordinate value detected by the acceleration sensor at the same time, but when it is determined that the folding screen 1b is in the unfolded state, the positive or negative of the vertical coordinate value does not determine the target display screen. make an impact.

另外,加速度传感器也可设置在第二显示区域所在位置,具体的确定目标显示屏的方法与上述方法类似,在此不做赘述。In addition, the acceleration sensor may also be arranged at the location of the second display area, and the specific method for determining the target display screen is similar to the above method, and will not be repeated here.

该方法中,根据折叠式屏幕的工作状态以及加速度传感器检测的竖向坐标值的正负,确定朝向用户的显示屏,可以很好地解决诸如放置在桌面上的类似场景下,通知信息的显示问题,以方便用户查看通知信息,避免用户错过通知信息。In this method, the display screen facing the user is determined according to the working state of the folding screen and the positive and negative vertical coordinate values detected by the acceleration sensor, which can well solve the display of notification information in a similar scenario such as being placed on a desktop. Questions to facilitate users to view notification information and avoid users missing notification information.

在一个示例性实施例中,提供了一种通知信息的显示方法。该方法中,根据折叠式屏幕的工作状态,以及光线传感器的检测结果,确定目标显示屏,包括:In an exemplary embodiment, a method for displaying notification information is provided. In the method, the target display screen is determined according to the working state of the folding screen and the detection result of the light sensor, including:

根据折叠式屏幕的工作状态,以及光线传感器检测的光线强度值与预设强度值的大小,确定目标显示屏。The target display screen is determined according to the working state of the folding screen and the light intensity value detected by the light sensor and the preset intensity value.

其中,预设强度值可以在终端出厂时已设置完成,也可由用户自行设置和修改。Wherein, the preset intensity value can be set when the terminal leaves the factory, and can also be set and modified by the user.

下面根据不同折叠形式的折叠式屏幕举例说明。The following is an example of folding screens in different folding forms.

示例1Example 1

参考图2所示,折叠式屏幕1a为内折形式,检测装置3a为光线传感器,其可设置在副显示屏所在侧。Referring to FIG. 2 , the foldable screen 1a is in an inwardly folded form, and the detection device 3a is a light sensor, which can be arranged on the side where the secondary display screen is located.

在手机放置在桌面上场景下,当折叠式屏幕1a处于展开状态时,如果光线传感器检测的光线强度值大于预设强度值,则确定副显示屏(平板式屏幕2a)朝向用户;如果光线传感器检测的光线强度值小于或等于预设强度值,则确定主显示屏(折叠式屏幕1a)朝向用户。In the scenario where the mobile phone is placed on the desktop, when the folding screen 1a is in the unfolded state, if the light intensity value detected by the light sensor is greater than the preset intensity value, it is determined that the secondary display screen (flat screen 2a) faces the user; if the light sensor If the detected light intensity value is less than or equal to the preset intensity value, it is determined that the main display screen (foldable screen 1a) faces the user.

以此,在折叠式屏幕1a处于展开状态时,便可进一步根据光线传感器检测的光线强度值与预设强度值的大小,来确定目标显示屏。In this way, when the folding screen 1a is in the unfolded state, the target display screen can be further determined according to the light intensity value detected by the light sensor and the preset intensity value.

需要说明的是,在折叠式屏幕1a处于折叠状态下,可直接根据折叠式屏幕1a的工作状态,将副显示屏作为目标显示屏。也可仍然同时获取折叠式屏幕1a的工作状态以及光线传感器检测的光线强度值,只是,当确定了折叠式屏幕1a处于折叠状态时,光线强度值与预设强度值的大小,对目标显示屏的确定不产生影响。It should be noted that, when the foldable screen 1a is in the folded state, the secondary display screen can be used as the target display screen directly according to the working state of the foldable screen 1a. It is also possible to obtain the working state of the folding screen 1a and the light intensity value detected by the light sensor at the same time, but when it is determined that the folding screen 1a is in the folded state, the value of the light intensity and the preset intensity value, the target display screen. determination has no effect.

另外,光线传感器也可设置在主显示屏所在侧,具体的确定目标显示屏的方法与上述方法类似,在此不做赘述。In addition, the light sensor may also be arranged on the side where the main display screen is located, and the specific method for determining the target display screen is similar to the above method, which will not be repeated here.

示例2Example 2

参考图3所示,折叠式屏幕1b为外折形式,光线传感器可设置在第一显示区域11b所在侧。Referring to FIG. 3 , the foldable screen 1b is in an outwardly folded form, and the light sensor can be arranged on the side where the first display area 11b is located.

在手机放置在桌面上场景下,当折叠式屏幕1b处于折叠状态时,如果光线传感器检测的光线强度值大于预设强度值,则确定第一显示区域11b朝向用户;如果光线传感器检测的光线强度值小于或等于预设强度值,则确定第二显示区域12b朝向用户。In the scenario where the mobile phone is placed on the desktop, when the folding screen 1b is in the folded state, if the light intensity value detected by the light sensor is greater than the preset intensity value, it is determined that the first display area 11b faces the user; If the value is less than or equal to the preset intensity value, it is determined that the second display area 12b faces the user.

以此,在折叠式屏幕1b处于折叠状态时,便可进一步根据光线传感器检测的光线强度值与预设强度值的大小来确定目标显示屏。In this way, when the foldable screen 1b is in the folded state, the target display screen can be further determined according to the light intensity value detected by the light sensor and the preset intensity value.

需要说明的是,在折叠式屏幕1b处于展开状态下,可直接根据折叠式屏幕1b的工作状态,将主显示屏作为目标显示屏。也可仍然同时获取折叠式屏幕1b的工作状态以及光线传感器检测的光线强度值,只是,当确定了折叠式屏幕1b处于展开状态时,光线强度值与预设强度值的大小,对目标显示屏的确定不产生影响。It should be noted that, when the folding screen 1b is in the unfolded state, the main display screen can be used as the target display screen directly according to the working state of the folding screen 1b. It is also possible to obtain the working state of the folding screen 1b and the light intensity value detected by the light sensor at the same time, but when it is determined that the folding screen 1b is in the unfolded state, the size of the light intensity value and the preset intensity value will affect the target display screen. determination has no effect.

另外,光线传感器也可设置在第二显示区域所在侧,具体的确定目标显示屏的方法与上述方法类似,在此不做赘述。In addition, the light sensor may also be arranged on the side where the second display area is located, and the specific method for determining the target display screen is similar to the above-mentioned method, which will not be repeated here.

该方法中,根据折叠式屏幕的工作状态以及光线传感器检测的光线强度值与预设强度值的大小,确定朝向用户的显示屏,可以很好地解决诸如放置在桌面上的类似场景下,通知信息的显示问题,以方便用户查看通知信息,避免用户错过通知信息。In this method, the display screen facing the user is determined according to the working state of the folding screen and the light intensity value detected by the light sensor and the preset intensity value. The display of information is convenient for users to view the notification information and avoid users missing the notification information.

在一个示例性实施例中,提供了一种通知信息的显示方法。该方法中,根据折叠式屏幕的工作状态,以及距离传感器的检测结果,确定目标显示屏,包括:In an exemplary embodiment, a method for displaying notification information is provided. In the method, the target display screen is determined according to the working state of the folding screen and the detection result of the distance sensor, including:

根据折叠式屏幕的工作状态,以及距离传感器检测的当前距离值与预设距离值的大小,确定目标显示屏。The target display screen is determined according to the working state of the folding screen and the size of the current distance value detected by the distance sensor and the preset distance value.

该方法中,距离传感器用于检测与障碍物的当前距离值,然后通过当前距离值与预设距离值的大小,进一步确定目标显示屏。该方法与上述使用光线传感器的方法类似,在此不作赘述。In this method, the distance sensor is used to detect the current distance value from the obstacle, and then the target display screen is further determined by the size of the current distance value and the preset distance value. This method is similar to the above-mentioned method of using a light sensor, and will not be repeated here.

该方法中,根据折叠式屏幕的工作状态,以及距离传感器检测的当前距离值与预设距离值的大小,确定朝向用户的显示屏,可以很好地解决诸如放置在桌面上的类似场景下,通知信息的显示问题,以方便用户查看通知信息,避免用户错过通知信息。In this method, the display screen facing the user is determined according to the working state of the folding screen and the size of the current distance value detected by the distance sensor and the preset distance value, which can be well solved in similar scenarios such as being placed on a desktop. The display problem of notification information is convenient for users to view the notification information and avoid users missing the notification information.

在一个示例性实施例中,提供了一种通知信息的显示方法。该方法中,根据折叠式屏幕的工作状态,以及距离传感器的检测结果,确定目标显示屏,包括:In an exemplary embodiment, a method for displaying notification information is provided. In the method, the target display screen is determined according to the working state of the folding screen and the detection result of the distance sensor, including:

根据折叠式屏幕的工作状态,以及摄像装置检测的图像,确定目标显示屏。According to the working state of the folding screen and the image detected by the camera device, the target display screen is determined.

其中,可根据摄像装置检测的图像与预设图像进行比对,如何匹配成功,则说明摄像装置所在侧的显示屏朝向用户。该方法与人脸解锁类似,在此不作赘述。Wherein, the image detected by the camera device can be compared with the preset image, and if the matching is successful, it means that the display screen on the side of the camera device is facing the user. This method is similar to face unlocking and will not be repeated here.

另外,也可直接根据摄像装置检测的图像的类型,确定朝向用户的显示屏。In addition, the display screen facing the user can also be determined directly according to the type of the image detected by the camera device.

例如,如果摄像装置检测的图像中包括人脸图像,则说明摄像装置所在侧的显示屏朝向用户。如果摄像装置检测的图像中不包括人脸图像,则说明摄像装置所在侧的显示屏未朝向用户。For example, if the image detected by the camera device includes a face image, it means that the display screen on the side of the camera device is facing the user. If the image detected by the camera device does not include a face image, it means that the display screen on the side of the camera device is not facing the user.

下面根据不同折叠形式的折叠式屏幕举例说明。The following is an example of folding screens in different folding forms.

示例1Example 1

参考图2所示,折叠式屏幕1a为内折形式,检测装置3a为摄像装置,摄像装置可以是低功耗摄像头,该摄像头可设置在副显示屏所在侧。Referring to FIG. 2 , the foldable screen 1a is in an inwardly folded form, and the detection device 3a is a camera device, which can be a low-power camera, and the camera can be arranged on the side where the secondary display screen is located.

当折叠式屏幕1a处于展开状态时,如果摄像头检测的图像中不包括人脸图像,即摄像头未检测到人脸图像,则说明副显示屏(平板式屏幕2a)未朝向用户,则确定主显示屏(折叠式屏幕1a)朝向用户。如果摄像头检测的图像中包括人脸用户,即摄像头检测到人脸图像,则确定副显示屏(平板式屏幕2a)朝向用户。When the folding screen 1a is in the unfolded state, if the image detected by the camera does not include a face image, that is, the camera does not detect a face image, it means that the secondary display screen (flat screen 2a) is not facing the user, and the main display screen is determined. The screen (foldable screen 1a) faces the user. If the image detected by the camera includes a face user, that is, the camera detects a face image, it is determined that the secondary display screen (flat screen 2a) faces the user.

以此,在折叠式屏幕1a处于展开状态时,便可进一步根据摄像头检测的图像来确定目标显示屏。In this way, when the folding screen 1a is in the unfolded state, the target display screen can be further determined according to the image detected by the camera.

需要说明的是,在折叠式屏幕1a处于折叠状态下,可直接根据折叠式屏幕1a的工作状态,将副显示屏(平板式屏幕2a)作为目标显示屏。也可仍然同时获取折叠式屏幕1a的工作状态以及摄像头检测的图像,只是,当确定了折叠式屏幕1a处于折叠状态时,摄像头检测的图像对目标显示屏的确定不产生影响。It should be noted that when the foldable screen 1a is in the folded state, the secondary display screen (flat screen 2a) can be used as the target display screen directly according to the working state of the foldable screen 1a. The working state of the foldable screen 1a and the image detected by the camera can also be acquired simultaneously, but when it is determined that the foldable screen 1a is in the folded state, the image detected by the camera does not affect the determination of the target display screen.

另外,摄像头也可设置在主显示屏所在侧,具体的确定目标显示屏的方法与上述方法类似,在此不做赘述。In addition, the camera may also be arranged on the side where the main display screen is located, and the specific method for determining the target display screen is similar to the above-mentioned method, which will not be repeated here.

示例2Example 2

参考图3所示,折叠式屏幕1b为外折形式,检测装置3b为摄像装置,摄像装置可以为低功耗的摄像头,该摄像头可设置在第一显示区域11b所在侧。Referring to FIG. 3 , the foldable screen 1b is in an outwardly folded form, the detection device 3b is a camera device, and the camera device can be a low-power camera, and the camera can be arranged on the side where the first display area 11b is located.

当折叠式屏幕1b处于折叠状态时,如果摄像头检测的图像中不包括人脸图像,即摄像头未检测到人脸图像,则说明第一显示区域11b未朝向用户,则确定第二显示区域12b朝向用户。如果摄像头检测的图像中包括人脸用户,即摄像头检测到人脸图像,则确定第一显示区域11b朝向用户。When the folding screen 1b is in the folded state, if the image detected by the camera does not include a face image, that is, the camera does not detect a face image, it means that the first display area 11b is not facing the user, and the second display area 12b is determined to be facing the user. user. If the image detected by the camera includes a face user, that is, the camera detects a face image, it is determined that the first display area 11b faces the user.

以此,在折叠式屏幕1b处于折叠状态时,便可进一步根据摄像头检测的图像来确定目标显示屏。In this way, when the foldable screen 1b is in the folded state, the target display screen can be further determined according to the image detected by the camera.

需要说明的是,在折叠式屏幕1b处于展开状态下,第一显示区域11b和第二显示区域阿b平铺形成主显示屏。此时,主显示屏的背侧并未存设置其它显示屏,因此可直接根据折叠式屏幕1b的工作状态(展开状态),将主显示屏作为目标显示屏。也可仍然同时获取折叠式屏幕1b的工作状态以及摄像头检测的图像,只是,当确定了折叠式屏幕处于展开状态时,摄像头检测的图像对目标显示屏的确定不产生影响。It should be noted that when the foldable screen 1b is in an unfolded state, the first display area 11b and the second display area ab are tiled to form the main display screen. At this time, there are no other display screens on the back side of the main display screen, so the main display screen can be used as the target display screen directly according to the working state (expanded state) of the foldable screen 1b. The working state of the folding screen 1b and the image detected by the camera can also be acquired simultaneously, but when it is determined that the folding screen is in the unfolded state, the image detected by the camera does not affect the determination of the target display screen.

另外,摄像头也可设置在第二显示区域12b所在侧,具体的确定目标显示屏的方法与上述方法类似,在此不做赘述。In addition, the camera may also be arranged on the side where the second display area 12b is located, and the specific method for determining the target display screen is similar to the above-mentioned method, which will not be repeated here.

该方法中,根据折叠式屏幕的工作状态,以及摄像装置检测的图像,确定朝向用户的显示屏,可以很好地确定朝向用户的显示屏,以方便用户查看通知信息,避免用户错过通知信息。In this method, the display screen facing the user is determined according to the working state of the folding screen and the image detected by the camera device, which can be well determined to facilitate the user to view the notification information and avoid the user missing the notification information.

需要注意的是,该方法中,也可同时根据多种检测装置确定目标显示屏,以提高判断的准确性。It should be noted that, in this method, the target display screen can also be determined according to multiple detection devices at the same time, so as to improve the accuracy of judgment.

例如,终端中可同时包括摄像装置和光线传感器。此时,只要其中一个检测装置可以确定朝向用户的显示屏,便将其确定为目标显示屏。以更好地便于用户查看通知信息,避免错过通知信息。For example, a camera device and a light sensor may be included in the terminal at the same time. At this time, as long as one of the detection devices can determine the display screen facing the user, it is determined as the target display screen. To make it easier for users to view notification information and avoid missing notification information.

在一个示例性实施例中,提供了一种通知信息的显示装置,应用于包括折叠式屏幕的终端。该显示装置用于实施上述的显示方法。参考图4所示,该装置包括获取模块101、确定模块102和显示模块103,在实施上述显示方法的过程中,In an exemplary embodiment, a display device for notification information is provided, which is applied to a terminal including a foldable screen. The display device is used to implement the above-mentioned display method. Referring to FIG. 4 , the device includes an acquisition module 101, a determination module 102 and a display module 103. In the process of implementing the above display method,

获取模块101,用于获取折叠式屏幕的工作状态,以及终端的检测装置的检测结果;an acquisition module 101, configured to acquire the working state of the folding screen and the detection result of the detection device of the terminal;

确定模块102,用于根据折叠式屏幕的工作状态和检测结果,确定目标显示屏,其中,目标显示屏为终端的朝向用户的显示屏;A determination module 102, configured to determine a target display screen according to the working state and detection result of the foldable screen, wherein the target display screen is the display screen of the terminal facing the user;

显示模块103,用于显示通知信息于目标显示屏。The display module 103 is used for displaying notification information on the target display screen.

在一个示例性实施例中,提供了一种通知信息的显示装置,该装置是对上述装置的改进。具体地,该装置中,确定模块102,还用于:In an exemplary embodiment, a display device for notification information is provided, which is an improvement on the above-mentioned device. Specifically, in the device, the determining module 102 is further configured to:

根据折叠式屏幕的工作状态,以及加速度传感器的检测结果,确定目标显示屏;和/或,Determine the target display screen according to the working state of the folding screen and the detection result of the acceleration sensor; and/or,

根据折折叠式屏幕的工作状态,以及光线传感器的检测结果,确定目标显示屏;和/或,Determine the target display screen according to the working state of the folding screen and the detection result of the light sensor; and/or,

根据折折叠式屏幕的工作状态,以及距离传感器的检测结果,确定目标显示屏;和/或,Determine the target display screen according to the working state of the folding screen and the detection result of the distance sensor; and/or,

根据折折叠式屏幕的工作状态,以及摄像装置的检测结果,确定目标显示屏。According to the working state of the folding screen and the detection result of the camera device, the target display screen is determined.

在一个示例性实施例中,提供了一种通知信息的显示装置,该装置是对上述装置的改进。具体地,该装置中,In an exemplary embodiment, a display device for notification information is provided, which is an improvement on the above-mentioned device. Specifically, in this device,

确定模块102,还用于根据折叠式屏幕的工作状态,以及加速度传感器的检测结果,确定目标显示屏时,具体用于:The determining module 102 is further configured to determine the target display screen according to the working state of the folding screen and the detection result of the acceleration sensor, and is specifically used for:

根据折叠式屏幕的工作状态,以及加速度传感器检测的竖向坐标值的正负,确定目标显示屏;Determine the target display screen according to the working state of the folding screen and the positive and negative vertical coordinate values detected by the acceleration sensor;

确定模块102,还用于根据折叠式屏幕的工作状态,以及光线传感器的检测结果,确定目标显示屏时,具体用于:The determining module 102 is further configured to determine the target display screen according to the working state of the folding screen and the detection result of the light sensor, and is specifically used for:

根据折叠式屏幕的工作状态,以及光线传感器检测的光线强度值与预设强度值的大小,确定目标显示屏;Determine the target display screen according to the working state of the folding screen and the light intensity value detected by the light sensor and the preset intensity value;

确定模块102,还用于根据折叠式屏幕的工作状态,以及距离传感器的检测结果,确定目标显示屏时,具体用于:The determining module 102 is further configured to determine the target display screen according to the working state of the folding screen and the detection result of the distance sensor, and is specifically used for:

根据折叠式屏幕的工作状态,以及距离传感器检测的当前距离值与预设距离值的大小,确定目标显示屏;Determine the target display screen according to the working state of the folding screen and the current distance value detected by the distance sensor and the preset distance value;

确定模块102,还用于根据所述折叠式屏幕的工作状态,以及摄像装置的检测结果,确定目标显示屏时,具体用于:The determining module 102 is further configured to determine the target display screen according to the working state of the folding screen and the detection result of the camera, and is specifically used for:

根据折叠式屏幕的工作状态,以及摄像装置检测的图像,确定目标显示屏。According to the working state of the folding screen and the image detected by the camera device, the target display screen is determined.

在一个示例性实施例中,提供了一种通知信息的显示装置,该装置是对上述装置的改进。具体地,该装置中,当工作状态为展开状态时,折叠式屏幕形成所述终端的主显示屏,且终端还包括与主显示屏相背设置的副显示屏,确定模块102,还用于:In an exemplary embodiment, a display device for notification information is provided, which is an improvement on the above-mentioned device. Specifically, in this device, when the working state is the unfolded state, the foldable screen forms the main display screen of the terminal, and the terminal further includes a sub-display screen arranged opposite to the main display screen. The determining module 102 is also used for :

当工作状态为展开状态时,根据检测结果确定主显示屏或终端的副显示屏为目标显示屏。When the working state is the unfolded state, the main display screen or the secondary display screen of the terminal is determined as the target display screen according to the detection result.

在一个示例性实施例中,提供了一种通知信息的显示装置,该装置是对上述装置的改进。具体地,该装置中,当工作状态为折叠状态时,折叠式屏幕的第一显示区域和第二显示区域形成两个相背设置的显示屏,确定模块102,还用于:In an exemplary embodiment, a display device for notification information is provided, which is an improvement on the above-mentioned device. Specifically, in the device, when the working state is the folded state, the first display area and the second display area of the foldable screen form two display screens arranged opposite to each other, and the determining module 102 is further configured to:

当工作状态为折叠状态时,根据检测结果确定两个相背设置的显示屏之一为目标显示屏。When the working state is the folded state, one of the two oppositely arranged display screens is determined as the target display screen according to the detection result.

在一个示例性实施例中,提供了一种通知信息的显示装置,该装置是对上述装置的改进。具体地,该装置中,显示模块103,还用于:In an exemplary embodiment, a display device for notification information is provided, which is an improvement on the above-mentioned device. Specifically, in the device, the display module 103 is also used for:

确定出目标显示屏的预设时长后,显示通知信息于目标显示屏。After the preset duration of the target display screen is determined, the notification information is displayed on the target display screen.

在一个示例性实施例中,提供了一种终端,例如,终端可以是手机或平板电脑等具有折叠式屏幕的设备。In an exemplary embodiment, a terminal is provided, for example, the terminal may be a device with a foldable screen such as a mobile phone or a tablet computer.

参考图5所示,终端400可以包括以下一个或多个组件:处理组件402,存储器404,电力组件406,多媒体组件408,音频组件410,输入/输出(I/O)的接口412,传感器组件414,以及通信组件416。5, the terminal 400 may include one or more of the following components: a processing component 402, a memory 404, a power component 406, a multimedia component 408, an audio component 410, an input/output (I/O) interface 412, a sensor component 414 , and communication component 416 .

处理组件402通常控制终端400的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件402可以包括一个或多个处理器420来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件402可以包括一个或多个模块,便于处理组件402和其他组件之间的交互。例如,处理组件402可以包括多媒体模块,以方便多媒体组件408和处理组件402之间的交互。The processing component 402 generally controls the overall operation of the terminal 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or some of the steps of the methods described above. Additionally, processing component 402 may include one or more modules that facilitate interaction between processing component 402 and other components. For example, processing component 402 may include a multimedia module to facilitate interaction between multimedia component 408 and processing component 402.

存储器404被配置为存储各种类型的数据以支持在终端400的操作。这些数据的示例包括用于在终端400上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器404可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 404 is configured to store various types of data to support operations at terminal 400 . Examples of such data include instructions for any application or method operating on the terminal 400, contact data, phonebook data, messages, pictures, videos, and the like. Memory 404 may be implemented by any type of volatile or non-volatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电力组件406为终端400的各种组件提供电力。电力组件406可以包括电源管理系统,一个或多个电源,及其他与为终端400生成、管理和分配电力相关联的组件。Power component 406 provides power to various components of terminal 400 . Power components 406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to terminal 400 .

多媒体组件408包括在终端400和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件408包括一个前置摄像头和/或后置摄像头。当终端400处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Multimedia component 408 includes screens that provide an output interface between terminal 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. A touch sensor can sense not only the boundaries of a touch or swipe action, but also the duration and pressure associated with the touch or swipe action. In some embodiments, multimedia component 408 includes a front-facing camera and/or a rear-facing camera. When the terminal 400 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件410被配置为输出和/或输入音频信号。例如,音频组件410包括一个麦克风(MIC),当终端400处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器404或经由通信组件416发送。在一些实施例中,音频组件410还包括一个扬声器,用于输出音频信号。Audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a microphone (MIC) that is configured to receive external audio signals when the terminal 400 is in an operating mode, such as a calling mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in memory 404 or transmitted via communication component 416 . In some embodiments, audio component 410 also includes a speaker for outputting audio signals.

I/O接口412为处理组件402和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 412 provides an interface between the processing component 402 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.

传感器组件414包括一个或多个传感器,用于为终端400提供各个方面的状态评估。例如,传感器组件414可以检测到终端400的打开/关闭状态,组件的相对定位,例如组件为终端400的显示器和小键盘,传感器组件414还可以检测终端400或终端400一个组件的位置改变,用户与终端400接触的存在或不存在,终端400方位或加速/减速和终端400的温度变化。传感器组件414可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件414还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件414还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for terminal 400 . For example, the sensor component 414 can detect the open/closed state of the terminal 400, the relative positioning of components, such as the display and keypad of the terminal 400, the sensor component 414 can also detect the position change of the terminal 400 or a component of the terminal 400, the user The presence or absence of contact with the terminal 400 , the orientation or acceleration/deceleration of the terminal 400 and the temperature change of the terminal 400 . Sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信组件416被配置为便于终端400和其他设备之间有线或无线方式的通信。设备700可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件416经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信组件416还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 416 is configured to facilitate wired or wireless communications between terminal 400 and other devices. Device 700 may access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,终端400可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, terminal 400 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.

在一个示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器404,上述指令可由终端400的处理器420执行以完成上述方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。当存储介质中的指令由终端的处理器执行时,使得终端能够执行上述实施例中示出的方法。In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as a memory 404 including instructions, is also provided, and the instructions are executable by the processor 420 of the terminal 400 to perform the above method. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like. When the instructions in the storage medium are executed by the processor of the terminal, the terminal is enabled to execute the methods shown in the foregoing embodiments.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由权利要求指出。Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or conventional techniques in the art not disclosed by this disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the invention being indicated by the claims.

应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It should be understood that the present invention is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from its scope. The scope of the present invention is limited only by the appended claims.

Claims (14)

1.一种通知信息的显示方法,应用于终端,所述终端包括折叠式屏幕,其特征在于,所述方法包括:1. A method for displaying notification information, applied to a terminal, the terminal comprising a foldable screen, wherein the method comprises: 获取所述折叠式屏幕的工作状态,以及终端的检测装置的检测结果;Obtain the working state of the folding screen and the detection result of the detection device of the terminal; 根据所述折叠式屏幕的工作状态和所述检测结果,确定目标显示屏,其中,所述目标显示屏为所述终端的朝向用户的显示屏;determining a target display screen according to the working state of the foldable screen and the detection result, wherein the target display screen is a display screen of the terminal facing the user; 显示通知信息于所述目标显示屏。Display notification information on the target display screen. 2.根据权利要求1所述的显示方法,其特征在于,所述根据所述折叠式屏幕的工作状态和所述检测结果,确定目标显示屏,包括:2 . The display method according to claim 1 , wherein determining the target display screen according to the working state of the folding screen and the detection result, comprising: 2 . 根据所述折叠式屏幕的工作状态,以及加速度传感器的检测结果,确定所述目标显示屏;和/或,Determine the target display screen according to the working state of the folding screen and the detection result of the acceleration sensor; and/or, 根据所述折叠式屏幕的工作状态,以及光线传感器的检测结果,确定所述目标显示屏;和/或,Determine the target display screen according to the working state of the folding screen and the detection result of the light sensor; and/or, 根据所述折叠式屏幕的工作状态,以及距离传感器的检测结果,确定所述目标显示屏;和/或,Determine the target display screen according to the working state of the folding screen and the detection result of the distance sensor; and/or, 根据所述折叠式屏幕的工作状态,以及摄像装置的检测结果,确定所述目标显示屏。The target display screen is determined according to the working state of the folding screen and the detection result of the camera device. 3.根据权利要求2所述的显示方法,其特征在于,3. The display method according to claim 2, wherein, 所述根据所述折叠式屏幕的工作状态,以及加速度传感器的检测结果,确定所述目标显示屏,包括:The determining of the target display screen according to the working state of the folding screen and the detection result of the acceleration sensor includes: 根据所述折叠式屏幕的工作状态,以及所述加速度传感器检测的竖向坐标值的正负,确定所述目标显示屏;Determine the target display screen according to the working state of the folding screen and the positive or negative of the vertical coordinate value detected by the acceleration sensor; 所述根据所述折叠式屏幕的工作状态,以及光线传感器的检测结果,确定所述目标显示屏,包括:The determining of the target display screen according to the working state of the folding screen and the detection result of the light sensor includes: 根据所述折叠式屏幕的工作状态,以及所述光线传感器检测的光线强度值与预设强度值的大小,确定所述目标显示屏;Determine the target display screen according to the working state of the folding screen and the light intensity value detected by the light sensor and the preset intensity value; 所述根据所述折叠式屏幕的工作状态,以及距离传感器的检测结果,确定所述目标显示屏,包括:The determining of the target display screen according to the working state of the folding screen and the detection result of the distance sensor includes: 根据所述折叠式屏幕的工作状态,以及所述距离传感器检测的当前距离值与预设距离值的大小,确定所述目标显示屏;Determine the target display screen according to the working state of the folding screen and the current distance value detected by the distance sensor and the preset distance value; 所述根据所述折叠式屏幕的工作状态,以及摄像装置的检测结果,确定所述目标显示屏,包括:The determining of the target display screen according to the working state of the folding screen and the detection result of the camera device includes: 根据所述折叠式屏幕的工作状态,以及所述摄像装置检测的图像,确定所述目标显示屏。The target display screen is determined according to the working state of the folding screen and the image detected by the camera device. 4.根据权利要求1所述的显示方法,其特征在于,4. The display method according to claim 1, wherein, 当所述工作状态为展开状态时,所述折叠式屏幕形成所述终端的主显示屏,且所述终端还包括与所述主显示屏相背设置的副显示屏;When the working state is the unfolded state, the foldable screen forms the main display screen of the terminal, and the terminal further includes a secondary display screen arranged opposite to the main display screen; 所述根据所述折叠式屏幕的工作状态和所述检测结果,确定目标显示屏,包括:The determining of the target display screen according to the working state of the folding screen and the detection result includes: 当所述工作状态为展开状态时,根据所述检测结果确定所述主显示屏或所述副显示屏为所述目标显示屏。When the working state is the unfolded state, the main display screen or the secondary display screen is determined to be the target display screen according to the detection result. 5.根据权利要求1所述的显示方法,其特征在于,5. The display method according to claim 1, wherein, 当所述工作状态为折叠状态时,所述折叠式屏幕的第一显示区域和第二显示区域形成两个相背设置的显示屏;When the working state is the folded state, the first display area and the second display area of the foldable screen form two display screens arranged opposite to each other; 所述根据所述折叠式屏幕的工作状态和所述检测结果,确定目标显示屏,包括:The determining of the target display screen according to the working state of the folding screen and the detection result includes: 当所述工作状态为折叠状态时,根据所述检测结果确定所述两个相背设置的显示屏之一为所述目标显示屏。When the working state is the folded state, it is determined according to the detection result that one of the two display screens arranged opposite to each other is the target display screen. 6.根据权利要求1-5任一项所述的显示方法,其特征在于,所述方法还包括:6. The display method according to any one of claims 1-5, wherein the method further comprises: 确定出所述目标显示屏的预设时长后,显示通知信息于所述目标显示屏。After the preset duration of the target display screen is determined, notification information is displayed on the target display screen. 7.一种通知信息的显示装置,应用于终端,所述终端包括折叠式屏幕,其特征在于,所述装置包括:7. An apparatus for displaying notification information, applied to a terminal, the terminal comprising a foldable screen, wherein the apparatus comprises: 获取模块,用于获取所述折叠式屏幕的工作状态,以及终端的检测装置的检测结果;an acquisition module, configured to acquire the working state of the folding screen and the detection result of the detection device of the terminal; 确定模块,用于根据所述折叠式屏幕的工作状态和所述检测结果,确定目标显示屏,其中,所述目标显示屏为所述终端的朝向用户的显示屏;a determination module, configured to determine a target display screen according to the working state of the folding screen and the detection result, wherein the target display screen is the display screen of the terminal facing the user; 显示模块,用于显示通知信息于所述目标显示屏。The display module is used for displaying notification information on the target display screen. 8.根据权利要求7所述的显示装置,其特征在于,所述确定模块,还用于:8. The display device according to claim 7, wherein the determining module is further configured to: 根据所述折叠式屏幕的工作状态,以及加速度传感器的检测结果,确定所述目标显示屏;和/或,Determine the target display screen according to the working state of the folding screen and the detection result of the acceleration sensor; and/or, 根据所述折叠式屏幕的工作状态,以及光线传感器的检测结果,确定所述目标显示屏;和/或,Determine the target display screen according to the working state of the folding screen and the detection result of the light sensor; and/or, 根据所述折叠式屏幕的工作状态,以及距离传感器的检测结果,确定所述目标显示屏;和/或,Determine the target display screen according to the working state of the folding screen and the detection result of the distance sensor; and/or, 根据所述折叠式屏幕的工作状态,以及摄像装置的检测结果,确定所述目标显示屏。The target display screen is determined according to the working state of the folding screen and the detection result of the camera device. 9.根据权利要求8所述的显示装置,其特征在于,9. The display device according to claim 8, wherein, 所述确定模块,还用于所述根据所述折叠式屏幕的工作状态,以及加速度传感器的检测结果,确定所述目标显示屏时,具体用于:The determining module is also used for determining the target display screen according to the working state of the folding screen and the detection result of the acceleration sensor, specifically for: 根据所述折叠式屏幕的工作状态,以及所述加速度传感器检测的竖向坐标值的正负,确定所述目标显示屏;Determine the target display screen according to the working state of the folding screen and the positive or negative of the vertical coordinate value detected by the acceleration sensor; 所述确定模块,还用于所述根据所述折叠式屏幕的工作状态,以及光线传感器的检测结果,确定所述目标显示屏时,具体用于:The determining module is also used for determining the target display screen according to the working state of the folding screen and the detection result of the light sensor, specifically for: 根据所述折叠式屏幕的工作状态,以及所述光线传感器检测的光线强度值与预设强度值的大小,确定所述目标显示屏;Determine the target display screen according to the working state of the folding screen and the light intensity value detected by the light sensor and the preset intensity value; 所述确定模块,还用于所述根据所述折叠式屏幕的工作状态,以及距离传感器的检测结果,确定所述目标显示屏时,具体用于:The determining module is also used for determining the target display screen according to the working state of the folding screen and the detection result of the distance sensor, specifically for: 根据所述折叠式屏幕的工作状态,以及所述距离传感器检测的当前距离值与预设距离值的大小,确定所述目标显示屏;Determine the target display screen according to the working state of the folding screen and the current distance value detected by the distance sensor and the preset distance value; 所述确定模块,还用于所述根据所述折叠式屏幕的工作状态,以及摄像装置的检测结果,确定所述目标显示屏时,具体用于:The determining module is also used for determining the target display screen according to the working state of the folding screen and the detection result of the camera, specifically for: 根据所述折叠式屏幕的工作状态,以及所述摄像装置检测的图像,确定所述目标显示屏。The target display screen is determined according to the working state of the folding screen and the image detected by the camera device. 10.根据权利要求7所述的显示装置,其特征在于,当所述工作状态为展开状态时,所述折叠式屏幕形成所述终端的主显示屏,且所述终端还包括与所述主显示屏相背设置的副显示屏,所述确定模块,还用于:10. The display device according to claim 7, wherein when the working state is an unfolded state, the foldable screen forms a main display screen of the terminal, and the terminal further comprises a The sub-display screen arranged opposite to the display screen, the determining module is also used for: 当所述工作状态为展开状态时,根据所述检测结果确定所述主显示屏或所述副显示屏为所述目标显示屏。When the working state is the unfolded state, the main display screen or the secondary display screen is determined to be the target display screen according to the detection result. 11.根据权利要求7所述的显示装置,其特征在于,当所述工作状态为折叠状态时,所述折叠式屏幕的第一显示区域和第二显示区域形成两个相背设置的显示屏,所述确定模块,还用于:11 . The display device according to claim 7 , wherein when the working state is the folded state, the first display area and the second display area of the foldable screen form two display screens arranged opposite to each other. 12 . , the determining module is also used for: 当所述工作状态为折叠状态时,根据所述检测结果确定所述两个相背设置的显示屏之一为所述目标显示屏。When the working state is the folded state, it is determined according to the detection result that one of the two display screens arranged opposite to each other is the target display screen. 12.根据权利要求7-11任一项所述的显示装置,其特征在于,所述显示模块,还用于:12. The display device according to any one of claims 7-11, wherein the display module is further configured to: 确定出所述目标显示屏的预设时长后,显示通知信息于所述目标显示屏。After the preset duration of the target display screen is determined, notification information is displayed on the target display screen. 13.一种终端,其特征在于,所述终端包括折叠式屏幕,所述终端还包括:13. A terminal, characterized in that the terminal comprises a folding screen, and the terminal further comprises: 处理器;processor; 用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions; 其中,所述处理器被配置为执行如权利要求1至7任一项所述的显示方法。Wherein, the processor is configured to execute the display method as claimed in any one of claims 1 to 7. 14.一种非临时性计算机可读存储介质,其特征在于,当所述存储介质中的指令由终端的处理器执行时,使得终端能够执行如权利要求1至7任一项所述的显示方法。14. A non-transitory computer-readable storage medium, characterized in that, when the instructions in the storage medium are executed by the processor of the terminal, the terminal is enabled to perform the display according to any one of claims 1 to 7 method.
CN202110218650.3A 2021-02-26 2021-02-26 Display method, device, terminal and storage medium for notification information Pending CN114979321A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110218650.3A CN114979321A (en) 2021-02-26 2021-02-26 Display method, device, terminal and storage medium for notification information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110218650.3A CN114979321A (en) 2021-02-26 2021-02-26 Display method, device, terminal and storage medium for notification information

Publications (1)

Publication Number Publication Date
CN114979321A true CN114979321A (en) 2022-08-30

Family

ID=82972746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110218650.3A Pending CN114979321A (en) 2021-02-26 2021-02-26 Display method, device, terminal and storage medium for notification information

Country Status (1)

Country Link
CN (1) CN114979321A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116824830A (en) * 2023-06-27 2023-09-29 重庆长安汽车股份有限公司 ETC equipment activation method and system
WO2024087897A1 (en) * 2022-10-26 2024-05-02 Oppo广东移动通信有限公司 Information display method and apparatus, electronic device, and storage medium
WO2024259571A1 (en) * 2023-06-19 2024-12-26 深圳传音控股股份有限公司 Display method, smart terminal, and storage medium

Citations (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000181428A (en) * 1996-12-03 2000-06-30 Nec Corp Information display device
US20060176398A1 (en) * 2005-02-07 2006-08-10 Samsung Electronics Co., Ltd. Broadcast receiving apparatus having screen switching time display function and method thereof
JP2011232523A (en) * 2010-04-27 2011-11-17 Brother Ind Ltd Copier
US20160026381A1 (en) * 2014-07-25 2016-01-28 Lg Electronics Inc. Mobile terminal and control method thereof
CN303605346S (en) * 2016-03-02
CN106155684A (en) * 2016-06-30 2016-11-23 努比亚技术有限公司 A kind of information processing method and terminal
CN106250091A (en) * 2016-07-20 2016-12-21 珠海市魅族科技有限公司 A kind of method for information display and mobile terminal
CN106843730A (en) * 2017-01-19 2017-06-13 宇龙计算机通信科技(深圳)有限公司 A kind of mobile terminal double screen changing method and mobile terminal
CN107454254A (en) * 2017-07-26 2017-12-08 青岛海信移动通信技术股份有限公司 Double screen terminal notification information processing method and double screen terminal
CN107728885A (en) * 2017-10-24 2018-02-23 广东欧珀移动通信有限公司 Multi-task control method, device, mobile terminal and storage medium
CN107766022A (en) * 2017-10-19 2018-03-06 广东欧珀移动通信有限公司 A screen display method, device and storage medium
CN107943407A (en) * 2017-11-21 2018-04-20 珠海市魅族科技有限公司 A kind of screen switching, device, computer installation and computer-readable recording medium
CN107943374A (en) * 2017-12-14 2018-04-20 维沃移动通信有限公司 The startup method and collapsible terminal of application program in collapsible terminal
CN108228032A (en) * 2018-01-26 2018-06-29 维沃移动通信有限公司 The control method and mobile terminal of a kind of display screen
CN108390992A (en) * 2018-01-15 2018-08-10 广东欧珀移动通信有限公司 Message display method and device, mobile terminal and storage medium
CN108733285A (en) * 2018-04-24 2018-11-02 维沃移动通信有限公司 A kind of reminding method and terminal device
CN109005289A (en) * 2018-07-25 2018-12-14 努比亚技术有限公司 Screen lighting method, mobile terminal and readable storage medium storing program for executing
CN109639879A (en) * 2018-10-30 2019-04-16 努比亚技术有限公司 Control method for screen display, collapsible terminal and computer readable storage medium
CN109922202A (en) * 2017-12-11 2019-06-21 北京小米移动软件有限公司 Screen control method and device, readable storage medium storing program for executing, electronic equipment
CN109947315A (en) * 2019-03-04 2019-06-28 Oppo广东移动通信有限公司 Split-screen display method, device, electronic device, and computer-readable storage medium
CN109947383A (en) * 2019-03-18 2019-06-28 Oppo广东移动通信有限公司 Display control method and device, mobile terminal and storage medium
CN110018805A (en) * 2019-04-15 2019-07-16 维沃移动通信有限公司 A kind of display control method and mobile terminal
CN110138966A (en) * 2019-04-23 2019-08-16 珠海格力电器股份有限公司 Message prompt display method of folding screen terminal and terminal
CN110138967A (en) * 2019-04-30 2019-08-16 维沃移动通信有限公司 A kind of method of controlling operation thereof and terminal of terminal
CN110308769A (en) * 2019-06-28 2019-10-08 维沃移动通信有限公司 An information display method and terminal
WO2019196707A1 (en) * 2018-04-12 2019-10-17 维沃移动通信有限公司 Mobile terminal control method and mobile terminal
CN110602273A (en) * 2019-08-05 2019-12-20 华为技术有限公司 Message display method and electronic equipment
WO2020156113A1 (en) * 2019-01-30 2020-08-06 维沃移动通信有限公司 Interface display control method and mobile terminal
KR20200101306A (en) * 2019-02-19 2020-08-27 삼성전자주식회사 Electronic device and displaycontrl method therof
CN111596727A (en) * 2020-05-21 2020-08-28 北京小米移动软件有限公司 Terminal equipment, control method, device and storage medium
US20200280623A1 (en) * 2017-09-14 2020-09-03 Zte Corporation Display screen switching method and mobile terminal
CN111752463A (en) * 2019-03-26 2020-10-09 北京小米移动软件有限公司 Operation execution method, apparatus and storage medium

Patent Citations (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN303605346S (en) * 2016-03-02
JP2000181428A (en) * 1996-12-03 2000-06-30 Nec Corp Information display device
US20060176398A1 (en) * 2005-02-07 2006-08-10 Samsung Electronics Co., Ltd. Broadcast receiving apparatus having screen switching time display function and method thereof
JP2011232523A (en) * 2010-04-27 2011-11-17 Brother Ind Ltd Copier
US20160026381A1 (en) * 2014-07-25 2016-01-28 Lg Electronics Inc. Mobile terminal and control method thereof
CN106155684A (en) * 2016-06-30 2016-11-23 努比亚技术有限公司 A kind of information processing method and terminal
CN106250091A (en) * 2016-07-20 2016-12-21 珠海市魅族科技有限公司 A kind of method for information display and mobile terminal
CN106843730A (en) * 2017-01-19 2017-06-13 宇龙计算机通信科技(深圳)有限公司 A kind of mobile terminal double screen changing method and mobile terminal
CN107454254A (en) * 2017-07-26 2017-12-08 青岛海信移动通信技术股份有限公司 Double screen terminal notification information processing method and double screen terminal
US20200280623A1 (en) * 2017-09-14 2020-09-03 Zte Corporation Display screen switching method and mobile terminal
CN107766022A (en) * 2017-10-19 2018-03-06 广东欧珀移动通信有限公司 A screen display method, device and storage medium
CN107728885A (en) * 2017-10-24 2018-02-23 广东欧珀移动通信有限公司 Multi-task control method, device, mobile terminal and storage medium
CN107943407A (en) * 2017-11-21 2018-04-20 珠海市魅族科技有限公司 A kind of screen switching, device, computer installation and computer-readable recording medium
CN109922202A (en) * 2017-12-11 2019-06-21 北京小米移动软件有限公司 Screen control method and device, readable storage medium storing program for executing, electronic equipment
CN107943374A (en) * 2017-12-14 2018-04-20 维沃移动通信有限公司 The startup method and collapsible terminal of application program in collapsible terminal
CN108390992A (en) * 2018-01-15 2018-08-10 广东欧珀移动通信有限公司 Message display method and device, mobile terminal and storage medium
CN108228032A (en) * 2018-01-26 2018-06-29 维沃移动通信有限公司 The control method and mobile terminal of a kind of display screen
WO2019196707A1 (en) * 2018-04-12 2019-10-17 维沃移动通信有限公司 Mobile terminal control method and mobile terminal
CN108733285A (en) * 2018-04-24 2018-11-02 维沃移动通信有限公司 A kind of reminding method and terminal device
CN109005289A (en) * 2018-07-25 2018-12-14 努比亚技术有限公司 Screen lighting method, mobile terminal and readable storage medium storing program for executing
CN109639879A (en) * 2018-10-30 2019-04-16 努比亚技术有限公司 Control method for screen display, collapsible terminal and computer readable storage medium
WO2020156113A1 (en) * 2019-01-30 2020-08-06 维沃移动通信有限公司 Interface display control method and mobile terminal
KR20200101306A (en) * 2019-02-19 2020-08-27 삼성전자주식회사 Electronic device and displaycontrl method therof
CN109947315A (en) * 2019-03-04 2019-06-28 Oppo广东移动通信有限公司 Split-screen display method, device, electronic device, and computer-readable storage medium
CN109947383A (en) * 2019-03-18 2019-06-28 Oppo广东移动通信有限公司 Display control method and device, mobile terminal and storage medium
CN111752463A (en) * 2019-03-26 2020-10-09 北京小米移动软件有限公司 Operation execution method, apparatus and storage medium
CN110018805A (en) * 2019-04-15 2019-07-16 维沃移动通信有限公司 A kind of display control method and mobile terminal
CN110138966A (en) * 2019-04-23 2019-08-16 珠海格力电器股份有限公司 Message prompt display method of folding screen terminal and terminal
CN110138967A (en) * 2019-04-30 2019-08-16 维沃移动通信有限公司 A kind of method of controlling operation thereof and terminal of terminal
CN110308769A (en) * 2019-06-28 2019-10-08 维沃移动通信有限公司 An information display method and terminal
CN110602273A (en) * 2019-08-05 2019-12-20 华为技术有限公司 Message display method and electronic equipment
CN111596727A (en) * 2020-05-21 2020-08-28 北京小米移动软件有限公司 Terminal equipment, control method, device and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024087897A1 (en) * 2022-10-26 2024-05-02 Oppo广东移动通信有限公司 Information display method and apparatus, electronic device, and storage medium
WO2024259571A1 (en) * 2023-06-19 2024-12-26 深圳传音控股股份有限公司 Display method, smart terminal, and storage medium
CN116824830A (en) * 2023-06-27 2023-09-29 重庆长安汽车股份有限公司 ETC equipment activation method and system

Similar Documents

Publication Publication Date Title
CN106970754B (en) Screen capture processing method and device
CN105159640B (en) Display interface rotating method and device and mobile terminal
CN104219448B (en) Shooting method and device
CN111600998A (en) Display screen control method and device, terminal equipment and storage medium
CN112114765A (en) Screen projection method, device and storage medium
CN107357505A (en) The method, apparatus and computer-readable recording medium of screenshot capture
CN107122693A (en) Two-dimensional code identification method and device
CN114979321A (en) Display method, device, terminal and storage medium for notification information
CN106534649A (en) Composing method and device for double rotary cameras and mobile terminal
CN113099113B (en) Electronic terminal, photographing method and device and storage medium
CN111880873A (en) Display processing method and device and computer storage medium
CN112331158B (en) Terminal display adjustment method, device, equipment and storage medium
CN107222576B (en) Album synchronization method and device
CN110876014B (en) Image processing method and device, electronic device and storage medium
CN112799522A (en) Mobile terminal control method and device, mobile terminal and storage medium
CN105607319B (en) The automatic method and device for improving light leakage of the screen
CN107390929A (en) Control method, device and the storage medium of touch-control system
CN108962189A (en) Luminance regulating method and device
CN112702514B (en) Image acquisition method, device, equipment and storage medium
CN110874829B (en) Image processing method and device, electronic device and storage medium
CN107911535A (en) Method and device for adjusting automatic screen lock time
CN112905027A (en) Timing method and device, mobile terminal and storage medium
CN114610187A (en) Image display method, device, terminal and storage medium
CN113190313B (en) Display control method and device, electronic device and storage medium
CN111443759A (en) Display control method, apparatus, electronic device, and computer-readable storage medium

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