public
static
class
PhoneAccount.Builder
extends Object
| java.lang.Object | |
| ↳ | android.telecom.PhoneAccount.Builder |
Helper class for creating a PhoneAccount.
Public constructors | |
|---|---|
PhoneAccount.Builder(PhoneAccountHandle accountHandle, CharSequence label)
Creates a builder with the specified |
|
PhoneAccount.Builder(PhoneAccount phoneAccount)
Creates an instance of the |
|
Public methods | |
|---|---|
PhoneAccount.Builder
|
addSupportedUriScheme(String uriScheme)
Specifies an additional URI scheme supported by the |
PhoneAccount
|
build()
Creates an instance of a |
PhoneAccount.Builder
|
setAddress(Uri value)
Sets the address. |
PhoneAccount.Builder
|
setCapabilities(int value)
Sets the capabilities. |
PhoneAccount.Builder
|
setExtras(Bundle extras)
Specifies the extras associated with the |
PhoneAccount.Builder
|
setHighlightColor(int value)
Sets the highlight color. |
PhoneAccount.Builder
|
setIcon(Icon icon)
Sets the icon. |
PhoneAccount.Builder
|
setShortDescription(CharSequence value)
Sets the short description. |
PhoneAccount.Builder
|
setSubscriptionAddress(Uri value)
Sets the subscription address. |
PhoneAccount.Builder
|
setSupportedUriSchemes(List<String> uriSchemes)
Specifies the URI schemes supported by the |
Inherited methods | |
|---|---|
java.lang.Object
| |
PhoneAccount.Builder (PhoneAccountHandle accountHandle, CharSequence label)
Creates a builder with the specified PhoneAccountHandle and label.
| Parameters | |
|---|---|
accountHandle |
PhoneAccountHandle
|
label |
CharSequence
|
PhoneAccount.Builder (PhoneAccount phoneAccount)
Creates an instance of the PhoneAccount.Builder from an existing
PhoneAccount.
| Parameters | |
|---|---|
phoneAccount |
PhoneAccount:
The PhoneAccount used to initialize the builder.
|
PhoneAccount.Builder addSupportedUriScheme (String uriScheme)
Specifies an additional URI scheme supported by the PhoneAccount.
| Parameters | |
|---|---|
uriScheme |
String:
The URI scheme. |
| Returns | |
|---|---|
PhoneAccount.Builder |
The builder. |
PhoneAccount build ()
Creates an instance of a PhoneAccount based on the current builder settings.
| Returns | |
|---|---|
PhoneAccount |
The PhoneAccount.
|
PhoneAccount.Builder setAddress (Uri value)
Sets the address. See getAddress().
| Parameters | |
|---|---|
value |
Uri:
The address of the phone account. |
| Returns | |
|---|---|
PhoneAccount.Builder |
The builder. |
PhoneAccount.Builder setCapabilities (int value)
Sets the capabilities. See getCapabilities().
| Parameters | |
|---|---|
value |
int:
The capabilities to set. |
| Returns | |
|---|---|
PhoneAccount.Builder |
The builder. |
PhoneAccount.Builder setExtras (Bundle extras)
Specifies the extras associated with the PhoneAccount.
PhoneAccounts only support extra values of type: String, Integer,
and Boolean. Extras which are not of these types are ignored.
| Returns | |
|---|---|
PhoneAccount.Builder |
|
PhoneAccount.Builder setHighlightColor (int value)
Sets the highlight color. See getHighlightColor().
| Parameters | |
|---|---|
value |
int:
The highlight color. |
| Returns | |
|---|---|
PhoneAccount.Builder |
The builder. |
PhoneAccount.Builder setIcon (Icon icon)
Sets the icon. See getIcon().
| Parameters | |
|---|---|
icon |
Icon:
The icon to set.
|
| Returns | |
|---|---|
PhoneAccount.Builder |
|
PhoneAccount.Builder setShortDescription (CharSequence value)
Sets the short description. See getShortDescription().
| Parameters | |
|---|---|
value |
CharSequence:
The short description. |
| Returns | |
|---|---|
PhoneAccount.Builder |
The builder. |
PhoneAccount.Builder setSubscriptionAddress (Uri value)
Sets the subscription address. See getSubscriptionAddress().
| Parameters | |
|---|---|
value |
Uri:
The subscription address. |
| Returns | |
|---|---|
PhoneAccount.Builder |
The builder. |
PhoneAccount.Builder setSupportedUriSchemes (List<String> uriSchemes)
Specifies the URI schemes supported by the PhoneAccount.
| Parameters | |
|---|---|
uriSchemes |
List:
The URI schemes. |
| Returns | |
|---|---|
PhoneAccount.Builder |
The builder. |