CN113179349B - Flashlight interaction control method and device and computer readable storage medium - Google Patents

Flashlight interaction control method and device and computer readable storage medium Download PDF

Info

Publication number
CN113179349B
CN113179349B CN202110511278.5A CN202110511278A CN113179349B CN 113179349 B CN113179349 B CN 113179349B CN 202110511278 A CN202110511278 A CN 202110511278A CN 113179349 B CN113179349 B CN 113179349B
Authority
CN
China
Prior art keywords
flashlight
current ambient
interactive
display state
interaction
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.)
Active
Application number
CN202110511278.5A
Other languages
Chinese (zh)
Other versions
CN113179349A (en
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.)
Shenzhen Zowee Technology Co Ltd
Original Assignee
Shenzhen Zowee Technology 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 Shenzhen Zowee Technology Co Ltd filed Critical Shenzhen Zowee Technology Co Ltd
Priority to CN202110511278.5A priority Critical patent/CN113179349B/en
Publication of CN113179349A publication Critical patent/CN113179349A/en
Application granted granted Critical
Publication of CN113179349B publication Critical patent/CN113179349B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a flashlight interaction control method, flashlight interaction control equipment and a computer readable storage medium, wherein the method comprises the following steps: receiving a lighting instruction of a screen, and judging whether the current ambient light meets a preset light condition or not before responding to the lighting instruction; if the current ambient light meets the preset light condition, responding to the lighting instruction and lighting the screen, and if the current ambient light fails to meet the preset light condition, generating an interactive interface and interactive options for controlling the flashlight; and then, after the generation of the interactive interface and the interactive options is completed, responding to the lighting instruction, and displaying the interactive interface and the interactive options on the interactive interface in the screen. The humanized flashlight interactive control scheme is realized, so that a user can quickly control the switch of the flashlight without complicated operation, the operation time of the user is saved, the operation burden is reduced, and the user experience is improved.

Description

