CallEndpointCompat


@RequiresApi(value = 26)
class CallEndpointCompat


Constructor for a CallEndpointCompat object.

Summary

Constants

const Int

Indicates that the type of endpoint through which call media flows is a Bluetooth.

const Int

Indicates that the type of endpoint through which call media flows is an earpiece.

const Int

Indicates that the type of endpoint through which call media flows is a speakerphone.

const Int

Indicates that the type of endpoint through which call media flows is an external.

const Int

Indicates that the type of endpoint through which call media flows is unknown type.

const Int

Indicates that the type of endpoint through which call media flows is a wired headset.

Public constructors

CallEndpointCompat(name: CharSequence, type: Int, identifier: ParcelUuid)

Public functions

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

Public properties

ParcelUuid

A unique identifier for this endpoint on the device

CharSequence

Human-readable name associated with the endpoint

Int

The type of endpoint through which call media being routed Allowed values: TYPE_EARPIECE , TYPE_BLUETOOTH , TYPE_WIRED_HEADSET , TYPE_SPEAKER , TYPE_STREAMING , TYPE_UNKNOWN

Constants

TYPE_BLUETOOTH

const val TYPE_BLUETOOTH = 2: Int

Indicates that the type of endpoint through which call media flows is a Bluetooth.

TYPE_EARPIECE

const val TYPE_EARPIECE = 1: Int

Indicates that the type of endpoint through which call media flows is an earpiece.

TYPE_SPEAKER

const val TYPE_SPEAKER = 4: Int

Indicates that the type of endpoint through which call media flows is a speakerphone.

TYPE_STREAMING

const val TYPE_STREAMING = 5: Int

Indicates that the type of endpoint through which call media flows is an external.

TYPE_UNKNOWN

const val TYPE_UNKNOWNInt

Indicates that the type of endpoint through which call media flows is unknown type.

TYPE_WIRED_HEADSET

const val TYPE_WIRED_HEADSET = 3: Int

Indicates that the type of endpoint through which call media flows is a wired headset.

Public constructors

CallEndpointCompat

Added in 1.0.0-alpha03
CallEndpointCompat(name: CharSequence, type: Int, identifier: ParcelUuid)
Parameters
name: CharSequence

Human-readable name associated with the endpoint

type: Int

The type of endpoint through which call media being routed Allowed values: TYPE_EARPIECE , TYPE_BLUETOOTH , TYPE_WIRED_HEADSET , TYPE_SPEAKER , TYPE_STREAMING , TYPE_UNKNOWN

identifier: ParcelUuid

A unique identifier for this endpoint on the device

Public functions

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

identifier

Added in 1.0.0-alpha03
val identifierParcelUuid

A unique identifier for this endpoint on the device

name

Added in 1.0.0-alpha03
val nameCharSequence

Human-readable name associated with the endpoint

type

Added in 1.0.0-alpha03
val typeInt

The type of endpoint through which call media being routed Allowed values: TYPE_EARPIECE , TYPE_BLUETOOTH , TYPE_WIRED_HEADSET , TYPE_SPEAKER , TYPE_STREAMING , TYPE_UNKNOWN