Get channel details

Fetch a specific channel's metadata with getChannel().

Requires App Context

Enable App Context for your keyset in the Admin Portal.

Method signature​

This method takes the following parameters:

1chat.getChannel(
2 channelId: String
3) async throws -> ChannelImpl?

Input​

* required
ParameterDescription
channelId *
Type: String
Default:
n/a
Unique channel identifier (up to 92 UTF-8 byte sequences).

Output​

ParameterDescription
ChannelImplObject returning the new channel metadata.

Sample code​

Sample code

The code samples in Swift Chat SDK focus on asynchronous code execution.

You can also write synchronous code as the parameters are shared between the async and sync methods but we don't provide usage examples of such.

Fetch the support channel metadata.

1

Was this page useful?

Last updated on