# PhoneAccount.Builder

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Builder

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/telecom/PhoneAccount.Builder "View this page in Java")  

```
class Builder
```

|---|------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                               ||
| ↳ | [android.telecom.PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#) |

Helper class for creating a[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount).

## Summary

|                                                                                                                                                                                                                                                                         Public constructors                                                                                                                                                                                                                                                                          ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#Builder(android.telecom.PhoneAccount))`(`phoneAccount:` `[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount)!`)` Creates an instance of the[PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#)from an existing[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount).                                                         |
| [Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#Builder(android.telecom.PhoneAccountHandle,%20kotlin.CharSequence))`(`accountHandle:` `[PhoneAccountHandle](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccountHandle)!`, `label:` `[CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)!`)` Creates a builder with the specified[PhoneAccountHandle](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccountHandle)and label. |

|                                                                                                                                                                                                                                                                                                                                                                                                                Public methods                                                                                                                                                                                                                                                                                                                                                                                                                 ||
|-------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#)! | [addSupportedUriScheme](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#addSupportedUriScheme(kotlin.String))`(`uriScheme:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Specifies an additional URI scheme supported by the[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount).                                                                                                                                                                                                                                                                                                                      |
| open[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount)!                  | [build](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#build())`()` Creates an instance of a[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount)based on the current builder settings.                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| open[PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#)  | [clearSimultaneousCallingRestriction](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#clearSimultaneousCallingRestriction())`()` Clears a previously set simultaneous calling restriction set when[PhoneAccount.Builder.Builder(PhoneAccount)](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#Builder(android.telecom.PhoneAccount))is used to create a new PhoneAccount from an existing one.                                                                                                                                                                                                                                                    |
| open[PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#)! | [setAddress](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#setAddress(android.net.Uri))`(`value:` `[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)!`)` Sets the address.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| open[PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#)! | [setCapabilities](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#setCapabilities(kotlin.Int))`(`value:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the capabilities.                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| open[PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#)! | [setExtras](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#setExtras(android.os.Bundle))`(`extras:` `[Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html#)!`)` Specifies the extras associated with the[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount).                                                                                                                                                                                                                                                                                                                                                        |
| open[PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#)! | [setHighlightColor](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#setHighlightColor(kotlin.Int))`(`value:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the highlight color.                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| open[PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#)! | [setIcon](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#setIcon(android.graphics.drawable.Icon))`(`icon:` `[Icon](https://developer.android.com/reference/kotlin/android/graphics/drawable/Icon.html#)!`)` Sets the icon.                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| open[PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#)! | [setShortDescription](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#setShortDescription(kotlin.CharSequence))`(`value:` `[CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)!`)` Sets the short description.                                                                                                                                                                                                                                                                                                                                                                                                                               |
| open[PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#)  | [setSimultaneousCallingRestriction](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#setSimultaneousCallingRestriction(kotlin.collections.MutableSet))`(`handles:` `[MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)<[PhoneAccountHandle](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccountHandle)!>`)` Restricts the ability of this[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount)to ONLY support simultaneous calling with the other[PhoneAccountHandle](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccountHandle)s in this Set. |
| open[PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#)! | [setSubscriptionAddress](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#setSubscriptionAddress(android.net.Uri))`(`value:` `[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)!`)` Sets the subscription address.                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| open[PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#)! | [setSupportedUriSchemes](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#setSupportedUriSchemes(kotlin.collections.MutableList))`(`uriSchemes:` `[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!>!`)` Specifies the URI schemes supported by the[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount).                                                                                                                                                                                                 |

## Public constructors

### Builder

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
Builder(phoneAccount: PhoneAccount!)
```

Creates an instance of the[PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#)from an existing[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount).

|                                                                                                                 Parameters                                                                                                                 ||
|----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `phoneAccount` | [PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount)!:The[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount)used to initialize the builder. |

### Builder

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
Builder(
    accountHandle: PhoneAccountHandle!, 
    label: CharSequence!)
```

Creates a builder with the specified[PhoneAccountHandle](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccountHandle)and label.

Note: each CharSequence or String field is limited to 256 characters. This check is enforced when registering the PhoneAccount via[TelecomManager.registerPhoneAccount(PhoneAccount)](https://developer.android.com/reference/kotlin/android/telecom/TelecomManager#registerPhoneAccount(android.telecom.PhoneAccount))and will cause an[IllegalArgumentException](https://developer.android.com/reference/kotlin/java/lang/IllegalArgumentException.html#)to be thrown if the character field limit is over 256.

## Public methods

### addSupportedUriScheme

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun addSupportedUriScheme(uriScheme: String!): PhoneAccount.Builder!
```

Specifies an additional URI scheme supported by the[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount).

Each URI scheme is limited to 256 characters. Adding a scheme over 256 characters will cause an[IllegalArgumentException](https://developer.android.com/reference/kotlin/java/lang/IllegalArgumentException.html#)to be thrown when the account is registered.

|                                                   Parameters                                                   ||
|-------------|---------------------------------------------------------------------------------------------------|
| `uriScheme` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:The URI scheme. |

|                                                           Return                                                            ||
|---------------------------------------------------------------------------------------------------------------|--------------|
| [PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#)! | The builder. |

### build

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun build(): PhoneAccount!
```

Creates an instance of a[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount)based on the current builder settings.

|                                                                                            Return                                                                                             ||
|----------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|
| [PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount)! | The[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount). |

### clearSimultaneousCallingRestriction

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun clearSimultaneousCallingRestriction(): PhoneAccount.Builder
```

Clears a previously set simultaneous calling restriction set when[PhoneAccount.Builder.Builder(PhoneAccount)](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#Builder(android.telecom.PhoneAccount))is used to create a new PhoneAccount from an existing one.

|                                                                                           Return                                                                                           ||
|--------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|
| [PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#) | The Builder used to set up the new PhoneAccount. This value cannot be`null`. |

**See Also**

- [#setSimultaneousCallingRestriction(Set)](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#setSimultaneousCallingRestriction(kotlin.collections.MutableSet))  

### setAddress

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setAddress(value: Uri!): PhoneAccount.Builder!
```

Sets the address. See[PhoneAccount.getAddress](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount#getAddress()).

Note: The entire URI value is limited to 256 characters. This check is enforced when registering the PhoneAccount via[TelecomManager.registerPhoneAccount(PhoneAccount)](https://developer.android.com/reference/kotlin/android/telecom/TelecomManager#registerPhoneAccount(android.telecom.PhoneAccount))and will cause an[IllegalArgumentException](https://developer.android.com/reference/kotlin/java/lang/IllegalArgumentException.html#)to be thrown if URI is over 256.

|                                                       Parameters                                                        ||
|---------|----------------------------------------------------------------------------------------------------------------|
| `value` | [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)!:The address of the phone account. |

|                                                           Return                                                            ||
|---------------------------------------------------------------------------------------------------------------|--------------|
| [PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#)! | The builder. |

### setCapabilities

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setCapabilities(value: Int): PhoneAccount.Builder!
```

Sets the capabilities. See[PhoneAccount.getCapabilities](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount#getCapabilities()).

|                                                  Parameters                                                  ||
|---------|-----------------------------------------------------------------------------------------------------|
| `value` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):The capabilities to set. |

|                                                           Return                                                            ||
|---------------------------------------------------------------------------------------------------------------|--------------|
| [PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#)! | The builder. |

### setExtras

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setExtras(extras: Bundle!): PhoneAccount.Builder!
```

Specifies the extras associated with the[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount).

`PhoneAccount`s only support extra values of type:[String](https://developer.android.com/reference/kotlin/java/lang/String.html#),[Integer](https://developer.android.com/reference/kotlin/java/lang/Integer.html#), and[Boolean](https://developer.android.com/reference/kotlin/java/lang/Boolean.html#). Extras which are not of these types are ignored.

Note: Each Bundle (Key, Value) String field is limited to 256 characters. Additionally, the bundle is limited to 100 (Key, Value) pairs total. This check is enforced when registering the PhoneAccount via[TelecomManager.registerPhoneAccount(PhoneAccount)](https://developer.android.com/reference/kotlin/android/telecom/TelecomManager#registerPhoneAccount(android.telecom.PhoneAccount))and will cause an[IllegalArgumentException](https://developer.android.com/reference/kotlin/java/lang/IllegalArgumentException.html#)to be thrown if the character field limit is over 256 or more than 100 (Key, Value) pairs are in the Bundle.

|                                          Parameters                                          ||
|----------|------------------------------------------------------------------------------------|
| `extras` | [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html#)!: |

|                                                      Return                                                      ||
|---------------------------------------------------------------------------------------------------------------|---|
| [PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#)! |   |

### setHighlightColor

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setHighlightColor(value: Int): PhoneAccount.Builder!
```

Sets the highlight color. See[PhoneAccount.getHighlightColor](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount#getHighlightColor()).

|                                                Parameters                                                ||
|---------|-------------------------------------------------------------------------------------------------|
| `value` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):The highlight color. |

|                                                           Return                                                            ||
|---------------------------------------------------------------------------------------------------------------|--------------|
| [PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#)! | The builder. |

### setIcon

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setIcon(icon: Icon!): PhoneAccount.Builder!
```

Sets the icon. See[PhoneAccount.getIcon](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount#getIcon()).

Note: An[IllegalArgumentException](https://developer.android.com/reference/kotlin/java/lang/IllegalArgumentException.html#)if the Icon cannot be written to memory. This check is enforced when registering the PhoneAccount via[TelecomManager.registerPhoneAccount(PhoneAccount)](https://developer.android.com/reference/kotlin/android/telecom/TelecomManager#registerPhoneAccount(android.telecom.PhoneAccount))

|                                                      Parameters                                                       ||
|--------|---------------------------------------------------------------------------------------------------------------|
| `icon` | [Icon](https://developer.android.com/reference/kotlin/android/graphics/drawable/Icon.html#)!:The icon to set. |

### setShortDescription

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setShortDescription(value: CharSequence!): PhoneAccount.Builder!
```

Sets the short description. See[PhoneAccount.getShortDescription](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount#getShortDescription()).

Note: Each CharSequence or String field is limited to 256 characters. This check is enforced when registering the PhoneAccount via[TelecomManager.registerPhoneAccount(PhoneAccount)](https://developer.android.com/reference/kotlin/android/telecom/TelecomManager#registerPhoneAccount(android.telecom.PhoneAccount))and will cause an[IllegalArgumentException](https://developer.android.com/reference/kotlin/java/lang/IllegalArgumentException.html#)to be thrown if the character field limit is over 256.

|                                                           Parameters                                                           ||
|---------|-----------------------------------------------------------------------------------------------------------------------|
| `value` | [CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)!:The short description. |

|                                                           Return                                                            ||
|---------------------------------------------------------------------------------------------------------------|--------------|
| [PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#)! | The builder. |

### setSimultaneousCallingRestriction

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setSimultaneousCallingRestriction(handles: MutableSet<PhoneAccountHandle!>): PhoneAccount.Builder
```

Restricts the ability of this[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount)to ONLY support simultaneous calling with the other[PhoneAccountHandle](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccountHandle)s in this Set.

If two or more[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount)s support calling simultaneously, it means that Telecom allows the user to place additional outgoing calls and receive additional incoming calls using other[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount)s while this PhoneAccount also has one or more active calls.

If this setter method is never called or cleared using[clearSimultaneousCallingRestriction()](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#clearSimultaneousCallingRestriction()), there is no restriction and all[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount)s registered to Telecom by this package support simultaneous calling. If this setter is called and set as an empty Set, then this[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount)does not support simultaneous calling with any other[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount)s registered by the same application.

Note: Simultaneous calling restrictions can only be placed on[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount)s that were registered by the same application. Simultaneous calling across applications is always possible as long as the[Connection](https://developer.android.com/reference/kotlin/android/telecom/Connection)supports hold. If a[PhoneAccountHandle](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccountHandle)is included here and the package name doesn't match this application's package name,[TelecomManager.registerPhoneAccount(PhoneAccount)](https://developer.android.com/reference/kotlin/android/telecom/TelecomManager#registerPhoneAccount(android.telecom.PhoneAccount))will throw a[SecurityException](https://developer.android.com/reference/kotlin/java/lang/SecurityException.html#).

|                                                                                                                                                                                                                                                                                                                                                                                                   Parameters                                                                                                                                                                                                                                                                                                                                                                                                   ||
|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `handles` | [MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\<[PhoneAccountHandle](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccountHandle)!\>:The other[PhoneAccountHandle](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccountHandle)s that support calling simultaneously with this one. Use[clearSimultaneousCallingRestriction()](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#clearSimultaneousCallingRestriction())to remove the restriction and allow simultaneous calling to be supported across all[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount)s registered by this package. This value cannot be`null`. |

|                                                                                           Return                                                                                           ||
|--------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|
| [PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#) | The Builder used to set up the new PhoneAccount. This value cannot be`null`. |

### setSubscriptionAddress

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setSubscriptionAddress(value: Uri!): PhoneAccount.Builder!
```

Sets the subscription address. See[PhoneAccount.getSubscriptionAddress](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount#getSubscriptionAddress()).

|                                                   Parameters                                                    ||
|---------|--------------------------------------------------------------------------------------------------------|
| `value` | [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)!:The subscription address. |

|                                                           Return                                                            ||
|---------------------------------------------------------------------------------------------------------------|--------------|
| [PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#)! | The builder. |

### setSupportedUriSchemes

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setSupportedUriSchemes(uriSchemes: MutableList<String!>!): PhoneAccount.Builder!
```

Specifies the URI schemes supported by the[PhoneAccount](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount).

A max of 10 URI schemes can be added per account. Additionally, each URI scheme is limited to 256 characters. Adding more than 10 URI schemes or 256 characters on any scheme will cause an[IllegalArgumentException](https://developer.android.com/reference/kotlin/java/lang/IllegalArgumentException.html#)to be thrown when the account is registered.

|                                                                                                          Parameters                                                                                                          ||
|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `uriSchemes` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>!:The URI schemes. |

|                                                           Return                                                            ||
|---------------------------------------------------------------------------------------------------------------|--------------|
| [PhoneAccount.Builder](https://developer.android.com/reference/kotlin/android/telecom/PhoneAccount.Builder#)! | The builder. |