Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Nested Classes](https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#nestedclasses) \| [Constants](https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#constants) \| [Inherited Constants](https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#inhconstants) \| [Fields](https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#lfields) \| [Methods](https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#inhmethods)

# UwbComplexChannel

*** ** * ** ***


`
public

final

class
UwbComplexChannel
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


implements

https://developer.android.com/reference/android/os/Parcelable


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.ranging.uwb.UwbComplexChannel |

<br />

*** ** * ** ***

A Class representing the complex channel for UWB which comprises channel and preamble index
negotiated between peer devices out of band before ranging.

PRF (Pulse Repetition Frequency) supported:

- BPRF - Base Pulse Repetition Frequency.
- HPRF - Higher Pulse Repetition Frequency.

See [Summary
| ### Nested classes ||
|---|---|
| ` class` | `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel.Builder` Builder for creating instances of `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel`. |
| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#UWB_CHANNEL_10` UWB channel 10 |
| `int` | `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#UWB_CHANNEL_12` UWB channel 12 |
| `int` | `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#UWB_CHANNEL_13` UWB channel 13 |
| `int` | `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#UWB_CHANNEL_14` UWB channel 14 |
| `int` | `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#UWB_CHANNEL_5` UWB channel 5 |
| `int` | `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#UWB_CHANNEL_6` UWB channel 6 |
| `int` | `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#UWB_CHANNEL_8` UWB channel 8 |
| `int` | `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#UWB_CHANNEL_9` UWB channel 9 |
| `int` | `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#UWB_PREAMBLE_CODE_INDEX_10` UWB preamble code index 10 (PRF mode - BPRF). |
| `int` | `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#UWB_PREAMBLE_CODE_INDEX_11` UWB preamble code index 11 (PRF mode - BPRF). |
| `int` | `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#UWB_PREAMBLE_CODE_INDEX_12` UWB preamble code index 12 (PRF mode - BPRF). |
| `int` | `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#UWB_PREAMBLE_CODE_INDEX_25` UWB preamble code index 25 (PRF mode - HPRF). |
| `int` | `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#UWB_PREAMBLE_CODE_INDEX_26` UWB preamble code index 26 (PRF mode - HPRF). |
| `int` | `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#UWB_PREAMBLE_CODE_INDEX_27` UWB preamble code index 27 (PRF mode - HPRF). |
| `int` | `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#UWB_PREAMBLE_CODE_INDEX_28` UWB preamble code index 28 (PRF mode - HPRF). |
| `int` | `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#UWB_PREAMBLE_CODE_INDEX_29` UWB preamble code index 29 (PRF mode - HPRF). |
| `int` | `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#UWB_PREAMBLE_CODE_INDEX_30` UWB preamble code index 30 (PRF mode - HPRF). |
| `int` | `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#UWB_PREAMBLE_CODE_INDEX_31` UWB preamble code index 31 (PRF mode - HPRF). |
| `int` | `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#UWB_PREAMBLE_CODE_INDEX_32` UWB preamble code index 32 (PRF mode - HPRF). |
| `int` | `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#UWB_PREAMBLE_CODE_INDEX_9` UWB preamble code index 9 (PRF mode - BPRF). |
| ### Inherited constants |
|---|
| From interface `https://developer.android.com/reference/android/os/Parcelable` |---|---| | `int` | `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` Descriptor bit used with `https://developer.android.com/reference/android/os/Parcelable#describeContents()`: indicates that the Parcelable object's flattened representation includes a file descriptor. | | `int` | `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE` Flag for use with `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`: the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`". | |
| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/os/Parcelable.Creator<https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel>` | `https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#CREATOR` |
| ### Public methods ||
|---|---|
| ` int` | ` https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#describeContents()() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| ` boolean` | ` https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object o) ` Indicates whether some other object is "equal to" this one. |
| ` int` | ` https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#getChannel()() ` Gets the UWB channel associated with this configuration. |
| ` int` | ` https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#getPreambleIndex()() ` Gets the UWB preamble index associated with this configuration. |
| ` int` | ` https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#hashCode()() ` Returns a hash code value for the object. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#toString()() ` Returns a string representation of the object. |
| ` void` | ` https://developer.android.com/reference/android/ranging/uwb/UwbComplexChannel#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags) ` Flatten this object in to a Parcel. |
| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||
| From interface ` https://developer.android.com/reference/android/os/Parcelable ` |---|---| | ` abstract int` | ` https://developer.android.com/reference/android/os/Parcelable#describeContents()() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. | | ` abstract void` | ` https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags) ` Flatten this object in to a Parcel. | ||
## Constants](https://groups.firaconsortium.org/wg/members/document/1949> FiRa UCI Spec.</a></p>


<h2 class=)[### UWB_CHANNEL_10](https://groups.firaconsortium.org/wg/members/document/1949> FiRa UCI Spec.</a></p>


<h2 class=)[Added in](https://groups.firaconsortium.org/wg/members/document/1949> FiRa UCI Spec.</a></p>


<h2 class=)[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int UWB_CHANNEL_10
```

