An AsYouTypeFormatter can be created by invoking {@link PhoneNumberUtil#getAsYouTypeFormatter}. After that, digits can be added by invoking {@link #inputDigit} on the formatter instance, and the partially formatted phone number will bereturned each time a digit is added. {@link #clear} can be invoked before formatting a newnumber.
See the unittests for more details on how the formatter is to be used. @author Shaopeng Jia
|
|
|
|