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
| Parameter | Description |
|---|---|
channelId *Type: StringDefault: n/a | Unique channel identifier (up to 92 UTF-8 byte sequences). |
Output
| Parameter | Description |
|---|---|
ChannelImpl | Object 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