UWB channel 10

<br />

Constant Value:

10
(0x0000000a)


### UWB_CHANNEL_12

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

```
public static final int UWB_CHANNEL_12
```

UWB channel 12

<br />

Constant Value:

12
(0x0000000c)


### UWB_CHANNEL_13

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

```
public static final int UWB_CHANNEL_13
```

UWB channel 13

<br />

Constant Value:

13
(0x0000000d)


### UWB_CHANNEL_14

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

```
public static final int UWB_CHANNEL_14
```

UWB channel 14

<br />

Constant Value:

14
(0x0000000e)


### UWB_CHANNEL_5

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

```
public static final int UWB_CHANNEL_5
```

UWB channel 5

<br />

Constant Value:

5
(0x00000005)


### UWB_CHANNEL_6

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

```
public static final int UWB_CHANNEL_6
```

UWB channel 6

<br />

Constant Value:

6
(0x00000006)


### UWB_CHANNEL_8

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

```
public static final int UWB_CHANNEL_8
```

UWB channel 8

<br />

Constant Value:

8
(0x00000008)


### UWB_CHANNEL_9

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

```
public static final int UWB_CHANNEL_9
```

UWB channel 9

<br />

Constant Value:

9
(0x00000009)


### UWB_PREAMBLE_CODE_INDEX_10

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

```
public static final int UWB_PREAMBLE_CODE_INDEX_10
```

UWB preamble code index 10 (PRF mode - BPRF).

<br />

Constant Value:

10
(0x0000000a)


### UWB_PREAMBLE_CODE_INDEX_11

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

```
public static final int UWB_PREAMBLE_CODE_INDEX_11
```

UWB preamble code index 11 (PRF mode - BPRF).

<br />

Constant Value:

11
(0x0000000b)


### UWB_PREAMBLE_CODE_INDEX_12

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

```
public static final int UWB_PREAMBLE_CODE_INDEX_12
```

UWB preamble code index 12 (PRF mode - BPRF).

<br />

Constant Value:

12
(0x0000000c)


### UWB_PREAMBLE_CODE_INDEX_25

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

```
public static final int UWB_PREAMBLE_CODE_INDEX_25
```

UWB preamble code index 25 (PRF mode - HPRF).

<br />

Constant Value:

25
(0x00000019)


### UWB_PREAMBLE_CODE_INDEX_26

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

```
public static final int UWB_PREAMBLE_CODE_INDEX_26
```

UWB preamble code index 26 (PRF mode - HPRF).

<br />

Constant Value:

26
(0x0000001a)


### UWB_PREAMBLE_CODE_INDEX_27

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

```
public static final int UWB_PREAMBLE_CODE_INDEX_27
```

UWB preamble code index 27 (PRF mode - HPRF).

<br />

Constant Value:

27
(0x0000001b)


### UWB_PREAMBLE_CODE_INDEX_28

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

```
public static final int UWB_PREAMBLE_CODE_INDEX_28
```

UWB preamble code index 28 (PRF mode - HPRF).

<br />

Constant Value:

28
(0x0000001c)


### UWB_PREAMBLE_CODE_INDEX_29

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

```
public static final int UWB_PREAMBLE_CODE_INDEX_29
```

UWB preamble code index 29 (PRF mode - HPRF).

<br />

Constant Value:

29
(0x0000001d)


### UWB_PREAMBLE_CODE_INDEX_30

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

```
public static final int UWB_PREAMBLE_CODE_INDEX_30
```

UWB preamble code index 30 (PRF mode - HPRF).

<br />

Constant Value:

30
(0x0000001e)


### UWB_PREAMBLE_CODE_INDEX_31

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

```
public static final int UWB_PREAMBLE_CODE_INDEX_31
```