Flashlight interaction control method and device and computer readable storage medium
Technical Field
The present invention relates to the field of mobile communications, and in particular, to a flashlight interaction control method, device and computer-readable storage medium.
Background
In the prior art, with the continuous development of intelligent terminal devices, devices such as mobile phones have evolved into articles necessary for daily life of users. Among various functions of the mobile phone, the lighting function similar to that of a traditional flashlight can be realized by turning on an LED flash lamp matched with a camera, and therefore, the function is also widely used by users.
However, based on the existing mobile phone terminal, if the user needs to turn on the flashlight, the user is generally required to click a specific flashlight application program, or click a specific turn-on switch in the pull-down menu, or click a specific turn-on switch in the pull-up menu. It can be seen that, since the above-mentioned opening step is at least two steps, certain inconvenience may be brought to the user. Meanwhile, when the user needs to open the flashlight, the flashlight is often in a dark nervous state, and in the nervous state, the user often brings impatient emotion to the illumination requirement, so that the user can more urgently find the open switch of the flashlight immediately, the more complicated open mode cannot meet the typical use requirement, and the user experience is influenced to a certain extent due to the more complicated functional design.
Disclosure of Invention
In order to solve the technical defects in the prior art, the invention provides a flashlight interaction control method, which comprises the following steps:
and receiving a lighting instruction of the screen, and judging whether the current ambient light meets a preset light condition before responding to the lighting instruction.
And if the current ambient light meets the preset light condition, responding to the lighting instruction and lighting the screen, and if the current ambient light fails to meet the preset light condition, generating an interactive interface and interactive options for controlling the flashlight.
And after the interactive interface and the interactive options are generated, responding to the lighting instruction, and displaying the interactive interface and the interactive options on the interactive interface in the screen.
Optionally, the receiving a lighting instruction of the screen includes:
receiving a key signal of a physical key of the equipment, or a shaking signal of the equipment, or a turning signal of the equipment, or a touch signal of the screen.
And generating the lighting instruction by one or more combinations of the key signal, the shaking signal, the turning signal and the touch signal.
Optionally, before determining whether the current ambient light meets the preset light condition, the method includes:
and acquiring the sunset time interval and/or the current weather state of the current position.
And determining the preset light condition related to the time information according to the sunset time interval and/or the weather state.
Optionally, before determining whether the current ambient light meets the preset light condition, the method includes:
and acquiring the identity state and the use habit state of the user.
And determining the preset light condition related to the light information according to the identity state and the using habit state.
Optionally, the determining whether the current ambient light meets a preset light condition includes:
the generation time of the lighting instruction is acquired.
And if the generation time is within the range of the time information, determining that the current ambient light meets the preset light condition, and if the generation time is out of the range of the time information, determining that the current ambient light fails to meet the preset light condition.
Optionally, the determining whether the current ambient light meets a preset light condition includes:
and acquiring the light intensity of the lighting instruction when the lighting instruction is generated.
And if the light intensity is within the range of the light information, determining that the current ambient light meets the preset light condition, and if the light intensity is out of the range of the light information, determining that the current ambient light fails to meet the preset light condition.
Optionally, if the current ambient light fails to satisfy the preset light condition, generating an interactive interface and an interactive option for controlling a flashlight includes:
and acquiring the running state of a foreground program of the equipment and the setting state of system unlocking.
And determining the current first display state which is not unlocked, or the unlocked second display state without the foreground program, or the unlocked third display state with the foreground program according to the lighting instruction.
Optionally, the displaying the interactive interface and the interactive options on the interactive interface in the screen includes:
presetting a first interaction option of a screen locking interface in the first display state, a second interaction option of a desktop interface in the second display state and a third interaction option of a program interface in the third display state.
And executing the flash lamp turning-on or turning-off operation of the equipment according to the touch instruction corresponding to the flashlight turning-on and turning-off options in the first interaction option, the second interaction option or the third interaction option.
The invention also proposes a flashlight interaction control device comprising a memory, a processor and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the flashlight interaction control method as defined in any one of the above.
The invention also provides a computer readable storage medium, on which a flashlight interaction control program is stored, wherein the flashlight interaction control program realizes the steps of the flashlight interaction control method according to any one of the above items when being executed by a processor.
By implementing the flashlight interaction control method, the flashlight interaction control equipment and the computer readable storage medium, whether the current ambient light meets the preset light condition or not is judged by receiving the lighting instruction of the screen and before responding to the lighting instruction; if the current ambient light meets the preset light condition, responding to the lighting instruction and lighting the screen, and if the current ambient light fails to meet the preset light condition, generating an interactive interface and interactive options for controlling the flashlight; and then, after the generation of the interactive interface and the interactive options is completed, responding to the lighting instruction, and displaying the interactive interface and the interactive options on the interactive interface in the screen. The humanized flashlight interactive control scheme is realized, so that a user can quickly control the switch of the flashlight without complicated operation, the operation time of the user is saved, the operation burden is reduced, and the user experience is improved.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
FIG. 1 is a flow chart of a first embodiment of a flashlight interaction control method of the present invention;
FIG. 2 is a flow chart of a second embodiment of a flashlight interaction control method of the present invention;
FIG. 3 is a flow chart of a third embodiment of a flashlight interaction control method of the present invention;
FIG. 4 is a flow chart of a fourth embodiment of a flashlight interaction control method of the present invention;
FIG. 5 is a flow chart of a fifth embodiment of the flashlight interaction control method of the present invention;
FIG. 6 is a flow chart of a sixth embodiment of a flashlight interaction control method of the present invention;
FIG. 7 is a flow chart of a seventh embodiment of a flashlight interaction control method of the present invention;
FIG. 8 is a flow chart of an eighth embodiment of a flashlight interaction control method of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Example one
FIG. 1 is a flow chart of a first embodiment of a flashlight interaction control method of the present invention. A method of flashlight interaction control, the method comprising:
s1, receiving a lighting instruction of the screen, and judging whether the current ambient light meets the preset light condition before responding to the lighting instruction.
And S2, if the current ambient light meets the preset light condition, responding to the lighting instruction and lighting the screen, and if the current ambient light fails to meet the preset light condition, generating an interactive interface and an interactive option for controlling the flashlight.
And S3, responding to the lighting instruction after the generation of the interactive interface and the interactive options is completed, and displaying the interactive interface and the interactive options on the interactive interface in the screen.
Alternatively, in this embodiment, the lighting instruction of the screen may be generated by a physical key of the terminal, for example, by receiving a single-click signal of the power physical key, or by receiving a double-click signal of the power physical key, the lighting instruction of this embodiment is generated.
Optionally, in this embodiment, the lighting instruction of the screen may also be generated by the screen of the terminal, for example, the lighting instruction of this embodiment is generated by receiving a touch signal of any area or a specific area of the screen, or the lighting instruction of this embodiment is generated by receiving a gesture sliding signal of any area or a specific area of the screen.
Optionally, in this embodiment, the lighting instruction of the screen may also be generated by a sensor of the terminal, for example, current pressure values are monitored by pressure sensors disposed on two sides of the terminal, and if the user grips the terminal and the generated pressure value is greater than a preset pressure threshold, the lighting instruction of this embodiment is generated.
Optionally, in this embodiment, after receiving the lighting instruction of the screen, the lighting instruction is not responded immediately, but before responding to the lighting instruction, whether the current ambient light meets the preset light condition is determined. The preset light condition is used for judging whether the current ambient light meets the lowest lighting requirement or not, namely, the condition is used for triggering the display of the flashlight option when the current ambient light cannot meet the lowest lighting requirement, so that the urgent requirement of a user for timely starting the flashlight is met.
Optionally, in this embodiment, the preset light condition may be defined in various manners, for example, the light condition is a light intensity threshold, and when the light intensity of the current ambient light is greater than the light intensity threshold, it is determined that the current ambient light satisfies the preset light condition; for another example, the light condition is a light intensity threshold and a duration threshold, and when the light intensity of the current ambient light is greater than the light intensity threshold and the duration is longer than the duration threshold, it is determined that the current ambient light satisfies the preset light condition; for another example, the light condition is a light intensity estimation value obtained according to the current time information, and when the light intensity of the current ambient light is greater than the light intensity estimation value, it is determined that the current ambient light satisfies the predetermined light condition.
Optionally, in this embodiment, if the current ambient light meets the preset light condition, the lighting instruction is responded and the screen is lighted, and if the current ambient light fails to meet the preset light condition, an interactive interface and an interactive option for controlling the flashlight are generated. In order to facilitate that the user can control the flashlight in time in various systems or application environments, in this embodiment, the interactive interface and the interactive options for controlling the flashlight are determined at the same time. Specifically, the interactive interface for controlling the flashlight is an interface displayed on the system or an application, and the interactive options are an on option, an off option, a brightness modulation option, an on duration option and the like in the interface.
Optionally, in this embodiment, after the generation of the interactive interface and the interactive options is completed, the lighting instruction is responded, and the interactive interface and the interactive options on the interactive interface are displayed in the screen. The embodiment is different from the prior art in that the control interface of the flashlight needs to be accessed through a specific operation, and the interactive interface and the interactive options are adaptively generated according to the determination result of the light condition, so that when a user performs a normal or conventional unlocking or screen-up operation, the interactive interface and the interactive options for controlling the flashlight are timely provided for the user.
The method has the advantages that whether the current ambient light meets the preset light condition or not is judged by receiving the lighting instruction of the screen and before responding to the lighting instruction; if the current ambient light meets the preset light condition, responding to the lighting instruction and lighting the screen, and if the current ambient light fails to meet the preset light condition, generating an interactive interface and interactive options for controlling the flashlight; and then, after the generation of the interactive interface and the interactive options is completed, responding to the lighting instruction, and displaying the interactive interface and the interactive options on the interactive interface in the screen. The humanized flashlight interactive control scheme is realized, so that a user can quickly control the switch of the flashlight without complicated operation, the operation time of the user is saved, the operation burden is reduced, and the user experience is improved.
Example two
Fig. 2 is a flowchart of a flashlight interaction control method according to a second embodiment of the present invention, where based on the above embodiment, the receiving a lighting instruction of a screen includes:
s11, receiving a key signal of a physical key of the equipment, or a shaking signal of the equipment, or a turning signal of the equipment, or a touch signal of the screen.
S12, generating the lighting instruction by one or more combinations of the key signal, the shaking signal, the turning signal and the touch signal.
Optionally, in this embodiment, the lighting instruction is generated according to a combination of key signals of two or more physical keys.
Optionally, in this embodiment, the lighting instruction is generated according to a combination of a key signal of one or more physical keys and a signal of flipping once and/or a signal of shaking once.
Alternatively, in the present embodiment, the lighting instruction is generated according to a combination of a single-turn signal and/or a single-shake signal and a point-touch signal of the screen.
The method has the advantages that the method receives a key signal of a physical key of the equipment, a shaking signal of the equipment, a turning signal of the equipment or a touch signal of the screen; then, the lighting instruction is generated by one or more combinations of the key signal, the shaking signal, the turning signal and the touch signal. The generation basis of the lighting instruction is provided for realizing a humanized flashlight interaction control scheme, so that a user can quickly control the switch of the flashlight without complicated operation, the operation time of the user is saved, the operation burden is lightened, and the user experience is improved.
EXAMPLE III
Fig. 3 is a flowchart of a flashlight interaction control method according to a third embodiment of the present invention, where before determining whether the current ambient light meets the preset light condition, the method includes:
and S01, acquiring the sunset time interval and/or the current weather state of the current position.
S02, determining the preset light condition related to the time information according to the sunset time interval and/or the weather state.
Optionally, in this embodiment, the preset light condition related to the time information is determined according to the sunset time interval, for example, the local sunset time is used as the light condition, where the sunset time may be generally determined by using latitude and longitude and date, and then the sunset time of the local time or a number of minutes after sunset is used as a basis for determining whether the light condition is satisfied.
Optionally, in this embodiment, on the basis of the determination of the preset light condition related to the time information according to the sunset time interval, in consideration of that the current weather state may also have a certain influence on the estimation of the light, in this embodiment, the preset light condition related to the time information is determined according to the sunset time interval and the weather state.
Optionally, in this embodiment, as described in the above example, when the preset light condition related to the time information is determined jointly according to the sunset time interval and the weather state, a sunny day is used as the positive gain condition of the light estimation, and a rainy day is used as the negative gain condition of the light estimation.
The method has the advantages that the sunset time interval and/or the current weather state of the current position are/is obtained; then, the preset light condition related to the time information is determined according to the sunset time interval and/or the weather state. The method provides a basis for determining the light condition for realizing a humanized flashlight interaction control scheme, so that a user can quickly control the flashlight switch without complicated operation, the operation time of the user is saved, the operation burden is lightened, and the user experience is improved.
Example four
Fig. 4 is a flowchart of a flashlight interaction control method according to a fourth embodiment of the present invention, where before determining whether the current ambient light meets the preset light condition, the method includes:
and S03, acquiring the identity state and the use habit state of the user.
S04, determining the preset light condition related to the light information according to the identity state and the using habit state.
Optionally, in this embodiment, in consideration that different users have different usage requirements on the flashlight, in this embodiment, the identity state of the user is first obtained, and the identity information of the user is determined according to the identity state, so that when the user is an old person or a child, the preset light condition is reduced, and thus the interactive item controlled by the flashlight can appear in the bright screen interface in time.
Optionally, in this embodiment, similarly, in consideration that habits of different users for using the flashlight are different, in this embodiment, the using habit state of the user is first obtained, and a high-frequency region or a high-frequency time for turning on the flashlight of the user is obtained through statistical analysis of the using habit state, so that when the terminal is in the high-frequency region or the high-frequency time, the preset light condition is reduced, and thus the interactive items controlled by the flashlight can appear in the bright screen interface in time.
The method has the advantages that the identity state and the using habit state of the user are obtained; then, the preset light condition related to the light information is determined according to the identity state and the using habit state. The self-adaptive setting basis of light conditions is provided for realizing a humanized flashlight interaction control scheme, so that a user can quickly control the on-off of the flashlight without complicated operation, the operation time of the user is saved, the operation burden is lightened, and the user experience is improved.
EXAMPLE five
Fig. 5 is a flowchart of a flashlight interaction control method according to a fifth embodiment of the present invention, where the determining whether the current ambient light meets the preset light condition includes:
s13, acquiring the generation time of the lighting command.
And S14, if the generation time is within the range of the time information, determining that the current ambient light meets the preset light condition, and if the generation time is outside the range of the time information, determining that the current ambient light fails to meet the preset light condition.
Alternatively, in the present embodiment, the time information may be the local sunset sunrise time. For example, if the generation time is within a range of sunrise time, it is determined that the current ambient light satisfies the preset light condition, and if the generation time is within a range of sunset, it is determined that the current ambient light fails to satisfy the preset light condition.
Optionally, in this embodiment, a certain buffering time is set on the basis of the sunset time and the sunrise time, for example, the buffering time is half an hour, specifically, when the generation time is within the buffering time outside the range of the sunrise time, it is determined that the current ambient light satisfies the preset light condition, and if the generation time is within the buffering time outside the range of the sunset, it is determined that the current ambient light fails to satisfy the preset light condition.
The embodiment has the advantages that the generation time of the lighting instruction is obtained; and if the generation time is within the range of the time information, determining that the current ambient light meets the preset light condition, and if the generation time is out of the range of the time information, determining that the current ambient light fails to meet the preset light condition. The light condition setting basis based on the sunset and sunrise time is provided for realizing a humanized flashlight interaction control scheme, so that a user can quickly control the flashlight switch without complicated operation, the operation time of the user is saved, the operation burden is lightened, and the user experience is improved.
EXAMPLE six
Fig. 6 is a flowchart of a flashlight interaction control method according to a sixth embodiment of the present invention, where the determining whether the current ambient light meets the preset light condition includes:
and S15, acquiring the light intensity when the lighting command is generated.
And S16, if the light intensity is within the range of the light information, determining that the current ambient light meets the preset light condition, and if the light intensity is outside the range of the light information, determining that the current ambient light fails to meet the preset light condition.
Optionally, in this embodiment, if the light intensity is within the range of the light information and the duration exceeds a preset time, it is determined that the current ambient light meets the preset light condition, and if the light intensity is outside the range of the light information, it is determined that the current ambient light fails to meet the preset light condition.
Optionally, in this embodiment, if the light intensity is within the range of the light information and the duration exceeds the preset time, it is determined that the current ambient light satisfies the preset light condition, and if the light intensity is outside the range of the light information and the light change amplitude exceeds the preset amplitude, it is determined that the current ambient light fails to satisfy the preset light condition.
Optionally, in this embodiment, if the light intensity is within the range of the light information, the duration exceeds the preset time, and the light change amplitude does not exceed the preset amplitude, it is determined that the current ambient light satisfies the preset light condition, and if the light intensity is outside the range of the light information, and the light color temperature is too high or too low, it is determined that the current ambient light fails to satisfy the preset light condition.
The embodiment has the advantages that the light intensity when the lighting instruction is generated is obtained; and if the light intensity is within the range of the light information, determining that the current ambient light meets the preset light condition, and if the light intensity is out of the range of the light information, determining that the current ambient light fails to meet the preset light condition. The light condition setting basis based on the light information is provided for realizing a humanized flashlight interaction control scheme, so that a user can quickly control the flashlight switch without complicated operation, the operation time of the user is saved, the operation burden is lightened, and the user experience is improved.
EXAMPLE seven
Fig. 7 is a flowchart of a seventh embodiment of the flashlight interaction control method according to the present invention, wherein based on the above embodiments, if the current ambient light fails to satisfy the preset light condition, generating an interaction interface and interaction options for controlling the flashlight includes:
and S21, acquiring the running state of the foreground program of the equipment and the setting state of the system unlocking.
S22, determining the current first display state which is not unlocked, the second display state which is unlocked and has no foreground program, or the third display state which is unlocked and has foreground program according to the lighting instruction.
Optionally, in this embodiment, the running state of the foreground program of the device is obtained, where the running state includes that the foreground has the application running and the foreground has no application running.
Optionally, in this embodiment, the setting state of the system unlocking of the device is obtained, where the setting state includes that after the lighting instruction is received, the unlocking interface needs to be displayed first, and the user interface can be accessed only after the unlocking is completed, and the setting state also includes that after the lighting instruction is received, the user interface is directly accessed.
Optionally, in this embodiment, the first display state that is not unlocked currently, or the second display state that is unlocked and has no foreground program, or the third display state that is unlocked and has foreground program is determined according to the lighting instruction. The method comprises the steps of displaying the interface content to be solved in a lighted first display state, displaying the content of a desktop interface in a lighted unlocked second display state without a foreground program, and displaying the content of the program interface of the current foreground program in a lighted unlocked third display state with the foreground program.
The method has the advantages that the running state of the foreground program of the equipment and the setting state of the system unlocking are obtained; and then, determining the current first display state which is not unlocked, or the unlocked second display state without the foreground program, or the unlocked third display state with the foreground program according to the lighting instruction. The interface display basis based on three different display states is provided for realizing a humanized flashlight interaction control scheme, so that a user can quickly control the on and off of the flashlight without complicated operation, the operation time of the user is saved, the operation burden is lightened, and the user experience is improved.
Example eight
Fig. 8 is a flowchart of an eighth embodiment of the flashlight interaction control method according to the present invention, where based on the above embodiments, the displaying the interactive interface and the interaction options on the interactive interface in the screen includes:
s31, presetting a first interaction option of a screen locking interface in the first display state, a second interaction option of a desktop interface in the second display state and a third interaction option of a program interface in the third display state.
S32, according to the touch control instruction corresponding to the flashlight on/off option in the first interaction option, the second interaction option or the third interaction option, executing the flash lamp on/off operation of the device.
Optionally, in this embodiment, for the interface contents of the three different display states, in this embodiment, a first interaction option of the screen locking interface in the first display state, a second interaction option of the desktop interface in the second display state, and a third interaction option of the program interface in the third display state are preset. In the first display state, a first interaction option for controlling the flashlight to be turned on or off is generated in an idle area of a screen locking interface to be unlocked; in the second display state, a gap area is obtained in the gap area of the desktop icons or the icon layout of the desktop icons is temporarily modulated, and the generated second interaction option for controlling the flashlight to be turned on or off is displayed; and the third display state is that a display layer with certain transparency is generated in an idle area of a program interface of the application program or above the program interface, and a generated third interaction option for controlling the flashlight to be turned on or off is displayed.
Optionally, in this embodiment, according to a touch instruction corresponding to an on/off option of the flashlight in the first interaction option, the second interaction option, or the third interaction option, a flash light of the device is turned on or off, and after the on operation is performed, different interface switching operations are performed according to different interaction option execution results.
Optionally, in this embodiment, in the first interaction option, when the flash is turned on, if an unlocking instruction is received, the first display state is switched to the second display state, that is, the flash is switched to the second interaction option, so that subsequent control of the flash by the user is not affected.
Optionally, in this embodiment, in the second interaction option, when the flash is turned on, if a turn-on instruction of the application program is received, the second display state is switched to the third display state, that is, the second display state is switched to the third interaction option, so that subsequent control of the flash by the user is not affected.
Optionally, in this embodiment, in the third interactive option, when the flash is turned on, if an exit instruction of the program or an instruction of returning to the home page is received, the third display state is switched to the second display state, that is, the third display state is switched to the second interactive option, so that subsequent control of the flash by the user is not affected.
The method has the advantages that a first interaction option of a screen locking interface in the first display state, a second interaction option of a desktop interface in the second display state and a third interaction option of a program interface in the third display state are preset; and then, according to the touch instruction corresponding to the on/off options of the flashlight in the first interaction option, the second interaction option or the third interaction option, executing the on/off operation of the flashlight of the equipment. The switching control basis based on three different interactive options is provided for realizing a humanized flashlight interactive control scheme, so that a user can quickly control the switch of the flashlight without complicated operation, the operation time of the user is saved, the operation burden is lightened, and the user experience is improved.
Example nine
Based on the above embodiments, the present invention further provides a flashlight interaction control device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the flashlight interaction control method according to any one of the above embodiments.
It should be noted that the device embodiment and the method embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment, and technical features in the method embodiment are correspondingly applicable in the device embodiment, which is not described herein again.
Example ten
Based on the above embodiment, the present invention further provides a computer-readable storage medium, where a flashlight interaction control program is stored, and when executed by a processor, the flashlight interaction control program implements the steps of the flashlight interaction control method according to any one of the above embodiments.
It should be noted that the media embodiment and the method embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment, and technical features in the method embodiment are correspondingly applicable in the media embodiment, which is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A method of flashlight interaction control, the method comprising:
receiving a lighting instruction of a screen, and judging whether the current ambient light meets a preset light condition or not before responding to the lighting instruction;
if the current ambient light meets the preset light condition, responding to the lighting instruction and lighting the screen, and if the current ambient light fails to meet the preset light condition, generating an interactive interface and interactive options for controlling the flashlight;
after the interactive interface and the interactive options are generated, responding to the lighting instruction, and displaying the interactive interface and the interactive options on the interactive interface in the screen;
if the current ambient light fails to satisfy the preset light condition, generating an interactive interface and interactive options for controlling the flashlight, including:
acquiring the running state of a foreground program of the equipment and the setting state of system unlocking;
determining a first display state which is not unlocked currently, or a second display state which is unlocked and has no foreground program, or a third display state which is unlocked and has a foreground program according to the lighting instruction;
presetting a first interaction option of a screen locking interface in the first display state, a second interaction option of a desktop interface in the second display state and a third interaction option of a program interface in the third display state; generating a first interaction option for controlling a flashlight to be turned on or off in an idle area of a screen locking interface to be unlocked in the first display state; in the second display state, displaying the generated second interactive option for controlling the flashlight to be turned on or off in a gap area of the desktop icon or a gap area obtained by temporarily modulating the icon layout of the desktop icon; in the third display state, generating a display layer with certain transparency in an idle area of a program interface of an application program or on the program interface, and displaying the generated third interaction option for controlling the flashlight to be turned on or off;
according to the touch control instruction corresponding to the flashlight on/off option in the first interaction option, the second interaction option or the third interaction option, executing the flash lamp on/off operation of the equipment; in the first interaction option, when a flash lamp is started, if an unlocking instruction is received, the first display state is switched to the second display state; in the second interactive option, when a flash lamp is started, if a starting instruction of an application program is received, the second display state is switched to the third display state; in the third interactive option, when the flash lamp is turned on, if an exit instruction of a program or an instruction of returning to a homepage is received, the third display state is switched to the second display state.
2. The method for controlling interaction of a flashlight of claim 1, wherein receiving an instruction to illuminate a screen comprises:
receiving a key signal of a physical key of equipment, or a shaking signal of the equipment, or an overturning signal of the equipment, or a touch signal of the screen;
and generating the lighting instruction by one or more combinations of the key signal, the shaking signal, the turning signal and the touch signal.
3. The method as claimed in claim 1, wherein before determining whether the current ambient light meets the predetermined light condition, the method comprises:
acquiring a sunset time interval and/or a current weather state of a current position;
and determining the preset light condition related to the time information according to the sunset time interval and/or the weather state.
4. The method as claimed in claim 1, wherein before determining whether the current ambient light meets the predetermined light condition, the method comprises:
acquiring the identity state and the use habit state of a user;
and determining the preset light condition related to the light information according to the identity state and the using habit state.
5. The method as claimed in claim 3, wherein the determining whether the current ambient light meets the predetermined light condition comprises:
acquiring the generation time of the lighting instruction;
and if the generation time is within the range of the time information, determining that the current ambient light meets the preset light condition, and if the generation time is out of the range of the time information, determining that the current ambient light fails to meet the preset light condition.
6. The method as claimed in claim 4, wherein the determining whether the current ambient light meets the predetermined light condition comprises:
acquiring the light intensity of the lighting instruction during generation;
if the light intensity is within the range of the light information, determining that the current ambient light meets the preset light condition, and if the light intensity is outside the range of the light information, determining that the current ambient light fails to meet the preset light condition.
7. A flashlight interaction control device, characterized in that the device comprises a memory, a processor and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the flashlight interaction control method according to any one of claims 1 to 6.
8. A computer readable storage medium, characterized in that a flashlight interaction control program is stored thereon, which when executed by a processor implements the steps of the flashlight interaction control method of any one of claims 1 to 6.
CN202110511278.5A 2021-05-11 2021-05-11 Flashlight interaction control method and device and computer readable storage medium Active CN113179349B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110511278.5A CN113179349B (en) 2021-05-11 2021-05-11 Flashlight interaction control method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110511278.5A CN113179349B (en) 2021-05-11 2021-05-11 Flashlight interaction control method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113179349A CN113179349A (en) 2021-07-27
CN113179349B true CN113179349B (en) 2022-06-24

