The content of the invention
Existing in the prior art in order to solve the problems, such as, at least one embodiment of the present invention provides a kind of flashlight operation
Interface control method and device.
In a first aspect, the embodiment of the present invention discloses a kind of flashlight operation interface control method, including:
When the icon for detecting flashlight application program is clicked, the first operation interface of flashlight is shown;
The slide received according to first operation interface of flashlight, shows the second operation interface of flashlight;
After second operation interface of flashlight is shown, the slip received according to second operation interface of flashlight is grasped
Make, adjust the brightness of second operation interface of flashlight.
Optionally, the slide received according to first operation interface of flashlight, displaying flashlight second are grasped
Make interface, including:
The slide received according to first operation interface of flashlight, determines the first glide direction;
Judge whether first glide direction is default first glide direction of the flashlight application program;
If so, then show the second operation interface of flashlight.
Optionally, the slide received according to second operation interface of flashlight, adjusts the flashlight the
The brightness of two operation interfaces, including:
The slide received according to second operation interface of flashlight, determines the second glide direction;
According to the correspondence of default second glide direction of the flashlight application program and brightness adjustment operation, determine
The corresponding brightness adjustment operation of second glide direction;
According to the corresponding brightness adjustment operation of second glide direction, the bright of second operation interface of flashlight is adjusted
Degree.
Optionally, it is described to determine the corresponding brightness adjustment operation of second glide direction, including:
If second glide direction is to the left, it is determined that brightness adjustment operation is reduction brightness;
If second glide direction is to the right, it is determined that brightness adjustment operation is increase brightness.
Optionally, pair according to default second glide direction of the flashlight application program and brightness adjustment operation
It should be related to, before determining the corresponding brightness adjustment operation of second glide direction, the method further includes:
Judge whether second glide direction is default second glide direction of the flashlight application program;
If so, then show the first operation interface of flashlight.
A kind of flashlight operation interface control device is also disclosed in second aspect, the embodiment of the present invention, including:
First display unit, during for being clicked in the icon for detecting flashlight application program, shows flashlight first
Operation interface;
Second display unit, for the slide received according to first operation interface of flashlight, shows flashlight
Second operation interface;
Adjustment unit, for after second operation interface of flashlight is shown, boundary to be operated according to the flashlight second
The slide that face receives, adjusts the brightness of second operation interface of flashlight.
Optionally, second display unit, is used for:
The slide received according to first operation interface of flashlight, determines the first glide direction;
Judge whether first glide direction is default first glide direction of the flashlight application program;
If so, then show the second operation interface of flashlight.
Optionally, the adjustment unit, including:
First determination subelement, for the slide received according to second operation interface of flashlight, determines second
Glide direction;
Second determination subelement, for according to default second glide direction of the flashlight application program and brightness regulation
The correspondence of operation, determines the corresponding brightness adjustment operation of second glide direction;
Regulator unit, for according to the corresponding brightness adjustment operation of second glide direction, adjusting the flashlight
The brightness of second operation interface.
Optionally, second determination subelement, is used for:
If second glide direction is to the left, it is determined that brightness adjustment operation is reduction brightness;
If second glide direction is to the right, it is determined that brightness adjustment operation is increase brightness.
Optionally, described device further includes:
Judging unit, for judging whether second glide direction is that the flashlight application program default second is slided
Dynamic direction;
3rd display unit, judges that second glide direction is the flashlight application program for the judging unit
After default second glide direction, the first operation interface of flashlight is shown;
Correspondingly, second determination subelement, judges that second glide direction is not institute for the judging unit
After stating default second glide direction of flashlight application program, according to default second glide direction of the flashlight application program
With the correspondence of brightness adjustment operation, the corresponding brightness adjustment operation of second glide direction is determined.
As it can be seen that at least one embodiment of the present invention, flashlight APP provides two operation interfaces, in flashlight APP quilts
After unlatching, show the first operation interface of flashlight, and the slide received according to the first operation interface of flashlight, show flashlight
The second operation interface of cylinder, enriches the operation interface of flashlight APP.
Further, at least one embodiment of the present invention, two operation interfaces that flashlight APP is provided can receive
The slide of user, improves human-computer interaction.
Further, at least one embodiment of the present invention, flashlight APP can respond the second operation interface of flashlight and connect
The slide of receipts, adjusts the brightness of the second operation interface of flashlight so that flashlight APP is opened except control terminal rear-mounted lamp
Lighting system, may also provide another lighting system, i.e., be illuminated by the brightness of the second operation interface of flashlight,
Meet that user is less big to brightness demand or the application demand of needs long period illumination, and then enrich flashlight APP's
Function.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
The part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
Member's all other embodiments obtained on the premise of creative work is not made, belong to the scope of protection of the invention.
In a first aspect, as shown in Figure 1, the embodiment of the present invention discloses a kind of flashlight operation interface control method, it may include
Following steps 101 to 103:
101st, when the icon for detecting flashlight application program is clicked, the first operation interface of flashlight is shown.
In the present embodiment, this method is applied to terminal, such as intelligent mobile terminal, including mobile phone and tablet computer etc..
In the present embodiment, the executive agent of this method can be flashlight APP, and flashlight can be regarded as the postposition of terminal
Lamp.When the icon for detecting flashlight application program is clicked, flashlight APP is started equivalent to user, therefore, in terminal
Display screen on show the first operation interface of flashlight, controlled so that user clicks on button that flashlight the first operation interface provides
Flashlight processed.
In the present embodiment, the button that the first operation interface of flashlight provides for example clicks on switch including switch key, user
Button, flashlight APP control flashlights are opened, and user again taps on switch key, and flashlight APP control flashlights are closed.
In the present embodiment, button that the first operation interface of flashlight provides for example may also include the selection of at least one frequency by
Key, frequency selection key and the correspondence of frequency are previously stored with flashlight APP, and frequency can be the frequency of certain signal
Rate, such as the frequency of distress signal, or the frequency without practical significance, user can like according to oneself sets frequency,
The correspondence of frequency and frequency selection key can be set.
In a particular application, at least one frequency selection key of switch key ambient display.More specifically, pressed in switch
At least one frequency selection key of key ambient display, which can be realized, is:Switch key and frequency selection key are shown as a circle
Disk, switch key are located at the center of disk, and frequency selection key is located at the surrounding of disk.
In a particular application, when detecting that disk is rotated, the brightness of flashlight APP adjustable hand torches.
In a particular application, the edge displaying sensing label on disk, sensing label are directed toward fixed position, correspondingly,
It is specially when detecting that frequency selection key is triggered:After disk is rotated, if frequency selection key is in sensing label
Pointed location, it is determined that frequency selection key is triggered.
In the present embodiment, when detecting that frequency selection key is triggered, flashlight APP control flashlights are selected according to frequency
The corresponding frequency of button is selected into line flicker, is specifically as follows:According to frequency selection key and the correspondence of predetermined frequency, determine
The corresponding frequency of frequency selection key;The information for carrying the corresponding frequency of frequency selection key is sent to flashlight driving core
Piece, so that flashlight driving chip drives flashlight into line flicker according to the corresponding frequency of frequency selection key.
In the present embodiment, different frequency selection keys can be distinguished with different identification informations, such as be numbered, accordingly
The correspondence of ground, frequency selection key and frequency, can be converted into the identification information pass corresponding with frequency of frequency selection key
System.
In the present embodiment, user can click frequency selection key select frequency, detecting that frequency selection key is touched
During hair, it may be determined that the numbering for the frequency selection key being clicked, so that according to the correspondence of numbering and frequency, determines to be clicked
Frequency selection key corresponding to frequency.
In the present embodiment, due to the presence of frequency selection key, flashlight switch button, frequency selection can be also omitted
Button can have flashlight switch function concurrently, such as user clicks on a secondary frequencies selection key, and flashlight is opened, and user again taps on
The frequency selection key, flashlight are closed.
As it can be seen that showing at least one frequency selection key in the first operation interface of flashlight, user can click on different frequencies
Rate selection key, after detecting that frequency selection key is clicked, according to the corresponding FREQUENCY CONTROL flashlight of frequency selection key
Into line flicker, therefore so that flashlight APP can not only realize the opening and closing of rear-mounted lamp, and enable to postposition
Lamp is with certain frequency scintillation so that receives the letter that can recognize that the frequency with the equipment or user of the light of the frequency scintillation
Breath, enriches the function of flashlight APP.
102nd, the slide received according to first operation interface of flashlight, shows the second operation interface of flashlight.
In the present embodiment, difference with the prior art is, flashlight APP provides two operation interfaces, i.e. flashlight
The second operation interface of first operation interface and flashlight, and the slip that flashlight APP is received according to the first operation interface of flashlight
Operate to show the second operation interface of flashlight, realize the first operation interface of flashlight and be switched to the second operation interface of flashlight
Changing interface function.
In the present embodiment, the detection and reception of slide can continue to use the prior art, and the present embodiment repeats no more.
As it can be seen that in the present embodiment, flashlight APP provides two operation interfaces, after flashlight APP is opened, shows hand
The first operation interface of torch, and the slide received according to the first operation interface of flashlight, displaying flashlight second operate boundary
Face, enriches the operation interface of flashlight APP.
Further, in the present embodiment, two operation interfaces that flashlight APP is provided can receive the slip behaviour of user
Make, improve human-computer interaction.
103rd, after second operation interface of flashlight is shown, according to the cunning of second operation interface of flashlight reception
Dynamic operation, adjusts the brightness of second operation interface of flashlight.
In the present embodiment, flashlight APP can respond the slide of the second operation interface of flashlight reception, adjust flashlight
The brightness of second operation interface so that the in addition lighting system that flashlight APP is opened except control terminal rear-mounted lamp, may also provide
A kind of lighting system, i.e., be illuminated by the brightness of the second operation interface of flashlight, meets that user does not have that to brightness demand
Application demand that is big or needing the long period to illuminate, and then enrich the function of flashlight APP.
In a specific example, the slip received described in step 102 according to first operation interface of flashlight is grasped
Make, show the second operation interface of flashlight, specifically may include the following steps 1021 to 1023 not shown in Fig. 1:
1021st, the slide received according to first operation interface of flashlight, determines the first glide direction.
In the present embodiment, slide for example, slip to the left, to the right slip, upward sliding and slide downward.
In the present embodiment, determine that glide direction belongs to this area mature technology according to slide, be no longer described in detail.
1022nd, judge whether first glide direction is default first glide direction of the flashlight application program,
If so, then perform step 1023.
In the present embodiment, since flashlight APP provides two operation interfaces, boundary is operated in displaying flashlight first
Behind face, to be switched to the second operation interface of flashlight, it is only necessary to preset a glide direction as handover triggering condition.
In a particular application, any direction may be selected is first glide direction.
1023rd, the second operation interface of flashlight is shown.
In the present embodiment, in step 1022, if it is determined that first glide direction is not pre- for the flashlight application program
If the first glide direction, then do not show the second operation interface of flashlight.
In a specific example, the slip received described in step 103 according to second operation interface of flashlight is grasped
Make, adjust the brightness of second operation interface of flashlight, it may include the following steps 1031 to 1033 not shown in Fig. 1:
1031st, the slide received according to second operation interface of flashlight, determines the second glide direction.
1032nd, closed according to default second glide direction of the flashlight application program is corresponding with brightness adjustment operation
System, determines the corresponding brightness adjustment operation of second glide direction.
In the present embodiment, brightness adjustment operation includes reducing brightness and increase brightness, in a particular application, may be selected any
Two glide directions are corresponding respectively to reduce brightness and increase brightness.
1033rd, according to the corresponding brightness adjustment operation of second glide direction, adjust the flashlight second and operate boundary
The brightness in face.
The corresponding brightness regulation behaviour of second glide direction is determined in a specific example, described in step 1032
Make, specifically include:
If second glide direction is to the left, it is determined that brightness adjustment operation is reduction brightness;
If second glide direction is to the right, it is determined that brightness adjustment operation is increase brightness.
In the present embodiment, the correspondence of the second glide direction and brightness adjustment operation is:It is bright that corresponding reduction is slided to the left
Degree, slides to the right corresponding increase brightness.
In a specific example, according to the default second slip side of the flashlight application program described in step 1032
To the correspondence with brightness adjustment operation, before determining the corresponding brightness adjustment operation of second glide direction, shown in Fig. 1
Method may also include the following steps 1032 ' and 1032 " not shown in Fig. 1:
1032 ', judge whether second glide direction is default second glide direction of the flashlight application program;
If so, then performing step 1032 ".
In the present embodiment, default second glide direction and default first glide direction described in step 1022 just phase
Instead, if such as default first glide direction is downward, default second glide direction is upward.
1032 ", the first operation interface of flashlight is shown.
In the present embodiment, step 1032 ' in, if it is determined that second glide direction is not pre- for the flashlight application program
If the second glide direction, then perform step 1032.
In the present embodiment, trigger condition is used as by default second glide direction, when user operates boundary in flashlight second
When carrying out slide on face with default second glide direction, it can trigger the second operation interface of flashlight and grasped to flashlight first
Make the handover operation at interface.Therefore, the present embodiment by default first glide direction and the second glide direction, it can be achieved that flashlight
The judgement that the first operation interface of cylinder switches mutually with the second operation interface of flashlight.
Based on flashlight operation interface control method disclosed in above example, the flashlight behaviour with reference to shown in Fig. 3 to Fig. 7
Make interface application scene graph, description flashlight operation Interface Control flow following steps 1 to step 4:
Step 1, when the icon for detecting flashlight application program is clicked, show flashlight first as shown in Figure 3
Operation interface.
In the first operation interface of flashlight shown in Fig. 3, switch key is shown.Flashlight operation interface shown in Fig. 3
Background be night field, the scene at any night can be used in a particular application, it is full so as to meet flashlight usage scenario
Sufficient user uses expection.When switch key is not clicked on, the background of the first operation interface of flashlight is light-off state.
After switch key is clicked, the first operation interface of flashlight as shown in Figure 4 is shown, in Fig. 4, flashlight first
The background of operation interface is changed into the state of turning on light, such as the tent bright light in field.The first operation interface of flashlight shown in Fig. 4
On, in six frequency selection keys of ambient display of switch key, wherein four are identified with numeral 0 to 5, another is marked with SOS
Know, the corresponding frequencies of SOS are the frequency of international morse code Mayday, and 0 to 5 corresponds to different frequencies respectively, and frequency can
Pre-set or by user setting.Switch key and all frequency selection keys are shown as disk, and switch key is located at disk
Center, frequency selection key is located at the surrounding of disk.
In the first operation interface of flashlight shown in Fig. 4, the edge on disk shows sensing label, and sensing label is
The inverted triangle of disk border in Fig. 4, sensing label is directed toward fixed position, and after switch key is clicked, inverted triangle acquiescence is directed toward
" 0 ", namely after user clicks on switch key, flashlight acquiescence is with " 0 " corresponding frequency into line flicker.After disk is rotated,
If frequency selection key is in the sensing label pointed location, it is determined that the frequency selection key is triggered.
After switch key in the first operation interface of flashlight shown in Fig. 4 is clicked, namely user wants to close hand
Torch, then show the flashlight operation interface shown in Fig. 3 again.
As it can be seen that by showing at least one frequency selection key in the first operation interface of flashlight, user may be selected not
Same frequency selection key, after detecting that frequency selection key is chosen, according to the corresponding FREQUENCY CONTROL of frequency selection key
Flashlight is into line flicker, therefore so that flashlight APP can not only realize the opening and closing of rear-mounted lamp, and can make
Rear-mounted lamp is obtained with certain frequency scintillation so that receive and the frequency can recognize that with the equipment or user of the light of the frequency scintillation
Information, enrich the function of flashlight APP.
Step 2, the slide received according to the first operation interface of flashlight, show flashlight second as shown in Figure 5
Operation interface.Specifically, the slide received according to the first operation interface of flashlight, determines the first glide direction;Judge
Whether one glide direction is default first glide direction of flashlight application program;If so, then show that flashlight second operates boundary
Face.In the present embodiment, the first glide direction is downward.The background of the second operation interface of flashlight shown in Fig. 5 is the day at night
Sky, the first operation interface of flashlight as shown in Figure 4 are switched to the second operation interface of flashlight shown in Fig. 5, come for user
Say, the sky that the intuitional and experiential thinking looks up to field for the ground in the visual field from the field at night, so as to meet that user uses expection.
Step 3, displaying Fig. 5 shown in the second operation interface of flashlight after, according to the second operation interface of flashlight receive
Slide, adjust the second operation interface of flashlight brightness.Specifically, the cunning received according to the second operation interface of flashlight
Dynamic operation, determines the second glide direction;According to default second glide direction of flashlight application program and brightness adjustment operation
Correspondence, determines the corresponding brightness adjustment operation of the second glide direction;According to the corresponding brightness tune of second glide direction
Section operation, adjusts the brightness of the second operation interface of flashlight.In the present embodiment, if the second glide direction is to the left, it is determined that bright
Degree adjusts operation to reduce brightness, and the second operation interface of flashlight reduced after brightness is as shown in Figure 6;If the second glide direction is
To the right, it is determined that for brightness adjustment operation for increase brightness, the second operation interface of flashlight increased after brightness is as shown in Figure 7.
If step 4, judge the second glide direction for default second glide direction of flashlight application program, such as default
Second glide direction is upward, then shows the first operation interface of flashlight again.
As it can be seen that flashlight APP provides two operation interfaces, after flashlight APP is opened, displaying flashlight first operates
Interface, and the slide received according to the first operation interface of flashlight, show the second operation interface of flashlight, enrich flashlight
The operation interface of cylinder APP.
Further, two operation interfaces that flashlight APP is provided can receive the slide of user, improve man-machine
Interaction.
Further, flashlight APP can respond the slide of the second operation interface of flashlight reception, adjust flashlight the
The brightness of two operation interfaces so that the lighting system that flashlight APP is opened except control terminal rear-mounted lamp, may also provide other one
Kind lighting system, i.e., be illuminated by the brightness of the second operation interface of flashlight, meet user to brightness demand less
Application demand that is big or needing the long period to illuminate, and then enrich the function of flashlight APP.
Second aspect, as shown in Fig. 2, the embodiment of the present invention discloses:
A1, a kind of flashlight operation interface control device, it may include:First display unit 21,22 and of the second display unit
Adjustment unit 23, each unit is described as follows:
First display unit 21, during for being clicked in the icon for detecting flashlight application program, displaying flashlight the
One operation interface;
Second display unit 22, for the slide received according to first operation interface of flashlight, shows flashlight
The second operation interface of cylinder;
Adjustment unit 23, for after second operation interface of flashlight is shown, being operated according to the flashlight second
The slide that interface receives, adjusts the brightness of second operation interface of flashlight.
A2, the device according to A1, second display unit 22, are used for:
The slide received according to first operation interface of flashlight, determines the first glide direction;
Judge whether first glide direction is default first glide direction of the flashlight application program;
If so, then show the second operation interface of flashlight.
A3, the device according to A1, the adjustment unit 23, it may include the unit not shown in Fig. 2:First determines son
Unit 231, the second determination subelement 232 and regulator unit 233.Each unit is described as follows:
First determination subelement 231, for the slide received according to second operation interface of flashlight, determines
Two glide directions;
Second determination subelement 232, for according to default second glide direction of the flashlight application program and brightness
The correspondence of operation is adjusted, determines the corresponding brightness adjustment operation of second glide direction;
Regulator unit 233, for according to the corresponding brightness adjustment operation of second glide direction, adjusting the flashlight
The brightness of the second operation interface of cylinder.
A4, the device according to A3, second determination subelement 232, are used for:
If second glide direction is to the left, it is determined that brightness adjustment operation is reduction brightness;
If second glide direction is to the right, it is determined that brightness adjustment operation is increase brightness.
A5, the device according to A3, described device may also include the unit not shown in Fig. 2:Judging unit 24 and
Three display units 25.Each unit is described as follows:
Judging unit 24, for judging whether second glide direction is the flashlight application program default second
Glide direction;
3rd display unit 25, judges that second glide direction is the flashlight application for the judging unit 24
After default second glide direction of program, the first operation interface of flashlight is shown;
Correspondingly, second determination subelement 232, judges second glide direction not for the judging unit 24
After default second glide direction of the flashlight application program, slided according to the flashlight application program default second
Direction and the correspondence of brightness adjustment operation, determine the corresponding brightness adjustment operation of second glide direction.
Flashlight operation interface control device disclosed in above example can be realized disclosed in each embodiment of first aspect
The flow of flashlight operation interface control method, to avoid repeating, repeats no more.
It is understood that embodiments described herein can use hardware, software, firmware, middleware, microcode or its
Combine to realize.For hardware realization, processing unit can be realized in one or more application-specific integrated circuit (Application
Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic
Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,
In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
Realized for software, can realize the techniques described herein by performing the unit of function described herein.Software generation
Code is storable in memory and is performed by processor.Memory can within a processor or portion realizes outside the processor.
Those of ordinary skill in the art may realize that each exemplary list described with reference to the embodiments described herein
Member and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, application-specific and design constraint depending on technical solution.Professional technician
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can pass through others
Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only
A kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit
Connect, can be electrical, machinery or other forms.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units integrate in a unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, the technical solution of the embodiment of the present invention is substantially
The part to contribute in other words to the prior art or the part of the technical solution can be embodied in the form of software product
Come, which is stored in a storage medium, including some instructions are used so that a computer equipment (can
To be personal computer, server, or network equipment etc.) perform all or part of each embodiment the method for the present invention
Step.And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with storage program
The medium of code.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And other elements that are not explicitly listed are further included, or further include as this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there are other identical element in the process of key element, method, article or device.
It should be noted that herein, the relational terms of such as " first " and " second " or the like are used merely to one
A entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operate it
Between there are any actual relationship or order.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made, is directly or indirectly used in other relevant skills
Art field, is included within the scope of the present invention.