UWB preamble code index 31 (PRF mode - HPRF).

<br />

Constant Value:

31
(0x0000001f)


### UWB_PREAMBLE_CODE_INDEX_32

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

```
public static final int UWB_PREAMBLE_CODE_INDEX_32
```

UWB preamble code index 32 (PRF mode - HPRF).

<br />

Constant Value:

32
(0x00000020)


### UWB_PREAMBLE_CODE_INDEX_9

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

```
public static final int UWB_PREAMBLE_CODE_INDEX_9
```

UWB preamble code index 9 (PRF mode - BPRF).

<br />

Constant Value:

9
(0x00000009)


## Fields

### CREATOR

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

```
public static final Creator<UwbComplexChannel> CREATOR
```

<br />

<br />

## Public methods

### describeContents

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

```
public int describeContents ()
```

Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation. For example, if the object will
include a file descriptor in the output of `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`,
the return value of this method must include the
`https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` bit.

<br />

| Returns ||
|---|---|
| `int` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or - `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` |

### equals

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

```
public boolean equals (Object o)
```

Indicates whether some other object is "equal to" this one.


The `equals` method implements an equivalence relation
on non-null object references:

- It is *reflexive*: for any non-null reference value `x`, `x.equals(x)` should return `true`.
- It is *symmetric*: for any non-null reference values `x` and `y`, `x.equals(y)` should return `true` if and only if `y.equals(x)` returns `true`.
- It is *transitive*: for any non-null reference values `x`, `y`, and `z`, if `x.equals(y)` returns `true` and `y.equals(z)` returns `true`, then `x.equals(z)` should return `true`.
- It is *consistent*: for any non-null reference values `x` and `y`, multiple invocations of `x.equals(y)` consistently return `true` or consistently return `false`, provided no information used in `equals` comparisons on the objects is modified.
- For any non-null reference value `x`, `x.equals(null)` should return `false`.


An equivalence relation partitions the elements it operates on
into *equivalence classes*; all the members of an
equivalence class are equal to each other. Members of an
equivalence class are substitutable for each other, at least
for some purposes.

<br />

| Parameters ||
|---|---|
| `o` | `Object`: the reference object with which to compare. <br /> |

| Returns ||
|---|---|
| `boolean` | `true` if this object is the same as the obj argument; `false` otherwise. <br /> |

### getChannel

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

```
public int getChannel ()
```

Gets the UWB channel associated with this configuration.

<br />

| Returns ||
|---|---|
| `int` | The channel number, which is one of the predefined UWB channels: <br /> |

### getPreambleIndex

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

```
public int getPreambleIndex ()
```

Gets the UWB preamble index associated with this configuration.

<br />

| Returns ||
|---|---|
| `int` | The preamble index, which is one of the predefined UWB preamble indices: See [### hashCode](https://groups.firaconsortium.org/wg/members/document/1949> FiRa UCI Spec.</a></p></td> </tr> </table> </div> <div data-version-added=)[](https://groups.firaconsortium.org/wg/members/document/1949> FiRa UCI Spec.</a></p></td> </tr> </table> </div> <div data-version-added=)[Added in](https://groups.firaconsortium.org/wg/members/document/1949> FiRa UCI Spec.</a></p></td> </tr> </table> </div> <div data-version-added=)[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) ``` public int hashCode () ``` Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by `https://developer.android.com/reference/java/util/HashMap`. The general contract of `hashCode` is: - Whenever it is invoked on the same object more than once during an execution of a Java application, the `hashCode` method must consistently return the same integer, provided no information used in `equals` comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application. - If two objects are equal according to the `https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)` method, then calling the `hashCode` method on each of the two objects must produce the same integer result. - It is *not* required that if two objects are unequal according to the `https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)` method, then calling the `hashCode` method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables. <br /> <br /> | Returns || |---|---| | `int` | a hash code value for this object. <br /> | ### toString Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) ``` public String toString () ``` Returns a string representation of the object. <br /> | Returns || |---|---| | `https://developer.android.com/reference/java/lang/String` | a string representation of the object. <br /> | ### writeToParcel Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) ``` public void writeToParcel (Parcel dest, int flags) ``` Flatten this object in to a Parcel. <br /> | Parameters || |---|---| | `dest` | `Parcel`: This value cannot be `null`. <br /> | | `flags` | `int`: Additional flags about how the object should be written. May be 0 or `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE` | |