Family

ID=76928776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110511278.5A Active CN113179349B (en) 2021-05-11 2021-05-11 Flashlight interaction control method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113179349B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105744067A (en) * 2016-02-24 2016-07-06 广东欧珀移动通信有限公司 Mobile terminal flashlight brightness adjustment method and device, mobile terminal
CN107222622A (en) * 2017-05-31 2017-09-29 深圳天珑无线科技有限公司 The method and its system of intelligent switch flashlight
WO2020159213A1 (en) * 2019-02-01 2020-08-06 삼성전자 주식회사 Context-based user-personalized configuration method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345355B (en) * 2013-07-18 2016-08-17 小米科技有限责任公司 A kind of locking screen interface display control method, device and terminal unit
CN104394614B (en) * 2014-10-29 2017-12-29 小米科技有限责任公司 Indicator lamp brightness adjusting method and device
CN106352497B (en) * 2016-10-19 2019-05-31 青岛海尔空调器有限总公司 Air-conditioning sleep control method and control device
US10091854B1 (en) * 2017-07-25 2018-10-02 Energizer Brands, Llc Portable light control apparatus
CN208089015U (en) * 2017-11-23 2018-11-13 中山市黑点科技有限公司 Equipped with detecting rather dark intelligent lighting door lock automatically
CN108900708A (en) * 2018-06-28 2018-11-27 努比亚技术有限公司 Application method, mobile terminal and the readable storage medium storing program for executing of flashlight

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105744067A (en) * 2016-02-24 2016-07-06 广东欧珀移动通信有限公司 Mobile terminal flashlight brightness adjustment method and device, mobile terminal
CN107222622A (en) * 2017-05-31 2017-09-29 深圳天珑无线科技有限公司 The method and its system of intelligent switch flashlight
WO2020159213A1 (en) * 2019-02-01 2020-08-06 삼성전자 주식회사 Context-based user-personalized configuration method and device

