CallEndpointCompat


@RequiresApi(value = 26)
class CallEndpointCompat : Comparable


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 Int

Compares this CallEndpointCompat to the other CallEndpointCompat for order.

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-beta01
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

compareTo

Added in 1.0.0-beta01
open operator fun compareTo(other: CallEndpointCompat): Int

Compares this CallEndpointCompat to the other CallEndpointCompat for order. Returns a positive number if this type rank is greater than the other value. Returns a negative number if this type rank is less than the other value. Sort the CallEndpoint by type. Ranking them by:

  1. TYPE_WIRED_HEADSET

  2. TYPE_BLUETOOTH

  3. TYPE_SPEAKER

  4. TYPE_EARPIECE

  5. TYPE_STREAMING

  6. TYPE_UNKNOWN If two endpoints have the same type, the name is compared to determine the value.

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-beta01
val identifierParcelUuid

A unique identifier for this endpoint on the device

name

Added in 1.0.0-beta01
val nameCharSequence

Human-readable name associated with the endpoint

type

Added in 1.0.0-beta01
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