[ad_1]
I am making an app for recording requires iOS, and it really works in the best way that, the decision is made to service quantity and name merged.I’m observing when name has ended as a way to obtain audio from server.
extension RecordingsAPIManager: CXCallObserverDelegate {
func callObserver(_ callObserver: CXCallObserver, callChanged name: CXCall) {
if name.hasEnded {
DispatchQueue.primary.asyncAfter(deadline: .now() + 1) { [weak self] in
self?.getRecordings(isOutgoing: name.isOutgoing)
}
}
}
}
However since I additionally move isOutgoing as an parameter, the decision to good friend and name to service should not get rearranged.So is there may be an method to determine which name has ended, if know the service quantity?
[ad_2]
