Version 1.10 - Updated on 05/04/2017
public interface Phone extends Item
Stores phone numbers information.
int getIndex()
String getNumber()
String getType()
int getPreference()
class Builder
Class used to build a phone number to create or update a contact.
public Builder ()
Constructor used to initialize an empty Phone
builder.
public Builder (Phone phone)
Constructor used to initialize Phone
builder with pre-populated Phone
values.
phone
— {@link Phone} as obtained from getContacts methodspublic void setType(String type)
Sets the type of the phone. Supported types are: - assistant - business - businessfax - callback - car - companymain - home - homefax - mobile - otherfax - pager - primary - primaryfax - radio - school - telex - ttydd - videophone - voipphone - other
type
— phone typepublic void setPreference(int preference)
Sets the phone preference. Lower numbers indicate a higher preference.
preference
— phone preferencepublic void setIndex(int index)
Sets the phone index.
index
— phone indexpublic void setNumber(String number)
Sets the Phone number.
number
— Phone numberCopyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.