A kind of method and terminal for showing private information
Technical field
The application is related to terminal technical field of touch control, more particularly to a kind of method and terminal for showing private information.
Background technology
User is using various terminals or using in the scenes such as network service, and some are related to the secret of user itself
Information, user may be not intended to always show in the terminal or the page used, to avoid by the side of
Other people spy upon and arrived.Private information is, for example, some certificates numbering (such as identification card number), password, personal gold
Melt product numerical value (remaining sum in the wage shown on such as webpage, wechat wallet, the remaining sum in Alipay application
Deng).These information are typically more sensitive for a user, it is undesirable to compromised.
A kind of method for showing private information, is one button of setting beside private information in the prior art
(or switch).When not pressing button, private information is shown as asterisk (* * * * etc);When press by
After button, private information can show actual value;After button is pressed again, private information reverts to asterisk,
No longer show actual value.
This display mode of above-mentioned prior art, asterisk is shown in display private information actual value and recovery
During, it is necessary to user's frequent switching button, operate relatively complicated.Moreover, when user presses button, it is private
After the actual value of confidential information is shown, user often carries out other and operated without to press button again in time.
So, it is possible to causing the leakage of user's private information.
The content of the invention
The purpose of the embodiment of the present application is to provide a kind of method and terminal for showing private information, with quickly, just
The prompt display for realizing private information.
In order to solve the above technical problems, what the embodiment of the present application was realized in:
A kind of method for showing private information, including:
Show the hiding symbol of private information;
The pressure touch of detection within a preset range, when the pressure touch meets or exceeds the first predetermined pressure
Threshold value, and when meeting or exceeding the pressure touch of predetermined pressure threshold and keeping and reach preset duration, show
Show the actual value of the private information;
When detecting the pressure touch disappearance or being down to below the second predetermined pressure threshold, recover to show institute
State the hiding symbol of private information.
A kind of terminal for showing private information, including:
Display unit, hiding symbol or actual value for showing private information;
Touch control detection unit, for detecting pressure touch within a preset range, when the pressure touch reaches
Or more than the first predetermined pressure threshold, and meet or exceed the pressure touch holding of predetermined pressure threshold simultaneously
When reaching preset duration, the actual value that the display unit shows the private information is triggered;When detecting
When stating pressure touch disappearance or being down to below the second predetermined pressure threshold, trigger the display unit and recover display
The hiding symbol of the private information.
The technical scheme provided by above the embodiment of the present application, can cause in user to touch screen or Trackpad
The pressure touch of certain strength and when keeping certain time length, is just shown as actual value by private information, and in institute
When stating pressure touch disappearance or being down to below the second predetermined pressure threshold, recover the hidden of the display private information
Hide symbol, so as to it is quick, private information easily switched into display between actual value and hiding symbol.
Brief description of the drawings
, below will be to implementing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art
The accompanying drawing used required in example or description of the prior art is briefly described, it should be apparent that, describe below
In accompanying drawing be only some embodiments described in the application, for those of ordinary skill in the art,
Without having to pay creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart for the embodiment of the method for showing private information of the application;
Fig. 2 is a kind of module map for the terminal embodiment for showing private information of the application.
Embodiment
The embodiment of the present application provides a kind of method and terminal for showing private information.
In order that those skilled in the art more fully understand the technical scheme in the application, below in conjunction with this
Apply for the accompanying drawing in embodiment, the technical scheme in the embodiment of the present application be clearly and completely described,
Obviously, described embodiment is only some embodiments of the present application, rather than whole embodiments.Base
Embodiment in the application, those of ordinary skill in the art are obtained under the premise of creative work is not made
The every other embodiment obtained, should all belong to the scope of the application protection.
The embodiment of the present application provides a kind of method for showing private information, as shown in figure 1, including:
S110:Show the hiding symbol of private information.
Similarly to the prior art, support touch control device webpage on, the secret of user can be shown in
Information, is, for example, some certificates numbering (such as identification card number), password, personal finance product numerical value (such as net
Remaining sum in the wage shown on page, wechat wallet, remaining sum in Alipay application etc.).These information pair
It is typically more sensitive for user, it is undesirable to compromised.The private information can be shown as asterisk (* * * *
Etc) etc. hiding symbol.The hiding symbol can also be, for example, blank, that is, be set to and background color identical
Color or other colors and private information is not shown.
S120:Detection pressure touch within a preset range, when the pressure touch, to meet or exceed first pre-
Level pressure force threshold, and meet or exceed the pressure touch of the first predetermined pressure threshold and keep and reach default
During duration, the actual value of the private information is shown.
Widely used pressure sensitive screen technology in the prior art.Pressure sensitive screen technology can by touch screen from
Traditional two-dimensional operation is extended to three-dimensional, by recognizing perpendicular to touch screen direction dynamics of different sizes come real
Existing different operation so that touch screen can recognize the pressing dynamics of user and provide different service option.
Pressure sensitive screen technology possess preferably experience, make up the limiting of touch screen size, more preferable tactile feedback,
More real emotional interaction.The appearance of pressure sensitive screen technology, allows user to possess a kind of interactive with mobile phone progress
New way.
Pressure sensitive screen technology is such as Force Touch, 3D Touch, ClearForce.
Force Touch and 3D Touch are based on same technology.3D Touch operating experience is better than
Force Touch, it may be said that be exactly Force Touch upgrade version.3D Touch appear in September, 2015
The apple news conference of 10 days is mounted on iPhone 6s, has Peek (flicking), two kinds of Pop (weight) new
Gesture.Apple is referred to as multipoint-touch-technology of new generation.In brief, apple will Apple Watch before this
On Force Touch schemes strengthen, sense the friendship that different dynamics are formed to touch-control using pressure sensitive screen
Mutually further strengthened.
ClearForce pressure perceives the leading developer that touch-control solution is man-machine interaction solution
Synaptics companies meet the needs of the market the new man-machine interaction mode provided for client.For example by using finger or tactile
Control pen and apply different dynamics, adjustment rolling speed and scaling, realize continuous variable game control with
And different texts or photo editing mode, therefore equipment manufacturers can be made to realize smart mobile phone differentiation.
Synaptics is given after the solution of complete set, and Android mobile phone also begins to large area using the technology,
For example in Huawei Mate S of 2015 on Septembers listing in 9, employ the technology.
In addition to pressure sensitive screen technology, also there is pressure touch control panel, such as apple is integrated on notebook
Force Touch Trackpads.Force Touch Trackpads are internally integrated compared with common Trackpad
Dynamics inductor.Compared with conventional Trackpad, Force Touch Trackpads can not only identify pressing position
Put, moreover it is possible to experience the dynamics of pressing.
By taking touch screen pressure detector as an example, touch screen pressure detector can not only detect and touch screen is shown
The presence of the pressure of device, and the amount for the pressure for being applied to touch-control panel type display can be detected.By detecting pressure
Input of the masterpiece for continuous variable rather than the binary system simply as on/off, touch screen pressure
Soft touch-control can be also distinguished in addition to the direction of contact of the detector except detection with touch screen and speed and hard tactile
Control, similar to above-mentioned Peek (flicking), Pop (weight).Touch screen pressure detector can pass through
Detection screen pressure apply where (i.e. x dimension and y-dimension) and be applied to the point pressure amount (i.e.
Z-dimension) three-dimensional input is provided.Therefore, the difference on the surface of touch screen is applied to (for example, left
Inferior horn or the upper right corner) identical pressure can produce different input signals, and be applied to touch screen
The identical pressure (such as hard pressure or soft stress in any on screen) of same point on surface.
On the whole, terminal device can detect the pressure touch in touch screen preset range, such as aobvious
Show the region detection pressure touch of hiding symbol.It is of course also possible to be to hide default outside symbol in display
Region detection pressure touch, the symbol that such as one or a string default prompting is firmly pressed.The prompting is exerted oneself
The symbol of pressing can be located at the adjacent area that symbol area is hidden in display.
The pressure touch, can be that pressing generation or user of the user by finger pass through touch-control
Device is produced, and the latter is, for example, stylus etc.
When the pressure touch meets or exceeds the first predetermined pressure threshold, and meet or exceed the first pre- level pressure
When the pressure touch of force threshold reaches preset duration, the actual value of the private information is shown.Described
One predetermined pressure threshold could be arranged to produce Peek (flicking) pressure threshold, it can also be provided that producing
Pop (weight) pressure threshold.The pressure touch input of user can be distinguished further according to the duration.
In some embodiments, touch screen pressure detector can be produced not with the time of detection pressure touch-control effect
Same input signal.Amount of the pressure touch of generation as kept meeting or exceeding the first predetermined pressure threshold, can
Further to consider the duration.Duration can as fourth dimension degree input parameter (such as pressure touch
As keep meet or exceed predetermined pressure threshold amount duration t, as different from foregoing x, y, z
Dimension).
Wherein, the first preset pressure threshold value is such as set to Peek (flicking), can select as 5~10gf
(gram force), the first preset pressure threshold value is such as set to Pop (weight), can select as 15~20gf.
The preset duration t may be set in 40ms~60ms, than even more preferably 50ms, so as to produce sensitive
Touch-control feedback.
In addition, the pressure touch can be produced by user by pressing of the finger on touch screen, Huo Zheyou
User is produced by pressing of the contactor control device on touch screen;Can also be that the pressure touch is located at for cursor
Produced when in screen preset range by user by the pressing of finger on the touch pad, or cursor is located at screen
Produced when in preset range by user by the pressing of contactor control device on the touch pad;It can also be and led to by user
Cross finger on the touch pad presumptive area pressing produce, or by user by contactor control device on the touch pad
The pressing of presumptive area is produced.
In a kind of situation, the pressure touch within a preset range, can be user by finger in touch-control
Pressing on screen is produced, or is produced by user by pressing of the contactor control device on touch screen, the pressing
Region can be located at the subregion of private information.When pressure touch of the detection in such scope, and institute
State pressure touch and meet or exceed the first predetermined pressure threshold, and meet or exceed the first predetermined pressure threshold
When the pressure touch keeps and reaches preset duration, institute can be shown in the corresponding screen area of area pressed
State the actual value of private information.For private information shows large area, shown caused by pressure touch
The part that the region of actual value may be accounted in private information viewing area.In this situation, the effect brought
A part for example, in private information causes to be shown as actual value due to pressure touch, and the private in other regions
Confidential information is still hiding symbol.Accordingly, as user is by pressing of the finger on touch screen and movement,
Or by user by pressing of the contactor control device on touch screen and movement, in the region for pressing and being moved to,
If the pressure touch still meets or exceeds the first predetermined pressure threshold, and it is predetermined to meet or exceed first
, can be in the private information viewing area when pressure touch of pressure threshold keeps and reaches preset duration
In domain actual value is shown as by hiding symbol switching.
S130:It is extensive when detecting the pressure touch value disappearance or being down to below the second predetermined pressure threshold
The hiding symbol of the private information is shown again.
User can check the actual value of the private information of display by S120 steps.
When checking that user can lift the finger for producing pressure touch or stylus etc touch-control dress after finishing
Put.
Terminal device can detect the pressure touch in touch screen preset range, be touched when detecting the pressure
When control value disappears or is down to below the second predetermined pressure threshold, recover the hiding symbol of the display private information.
When the first preset pressure threshold value is such as set to Peek (flicking), second predetermined pressure threshold can be with
It is set to 1gf.When the first preset pressure threshold value is such as set to Pop (weight), described second makes a reservation for
Pressure threshold could be arranged to 11gf.
So, user is when lifting the finger or stylus for producing pressure touch etc contactor control device, and terminal is set
It is standby to detect the pressure touch value disappearance or be down to below the second predetermined pressure threshold, so as to extensive immediately
It is to hide symbol to show the private information again.
Area pressed as previously mentioned is located at the situation of the subregion of private information, aobvious for private information
For the large area shown, the region of display actual value may account for private information viewing area caused by pressure touch
A part in domain.In this situation, the effect brought is, for example, that the pressure touch value disappears or be down to the
When below two predetermined pressure thresholds, the part in private information is recovered to be shown as hiding symbol.Accordingly,
As user is by pressing of the finger on touch screen and movement, or by user by contactor control device in touch-control
Pressing and movement on screen, it is mobile just past region, when the pressure touch value disappears or be down to the
When below two predetermined pressure thresholds, actual value can be switched in the private information viewing area and be shown as
Hide symbol.
By above-described embodiment, it can cause in user to the pressure touch of the certain strength of touch screen and holding one
When regularly long, private information is just shown as actual value, and disappeared in the pressure touch or to be down to second pre-
When below level pressure force threshold, recover the hiding symbol of the display private information, so as to quick, convenient
Private information is switched into display between actual value and hiding symbol.
The application also provides a kind of terminal for showing private information, as described in Figure 2, including:
Display unit 21, hiding symbol or actual value for showing private information;
Touch control detection unit 22, for detecting pressure touch within a preset range, when the pressure touch reaches
Arrive or more than the first predetermined pressure threshold, and meet or exceed the pressure touch of predetermined pressure threshold and keep
And when reaching preset duration, trigger the actual value that the display unit shows the private information;When detecting
When the pressure touch disappears or is down to below the second predetermined pressure threshold, trigger the display unit and recover aobvious
Show the hiding symbol of the private information.
Preferably, the pressure touch in the region of symbol is hidden in the touch control detection unit detection in display;Or inspection
The pressure touch of the symbol area firmly pressed in prompting is surveyed, the symbol area that the prompting exerts oneself to press is located at
The adjacent area of symbol area is hidden in display.
Preferably, first predetermined pressure threshold is set to produce the pressure threshold of flicking, or is set to production
The pressure threshold of raw weight.
Preferably, the pressure threshold selection for producing flicking is 5~10 gram forces.
Preferably, the pressure threshold selection for producing weight is 15~20 gram forces.
Preferably, the preset duration t is set as 40ms~60ms.
Preferably, the preset duration t is set as 50ms.
Preferably, the pressure touch is produced by user by the pressing of finger, or passes through touch-control by user
Device is produced.
Preferably, the pressure touch is produced by user by pressing of the finger on touch screen, or by with
Family is produced by pressing of the contactor control device on touch screen;
Or,
The pressure touch be cursor be located at screen preset range in when by user by finger on the touch pad
Pressing produce, or cursor be located at screen preset range in when by user by contactor control device on the touch pad
Pressing produce;
Or,
The pressure touch by user by finger on the touch pad presumptive area pressing produce, or by with
Family by contactor control device on the touch pad presumptive area pressing produce.
In the 1990s, can clearly to distinguish be changing on hardware for the improvement of a technology
The improvement entered on (for example, improvement to circuit structures such as diode, transistor, switches) or software is (right
In the improvement of method flow).However, with the development of technology, the improvement of many method flows now is
Through directly improving for hardware circuit can be considered as.Designer is nearly all by by improved method flow
It is programmed into hardware circuit to obtain corresponding hardware circuit.Therefore, it cannot be said that method flow
Improvement cannot be realized with hardware entities module.For example, PLD (Programmable
Logic Device, PLD) (for example field programmable gate array (Field Programmable Gate Array,
FPGA)) it is exactly such a integrated circuit, its logic function is determined by user to device programming.By setting
Meter personnel are voluntarily programmed a digital display circuit " integrated " on a piece of PLD, without asking chip manufacturing
Manufacturer designs and made special IC chip.Moreover, nowadays, substitution manually makes integrated electricity
Road chip, this programming also uses " logic compiler (logic compiler) " software instead to realize mostly, it
Software compiler used is similar when being write with program development, and the source code before compiling is also handy
Specific programming language is write, and this is referred to as hardware description language (Hardware Description
Language, HDL), and HDL is also not only a kind of, but have many kinds, such as ABEL (Advanced
Boolean Expression Language)、AHDL(Altera Hardware Description Language)、
Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL
(Ruby Hardware Description Language) etc., most generally uses VHDL at present
(Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog.
Those skilled in the art also will be apparent to the skilled artisan that only need to by method flow with above-mentioned several hardware description languages slightly
Programming in logic is simultaneously programmed into integrated circuit, it is possible to be readily available the hardware for realizing the logical method flow
Circuit.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor
Or processor and storage can by (micro-) computing device computer readable program code (such as software
Or firmware) computer-readable medium, gate, switch, application specific integrated circuit (Application Specific
Integrated Circuit, ASIC), the form of programmable logic controller (PLC) and embedded microcontroller, controller
Example include but is not limited to following microcontroller:ARC 625D、Atmel AT91SAM、Microchip
PIC18F26K20 and Silicone Labs C8051F320, Memory Controller is also implemented as depositing
A part for the control logic of reservoir.It is also known in the art that except with pure computer-readable program
Code means are realized beyond controller, can cause control by the way that method and step is carried out into programming in logic completely
Device is with the shape of gate, switch, application specific integrated circuit, programmable logic controller (PLC) and embedded microcontroller etc.
Formula realizes identical function.Therefore this controller is considered a kind of hardware component, and to being wrapped in it
The device for realizing various functions included can also be considered as the structure in hardware component.Or even, can be with
It not only can will be the software module of implementation method for realizing that the device of various functions is considered as but also can be hardware
Structure in part.
System, device, module or unit that above-described embodiment is illustrated, specifically can be by computer chip or reality
Body is realized, or is realized by the product with certain function.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly,
The function of each unit can be realized in same or multiple softwares and/or hardware when implementing the application.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or meter
Calculation machine program product.Therefore, the present invention can be using complete hardware embodiment, complete software embodiment or knot
The form of embodiment in terms of conjunction software and hardware.Wherein wrapped one or more moreover, the present invention can be used
Containing computer usable program code computer-usable storage medium (include but is not limited to magnetic disk storage,
CD-ROM, optical memory etc.) on the form of computer program product implemented.
The present invention is with reference to the production of method according to embodiments of the present invention, equipment (system) and computer program
The flow chart and/or block diagram of product is described.It should be understood that can by computer program instructions implementation process figure and
/ or each flow and/or square frame in block diagram and the flow in flow chart and/or block diagram and/
Or the combination of square frame.These computer program instructions can be provided to all-purpose computer, special-purpose computer, insertion
Formula processor or the processor of other programmable data processing devices are to produce a machine so that pass through and calculate
The instruction of the computing device of machine or other programmable data processing devices is produced for realizing in flow chart one
The device for the function of being specified in individual flow or multiple flows and/or one square frame of block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or the processing of other programmable datas to set
In the standby computer-readable memory worked in a specific way so that be stored in the computer-readable memory
Instruction produce include the manufacture of command device, the command device realization in one flow or multiple of flow chart
The function of being specified in one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices, made
Obtain and perform series of operation steps on computer or other programmable devices to produce computer implemented place
Reason, so that the instruction performed on computer or other programmable devices is provided for realizing in flow chart one
The step of function of being specified in flow or multiple flows and/or one square frame of block diagram or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output
Interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
And/or the form, such as read-only storage (ROM) or flash memory (flash RAM) such as Nonvolatile memory (RAM).It is interior
Deposit be computer-readable medium example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by appointing
What method or technique realizes that information is stored.Information can be computer-readable instruction, data structure, program
Module or other data.The example of the storage medium of computer include, but are not limited to phase transition internal memory (PRAM),
It is static RAM (SRAM), dynamic random access memory (DRAM), other kinds of random
Access memory (RAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM),
Fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), digital multi light
Disk (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.According to herein
Define, computer-readable medium does not include temporary computer readable media (transitory media), such as modulate
Data-signal and carrier wave.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to non-row
His property is included, so that process, method, commodity or equipment including a series of key elements not only include
Those key elements, but also other key elements including being not expressly set out, or also include for this process,
Method, commodity or the intrinsic key element of equipment.In the absence of more restrictions, by sentence " including
One ... " key element that limits, it is not excluded that in the process including the key element, method, commodity or set
Also there is other identical element in standby.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer journey
Sequence product.Therefore, the application can using complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the application can be used wherein includes calculating one or more
Machine usable program code computer-usable storage medium (include but is not limited to magnetic disk storage, CD-ROM,
Optical memory etc.) on the form of computer program product implemented.
The application can be described in the general context of computer executable instructions, example
Such as program module.Usually, program module includes performing particular task or realizes particular abstract data type
Routine, program, object, component, data structure etc..This can also be put into practice in a distributed computing environment
Application, in these DCEs, by the remote processing devices connected by communication network come
Execution task.In a distributed computing environment, program module can be located at local including storage device
In remote computer storage medium.
Each embodiment in this specification is described by the way of progressive, identical phase between each embodiment
As part mutually referring to what each embodiment was stressed is the difference with other embodiment.
For system embodiment, because it is substantially similar to embodiment of the method, so the comparison of description
Simply, the relevent part can refer to the partial explaination of embodiments of method.
Embodiments herein is the foregoing is only, the application is not limited to.For this area skill
For art personnel, the application can have various modifications and variations.All institutes within spirit herein and principle
Any modification, equivalent substitution and improvements of work etc., should be included within the scope of claims hereof.