# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Ctors | Methods | Inherited Methods

# PhoneAccount.Builder

`public static class PhoneAccount.Builder`
`extends Object` ``

java.lang.Object
↳ | android.telecom.PhoneAccount.Builder

Helper class for creating a `PhoneAccount`.

## Summary

### Public constructors
`Builder(PhoneAccountHandle accountHandle, CharSequence label)` Creates a builder with the specified `PhoneAccountHandle` and label.
`Builder(PhoneAccount phoneAccount)` Creates an instance of the `PhoneAccount.Builder` from an existing `PhoneAccount`.

### Public methods
`PhoneAccount.Builder` | `addSupportedUriScheme(String uriScheme)` Specifies an additional URI scheme supported by the `PhoneAccount`.
`PhoneAccount` | `build()` Creates an instance of a `PhoneAccount` based on the current builder settings.
`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`.
`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 `PhoneAccount`.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Public constructors

### Builder

    public Builder (PhoneAccountHandle accountHandle,
                    CharSequence label)

Creates a builder with the specified `PhoneAccountHandle` and label.

Parameters
`accountHandle` | `PhoneAccountHandle`
`label` | `CharSequence`

### Builder

    public Builder (PhoneAccount phoneAccount)

Creates an instance of the `PhoneAccount.Builder` from an existing `PhoneAccount`.

Parameters
`phoneAccount` | `PhoneAccount`: The `PhoneAccount` used to initialize the builder.

## Public methods

### addSupportedUriScheme

    public 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.

### build

    public PhoneAccount build ()

Creates an instance of a `PhoneAccount` based on the current builder settings.

Returns
`PhoneAccount` | The `PhoneAccount`.

### setAddress

    public PhoneAccount.Builder setAddress (Uri value)

Sets the address. See `PhoneAccount#getAddress`.

Parameters
`value` | `Uri`: The address of the phone account.

Returns
`PhoneAccount.Builder` | The builder.

### setCapabilities

    public PhoneAccount.Builder setCapabilities (int value)

Sets the capabilities. See `PhoneAccount#getCapabilities`.

Parameters
`value` | `int`: The capabilities to set.

Returns
`PhoneAccount.Builder` | The builder.

### setExtras

    public PhoneAccount.Builder setExtras (Bundle extras)

Specifies the extras associated with the `PhoneAccount`.

`PhoneAccount`s only support extra values of type: `String`, `Integer`, and `Boolean`. Extras which are not of these types are ignored.

Returns
`PhoneAccount.Builder` |

### setHighlightColor

    public PhoneAccount.Builder setHighlightColor (int value)

Sets the highlight color. See `PhoneAccount#getHighlightColor`.

Parameters
`value` | `int`: The highlight color.

Returns
`PhoneAccount.Builder` | The builder.

### setIcon

    public PhoneAccount.Builder setIcon (Icon icon)

Sets the icon. See `PhoneAccount#getIcon`.

Parameters
`icon` | `Icon`: The icon to set.

Returns
`PhoneAccount.Builder` |

### setShortDescription

    public PhoneAccount.Builder setShortDescription (CharSequence value)

Sets the short description. See `PhoneAccount#getShortDescription`.

Parameters
`value` | `CharSequence`: The short description.

Returns
`PhoneAccount.Builder` | The builder.

### setSubscriptionAddress

    public PhoneAccount.Builder setSubscriptionAddress (Uri value)

Sets the subscription address. See `PhoneAccount#getSubscriptionAddress`.

Parameters
`value` | `Uri`: The subscription address.

Returns
`PhoneAccount.Builder` | The builder.

### setSupportedUriSchemes

    public 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.

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*