I am constructing a iOS utility utilizing flutter , I am seeking to combine IOS PushToTalk framework within the utility , I’ve setup the pushtotalk iOS framework in appdelegate.swift file .On constructing the app , I get the error : Kind ‘AppDelegate’ doesn’t conform to protocol ‘PTChannelManagerDelegate’
The appdelegate.swift code is talked about beneath
import UIKit
import Flutter
import PushToTalk
import AVFoundation
@UIApplicationMain
@objc class AppDelegate:FlutterAppDelegate {
override func utility(
_ utility: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
var channelManager = strive await PTChannelManager.channelManager(delegate: self,restorationDelegate: self)
return tremendous.utility(utility, didFinishLaunchingWithOptions: launchOptions)
}
}
extension AppDelegate:PTChannelManagerDelegate
{
enter code right here
func channelManager(channelManager:PTChannelManager, channelUUID: UUID, didBeginTransmittingFrom: PTChannelTransmitRequestSource)
{
}
func channelManager(channelManager:PTChannelManager, channelUUID: UUID, didEndTransmittingFrom: PTChannelTransmitRequestSource)
{
}
func channelManager(channelManager: PTChannelManager, failedToBeginTransmittingInChannel: UUID, error: (any Error)?)
{
}
func channelManager(channelManager:PTChannelManager, failedToStopTransmittingInChannel: UUID, error: (any Error)?)
{
}
func channelManager(_ channelManager:PTChannelManager, didJoinChannel: UUID, purpose: PTChannelJoinReason)
{
}
func channelManager(_ channelManager:PTChannelManager, didLeaveChannel: UUID, purpose: PTChannelLeaveReason)
{
}
func channelManager(channelManager:PTChannelManager, failedToJoinChannel: UUID, error: (any Error)?)
{
}
func channelManager(channelManager:PTChannelManager, failedToLeaveChannel: UUID, error: (any Error)?)
{
}
func channelManager(_ channelManager:PTChannelManager, receivedEphemeralPushToken: Information)
{
}
func incomingPushResultForChannelManager(
channelManager: PTChannelManager,
channelUUID: UUID,
pushPayload: [String : Any]
) -> PTPushResult
{
return .leaveChannel
}
func channelDescriptor(restoredChannelUUID channelUUID: UUID) -> PTChannelDescriptor
{}
}
on constructing the app , I get the error
Kind ‘AppDelegate’ doesn’t conform to protocol ‘PTChannelManagerDelegate’