mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Remove displayIncomingCall(string)
This commit is contained in:
parent
4b0838225e
commit
fe8e29542c
1 changed files with 0 additions and 18 deletions
|
|
@ -40,7 +40,6 @@ import AVFoundation
|
|||
var lc: Core?
|
||||
@objc var speakerBeforePause : Bool = false
|
||||
@objc var nextCallIsTransfer: Bool = false
|
||||
@objc var alreadyRegisteredForNotification: Bool = false
|
||||
var referedFromCall: String?
|
||||
var referedToCall: String?
|
||||
var endCallkit: Bool = false
|
||||
|
|
@ -196,23 +195,6 @@ import AVFoundation
|
|||
}
|
||||
}
|
||||
|
||||
// From ios13, display the callkit view when the notification is received.
|
||||
@objc func displayIncomingCall(callId: String) {
|
||||
let uuid = CallManager.instance().providerDelegate.uuids["\(callId)"]
|
||||
if (uuid != nil) {
|
||||
return
|
||||
}
|
||||
|
||||
let call = CallManager.instance().callByCallId(callId: callId)
|
||||
if (call != nil) {
|
||||
let displayName = FastAddressBook.displayName(for: call?.remoteAddress?.getCobject) ?? "Unknow"
|
||||
let video = UIApplication.shared.applicationState == .active && (lc!.videoActivationPolicy?.automaticallyAccept ?? false) && (call!.remoteParams?.videoEnabled ?? false)
|
||||
displayIncomingCall(call: call, handle: (call!.remoteAddress?.asStringUriOnly())!, hasVideo: video, callId: callId, displayName: displayName)
|
||||
} else {
|
||||
displayIncomingCall(call: nil, handle: "Calling", hasVideo: true, callId: callId, displayName: "Calling")
|
||||
}
|
||||
}
|
||||
|
||||
func displayIncomingCall(call:Call?, handle: String, hasVideo: Bool, callId: String, displayName:String) {
|
||||
let uuid = UUID()
|
||||
let callInfo = CallInfo.newIncomingCallInfo(callId: callId)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue