PTChannelManager
An object that represents a push-to-talk channel manager.
Declaration
class PTChannelManagerMentioned in
Overview
You must create a channel manager upon launching your app, otherwise the system tears down channels and their ability to receive push notifications. By providing a PTChannelRestorationDelegate, an app can rejoin or leave a previously active channel the system knows about. Once the channel resoration process completes, the system provides a PTChannelManager instance.
// Create a channel manager instance.
channelManager = try await PTChannelManager.channelManager(delegate: self,
restorationDelegate: self)Multiple calls to channelManager(delegate:restorationDelegate:completionHandler:) result in the system returning the same shared instance, so store the channel manager in an instance variable.
Topics
Creating a channel manager
Inspecting the channel manager
Joining and leaving a channel
Setting the transmission mode
Starting and stopping transmission
requestBeginTransmitting(channelUUID:)stopTransmitting(channelUUID:)setAccessoryButtonEventsEnabled(_:channelUUID:completionHandler:)