getChannelById

abstract fun getChannelById(channelId: String): Channel?

Retrieve a channel by its unique ID from local data.

This method returns the Channel associated with the given channelId if it exists in the local data. If no channel is found, it returns null.

Return

The Channel object with the provided channelId, or null if not found.

Parameters

channelId

The unique identifier of the channel to retrieve.