Screen brightness adjusting method for mobile terminal chat interface
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a screen brightness adjusting method for a chat interface of a mobile terminal.
Background
With the development of technology, the use of mobile terminals is becoming more and more common, and people use communication software on mobile terminals to chat everyday.
The screen brightness corresponding to the existing chat interface is fixed, and in practical application, when text messages are displayed on the chat interface, a user can clearly see the text messages only by relatively high screen brightness; when the chat interface displays the picture, compared with the user, the screen brightness is not required to be the same as that when the character is displayed, and the picture can not be watched by the user even if the screen brightness is reduced compared with that when the character is displayed; when the chat interface displays a voice message, the actual required screen brightness may be lower. That is, there is no means or way for adjusting the brightness of the screen when different types of messages are displayed according to the chat interface in the prior art.
Therefore, the present inventors have felt the necessity of improving the above problems, and have actively studied and improved a screen brightness adjusting method for a chat interface of a mobile terminal based on many years of creative design and professional manufacturing experience in the related art, and finally developed the present invention in consideration of each condition.
Disclosure of Invention
In view of the above situation, in order to overcome the shortcomings in the prior art, embodiments of the present invention provide a method for adjusting screen brightness of a chat interface of a mobile terminal, which can effectively solve the problems related to the background art.
The embodiment of the invention adopts the following technical scheme:
a screen brightness adjusting method for a chat interface of a mobile terminal comprises the following steps:
detecting whether a screen of the mobile terminal is currently in a chat interface;
if so, acquiring a display type of the received message, wherein the display type comprises a character type, an image type and a voice type;
controlling the screen brightness to be adjusted to a first-level brightness according to the acquired character category, controlling the screen to be adjusted to a second-level brightness according to the acquired picture category, and controlling the screen to be adjusted to a third-level brightness according to the acquired voice category; wherein the first level luminance is higher than the second level luminance, which is higher than the third level luminance.
As a preferred embodiment of the present invention, the present invention further comprises:
the display category of the transmitted message is acquired.
As a preferred mode of the present invention, after detecting that the screen of the mobile terminal is currently in the chat interface, the method further includes:
acquiring operation categories of a user based on a screen, wherein the operation categories comprise a character operation category, a picture operation category and a voice operation category;
and controlling the screen brightness to be adjusted to a first-level brightness according to the acquired character operation type, controlling the screen to be adjusted to a second-level brightness according to the acquired picture operation type, and controlling the screen to be adjusted to a third-level brightness according to the acquired voice operation type.
The technical scheme provided by the embodiment of the invention has the following beneficial effects: when the display type of the received message or the sent message of the chat interface is a character type, correspondingly adjusting the screen-making brightness to be a first-level brightness; when the display type of the received message or the sent message of the chat interface is the picture type, correspondingly adjusting the screen making brightness to a second level brightness; when the display type of the received message or the sent message of the chat interface is the voice type, correspondingly adjusting the screen-making brightness to a third-level brightness; therefore, the method can not only prevent the image user from reading and checking various messages, but also reduce the screen brightness, so that the adjustment of the screen brightness of the mobile terminal can better meet the actual requirements, and the experience degree is high.
Drawings
While the drawings for illustrating the embodiments of the present invention will be described briefly in order to make the above and other objects, features and advantages of the present invention comprehensible, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained by those skilled in the art without any loss of inventive faculty.
Fig. 1 is a flowchart illustrating a method for adjusting screen brightness of a chat interface of a mobile terminal according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating a method for adjusting screen brightness of a chat interface of a mobile terminal according to a second embodiment of the present invention.
Fig. 3 is a flowchart illustrating a method for adjusting screen brightness of a chat interface of a mobile terminal according to a third embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, belong to the scope of the present invention.
Example one
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for adjusting screen brightness of a chat interface of a mobile terminal according to an embodiment of the present invention. Specifically, the embodiment provides a screen brightness adjusting method for a chat interface of a mobile terminal, which includes the following steps:
101: detecting whether a screen of the mobile terminal is currently in a chat interface;
102: if so, acquiring a display type of the received message, wherein the display type comprises a character type, an image type and a voice type;
103: controlling the screen brightness to be adjusted to a first-level brightness according to the acquired character category, controlling the screen to be adjusted to a second-level brightness according to the acquired picture category, and controlling the screen to be adjusted to a third-level brightness according to the acquired voice category; wherein the first level luminance is higher than the second level luminance, which is higher than the third level luminance.
The mobile terminal acquires the display type of the newly received message sent by the opposite party, and if the newly received message is a character, the mobile terminal adjusts the brightness of the control screen to be the first-level brightness; if the newly received message is a picture, the mobile terminal adjusts the brightness of the control screen to a second level brightness; if the newly received message is voice, the mobile terminal adjusts the control screen brightness to a third level brightness.
Example two
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for adjusting screen brightness of a chat interface of a mobile terminal according to a second embodiment of the present invention. Specifically, in this embodiment, the method includes the following steps:
201: detecting whether a screen of the mobile terminal is currently in a chat interface;
202: if so, acquiring a display type of the sent message, wherein the display type comprises a character type, an image type and a voice type;
203: controlling the screen brightness to be adjusted to a first-level brightness according to the acquired character category, controlling the screen to be adjusted to a second-level brightness according to the acquired picture category, and controlling the screen to be adjusted to a third-level brightness according to the acquired voice category; wherein the first level luminance is higher than the second level luminance, which is higher than the third level luminance.
The mobile terminal acquires the display type of the newly sent message, and if the newly sent message is a character, the mobile terminal adjusts the brightness of the control screen to be first-level brightness; if the newly sent message is a picture, the mobile terminal adjusts the brightness of the control screen to a second-level brightness; if the newly transmitted message is voice, the mobile terminal adjusts the control screen brightness to a third level brightness.
EXAMPLE III
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for adjusting screen brightness of a chat interface of a mobile terminal according to a third embodiment of the present invention. Specifically, in this embodiment, the method includes the following steps:
301: detecting whether a screen of the mobile terminal is currently in a chat interface;
302: if so, acquiring an operation category of the user based on the screen, wherein the operation category comprises a character operation category, a picture operation category and a voice operation category;
303: and controlling the screen brightness to be adjusted to a first-level brightness according to the acquired character operation type, controlling the screen to be adjusted to a second-level brightness according to the acquired picture operation type, and controlling the screen to be adjusted to a third-level brightness according to the acquired voice operation type.
The method for acquiring the operation category of the user based on the screen comprises the following steps: judging whether a user inputs characters on a chat interface, if so, determining that the operation type is a character operation type; judging whether a user selects pictures in the chat software or not, and if so, determining that the operation type is a picture operation type; and judging whether the user carries out voice input on the chat interface, and if so, determining that the operation type is a voice operation type.
The invention can realize the following advantages:
by the invention, when the display type of the received message or the sent message of the chat interface is the character type, the screen brightness is correspondingly adjusted to the first-level brightness; when the display type of the received message or the sent message of the chat interface is the picture type, correspondingly adjusting the screen making brightness to a second level brightness; when the display type of the received message or the sent message of the chat interface is the voice type, correspondingly adjusting the screen-making brightness to a third-level brightness; therefore, the method can not only prevent the image user from reading and checking various messages, but also reduce the screen brightness, so that the adjustment of the screen brightness of the mobile terminal can better meet the actual requirements, and the experience degree is high.