Also Published As

Publication number Publication date
CN113179349A (en) 2021-07-27

Similar Documents

Publication Publication Date Title
CN106210307B (en) Mobile terminal and screen switching
EP2414982B1 (en) Unlock screen
US8238876B2 (en) Notifications
US11256525B2 (en) Object starting method and device
US8331992B2 (en) Interactive locked state mobile communication device
CN111194436A (en) Method for direct manipulation of multi-layer user interface
JP7017216B2 (en) Screen control method, device device and computer readable storage medium
CN106249841A (en) Mobile terminal and control method thereof
CN108303903A (en) The control method and system of smart home
CN108933861A (en) Application icon sort method, device, readable storage medium storing program for executing and intelligent terminal
CN105808094B (en) A kind of application call method and terminal
US20230087284A1 (en) Application icon display method and apparatus, and electronic device
US20210165670A1 (en) Method, apparatus for adding shortcut plug-in, and intelligent device
CN112199146A (en) Interface switching method and device and electronic equipment
CN114500717A (en) Information display method and device
CN109725790A (en) A kind of application recommended method, terminal and storage medium
WO2022213945A1 (en) Application reminding method and apparatus, and electronic device
CN112099702A (en) Application running method and device and electronic equipment
CN106793026B (en) Method and terminal for realizing event reporting processing
CN104717367A (en) Electronic equipment and image display method
CN113179349B (en) Flashlight interaction control method and device and computer readable storage medium
CN112148169B (en) Identification display control method and device and electronic equipment
CN106648607A (en) Application starting method, device base on icon shift and terminal device
CN105786386A (en) Local awakening method for screen and intelligent terminal
CN114564707A (en) Application authority management method and device and electronic equipment

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220208

Address after: 518000 Guangdong city of Shenzhen province Nanshan District Xili Hirayama Private Technology Industrial Park 5

Applicant after: SHENZHEN ZOWEE TECHNOLOGY Co.,Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District Xili Hirayama Private Technology Industrial Park 5

Applicant before: SHENZHEN ZOWEE TECHNOLOGY Co.,Ltd.

Applicant before: Yisheng (Xiamen) Technology Co., Ltd

GR01 Patent grant
GR01 Patent grant