CallAttributesCompat


class CallAttributesCompat


CallAttributes represents a set of properties that define a new Call. Applications should build an instance of this class and use CallsManager.addCall to start a new call with Telecom.

Summary

Constants

const Int

Used when answering or dialing a call to indicate that the call does not have a video component

const Int

Indicates video transmission is supported

const Int

Indicates that the call is an incoming call.

const Int

Indicates that the call is an outgoing call.

const Int

This call being created can be set to inactive (traditionally referred to as hold).

const Int

This call can be streamed from a root device to another device to continue the call without completely transferring it.

const Int

This call can be completely transferred from one endpoint to another.

Public constructors

CallAttributesCompat(
    displayName: CharSequence,
    address: Uri,
    direction: Int,
    callType: Int,
    callCapabilities: Int
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Uri

Address of the call.

Int

Allows a package to opt into capabilities on the telecom side, on a per-call basis

Int

Information related to data being transmitted (voice, video, etc. )

Int

The direction (Outgoing/Incoming) of the new Call

CharSequence

Display name of the person on the other end of the call

Constants

CALL_TYPE_AUDIO_CALL

const val CALL_TYPE_AUDIO_CALL = 1: Int

Used when answering or dialing a call to indicate that the call does not have a video component

CALL_TYPE_VIDEO_CALL

const val CALL_TYPE_VIDEO_CALL = 2: Int

Indicates video transmission is supported

DIRECTION_INCOMING

const val DIRECTION_INCOMING = 1: Int

Indicates that the call is an incoming call.

DIRECTION_OUTGOING

const val DIRECTION_OUTGOING = 2: Int

Indicates that the call is an outgoing call.

SUPPORTS_SET_INACTIVE

const val SUPPORTS_SET_INACTIVEInt

This call being created can be set to inactive (traditionally referred to as hold). This means that once a new call goes active, if the active call needs to be held in order to place or receive an incoming call, the active call will be placed on hold. otherwise, the active call may be disconnected.

SUPPORTS_STREAM

const val SUPPORTS_STREAMInt

This call can be streamed from a root device to another device to continue the call without completely transferring it. The call continues to take place on the source device, however media and control are streamed to another device.

SUPPORTS_TRANSFER

const val SUPPORTS_TRANSFERInt

This call can be completely transferred from one endpoint to another.

Public constructors

CallAttributesCompat

Added in 1.0.0-alpha03
CallAttributesCompat(
    displayName: CharSequence,
    address: Uri,
    direction: Int,
    callType: Int = CALL_TYPE_AUDIO_CALL,
    callCapabilities: Int = SUPPORTS_SET_INACTIVE
)
Parameters
displayName: CharSequence

Display name of the person on the other end of the call

address: Uri

Address of the call. Note, this can be extended to a meeting link

direction: Int

The direction (Outgoing/Incoming) of the new Call

callType: Int = CALL_TYPE_AUDIO_CALL

Information related to data being transmitted (voice, video, etc. )

callCapabilities: Int = SUPPORTS_SET_INACTIVE

Allows a package to opt into capabilities on the telecom side, on a per-call basis

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

address

Added in 1.0.0-alpha03
val addressUri

Address of the call. Note, this can be extended to a meeting link

callCapabilities

Added in 1.0.0-alpha03
val callCapabilitiesInt

Allows a package to opt into capabilities on the telecom side, on a per-call basis

callType

Added in 1.0.0-alpha03
val callTypeInt

Information related to data being transmitted (voice, video, etc. )

direction

Added in 1.0.0-alpha03
val directionInt

The direction (Outgoing/Incoming) of the new Call

displayName

Added in 1.0.0-alpha03
val displayNameCharSequence

Display name of the person on the other end of the call