The content of the invention
To overcome problem present in correlation technique, the disclosure to provide a kind of suspension button control method and device.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of suspension button control method, electronic equipment is applied to, wrappedInclude:
When suspension button on display interface is triggered, reception carries out the cunning of slide generation to the suspension buttonDynamic instruction;
When the time difference between the triggering moment of the moment for receiving the slip instruction and the suspension button be less than orDuring equal to preset duration, the object run corresponding with the slip instruction is determined according to the current application for running;
Perform the object run.
Alternatively, methods described also includes:
It is more than institute when the time difference between the triggering moment of the moment for receiving the slip instruction and the suspension buttonWhen stating preset duration, according to the slip instruction, the movement suspension button.
Alternatively, the application of the current operation includes:
The application corresponding to the display interface that the suspension button is currently located.
Alternatively, the current operation application for browse class application when, the object run include it is following in extremelyFew one:On the page move, the page move down, page up, downward page turning, the page amplify, the page reduce.
Alternatively, the current operation application be multimedia class application when, the object run include it is following inAt least one:F.F., retrogressing, the upper content of multimedia of broadcasting, the next content of multimedia of broadcasting, pause are played, commenced play out, increasingBig volume, reduction volume.
Alternatively, methods described also includes:
Receive suspension button slide and instruction is set, the suspension button slide sets instruction for indicating targetUsing, and under the intended application, the object run corresponding to the slide of the suspension button, wherein, the meshMark application is any application on the electronic equipment;
Set in response to the suspension button slide and instructed, store the intended application, the cunning of the suspension buttonCorresponding relation between dynamic operation and the object run.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of suspension push-button control device, electronic equipment is applied to, wrappedInclude:
First receiver module, when being configured as the suspension button on display interface and being triggered, receives and the suspension is pressedButton carries out the slip instruction of slide generation;
Determining module, is configured as first receiver module and receives the moment of the slip instruction and the suspensionWhen time difference between the triggering moment of button is less than or equal to preset duration, application according to current operation come determine with it is describedThe corresponding object run of slip instruction;
Performing module, is configured as performing the object run that the determining module is determined.
Alternatively, the performing module is additionally configured to when first receiver module receives the slip instructionWhen time difference between quarter and the triggering moment of the suspension button is more than the preset duration, according to the slip instruction, moveMove the suspension button.
Alternatively, the application of the current operation includes:
The application corresponding to the display interface that the suspension button is currently located.
Alternatively, the current operation application for browse class application when, the object run include it is following in extremelyFew one:On the page move, the page move down, page up, downward page turning, the page amplify, the page reduce.
Alternatively, the current operation application be multimedia class application when, the object run include it is following inAt least one:F.F., retrogressing, the upper content of multimedia of broadcasting, the next content of multimedia of broadcasting, pause are played, commenced play out, increasingBig volume, reduction volume.
Alternatively, described device also includes:
Second receiver module, is configured as receiving the setting instruction of suspension button slide, and the suspension button slides behaviourMaking to set to instruct is used to indicate intended application, and under the intended application, corresponding to the slide of the suspension buttonObject run, wherein, the intended application is any application on the electronic equipment;
Memory module, is configured to respond to the suspension button slide that second receiver module receives and setsInstruction is put, the intended application, the correspondence pass between the slide of the suspension button and the object run is storedSystem.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of suspension push-button control device, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
When suspension button on display interface is triggered, reception carries out the cunning of slide generation to the suspension buttonDynamic instruction;
When the time difference between the triggering moment of the moment for receiving the slip instruction and the suspension button be less than orDuring equal to preset duration, the object run corresponding with the slip instruction is determined according to the current application for running;
Perform the object run.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of non-transitorycomputer readable storage medium, when describedInstruction in storage medium by electronic equipment computing device when so that electronic equipment is able to carry out a kind of suspension button controlMethod, methods described includes:
When suspension button on display interface is triggered, reception carries out the cunning of slide generation to the suspension buttonDynamic instruction;
When the time difference between the triggering moment of the moment for receiving the slip instruction and the suspension button be less than orDuring equal to preset duration, the object run corresponding with the slip instruction is determined according to the current application for running;
Perform the object run.
The technical scheme provided by this disclosed embodiment can include the following benefits:According to receiving for suspensionThe application of the slip instruction of button and current operation determines the object run corresponding with the slip instruction, and performs the targetOperation.So, can facilitate user that corresponding operation is quickly performed come control electronics by sliding the suspension button, andThe operation is adapted with the application of current operation.In this way, not only enriching the control function of suspension button, and cause user behaviourMake more convenient, it is practical.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, notThe disclosure can be limited.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related toDuring accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodimentDescribed in implementation method do not represent all implementation methods consistent with the disclosure.Conversely, they be only with it is such as appendedThe example of the consistent apparatus and method of some aspects described in detail in claims, the disclosure.
Fig. 1 is a kind of schematic diagram of the implementation environment according to an exemplary embodiment.In display circle of electronic equipmentA suspension button 100 can be shown on face.In the related art, if user slides the suspension button 100, the suspension button100 slips that can follow user and carry out position movement.In the disclosure, electronic equipment may, for example, be and be equipped with touch displayThe electronic equipment of screen, for example, panel computer, smart mobile phone, Intelligent worn device etc., in Fig. 1, electronic equipment is with smart mobile phoneAs a example by.
Fig. 2A is a kind of flow chart of the suspension button control method according to an exemplary embodiment, wherein, the partyMethod can apply in electronic equipment, for example, the smart mobile phone shown in Fig. 1.As shown in Figure 2 A, the method can include following stepSuddenly.
In step 201, when the suspension button on display interface is triggered, reception carries out slide to suspension buttonThe slip instruction of generation.
In the disclosure, when user's finger contacts are to suspension button, suspension button is triggered, and now, electronic equipment is openedBegin to receive the slip instruction that user carries out slide and produces to suspension button.The slip instruction may, for example, be to downslideDynamic, upward sliding, slide to the left, slide to the right, it is also possible to e.g. turn-taking clockwise, turn-take counterclockwise.
In step 202., it is small when the time difference between the moment for receiving slip instruction and the triggering moment of suspension buttonWhen preset duration, the object run corresponding with the slip instruction is determined according to the current application for running.
In the disclosure, preset duration can be the empirical value of the value, or acquiescence being manually set, for example, defaultShi Changwei 2s.When electronic equipment receives slip instruction, electronic equipment can determine to receive moment of the slip instruction withTime difference between the triggering moment of suspension button, wherein, the time difference can be the duration that suspension button is pressed with the head of a household, i.e.The duration that the suspension button is persistently triggered.When the time difference preset duration is less than or equal to, now represent that user view is led toCross the slip of suspension button to carry out corresponding prompt operation, then electronic equipment can determine this according to the application of current operationThe corresponding object run of slip instruction.In one embodiment, the object run does not include mobile suspension push-botton operation.
In addition, the application of current operation can be the application corresponding to the display interface that suspension button is currently located.For example,When the application corresponding to the display interface that suspension button is currently located is wechat, wechat is the application of current operation;When outstandingWhen the application corresponding to display interface that floating button is currently located is music player, music player is answering for current operationWith.
In one embodiment, electronic equipment can be adaptively the current operation according to the application of current operationThe lower different slip instruction of application match corresponding object run.That is, for different applications, identical is slidedOperation can correspond to different object runs.
Illustratively, when the application of current operation is to browse class application, the object run can include it is following at leastOne:On the page move, the page move down, page up, downward page turning, the page amplify, the page reduce, wherein, browsing class application canBeing, for example, webpage, e-book, wechat, microblogging etc..For example, when the application of current operation is e-book, electronic equipment is cunningThe object run of dynamic instructions match can be page up, downward page turning, the page amplify, the page reduces, etc..Specifically,When the application of current operation is e-book, the corresponding object run of slip instruction of upward sliding can be paged up, toThe corresponding object run of slip instruction of lower slider can be downward page turning, the corresponding object run of slip instruction slided to the leftCan amplify font, the slip instruction slided to the right is to decrease font size.When user browses e-book, it is only necessary to outstanding by slidingFloating button can just realize page turning and font adjustment, convenient and swift.
Again for example, when the application of current operation is webpage, electronic equipment is that the object run of slip instruction matching can be withTo be moved on the page, the page is moved down, full frame browse mode, normal browsing pattern.Specifically, the application in current operation is webpageWhen, the corresponding object run of slip instruction of upward sliding can be moved on the page, the corresponding mesh of slip instruction of slide downwardMark operation can be that the page is moved down, and the corresponding object run of the slip instruction slided to the left can be full frame browse mode, to the rightThe slip instruction of slip is normal browsing pattern.
Again illustratively, when the application in current operation is multimedia class application, electronic equipment is the mesh of slip instruction matchingMark operation can include at least one of following:F.F., retrogressing, play in a upper content of multimedia, the next multimedia of broadcastingHold, suspend and play, commence play out, increase volume, reduce volume, etc..Wherein, multimedia class application may, for example, be video and answerWith, music application etc..For example, when the application of current operation is Video Applications, object run can be F.F., retrogressing, increaseVolume, the volume that reduces, the upper video content of broadcasting, the next video content of broadcasting.Specifically, the application in current operation be regardingWhen frequency is applied, the corresponding object run of slip instruction of upward sliding can be increase volume, the slip instruction pair of slide downwardThe object run answered can reduce volume, and the corresponding object run of slip instruction slided to the left can be retreated, and slide to the rightDynamic slip instruction is F.F., and the corresponding object run of slip instruction turn-taked clockwise can play next video content,The corresponding object run of slip instruction turn-taked counterclockwise can play a upper video content.
In yet another embodiment, slip instruction can also be by user's self-defining with the corresponding relation of object run.ThisSample, user can define the corresponding relation of the slide and object run under different application according to the use habit of oneself.As shown in figure 3, the corresponding relation of slip instruction and object run can be defined in the following manner.
In step 301, receive suspension button slide and instruction is set.
In the disclosure, the suspension button slide sets instruction and can serve to indicate that intended application, and in the meshUnder mark application, the object run corresponding to the slide of suspension button, wherein, intended application is to install on an electronic deviceAny application.When user needs the corresponding object run of the slide for voluntarily setting suspension button, can be by such as Fig. 4 institutesThe suspension button for showing sets interface to set the object run corresponding to slide.As shown in figure 4, intended application should for musicWith user can set corresponding object run, example according to the use habit of oneself to each slide of suspension buttonSuch as, it is increase volume to set the corresponding object run of upward sliding, and the corresponding object run of slide downward is reduction volume, to the leftCorresponding object run is slided for upper one is bent, corresponding object run is slided to the right for next song.
In step 302, set in response to suspension button slide and instructed, storage intended application, the cunning of suspension buttonCorresponding relation between dynamic operation and object run.
In the disclosure, when corresponding between the slide of the sliding button under user is to intended application and object runAfter the completion of relation is configured, electronic equipment can be by between intended application, the slide of suspension button, object run threeCorresponding relation be saved in memory module.
Illustratively, such as following table institute of the corresponding relation between intended application, the slide of suspension button, object run threeShow:
Table 1
So, electronic equipment can determine under the application of current operation by searching the corresponding relation of the storage, slidingIt is dynamic to instruct corresponding object run.
In step 203, performance objective operation.
In the disclosure, after the corresponding object run of slip instruction determines, electronic equipment performs the object run.ShowExample, when the application of current operation is e-book, the slip instruction for receiving is upward sliding, by lookup such as table 1The corresponding relation of storage can determine corresponding object run to page up, and now, electronic equipment is performed and pages up operation.
The technical scheme provided by this disclosed embodiment can include the following benefits:According to receiving for suspensionThe application of the slip instruction of button and current operation determines the object run corresponding with the slip instruction, and performs the targetOperation.So, can facilitate user that corresponding operation is quickly performed come control electronics by sliding the suspension button, andThe operation is adapted with the application of current operation.In this way, not only enriching the control function of suspension button, and cause user behaviourMake more convenient, it is practical.
Fig. 2 B are a kind of flow charts of the suspension button control method according to another exemplary embodiment.Such as Fig. 2 B institutesShow, the above method can also be comprised the following steps.
In step 204, it is big when the time difference between the moment for receiving slip instruction and the triggering moment of suspension buttonWhen preset duration, according to slip instruction, mobile suspension button.
In the disclosure, when user needs to move suspension button, this can be slided after length presses the suspension button and is hangedFloating button is realized.
Fig. 5 A are a kind of block diagrams of the suspension push-button control device according to an exemplary embodiment, wherein, the deviceCan apply to electronic equipment.Reference picture 5A, the device 500 can include:First receiver module 501, is configured as in displayWhen suspension button on interface is triggered, reception carries out the slip instruction of slide generation to the suspension button;Determine mouldBlock 502, is configured as first receiver module 501 and receives the moment of the slip instruction and touching for the suspension buttonWhen time difference between the hair moment is less than or equal to preset duration, determined and the slip instruction according to the current application for runningCorresponding object run;Performing module 503, is configured as performing the object run that the determining module 502 is determined.
The technical scheme provided by this disclosed embodiment can include the following benefits:According to receiving for suspensionThe application of the slip instruction of button and current operation determines the object run corresponding with the slip instruction, and performs the targetOperation.So, can facilitate user that corresponding operation is quickly performed come control electronics by sliding the suspension button, andThe operation is adapted with the application of current operation.In this way, not only enriching the control function of suspension button, and cause user behaviourMake more convenient, it is practical.
Alternatively, the performing module 503 is additionally configured to refer to when first receiver module 501 receives the slipWhen time difference between the triggering moment of the moment of order and the suspension button is more than the preset duration, referred to according to the slipOrder, the movement suspension button.
Alternatively, the application of the current operation can include:The display interface that the suspension button is currently locatedCorresponding application.
Alternatively, the current operation application for browse class application when, the object run include it is following in extremelyFew one:On the page move, the page move down, page up, downward page turning, the page amplify, the page reduce.
Alternatively, the current operation application be multimedia class application when, the object run include it is following inAt least one:F.F., retrogressing, the upper content of multimedia of broadcasting, the next content of multimedia of broadcasting, pause are played, commenced play out, increasingBig volume, reduction volume.
Fig. 5 B are a kind of block diagrams of the suspension push-button control device according to another exemplary embodiment, wherein, the dressPut and can apply to electronic equipment.Reference picture 5B, the device 500 can also include:Second receiver module 504, is configured as connecingReceipts suspension button slide sets instruction, and the suspension button slide sets instruction to be used to indicate intended application, andUnder the intended application, the object run corresponding to the slide of the suspension button, wherein, the intended application is peaceAny application on the electronic equipment;Memory module 505, is configured to respond to second receiver module 504 and connectsThe suspension button slide that receives sets instruction, store the intended application, the slide of the suspension button, withAnd the corresponding relation between the object run.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant the methodEmbodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 6 is a kind of block diagram of the suspension push-button control device 600 according to an exemplary embodiment.For example, device600 can be mobile phone, and computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment setsIt is standby, body-building equipment, personal digital assistant etc..
Reference picture 6, device 600 can include following one or more assemblies:Processing assembly 602, memory 604, electric powerComponent 606, multimedia groupware 608, audio-frequency assembly 610, the interface 612 of input/output (I/O), sensor cluster 614, andCommunication component 616.
The integrated operation of the usual control device 600 of processing assembly 602, such as with display, call, data communication, phaseMachine is operated and the associated operation of record operation.Processing assembly 602 can refer to including one or more processors 620 to performOrder, to complete all or part of step of above-mentioned suspension button control method.Additionally, processing assembly 602 can include one orMultiple modules, are easy to the interaction between processing assembly 602 and other assemblies.For example, processing assembly 602 can include multimedia mouldBlock, to facilitate the interaction between multimedia groupware 608 and processing assembly 602.
Memory 604 is configured as storing various types of data supporting the operation in device 600.These data are shownExample includes the instruction for any application program or method operated on device 600, and contact data, telephone book data disappearsBreath, picture, video etc..Memory 604 can be by any kind of volatibility or non-volatile memory device or their groupClose and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) is erasable to compileJourney read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flashDevice, disk or CD.
Electric power assembly 606 provides electric power for the various assemblies of device 600.Electric power assembly 606 can include power management systemSystem, one or more power supplys, and other generate, manage and distribute the component that electric power is associated with for device 600.
Multimedia groupware 608 is included in one screen of output interface of offer between described device 600 and user.OneIn a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screenCurtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensingsDevice is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding actionBorder, but also detection and the touch or slide related duration and pressure.In certain embodiments, many matchmakersBody component 608 includes a front camera and/or rear camera.When device 600 be in operator scheme, such as screening-mode orDuring video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera andRear camera can be a fixed optical lens system or with focusing and optical zoom capabilities.
Audio-frequency assembly 610 is configured as output and/or input audio signal.For example, audio-frequency assembly 610 includes a MikeWind (MIC), when device 600 is in operator scheme, such as call model, logging mode and speech recognition mode, microphone is matched somebody with somebodyIt is set to reception external audio signal.The audio signal for being received can be further stored in memory 604 or via communication setPart 616 sends.In certain embodiments, audio-frequency assembly 610 also includes a loudspeaker, for exports audio signal.
, to provide interface between processing assembly 602 and peripheral interface module, above-mentioned peripheral interface module can for I/O interfaces 612To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lockDetermine button.
Sensor cluster 614 includes one or more sensors, and the state for providing various aspects for device 600 is commentedEstimate.For example, sensor cluster 614 can detect the opening/closed mode of device 600, the relative positioning of component is for example describedComponent is the display and keypad of device 600, and sensor cluster 614 can be with 600 1 components of detection means 600 or devicePosition change, user is presence or absence of with what device 600 was contacted, the orientation of device 600 or acceleration/deceleration and device 600Temperature change.Sensor cluster 614 can include proximity transducer, be configured to be detected when without any physical contactThe presence of neighbouring object.Sensor cluster 614 can also include optical sensor, such as CMOS or ccd image sensor, for intoAs being used in application.In certain embodiments, the sensor cluster 614 can also include acceleration transducer, gyro sensorsDevice, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between device 600 and other equipment.Device600 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementationIn example, communication component 616 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.In one exemplary embodiment, the communication component 616 also includes near-field communication (NFC) module, to promote junction service.ExampleSuch as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 600 can be by one or more application specific integrated circuits (ASIC), numeral letterNumber processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array(FPGA), controller, microcontroller, microprocessor or other electronic components realization, for performing above-mentioned suspension button controlMethod.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally providedSuch as include the memory 604 of instruction, above-mentioned instruction can be performed to complete above-mentioned suspension button by the processor 620 of device 600Control method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
Those skilled in the art will readily occur to other embodiment party of the disclosure after considering specification and putting into practice the disclosureCase.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or adaptabilityChange follows the general principle of the disclosure and including the undocumented common knowledge or usual skill in the art of the disclosureArt means.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following claimPoint out.
It should be appreciated that the disclosure is not limited to the precision architecture for being described above and being shown in the drawings, andAnd can without departing from the scope carry out various modifications and changes.The scope of the present disclosure is only limited by appended claim.