---
title: "setChannelDescriptor(_:channelUUID:completionHandler:)"
framework: pushtotalk
role: symbol
role_heading: Instance Method
path: "pushtotalk/ptchannelmanager/setchanneldescriptor(_:channeluuid:completionhandler:)"
---

# setChannelDescriptor(_:channelUUID:completionHandler:)

Sets the channel description.

## Declaration

```swift
func setChannelDescriptor(_ channelDescriptor: PTChannelDescriptor, channelUUID: UUID, completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)
```

```swift
func setChannelDescriptor(_ channelDescriptor: PTChannelDescriptor, channelUUID: UUID) async throws
```

## Parameters

- `channelDescriptor`: The channel description.
- `channelUUID`: The channel identifier.
- `completionHandler`: The completion handler.

## Mentioned in

Creating a Push to Talk app

## Discussion

Discussion important: You can call this method from synchronous code using a completion handler, as shown on this page, or you can call it as an asynchronous method that has the following declaration: func setChannelDescriptor(_ channelDescriptor: PTChannelDescriptor, channelUUID: UUID) async throws For information about concurrency and asynchronous code in Swift, see Calling Objective-C APIs Asynchronously.
