Invention content
Of the existing technology in order to solve the problems, such as, at least one embodiment of the present invention provides a kind of flashlight and remindsFunction setting method and device.
In a first aspect, the embodiment of the present invention discloses a kind of flashlight prompting function setting method, applied to terminal, including:
When the setting function button for detecting flashlight application program is clicked, displaying flashlight setting interface;
On flashlight setting interface, displaying incoming call reminding function switch;
When detecting that the incoming call reminding function switch is opened, the call reminding of the flashlight application program is setFunction.
Optionally, the method further includes:
After the incoming call reminding function for setting the flashlight application program, if detecting incoming call, according to the incoming callPrompting function is reminded.
Optionally, it is described to be reminded according to the incoming call reminding function, including:
Show call reminding interface;On the call reminding interface, show that the flashlight application program is preset nextElectric prompting message;
And/or
Flashlight flicker frequency according to the prompting message functional condition controls the flashlight of the terminal to flicker.
Optionally, the method further includes:
On flashlight setting interface, prompting message functional switch is shown;
When detecting that the prompting message functional switch is opened, the prompting message of the flashlight application program is setFunction.
Optionally, the method further includes:
After the prompting message function that the flashlight application program is set, if detecting new information, disappear according to describedBreath prompting function is reminded.
Optionally, it is described to be reminded according to the prompting message function, including:
Flashlight flicker frequency according to the prompting message functional condition controls the flashlight of the terminal to flicker.
Second aspect, a kind of flashlight prompting function setting device is also disclosed in the embodiment of the present invention, applied to terminal, packetIt includes:
First display unit during for being clicked in the setting function button for detecting flashlight application program, shows handTorch sets interface;
Second display unit, for setting interface, displaying incoming call reminding function switch in the flashlight;
First setting unit, for when detecting that the incoming call reminding function switch is opened, setting the flashlightThe incoming call reminding function of application program.
Optionally, described device further includes:
First reminding unit, for setting the call reminding work(of the flashlight application program in first setting unitAfter energy, if detecting incoming call, reminded according to the incoming call reminding function.
Optionally, first reminding unit, for setting the flashlight application program in first setting unitIncoming call reminding function after, if detecting incoming call, show call reminding interface, on the call reminding interface, show instituteState the preset call reminding information of flashlight application program;And/or it is flickered according to the flashlight of the prompting message functional conditionThe flashlight flicker of terminal described in FREQUENCY CONTROL.
Optionally, described device further includes:
Third display unit for setting interface in the flashlight, shows prompting message functional switch;
Second setting unit, for when detecting that the prompting message functional switch is opened, setting the flashlightThe prompting message function of application program.
Optionally, described device further includes:
Second reminding unit, for setting the prompting message work(of the flashlight application program in second setting unitAfter energy, if detecting new information, reminded according to the prompting message function.
Optionally, second reminding unit, for setting the flashlight application program in second setting unitPrompting message function after, if detecting new information, according to the flashlight flicker frequency control of the prompting message functional conditionMake the flashlight flicker of the terminal.
As it can be seen that at least one embodiment of the present invention, flashlight APP provides setting function button and flashlight settingInterface, when the setting function button for detecting flashlight APP is clicked, displaying flashlight setting interface;It is set in flashlightOn interface, displaying incoming call reminding function switch;When detecting that incoming call reminding function switch is opened, flashlight application journey is setThe incoming call reminding function of sequence.Therefore, it by the way that function button and flashlight is set to set interface, is clicked in setting function buttonWhen displaying flashlight setting interface, and in flashlight setting showing interface incoming call reminding function switch so that flashlight APP is not onlyIt can only realize the opening and closing of rear-mounted lamp, and incoming call reminding function can be set, so as to enrich the work(of flashlight APPEnergy.
Specific embodiment
Purpose, technical scheme and advantage to make the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present inventionIn attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment isThe part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill peopleMember's all other embodiments obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
In a first aspect, as shown in Figure 1, the embodiment of the present invention discloses a kind of flashlight prompting function setting method, it is applied toTerminal, such as intelligent mobile terminal, including mobile phone and tablet computer etc., this method may include following steps 101 to 103:
101st, when the setting function button for detecting flashlight application program is clicked, displaying flashlight setting interface.
In the present embodiment, the executive agent of this method can be flashlight APP, and flashlight can be regarded as the postposition of terminalLamp.Difference lies in the present embodiment, flashlight APP has setting function button, and sets work(with existing flashlight APPWhen energy button is clicked, displaying flashlight setting interface.
In the present embodiment, unshowned step 100 in Fig. 1 is further included before step 101:
100th, when the icon for detecting flashlight application program is clicked, flashlight operation interface is shown, and in flashlightDisplaying setting function button in cylinder operation interface.
In the present embodiment, when the icon for detecting flashlight application program is clicked, it is equivalent to user and starts flashlightTherefore cylinder APP, shows flashlight operation interface, and the displaying setting work(on flashlight operation interface on the display screen of terminalSo that user clicks setting function button, interface is set hence into flashlight for energy button.
In the present embodiment, behind step 100 displaying flashlight operation interface, switch can be also shown on flashlight operation interfaceButton, user click switch key, and flashlight APP control flashlights are opened, and user again taps on switch key, flashlight APPFlashlight is controlled to close.
In the present embodiment, behind step 100 displaying flashlight operation interface, it can also be shown at least on flashlight operation interfaceOne frequency selection key is previously stored with frequency selection key and the correspondence of frequency in flashlight APP, and frequency can beThe frequency of certain signal, such as the frequency of distress signal, or the frequency without practical significance, user can like according to oneselfFrequency is set, the correspondence of frequency and frequency selection key can also be set.
In a particular application, at least one frequency selection key of switch key ambient display.More specifically, it is pressed in switchAt least one frequency selection key of key ambient display, which can be realized, is:Switch key and frequency selection key are shown as a circleDisk, 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 labelPointed 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 frequencyThe corresponding frequency of button is selected into line flicker, is specifically as follows:According to frequency selection key and the correspondence of predetermined frequency, determineThe corresponding frequency of frequency selection key;The information for carrying the corresponding frequency of frequency selection key is sent to flashlight driving corePiece, 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, such as number with different identification informations, accordinglyThe correspondence of ground, frequency selection key and frequency can be converted into the identification information pass corresponding with frequency of frequency selection keySystem.
In the present embodiment, user can click frequency selection key select frequency, detecting that frequency selection key is touchedDuring hair, it may be determined that the number of frequency selection key being clicked so as to the correspondence according to number and frequency, determines to be clickedFrequency 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 omittedButton can have flashlight switch function concurrently, such as user clicks a secondary frequencies selection key, and flashlight is opened, and user again taps onThe frequency selection key, flashlight are closed.
As it can be seen that at least one frequency selection key of flashlight operation showing interface, user can click different frequency choosingsButton is selected, after detecting that frequency selection key is clicked, is carried out according to the corresponding FREQUENCY CONTROL flashlight of frequency selection keyFlicker, therefore so that flashlight APP can not only realize the opening and closing of rear-mounted lamp, and enable to rear-mounted lamp withCertain frequency scintillation so that the information that can recognize that the frequency with the equipment or user of the light of the frequency scintillation is received, it is richThe rich function of flashlight APP.
102nd, on flashlight setting interface, displaying incoming call reminding function switch.
103rd, when detecting that the incoming call reminding function switch is opened, the incoming call of the flashlight application program is setPrompting function.
As it can be seen that the present embodiment by the way that function button and flashlight is set to set interface, is clicked in setting function buttonWhen displaying flashlight setting interface, and in flashlight setting showing interface incoming call reminding function switch so that flashlight APP is not onlyIt can only realize the opening and closing of rear-mounted lamp, and incoming call reminding function can be set, so as to enrich the work(of flashlight APPEnergy.
In a specific example, flashlight operation interface described in step 100 is the first operation interface of flashlight.AccordinglyGround, step 100 are specially:When the icon for detecting flashlight application program is clicked, the first operation interface of flashlight is shown.
In the present embodiment, after step 100, step 100 may also include ' and 100 ":
100 ', the slide received according to the first operation interface of flashlight shows the second operation interface of flashlight.
In the present embodiment, step 100 ' be specially:According to the slide that the first operation interface of flashlight receives, the is determinedOne glide direction;Judge whether the first glide direction is preset first glide direction of flashlight application program;If so, displayingThe second operation interface of flashlight.
100 ", after the second operation interface of flashlight is shown, according to the second operation interface of flashlight receive slide,Adjust the brightness of the second operation interface of flashlight.
In the present embodiment, step 100 " be specially:According to the slide that the second operation interface of flashlight receives, the is determinedTwo glide directions;According to the correspondence of preset second glide direction of flashlight application program and brightness adjustment operation, determineThe corresponding brightness adjustment operation of second glide direction;According to the corresponding brightness adjustment operation of the second glide direction, flashlight is adjustedThe brightness of second operation interface.
In the present embodiment, determine the corresponding brightness adjustment operation of the second glide direction, specifically include:If the second glide directionFor to the left, it is determined that brightness adjustment operation is reduces brightness;If the second glide direction is to the right, it is determined that brightness adjustment operation isIncrease brightness.
In the present embodiment, closed according to preset second glide direction of flashlight application program is corresponding with brightness adjustment operationSystem, before determining the corresponding brightness adjustment operation of the second glide direction, further includes:Judge whether second glide direction is handPreset second glide direction of torch application program;If so, displaying the first operation interface of flashlight.
In a specific example, method shown in FIG. 1 may also include unshowned step 103 in Fig. 1 ':
103 ', after the incoming call reminding function of setting flashlight application program, if incoming call is detected, according to call remindingFunction is reminded.
In the present embodiment, step 103 ' it is described reminded according to the incoming call reminding function, specifically include:Displaying incoming callInterface is reminded, on call reminding interface, shows the preset call reminding information of flashlight application program.
In the present embodiment, call reminding information for example including:Screen flash of light animation, incoming number answer button and extensionDisconnected button.Correspondingly, incoming call reminding function switch includes screen flashing switch of sending a telegram here.
In the present embodiment, step 103 ' it is described reminded according to the incoming call reminding function, may also include:According to messageThe flashlight flicker of the preset flashlight flicker frequency control terminal of prompting function.Correspondingly, incoming call reminding function switch includesIncoming call flicker alarm switch.
In a particular application, incoming call reminding function switch can be designed as two switches, and screen flash of light of respectively sending a telegram here is openedIt closes and incoming call flicker alarm switch, user can respectively be configured two switches.Incoming call reminding function switch can also be setA switch is calculated as, is opened when incoming call reminding function switchs, be equivalent to while opens send a telegram here screen flash of light and incoming call flickerTwo functions are reminded, are closed when incoming call reminding function switchs, is equivalent to and has simultaneously closed off the flash of light of incoming call screen and incoming call flickerRemind two functions.
In a specific example, method shown in FIG. 1 may also include unshowned 104 He of following steps in Fig. 1105:
104th, on flashlight setting interface, prompting message functional switch is shown.
105th, when detecting that the prompting message functional switch is opened, the message of the flashlight application program is setPrompting function.
Correspondingly, it after the prompting message function that the flashlight application program is set in step 105, may also include in Fig. 1Unshowned step 106:If detecting new information, reminded according to the prompting message function.
In a specific example, reminded described in step 106 according to the prompting message function, specially:It pressesThe flashlight of the terminal is controlled to flicker according to the flashlight flicker frequency of the prompting message functional condition.
Since message majority comes from application program, in the present embodiment, prompting message functional switch can be applicationNotice switch.
Based on flashlight prompting function setting method disclosed in above example, with reference to Fig. 3 to flashlight shown in Fig. 10Operation interface application scenario diagram describes flashlight prompting function setting procedure following steps:
Step 1, when the icon for detecting flashlight application program is clicked, show flashlight first as shown in Figure 3Operation interface, and setting function button is shown in the upper right corner of the first operation interface of flashlight.
In the first operation interface of flashlight shown in Fig. 3, switch key is shown.Flashlight operation interface shown in Fig. 3Background be night field, the scene at arbitrary night can be used in a particular application, it is full so as to meet flashlight usage scenarioSufficient 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 firstThe background of operation interface becomes the state of turning on light, such as the tent bright light in field.The first operation interface of flashlight shown in Fig. 4On, in six frequency selection keys of ambient display of switch key, wherein four are identified with number 0 to 5, another is marked with SOSKnow, the corresponding frequencies of SOS are the frequency of international morse code Mayday, and 0 to 5 corresponds to different frequencies respectively, and frequency canIt pre-sets or by user setting.Switch key and all frequency selection keys are shown as disk, and switch key is located at diskCenter, 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 isThe 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 towardAfter " 0 " namely user click 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 handTorch then shows flashlight operation interface shown in Fig. 3 again.
Step 2, the slide received according to the first operation interface of flashlight, show flashlight second as shown in Figure 5Operation interface.Specifically, the slide received according to the first operation interface of flashlight, determines the first glide direction;JudgeWhether one glide direction is preset first glide direction of flashlight application program;If so, displaying flashlight second operates boundaryFace.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 nightSky, the first operation interface of flashlight as shown in Figure 4 are switched to the second operation interface of flashlight shown in fig. 5, and user is comeIt says, the sky that the intuitional and experiential thinking looks up for the ground in the visual field from the field at night to field, expection is used so as to meet user.
Step 3, after the second operation interface of flashlight shown in fig. 5 is shown, received according to the second operation interface of flashlightSlide, adjust the second operation interface of flashlight brightness.Specifically, the cunning received according to the second operation interface of flashlightDynamic operation, determines the second glide direction;According to preset second glide direction of flashlight application program and brightness adjustment operationCorrespondence determines the corresponding brightness adjustment operation of the second glide direction;According to the corresponding brightness tune of second glide directionSection 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 brightDegree adjusts operation to reduce brightness;If the second glide direction is to the right, it is determined that brightness adjustment operation is increases brightness.
If step 4 judges the second glide direction for preset second glide direction of flashlight application program, such as presetSecond glide direction is upward, then shows the first operation interface of flashlight again.
Step 5, when detecting that setting function button is clicked, show flashlight setting interface as shown in Figure 6.Fig. 6In function closing " is opened " during startup, " incoming call flicker remind " function is closed, " notification tool column " and " flash of light of incoming call screen "Function is opened." filling a screen protection " switch is clicked, shows interface shown in Fig. 7, in Fig. 7, " charging screen protection " function is closed, if will" charging screen protection " function is opened, then shows interface shown in Fig. 8, click the button in Fig. 8 lower left corners, show again shown in Fig. 4Interface clicks the button in Fig. 8 lower right corner, shows interface shown in fig. 5 again.
Step 6 is opened due to " incoming call screen flash of light " function, if detecting incoming call, according to coming " incoming call screen glistens "Function is reminded, i.e., interface shown in displaying Fig. 9, and grey bar shield portions are telephone number in Fig. 9, if user does not answer,Then show interface shown in Figure 10.
As it can be seen that the embodiment of the present invention by the way that function button and flashlight is set to set interface, is setting function button quiltFlashlight setting interface is shown during click, and in flashlight setting showing interface incoming call reminding function switch so that flashlight APPIt can not only realize the opening and closing of rear-mounted lamp, and incoming call reminding function can be set, so as to enrich flashlight APPFunction.
Second aspect, as shown in Fig. 2, the embodiment of the present invention discloses:
A1, a kind of flashlight prompting function setting device, applied to terminal, it may include:First display unit 21, second is opened upShow 22 and first setting unit 23 of unit, each unit is described as follows:
First display unit 21, during for being clicked in the setting function button for detecting flashlight application program, displayingFlashlight sets interface;
Second display unit 22, for setting interface, displaying incoming call reminding function switch in the flashlight;
First setting unit 23, for when detecting that the incoming call reminding function switch is opened, setting the flashlightThe incoming call reminding function of cylinder application program.
A2, the device according to A1, described device further include unshowned first reminding unit 24 in Fig. 2, forAfter first setting unit 23 sets the incoming call reminding function of the flashlight application program, if detecting incoming call, according toThe incoming call reminding function is reminded.
A3, the device according to A2, first reminding unit 24, for setting institute in first setting unit 23After the incoming call reminding function for stating flashlight application program, if detecting incoming call, call reminding interface is shown, carried in the incoming callIt wakes up on interface, shows the preset call reminding information of the flashlight application program;And/or according to the prompting message functionPreset flashlight flicker frequency controls the flashlight flicker of the terminal.
A4, the device according to A1, described device further include unshowned third display unit 25 and second in Fig. 1 and setUnit 26 is put, each unit is described as follows:
Third display unit 25 for setting interface in the flashlight, shows prompting message functional switch;
Second setting unit 26, for when detecting that the prompting message functional switch is opened, setting the flashlightThe prompting message function of cylinder application program.
A5, the device according to A4, unshowned second reminding unit 27 in described device also Fig. 1, for describedAfter second setting unit 26 sets the prompting message function of the flashlight application program, if detecting new information, according to institutePrompting message function is stated to be reminded.
A6, the device according to A5, second reminding unit 27, for setting institute in second setting unit 26After the prompting message function of stating flashlight application program, if detecting new information, according to the prompting message functional conditionFlashlight flicker frequency controls the flashlight flicker of the terminal.
Flashlight prompting function setting device can be realized disclosed in each embodiment of first aspect disclosed in above exampleThe flow of flashlight prompting function setting method, repeats to avoid, repeats no more.
It is understood that embodiments described herein can use hardware, software, firmware, middleware, microcode or itsIt combines to realize.For hardware realization, processing unit can be realized in one or more application-specific integrated circuit (ApplicationSpecific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable LogicDevice, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,Controller, microcontroller, microprocessor, for performing in other electronic unit or combinations of herein described function.
For software implementations, the techniques described herein can be realized by performing the unit of function described herein.Software generationCode is storable in memory and is performed by processor.Memory can in the processor or portion realizes outside the processor.
Those of ordinary skill in the art may realize that each exemplary lists described with reference to the embodiments described hereinMember and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actuallyIt is performed with hardware or software mode, specific application and design constraint depending on technical solution.Professional technicianDescribed function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceedThe scope of the present invention.
In embodiment provided herein, it should be understood that disclosed device and method can pass through othersMode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, onlyA kind of division of logic function, can there is an other dividing mode in actual implementation, for example, multiple units or component can combine orPerson is desirably integrated into another system or some features can be ignored or does not perform.Another point, shown or discussed is mutualBetween coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unitIt connects, 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, it can alsoThat each 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 independent product sale or in use, can be withIt is stored in a computer read/write memory medium.Based on such understanding, the technical solution of the embodiment of the present invention is substantiallyThe 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 productCome, which is stored in a storage medium, is used including some instructions so that a computer equipment (canTo be personal computer, server or the network equipment etc.) perform all or part of each embodiment the method for the present inventionStep.And aforementioned storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can to store programThe medium of code.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-rowHis property includes, so that process, method, article or device including a series of elements not only include those elements, andAnd it further includes other elements that are not explicitly listed or further includes intrinsic for this process, method, article or device instituteElement.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including thisAlso there are other identical elements in the process of 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 oneA entity or operation with another entity or operate distinguish, without necessarily requiring or implying these entities or operation itBetween there are any actual relationship or orders.
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 hairThe equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skillsArt field, is included within the scope of the present invention.