Summary: Ctors | Methods | Inherited Methods
public
static
final
class
CallAttributes.Builder
extends Object
Build an instance of CallAttributes. In order to build a valid instance, a
PhoneAccountHandle, call direction, display name, and Uri address
are required.
Note: Pass in the same PhoneAccountHandle that was used to register a
PhoneAccount with Telecom. see TelecomManager.registerPhoneAccount
Summary
Public constructors | |
|---|---|
Builder(PhoneAccountHandle phoneAccountHandle, int callDirection, CharSequence displayName, Uri address)
Constructor for the CallAttributes.Builder class |
|
Public methods | |
|---|---|
CallAttributes
|
build()
Build an instance of |
CallAttributes.Builder
|
setCallCapabilities(int callCapabilities)
Sets the capabilities of this call. |
CallAttributes.Builder
|
setCallType(int callType)
Sets the type of call; uses to indicate if a call is a video call or audio call. |
CallAttributes.Builder
|
setContactUri(Uri contactUri)
Sets the contact directory URI for the VoIP app. |
CallAttributes.Builder
|
setIsGroupCall(boolean isGroupCall)
Sets whether or not this call should be considered a group call. |
CallAttributes.Builder
|
setLogExcluded(boolean isExcluded)
Sets the attribute to exclude the call from system call logs. |
Inherited methods | |||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
From class
| |||||||||||||||||||||||
Public constructors
Builder
public Builder (PhoneAccountHandle phoneAccountHandle, int callDirection, CharSequence displayName, Uri address)
Constructor for the CallAttributes.Builder class
| Parameters | |
|---|---|
phoneAccountHandle |
PhoneAccountHandle: that belongs to package registered with Telecom.
This value cannot be null. |
callDirection |
int: of the new call that will be added to Telecom.
Value is one of the following: |
displayName |
CharSequence: of the caller for incoming calls or initiating user for outgoing calls.
This value cannot be null. |
address |
Uri: of the caller for incoming calls or destination for outgoing calls.
This value cannot be null. |
Public methods
setContactUri
public CallAttributes.Builder setContactUri (Uri contactUri)
Sets the contact directory URI for the VoIP app. This must be a valid URI pointing to the VoIP contact directory or a valid CP2 contact.
| Parameters | |
|---|---|
contactUri |
Uri: The contact URI pointing to the VoIP contact directory or CP2 contact.
This value cannot be null. |
| Returns | |
|---|---|
CallAttributes.Builder |
Builder.
This value cannot be null. |
setIsGroupCall
public CallAttributes.Builder setIsGroupCall (boolean isGroupCall)
Sets whether or not this call should be considered a group call.
| Parameters | |
|---|---|
isGroupCall |
boolean: whether the call is a group call. |
| Returns | |
|---|---|
CallAttributes.Builder |
Builder.
This value cannot be null. |
setLogExcluded
public CallAttributes.Builder setLogExcluded (boolean isExcluded)
Sets the attribute to exclude the call from system call logs.
| Parameters | |
|---|---|
isExcluded |
boolean: whether the call should be excluded. |
| Returns | |
|---|---|
CallAttributes.Builder |
Builder.
This value cannot be null. |